Template:PerkTable: Difference between revisions
From Destinypedia, the Destiny wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| id="PerkTable" class="{{#if:{{#forargs:barrel|key|value|{{#var:value}}}}||no-barrel}} {{#if:{{#forargs: | <includeonly>{| id="PerkTable" class="{{#if:{{#forargs:barrel|key|value|{{#var:value}}}}||no-barrel}} {{#if:{{#forargs:string|key|value|{{#var:value}}}}||no-string}} {{#if:{{#forargs:arrow|key|value|{{#var:value}}}}||no-arrow}} {{#if:{{#forargs:haft|key|value|{{#var:value}}}}||no-haft}} {{#if:{{#forargs:blade|key|value|{{#var:value}}}}||no-blade}} {{#if:{{#forargs:guard|key|value|{{#var:value}}}}||no-guard}} {{#if:{{#forargs:mag|key|value|{{#var:value}}}}||no-mag}} {{#if:{{#forargs:1stperk|key|value|{{#var:value}}}}||no-1stperk}} {{#if:{{#forargs:2ndperk|key|value|{{#var:value}}}}||no-2ndperk}} {{#if:{{#forargs:stock|key|value|{{#var:value}}}}||no-stock}} {{#if:{{#forargs:grip|key|value|{{#var:value}}}}||no-grip}} {{#if:{{#forargs:origin|key|value|{{#var:value}}}}||no-origin}}" | ||
! {{{title-barrel|Barrel}}} | ! {{{title-barrel|Barrel}}} | ||
! {{{title-string|Bowstring}}} | ! {{{title-string|Bowstring}}} | ||
! {{{title-arrow|Arrow}}} | ! {{{title-arrow|Arrow}}} | ||
Line 7: | Line 6: | ||
! {{{title-blade|Blade}}} | ! {{{title-blade|Blade}}} | ||
! {{{title-guard|Guard}}} | ! {{{title-guard|Guard}}} | ||
! {{{title-mag|Magazine}}} | |||
! {{{title-1stperk|Perk 1}}} | ! {{{title-1stperk|Perk 1}}} | ||
! {{{title-2ndperk|Perk 2}}} | ! {{{title-2ndperk|Perk 2}}} | ||
Line 12: | Line 12: | ||
! {{{title-grip|Grip}}} | ! {{{title-grip|Grip}}} | ||
! {{{title-origin|Origin}}} | ! {{{title-origin|Origin}}} | ||
{{#vardefine:i|1}}{{#while:|{{{barrel{{#var:i}}|}}}{{{ | {{#vardefine:i|1}}{{#while:|{{{barrel{{#var:i}}|}}}{{{string{{#var:i}}|}}}{{{arrow{{#var:i}}|}}}{{{haft{{#var:i}}|}}}{{{blade{{#var:i}}|}}}{{{guard{{#var:i}}|}}}{{{mag{{#var:i}}|}}}{{{1stperk{{#var:i}}|}}}{{{2ndperk{{#var:i}}|}}}{{{stock{{#var:i}}|}}}{{{grip{{#var:i}}|}}}{{{origin{{#var:i}}|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} {{{barrel{{#var:i}}|}}} {{!}}{{!}} {{{ | {{!}} {{{barrel{{#var:i}}|}}} {{!}}{{!}} {{{string{{#var:i}}|}}} {{!}}{{!}} {{{arrow{{#var:i}}|}}} {{!}}{{!}} {{{haft{{#var:i}}|}}} {{!}}{{!}} {{{blade{{#var:i}}|}}} {{!}}{{!}} {{{guard{{#var:i}}|}}} {{!}}{{!}} {{{mag{{#var:i}}|}}} {{!}}{{!}} {{{1stperk{{#var:i}}|}}} {{!}}{{!}} {{{2ndperk{{#var:i}}|}}} {{!}}{{!}} {{{stock{{#var:i}}|}}} {{!}}{{!}} {{{grip{{#var:i}}|}}} {{!}}{{!}} {{{origin{{#var:i}}|}}} | ||
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | ||
}} | }} | ||
Line 24: | Line 24: | ||
{{PerkTable | {{PerkTable | ||
|barrel1= | |barrel1= | ||
|string1= | |string1= | ||
|arrow1= | |arrow1= | ||
Line 30: | Line 29: | ||
|blade1= | |blade1= | ||
|guard1= | |guard1= | ||
|mag1= | |||
|1stperk1= | |1stperk1= | ||
|2ndperk1= | |2ndperk1= | ||
Line 37: | Line 37: | ||
|barrel2= | |barrel2= | ||
|string2= | |string2= | ||
|arrow2= | |arrow2= | ||
Line 43: | Line 42: | ||
|blade2= | |blade2= | ||
|guard2= | |guard2= | ||
|mag2= | |||
|1stperk2= | |1stperk2= | ||
|2ndperk2= | |2ndperk2= |
Revision as of 09:25, January 19, 2024
Usage instructions
Use the syntax below for any amount of numbered groups. Any unused parameters can be completely removed. If including light.gg links, use the format: [[lightgg:<id>|<perk name>]]
{{PerkTable |barrel1= |string1= |arrow1= |haft1= |blade1= |guard1= |mag1= |1stperk1= |2ndperk1= |stock1= |grip1= |origin1= |barrel2= |string2= |arrow2= |haft2= |blade2= |guard2= |mag2= |1stperk2= |2ndperk2= |stock2= |grip2= |origin2= }}
Any of the column titles can be changed by setting the title-<var>
parameter (e.g. title-barrel
).