Changes

no edit summary
Line 1: Line 1: −
<includeonly>{{{description}}}
+
<includeonly><center>[[Image:{{{imagename}}}]]</center>
   −
<b>Type:</b> [[{{{type}}}]]<br>
+
{{{description}}}
 +
 
 +
<b>Type:</b> [[:Category:{{{category}}}|{{{type}}}]]<br>
 
<b>Defence:</b> {{{defence}}}<br>
 
<b>Defence:</b> {{{defence}}}<br>
 
<b>Autosell value:</b> {{{autosell}}}<br>
 
<b>Autosell value:</b> {{{autosell}}}<br>
Line 10: Line 12:  
<b>{{{stored}}} be stored</b><br>
 
<b>{{{stored}}} be stored</b><br>
   −
<b>Plural:</b> {{{plural}}}<br>
+
<b>Outfit name:</b> {{{outfitname}}}<br>
<b>Bonus:</b> {{{bonus}}}</includeonly><noinclude>
+
 
This template is to be used at the top of an [[equipment]] item.
+
<b>Plural:</b> {{#if:{{{plural}}}|{{{plural}}}|unknown}}<br>
 +
<b>Bonus:</b> {{#if:{{{bonus}}}|{{{bonus}}}|none or not yet known}}</includeonly><noinclude>
 +
This template is to be used at the top of an equipment item article.
 +
 
 +
==Usage==
 +
<nowiki>{</nowiki>{Summary/Items/Equipment
 +
|imagename=''filename''
 +
|description=''text''
 +
|category=''text''
 +
|type=''text''
 +
|defence=''value''
 +
|autosell=''value''
 +
|discarded=''Can|Cannot''
 +
|autosold=''Can|Cannot''
 +
|traded=''Can|Cannot''
 +
|stored=''Can|Cannot''
 +
|outfitname=''outfitname''
 +
|plural=''text''
 +
|bonus=''text''
 +
}}
 +
 
 +
==Examples==
 +
Sorry about the format of this, still an issue to work out. Paramaters are easier to read if listed on separate lines as shown above.
 +
 
 +
:<code><nowiki>{{Summary/Items/Equipment
 +
|imagename=Blueshirt.png
 +
|description=This is some kind of nice item description
 +
|category=Shirts
 +
|type=shirt
 +
|defence=10
 +
|autosell=20
 +
|discarded=Cannot
 +
|autosold=Can
 +
|traded=Can
 +
|stored=Can
 +
|outfitname=outfitname
 +
|plural=itemnames
 +
|bonus=makes stuff wibbly-wobbly
 +
}}</nowiki></code> yields:
 +
 
 +
{{Summary/Items/Equipment
 +
|imagename=Blueshirt.png
 +
|description=This is some kind of nice item description
 +
|category=Shirts
 +
|type=shirt
 +
|defence=10
 +
|autosell=20
 +
|discarded=Cannot
 +
|autosold=Can
 +
|traded=Can
 +
|stored=Can
 +
|outfitname= outfitname
 +
|plural=itemnames
 +
|bonus=makes stuff wibbly-wobbly
 +
}}
 +
 
 +
==Further Examples==
 +
*[[blue t-shirt]]
   −
To see how to use the template on a page, edit the Description section of the page [[festive paper hat]].
+
[[Category: Templates]]
 
</noinclude>
 
</noinclude>