Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
Line 13: Line 13:
 
-->{{#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 }}
     | {{#switch: {{{#userparam|}}} | compatibility:light | compatibility:full = {{!}} - }}
+
     | {{#switch: {{{#userparam|}}} | compatibility:light | compatibility:full = {{!}} -c }}
 
   }}
 
   }}
 
| {{ShowTier|source={{PageLink_to_Name|page={{{1}}} }} }}<!--{{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
 
| {{ShowTier|source={{PageLink_to_Name|page={{{1}}} }} }}<!--{{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}

Revision as of 09:49, 30 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 "compatibility:light" 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 "compatibility:full" is used, it will always show all parameters applicable any kind of item (Swords will also show "ArmorClass", because Protective Gear has this parameter). Is used for showing all items regardless of type (makes otherwise incompatible table formats compatible)