Difference between revisions of "Template:Summary/Items/Food"

From ParadoxWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{description}}}
+
<includeonly><center>[[Image:{{{imagename}}}]]</center>
  
<b>Type:</b> [[food]]<br>
+
{{{description}}}
 +
 
 +
<b>Type:</b> [[:Category:Food|food]]<br>
 
<b>Autosell value:</b> {{{autosell}}}<br>
 
<b>Autosell value:</b> {{{autosell}}}<br>
 
<b>Turns on use:</b> {{{turnsonuse}}}<br>
 
<b>Turns on use:</b> {{{turnsonuse}}}<br>
Line 11: Line 13:
 
<b>{{{stored}}} be stored</b><br>
 
<b>{{{stored}}} be stored</b><br>
  
<b>Plural:</b> {{{plural}}}</includeonly><noinclude>
+
<b>Plural:</b> {{#if:{{{plural}}}|{{{plural}}}|unknown}}</includeonly><noinclude>
This template is to be used in the description section of a [[food]] item.
+
This template is to be used at the top of a food item article.
 +
 
 +
==Usage==
 +
<nowiki>{</nowiki>{Summary/Items/Food
 +
|imagename=''filename''
 +
|description=''text''
 +
|autosell=''value''
 +
|turnsonuse=''value''
 +
|fullness=''value''
 +
|discarded=''Can|Cannot''
 +
|autosold=''Can|Cannot''
 +
|traded=''Can|Cannot''
 +
|stored=''Can|Cannot''
 +
|plural=''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/Food
 +
|imagename=Artharden.png
 +
|description=This is some kind of nice item description
 +
|autosell=20
 +
|turnsonuse=2
 +
|fullness=1
 +
|discarded=Cannot
 +
|autosold=Can
 +
|traded=Can
 +
|stored=Can
 +
|plural=itemnames
 +
}}</nowiki></code> yields:
 +
 
 +
{{Summary/Items/Food
 +
|imagename=Artharden.png
 +
|description=This is some kind of nice item description
 +
|autosell=20
 +
|turnsonuse=2
 +
|fullness=1
 +
|discarded=Cannot
 +
|autosold=Can
 +
|traded=Can
 +
|stored=Can
 +
|plural=itemnames
 +
}}
 +
 
 +
==Further Examples==
 +
*[[Artery Hardener]]
  
To see how to use the template on a page, edit the Description section of the page [[Artery Hardener]].
+
[[Category: Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:38, 14 August 2008

This template is to be used at the top of a food item article.

Usage

{{Summary/Items/Food
|imagename=filename
|description=text
|autosell=value
|turnsonuse=value
|fullness=value
|discarded=Can|Cannot
|autosold=Can|Cannot
|traded=Can|Cannot
|stored=Can|Cannot
|plural=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.

{{Summary/Items/Food |imagename=Artharden.png |description=This is some kind of nice item description |autosell=20 |turnsonuse=2 |fullness=1 |discarded=Cannot |autosold=Can |traded=Can |stored=Can |plural=itemnames }} yields:
Artharden.png

This is some kind of nice item description

Type: food
Autosell value: 20
Turns on use: 2
Fullness: 1

Cannot be discarded
Can be autosold
Can be traded
Can be stored

Plural: itemnames

Further Examples