Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
(added "verbose" userparam)
Line 12: Line 12:
 
-->{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
 
-->{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
 
     | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
 
     | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
     | {{#ifeq: {{{userparam|}}} | verbose | {{!}} - }}
+
     | {{#ifeq: {{{#userparam|}}} | verbose | {{!}} - }}
 
   }}
 
   }}
 
| {{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
 
| {{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
Line 45: Line 45:
 
<noinclude>
 
<noinclude>
 
This is a template for formatting one row (item) of the item overview (eg: List of all swords in [[Sword]]).
 
This is a template for formatting one row (item) of the item overview (eg: List of all swords in [[Sword]]).
 +
 
If the userparam "verbose" is used, it will always show all parameters applicable to this type of item (Swords will also show "Ammunition", because there are Weapons [Bows] that have this parameter). Is used for showing all "weapons" of the game (makes two otherwise incompatible table formats compatible)
 
If the userparam "verbose" is used, it will always show all parameters applicable to this type of item (Swords will also show "Ammunition", because there are Weapons [Bows] that have this parameter). Is used for showing all "weapons" of the game (makes two otherwise incompatible table formats compatible)
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 21:58, 20 August 2018


This is a template for formatting one row (item) of the item overview (eg: List of all swords in Sword).

If the userparam "verbose" is used, it will always show all parameters applicable to this type of item (Swords will also show "Ammunition", because there are Weapons [Bows] that have this parameter). Is used for showing all "weapons" of the game (makes two otherwise incompatible table formats compatible)