Template:PerkTable: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| id="PerkTable" class="{{#if:{{#forargs:mag|key|value|{{#var:value}}}}||no-mag}} {{#if:{{#forargs:blade|key|value|{{#var:value}}}}||no-blade}} {{#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:mag|key|value|{{#var:value}}}}||no-mag}} {{#if:{{#forargs:arrow|key|value|{{#var:value}}}}||no-arrow}} {{#if:{{#forargs:string|key|value|{{#var:value}}}}||no-string}} {{#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: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}}" | ||
! Barrel | ! {{{barrel-title|Barrel}}} | ||
! Magazine | ! {{{mag-title|Magazine}}} | ||
! Blade | ! {{{arrow-title|Arrow}}} | ||
! Guard | ! {{{string-title|Bowstring}}} | ||
! Perk 1 | ! {{{haft-title|Haft}}} | ||
! Perk 2 | ! {{{blade-title|Blade}}} | ||
! Stock | ! {{{guard-title|Guard}}} | ||
! Grip | ! {{{1stperk-title|Perk 1}}} | ||
! Origin | ! {{{2ndperk-title|Perk 2}}} | ||
! {{{stock-title|Stock}}} | |||
! {{{grip-title|Grip}}} | |||
! {{{origin-title|Origin}}} | |||
{{#forargs:barrel|key|value|<nowiki/> | {{#forargs:barrel|key|value|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} {{#var:value}} {{!}}{{!}} {{{mag{{#var:key}}|}}} {{!}}{{!}} {{{blade{{#var:key}}|}}} {{!}}{{!}} {{{guard{{#var:key}}|}}} {{!}}{{!}} {{{1stperk{{#var:key}}|}}} {{!}}{{!}} {{{2ndperk{{#var:key}}|}}} {{!}}{{!}} {{{stock{{#var:key}}|}}} {{!}}{{!}} {{{grip{{#var:key}}|}}} {{!}}{{!}} {{{origin{{#var:key}}|}}} | {{!}} {{#var:value}} {{!}}{{!}} {{{mag{{#var:key}}|}}} {{!}}{{!}} {{{arrow{{#var:key}}|}}} {{!}}{{!}} {{{string{{#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}}|}}} | ||
}} | }} | ||
|}<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. A value for <code>barrel</code> is required, but all other fields are optional and their column will be hidden if not used. 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. A value for <code>barrel</code> is required, but all other fields are optional and their column will be hidden if not used. The name of the "Barrel" column can be changed by setting the <code>barrel-title</code> parameter. If including light.gg links, use the format: <code><nowiki>[[lightgg:<id>|<perk name>]]</nowiki></code> | ||
<pre> | <pre> | ||
Line 21: | Line 24: | ||
|barrel1= | |barrel1= | ||
|mag1= | |mag1= | ||
|arrow1= | |||
|string1= | |||
|haft1= | |||
|blade1= | |blade1= | ||
|guard1= | |guard1= | ||
Line 31: | Line 37: | ||
|barrel2= | |barrel2= | ||
|mag2= | |mag2= | ||
|arrow2= | |||
|string2= | |||
|haft2= | |||
|blade2= | |blade2= | ||
|guard2= | |guard2= |
Revision as of 12:54, January 17, 2024
Usage instructions
Use the syntax below for any amount of numbered groups. A value for barrel
is required, but all other fields are optional and their column will be hidden if not used. The name of the "Barrel" column can be changed by setting the barrel-title
parameter. If including light.gg links, use the format: [[lightgg:<id>|<perk name>]]
{{PerkTable |barrel1= |mag1= |arrow1= |string1= |haft1= |blade1= |guard1= |1stperk1= |2ndperk1= |stock1= |grip1= |origin1= |barrel2= |mag2= |arrow2= |string2= |haft2= |blade2= |guard2= |1stperk2= |2ndperk2= |stock2= |grip2= |origin2= }}