Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
((last few changes): fixed alignment of columns when "ArmorClass" is missing)
(added "verbose" userparam)
Line 10: Line 10:
 
     }}
 
     }}
 
}}<!--
 
}}<!--
-->{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }} | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }} }}
+
-->{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
 +
    | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }}
 +
    | {{#ifeq: {{{userparam|}}} | verbose | {{!}} - }}
 +
  }}
 
| {{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
 
| {{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
 
     | 0 = -
 
     | 0 = -
Line 41: Line 44:
  
 
<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)
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 21:56, 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)