Difference between revisions of "Template:Food"

From The Twilight Forest Wiki
Jump to navigation Jump to search
(compliant Template)
Line 1: Line 1:
{| class="wikitable" id="foodInfobox" style="float:right; margin-left: 100px;"
<includeonly>{| class="wikitable" id="foodInfobox" style="{{{style|float:right;}}} margin-left: 100px;"
!colspan="2"|{{{name| {{BASEPAGENAME}} }}}
!colspan="2"|{{{name| {{BASEPAGENAME}} }}}


|-
|-
|colspan="2" style="background-color: #222"|{{{image|}}}
|colspan="2" style="background-color: #222"|[[File:{{{image|!.png}}}|center|256px|link=|{{{image|File Missing}}}]]


|-
|-
!Type
!Hunger Restored
|{{{type|}}}
|{{{restores|None}}}
 
|-
!Restores
|{{{restores|}}}


|-
|-
Line 28: Line 24:
!ID
!ID
|{{{id|}}}
|{{{id|}}}
|}<noinclude>
|}</includeonly><noinclude>


Usage:
Usage:
<pre>
<pre>
{{Food
{{Food
|style= (used to orientate the table's styling, use only if you're a pro)
|name= (optional, defaults to the article's title)
|name= (optional, defaults to the article's title)
|image= (filelink)
|image= (filelink)
|type= (type of food)
|restores= (amount of hunger restored)
|restores= (amount of hunger restored)
|cookable= (yes/no)
|cookable= (yes/no)
Line 43: Line 39:
}}
}}
</pre>
</pre>
{{Food
|style=
}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 09:00, 12 January 2024


Usage:

{{Food
|style= (used to orientate the table's styling, use only if you're a pro)
|name= (optional, defaults to the article's title)
|image= (filelink)
|restores= (amount of hunger restored)
|cookable= (yes/no)
|renewable= (yes/no)
|stackable= (yes/no)
|id= (in-game id)
}}
Food
File Missing
Hunger Restored None
Cookable
Renewable
Stackable
ID