Difference between revisions of "Template:Info Table"

From Hobowars Wiki
Jump to: navigation, search
m
(Converted the food item template into a general-use template. The templates' old coding was personally archived.)
Line 1: Line 1:
<includeonly>{| style="margin: 1em auto 1em auto" border="3"
+
<includeonly>{| style="margin: auto auto auto auto" border="3" align="right"
|+ '''<tt>FOOD ITEM {{{id|}}}</tt>'''
+
| rowspan="2" width="60pt" height="60pt" align="center" | {{{image|'''N/A'''}}}
+
! width="170pt" height="20pt" align="center" style="background:blue; color:white" | Name
+
! width="130pt" height="20pt" align="center" style="background:green; color:white" | Gains
+
 
|-
 
|-
! height="40pt" align="center" | {{{name|None}}}
+
! colspan="3" height="20pt" align="center" style="background:blue; color:white" | Name
| height="40pt" align="center" | {{{tgain|None}}}{{clr}}{{{sgain|}}}
+
|-
+
! colspan="3" height="20pt" align="center" style="background:red; color:white" | Effect
+
 
|-
 
|-
| colspan="3" align="center" | {{{effect|—————}}}
+
! colspan="3" align="center" | {{{name|None}}}
 
|-
 
|-
! colspan="3" height="20pt" align="center" style="background:darkorange; color:white" | Locations and Costs
+
| colspan="3" height="100pt" align="center" | <big>{{{image|'''Image Not Available'''}}}</big>
 
|-
 
|-
| colspan="3" align="center" | <strong>{{{loc1|Unknown}}}</strong>{{clr}}{{{cost1|Unknown}}}{{clr}}<strong>{{{loc2|}}}</strong>{{clr}}{{{cost2|}}}{{clr}}<strong>{{{loc3|}}}</strong>{{clr}}{{{cost3|}}}{{clr}}<strong>{{{loc4|}}}</strong>{{clr}}{{{cost4|}}}{{clr}}<strong>{{{loc5|}}}</strong>{{clr}}{{{cost5|}}}{{clr}}<strong>{{{loc6|}}}</strong>{{clr}}{{{cost6|}}}{{clr}}<strong>{{{loc7|}}}</strong>{{clr}}{{{cost7|}}}{{clr}}<strong>{{{loc8|}}}</strong>{{clr}}{{{cost8|}}}{{clr}}<strong>{{{loc9|}}}</strong>{{clr}}{{{cost9|}}}{{clr}}<strong>{{{loc10|}}}</strong>{{clr}}{{{cost10|}}}
+
! width="30pt" height="20pt" align="center" style="background:white; color:black" | ID
 +
! width="140pt" height="20pt" align="center" style="background:black; color:white" | Category
 +
! width="130pt" height="20pt" align="center" style="background:gray; color:white" | Subcategory
 
|-
 
|-
! colspan="3" height="20pt" align="center" style="background:black; color:white" | Additional Information
+
| valign="middle" height="40pt" align="center" | '''''{{{id|&mdash;}}}'''''
|-
+
| valign="middle" height="40pt" align="center" | [[:Category:{{{cat|Unknown}}}|{{{cat|Unknown}}}]]
| colspan="3" align="center" | {{{otherinfo|—————}}}
+
| valign="middle" height="40pt" align="center" | {{{subcat|None}}}
 
|-
 
|-
 
! colspan="3" height="20pt" align="center" style="background:gold; color:black" | Version Availability
 
! colspan="3" height="20pt" align="center" style="background:gold; color:black" | Version Availability
Line 25: Line 20:
 
|}
 
|}
  
{| style="margin: 1em auto 1em auto" border="3"
+
[[Category:{{{cat|Unknown}}}|{{PAGENAME}}]]</includeonly>
|+ '''<tt>COOKBOOK</tt>'''
+
! colspan="3" width="372pt" height="10pt" align="center" style="background:#C67171; color:white" | Creation
+
|-
+
| colspan="3" align="center" | {{{ingredients|Cannot be made.}}}
+
|-
+
! colspan="3" height="10pt" align="center" style="background:#000080; color:white" | Separation
+
|-
+
| colspan="3" align="center" | {{{sepyield|Does not yield anything upon separation.}}}
+
|-
+
! colspan="3" height="10pt" align="center" style="background:#515151; color:white" | Other Information
+
|-
+
| colspan="3" align="center" | {{{info1|—————}}}{{clr}}{{{info2|}}}{{clr}}{{{info3|}}}{{clr}}{{{info4|}}}{{clr}}{{{info5|}}}{{clr}}
+
|}
+
 
+
[[Category:Food Items|{{PAGENAME}}]]</includeonly>
+
 
<noinclude>'''Syntax:'''<br />
 
<noinclude>'''Syntax:'''<br />
<nowiki>{{Food Item</nowiki><br />
+
<nowiki>{{Info Table</nowiki><br />
|id= (Food items do have ID numbers. If you don't know a food item's ID number, don't worry about it.)<br />
+
|name= ''(The item/effect's name.)''<br />
|image= (The URL of the food item's image.)<br />
+
|image= ''(The URL of the item/effect's image.)''<br />
|name= (The food item's name.)<br />
+
|id= ''(The ID number of the item/effect. If you don't know a food item's ID number, don't worry about it.)''<br />
|tgain= (T Gain, e.g. +12 Awake)<br />
+
|cat= ''(The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, or Special Item.)''<br />
|sgain= (Stat Gain, e.g. +1 Intelligence)<br />
+
|subcat= (''The subcategory of the item/effect/etc. There may be more than one subcategory. You're going to have to make a link to the subcategory on your own. Be sure to insert a line break in between each subcategory.)''<br />
|effect= (Status effect link or a description, i.e. clear out stomach and liver.)<br />
+
|versions= ''(The versions of HoboWars this food item is located in, i.e. HW1, HW2, FBHW, and HA. If available in all, don't include.)''<br />
|loc1= (First location.)<br />
+
|cost1= (Cost of item from first location. Costs can be in money, cans, tokens, T, Points, etc.)<br />
+
|loc2= (Second location. Does not need to be included if there is no second location.)<br />
+
|cost2= (Cost of item from second location. Does not need to be included if there is no second location.)<br />
+
|loc3= (See loc2.)<br />
+
|cost3= (See cost2.)<br />
+
|loc4= <br />
+
|cost4= <br />
+
|loc5= <br />
+
|cost5= <br />
+
|loc6= <br />
+
|cost6= <br />
+
|loc7= <br />
+
|cost7= <br />
+
|loc8= <br />
+
|cost8= <br />
+
|loc9= <br />
+
|cost9= <br />
+
|loc10= <br />
+
|cost10= <br />
+
|otherinfo= (Additional information such as Easter eggs, cautions, etc. go here as a paragraph of text.)<br />
+
|versions= (The versions of HoboWars this food item is located in, i.e. HW1, HW2, FBHW, and HA. If available in all, don't include.)<br />
+
|ingredients= (Components of food item, i.e. Red Hots + Gasoline)<br />
+
|sepyield= (Yield from separation, i.e. Single-Single & Single-Single)<br />
+
|info1= (Information such as "A Faberge Cream Egg ingredient." goes here.<br />
+
|info2= (See info1.)<br />
+
|info3= <br />
+
|info4= <br />
+
|info5= <br />
+
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
  
If a variable doesn't need to be included, simply don't include it. By that I mean don't have the "|variable= " in the list at all. The template will take over and fill in appropriate information for you.
+
If a variable doesn't need to be included, simply don't include it. By that I mean don't have the "|variable= " in the list at all. The template will take over and fill in the appropriate information for you.
  
 
[[Category:All wiki templates|{{PAGENAME}}]]
 
[[Category:All wiki templates|{{PAGENAME}}]]
  
 
<!--For your convenience, simply copy and paste this to get started:
 
<!--For your convenience, simply copy and paste this to get started:
{{Food Item
+
{{Info Table
 +
|name=
 +
|image=
 
|id=
 
|id=
|image=
+
|cat=
|name=
+
|subcat=
|tgain=
+
|sgain=
+
|effect=
+
|loc1=
+
|cost1=
+
|loc2=
+
|cost2=
+
|loc3=
+
|cost3=
+
|loc4=
+
|cost4=
+
|loc5=
+
|cost5=
+
|loc6=
+
|cost6=
+
|loc7=
+
|cost7=
+
|loc8=
+
|cost8=
+
|loc9=
+
|cost9=
+
|loc10=
+
|cost10=
+
|otherinfo=
+
 
|versions=
 
|versions=
|ingredients=
 
|sepyield=
 
|info1=
 
|info2=
 
|info3=
 
|info4=
 
|info5=
 
 
}}
 
}}
 
-->
 
-->
 
</noinclude>
 
</noinclude>

Revision as of 14:06, 26 March 2011

Syntax:
{{Info Table
|name= (The item/effect's name.)
|image= (The URL of the item/effect's image.)
|id= (The ID number of the item/effect. If you don't know a food item's ID number, don't worry about it.)
|cat= (The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, or Special Item.)
|subcat= (The subcategory of the item/effect/etc. There may be more than one subcategory. You're going to have to make a link to the subcategory on your own. Be sure to insert a line break in between each subcategory.)
|versions= (The versions of HoboWars this food item is located in, i.e. HW1, HW2, FBHW, and HA. If available in all, don't include.)
}}


If a variable doesn't need to be included, simply don't include it. By that I mean don't have the "|variable= " in the list at all. The template will take over and fill in the appropriate information for you.