Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Item Infobox: Difference between revisions

Template page
Added auto-pluralization for source label
Moved quality class to affect entire infobox
Line 2: Line 2:
|kind = Item
|kind = Item
|sep = ,
|sep = ,
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
|title = <!--
|title = <!--
-->{{{title|<!--
-->{{{title|<!--
-->{{#if:{{{number|}}}|<!--
  -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  --><span class="archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"><!--
  -->{{{name|{{PAGENAME}}}}}<!--
    -->{{{number}}}<!--
  --></span><!--
-->}}<!--
-->{{{name|{{PAGENAME}}}}}<!--
-->}}}
-->}}}
|subtitle = {{{subtitle|}}}
|subtitle = {{{subtitle|}}}
Line 21: Line 18:
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
|Quality = <!--
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
-->{{#if:{{{quality|}}}|<!--
  --><span class="quality-label quality-{{lc:{{{quality}}}}}"><!--
    -->{{{quality}}}<!--
  --></span><!--
-->}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}