Template:PerkTable: Difference between revisions

From Destinypedia, the Destiny wiki

mNo edit summary
mNo edit summary
Line 12: Line 12:
! {{{title-grip|Grip}}}
! {{{title-grip|Grip}}}
! {{{title-origin|Origin}}}
! {{{title-origin|Origin}}}
{{#forargs:barrel|key|value|<nowiki/>
{{#vardefine:i|1}}{{#while:|{{{barrel{{#var:i}}|}}}{{{mag{{#var:i}}|}}}{{{string{{#var:i}}|}}}{{{arrow{{#var:i}}|}}}{{{haft{{#var:i}}|}}}{{{blade{{#var:i}}|}}}{{{guard{{#var:i}}|}}}{{{1stperk{{#var:i}}|}}}{{{2ndperk{{#var:i}}|}}}{{{stock{{#var:i}}|}}}{{{grip{{#var:i}}|}}}{{{origin{{#var:i}}|}}}|<nowiki/>
{{!}}-
{{!}}-
{{!}} {{#var:value}} {{!}}{{!}} {{{mag{{#var:key}}|}}} {{!}}{{!}} {{{string{{#var:key}}|}}} {{!}}{{!}} {{{arrow{{#var:key}}|}}} {{!}}{{!}} {{{haft{{#var:key}}|}}} {{!}}{{!}} {{{blade{{#var:key}}|}}} {{!}}{{!}} {{{guard{{#var:key}}|}}} {{!}}{{!}} {{{1stperk{{#var:key}}|}}} {{!}}{{!}} {{{2ndperk{{#var:key}}|}}} {{!}}{{!}} {{{stock{{#var:key}}|}}} {{!}}{{!}} {{{grip{{#var:key}}|}}} {{!}}{{!}} {{{origin{{#var:key}}|}}}
{{!}} {{{barrel{{#var:i}}|}}} {{!}}{{!}} {{{mag{{#var:i}}|}}} {{!}}{{!}} {{{string{{#var:i}}|}}} {{!}}{{!}} {{{arrow{{#var:i}}|}}} {{!}}{{!}} {{{haft{{#var:i}}|}}} {{!}}{{!}} {{{blade{{#var:i}}|}}} {{!}}{{!}} {{{guard{{#var:i}}|}}} {{!}}{{!}} {{{1stperk{{#var:i}}|}}} {{!}}{{!}} {{{2ndperk{{#var:i}}|}}} {{!}}{{!}} {{{stock{{#var:i}}|}}} {{!}}{{!}} {{{grip{{#var:i}}|}}} {{!}}{{!}} {{{origin{{#var:i}}|}}}
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
}}
|}<templatestyles src="PerkTable.css"/></includeonly><noinclude>
|}<templatestyles src="PerkTable.css"/></includeonly><noinclude>
==Usage instructions==
==Usage instructions==
Use the syntax below for any amount of numbered groups. Any unused parameters can be completely removed except for <code>barrel</code>, which even if not used must be left blank. If including light.gg links, use the format: <code><nowiki>[[lightgg:<id>|<perk name>]]</nowiki></code>
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: <code><nowiki>[[lightgg:<id>|<perk name>]]</nowiki></code>


<pre>
<pre>

Revision as of 18:57, January 17, 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=
|mag1=
|string1=
|arrow1=
|haft1=
|blade1=
|guard1=
|1stperk1=
|2ndperk1=
|stock1=
|grip1=
|origin1=

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

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