Template:PerkTable: Difference between revisions
From Destinypedia, the Destiny wiki
DefultNaem (talk | contribs) (aadded extra rows) |
mNo edit summary |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| | <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-iframe|Intrinsic Frame}}} | |||
! {{{title-barrel|Barrel}}} | |||
! | ! {{{title-string|Bowstring}}} | ||
! {{{title-blade|Blade}}} | |||
{{# | ! {{{title-haft|Haft}}} | ||
! {{{title-sight|Sight}}} | |||
! {{{title-mag|Magazine}}} | |||
! {{{title-arrow|Arrow}}} | |||
! {{{title-guard|Guard}}} | |||
! {{{title-1stperk|Perk 1}}} | |||
! {{{title-2ndperk|Perk 2}}} | |||
! {{{title-stock|Stock}}} | |||
! {{{title-grip|Grip}}} | |||
! {{{title-origin|Origin}}} | |||
! {{{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/> | |||
{{!}}- | {{!}}- | ||
{{!}} {{#var: | {{!}} {{{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}}}} | |||
}} | }} | ||
|}</includeonly><noinclude> | |}<templatestyles src="PerkTable/styles.css"/></includeonly><noinclude> | ||
==Usage instructions== | ==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: <code><nowiki>[[lightgg:<id>|<perk name>]]</nowiki></code> | |||
<pre> | <pre> | ||
{{PerkTable | {{PerkTable | ||
|itrait1= | |||
|iframe1= | |||
|barrel1= | |barrel1= | ||
|string1= | |||
|blade1= | |||
|haft1= | |||
|sight1= | |||
|mag1= | |mag1= | ||
|arrow1= | |||
|guard1= | |||
|1stperk1= | |1stperk1= | ||
|2ndperk1= | |2ndperk1= | ||
|stock1= | |||
|grip1= | |||
|origin1= | |origin1= | ||
|catalyst1= | |||
|itrait2= | |||
|iframe2= | |||
|barrel2= | |barrel2= | ||
|string2= | |||
|blade2= | |||
|haft2= | |||
|sight2= | |||
|mag2= | |mag2= | ||
|arrow2= | |||
|guard2= | |||
|1stperk2= | |1stperk2= | ||
|2ndperk2= | |2ndperk2= | ||
|stock2= | |||
|grip2= | |||
|origin2= | |origin2= | ||
| | |catalyst2= | ||
}} | }} | ||
</pre> | </pre> | ||
Any of the column titles can be changed by setting the <code><nowiki>title-<var></nowiki></code> parameter (e.g. <code>title-barrel</code>). | |||
[[Category:Content templates]]</noinclude> | [[Category:Content templates]]</noinclude> |
Latest revision as of 10: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
).