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:itrait|key|value|{{#var:value}}}}||no-itrait}} {{#if:{{#forargs:iframe|key|value|{{#var:value}}}}||no-iframe}} {{#if:{{#forargs:barrel|key|value|{{#var:value}}}}||no-barrel}} {{#if:{{#forargs:string|key|value|{{#var:value}}}}||no-string}} {{#if:{{#forargs:blade|key|value|{{#var:value}}}}||no-blade}} {{#if:{{#forargs:haft|key|value|{{#var:value}}}}||no-haft}} {{#if:{{#forargs:sight|key|value|{{#var:value}}}}||no-sight}} {{#if:{{#forargs:mag|key|value|{{#var:value}}}}||no-mag}} {{#if:{{#forargs:arrow|key|value|{{#var:value}}}}||no-arrow}} {{#if:{{#forargs:guard|key|value|{{#var:value}}}}||no-guard}} {{#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}}"
<includeonly>{| id="PerkTable" class="{{#if:{{#forargs:itrait|key|value|{{#var:value}}}}||no-itrait}} {{#if:{{#forargs:iframe|key|value|{{#var:value}}}}||no-iframe}} {{#if:{{#forargs:barrel|key|value|{{#var:value}}}}||no-barrel}} {{#if:{{#forargs:string|key|value|{{#var:value}}}}||no-string}} {{#if:{{#forargs:blade|key|value|{{#var:value}}}}||no-blade}} {{#if:{{#forargs:haft|key|value|{{#var:value}}}}||no-haft}} {{#if:{{#forargs:sight|key|value|{{#var:value}}}}||no-sight}} {{#if:{{#forargs:mag|key|value|{{#var:value}}}}||no-mag}} {{#if:{{#forargs:arrow|key|value|{{#var:value}}}}||no-arrow}} {{#if:{{#forargs:guard|key|value|{{#var:value}}}}||no-guard}} {{#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}} {{#if:{{#forargs:catalyst|key|value|{{#var:value}}}}||no-catalyst}}"
! {{{title-itrait|Intrinsic Trait}}}
! {{{title-itrait|Intrinsic Trait}}}
! {{{title-iframe|Intrinsic Frame}}}
! {{{title-iframe|Intrinsic Frame}}}
Line 15: Line 15:
! {{{title-grip|Grip}}}
! {{{title-grip|Grip}}}
! {{{title-origin|Origin}}}
! {{{title-origin|Origin}}}
{{#vardefine:i|1}}{{#while:|{{{itrait{{#var:i}}|}}}{{{iframe{{#var:i}}|}}}{{{barrel{{#var:i}}|}}}{{{string{{#var:i}}|}}}{{{blade{{#var:i}}|}}}{{{haft{{#var:i}}|}}}{{{sight{{#var:i}}|}}}{{{mag{{#var:i}}|}}}{{{arrow{{#var:i}}|}}}{{{guard{{#var:i}}|}}}{{{1stperk{{#var:i}}|}}}{{{2ndperk{{#var:i}}|}}}{{{stock{{#var:i}}|}}}{{{grip{{#var:i}}|}}}{{{origin{{#var:i}}|}}}|<nowiki/>
! {{{title-catalyst|Catalyst}}}
{{#vardefine:i|1}}{{#while:|{{{itrait{{#var:i}}|}}}{{{iframe{{#var:i}}|}}}{{{barrel{{#var:i}}|}}}{{{string{{#var:i}}|}}}{{{blade{{#var:i}}|}}}{{{haft{{#var:i}}|}}}{{{sight{{#var:i}}|}}}{{{mag{{#var:i}}|}}}{{{arrow{{#var:i}}|}}}{{{guard{{#var:i}}|}}}{{{1stperk{{#var:i}}|}}}{{{2ndperk{{#var:i}}|}}}{{{stock{{#var:i}}|}}}{{{grip{{#var:i}}|}}}{{{origin{{#var:i}}|}}}{{{catalyst{{#var:i}}|}}}|<nowiki/>
{{!}}-
{{!}}-
{{!}} {{{itrait{{#var:i}}|}}} {{!}}{{!}} {{{iframe{{#var:i}}|}}} {{!}}{{!}} {{{barrel{{#var:i}}|}}} {{!}}{{!}} {{{string{{#var:i}}|}}} {{!}}{{!}} {{{blade{{#var:i}}|}}} {{!}}{{!}} {{{haft{{#var:i}}|}}} {{!}}{{!}} {{{sight{{#var:i}}|}}} {{!}}{{!}} {{{mag{{#var:i}}|}}} {{!}}{{!}} {{{arrow{{#var:i}}|}}} {{!}}{{!}} {{{guard{{#var:i}}|}}} {{!}}{{!}} {{{1stperk{{#var:i}}|}}} {{!}}{{!}} {{{2ndperk{{#var:i}}|}}} {{!}}{{!}} {{{stock{{#var:i}}|}}} {{!}}{{!}} {{{grip{{#var:i}}|}}} {{!}}{{!}} {{{origin{{#var:i}}|}}}
{{!}} {{{itrait{{#var:i}}|}}} {{!}}{{!}} {{{iframe{{#var:i}}|}}} {{!}}{{!}} {{{barrel{{#var:i}}|}}} {{!}}{{!}} {{{string{{#var:i}}|}}} {{!}}{{!}} {{{blade{{#var:i}}|}}} {{!}}{{!}} {{{haft{{#var:i}}|}}} {{!}}{{!}} {{{sight{{#var:i}}|}}} {{!}}{{!}} {{{mag{{#var:i}}|}}} {{!}}{{!}} {{{arrow{{#var:i}}|}}} {{!}}{{!}} {{{guard{{#var:i}}|}}} {{!}}{{!}} {{{1stperk{{#var:i}}|}}} {{!}}{{!}} {{{2ndperk{{#var:i}}|}}} {{!}}{{!}} {{{stock{{#var:i}}|}}} {{!}}{{!}} {{{grip{{#var:i}}|}}} {{!}}{{!}} {{{origin{{#var:i}}|}}} {{!}}{{!}} {{{catalyst{{#var:i}}|}}}
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
}}
Line 41: Line 42:
|grip1=
|grip1=
|origin1=
|origin1=
|catalyst1=


|itrait2=
|itrait2=
Line 57: Line 59:
|grip2=
|grip2=
|origin2=
|origin2=
|catalyst2=
}}
}}
</pre>
</pre>

Latest revision as of 11:20, June 18, 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
|itrait1=
|iframe1=
|barrel1=
|string1=
|blade1=
|haft1=
|sight1=
|mag1=
|arrow1=
|guard1=
|1stperk1=
|2ndperk1=
|stock1=
|grip1=
|origin1=
|catalyst1=

|itrait2=
|iframe2=
|barrel2=
|string2=
|blade2=
|haft2=
|sight2=
|mag2=
|arrow2=
|guard2=
|1stperk2=
|2ndperk2=
|stock2=
|grip2=
|origin2=
|catalyst2=
}}

Any of the column titles can be changed by setting the title-<var> parameter (e.g. title-barrel).