Difference between revisions of "Template:Info Table"

From Hobowars Wiki
Jump to: navigation, search
(Food Item Template! :D)
 
m (revert)
 
(77 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| style="margin: 1em auto 1em auto" border="3"
+
<includeonly>{| class="allrc" align="right" cellspacing="0" cellpadding="5px" style="background:#white;border:2px solid black;"
|+ '''<tt>FOOD ITEM {{{id|}}}</tt>'''
+
|-
| rowspan="2" width="60pt" height="60pt" align="center" | {{{image|'''N/A'''}}}
+
! class="allrc" colspan="2" valign="middle" style="background:#737373;color:white;font-size:0.9em;white-space:nowrap;border:1px solid white;" | <div display="inline" title="{{#ifeq: {{{supercat|}}} | Backpack Item | {{{supercat|Object}}} #{{{id|&mdash;}}} | {{{cat|Object}}} #{{{id|&mdash;}}} }}">{{{name|None}}}</div>
! 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}}}
+
| height="40pt" align="center" | {{{tgain|None}}}{{clr}}{{{sgain|}}}
+
 
|-  
 
|-  
! colspan="3" height="20pt" align="center" style="background:red; color:white" | Effect
+
! colspan="2" valign="middle" height="44px" | {{{image|<big>'''N/A'''</big>}}}
 
|-
 
|-
| colspan="3" align="center" | {{{effect|—————}}}
+
{{#if: {{{supercat|}}} | {{!}} class="leftrc" valign="middle" align="center" style="background:#8C8C8C;color:black;font-size:0.85em;border:1px solid white;border-right:none" {{!}} <strong>Supercategory</strong> {{!}}{{!}} class="rightrc" valign="middle" align="center" style="background:#8C8C8C;font-size:0.85em;border:1px solid white;border-left:none" {{!}} {{#if: {{{supercat|}}} | [[:Category:{{{supercat}}}|{{{supercat}}}]] | }} | }}
 +
|- style="border-style:1px solid white"
 +
! class="leftrc" valign="middle" align="center" style="background:#A6A6A6;color:black;font-size:0.85em;border:1px solid white;border-right:none" | Category
 +
| class="rightrc" valign="middle" align="center" style="background:#A6A6A6;font-size:0.85em;border:1px solid white;border-left:none" | {{#if: {{{cat|}}} | [[:Category:{{{cat}}}|{{{cat}}}]] | None}}
 
|-
 
|-
! colspan="3" height="20pt" align="center" style="background:darkorange; color:white" | Locations and Costs
+
{{#if: {{{subcat|}}} | {{!}} class="leftrc" valign="middle" align="center" style="background:#BFBFBF;color:black;font-size:0.85em;border:1px solid white;border-right:none" {{!}} <strong>Subcategor{{#if: {{{subcat2| }}} |ies |y }}</strong> {{!}}{{!}} class="rightrc" valign="middle" align="center" style="background:#BFBFBF;font-size:0.85em;border:1px solid white;border-left:none" {{!}} {{#if: {{{subcat|}}} | [[:Category:{{{subcat}}}|{{{subcat}}}]] | }}{{#if: {{{subcat2| }}} | {{clr}}[[:Category:{{{subcat2}}}|{{{subcat2}}}]] | }}{{#if: {{{subcat3| }}} | {{clr}}[[:Category:{{{subcat3}}}|{{{subcat3}}}]] | }}{{#if: {{{subcat4| }}} | {{clr}}[[:Category:{{{subcat4}}}|{{{subcat4}}}]] | }} | }}
 
|-
 
|-
| 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|}}}
+
! class="leftrc" valign="middle" align="center" style="background:#D9D9D9;color:black;font-size:0.85em;border:1px solid white;border-right:none" | Version&nbsp;Availability
 +
| class="rightrc" valign="middle" align="center" style="background:#D9D9D9;font-size:0.85em;border:1px solid white;border-left:none" | {{{versions|All}}}
 
|-
 
|-
! colspan="3" height="20pt" align="center" style="background:black; color:white" | Additional Information
+
{{#ifeq: {{{vrsndiff|}}} | yes | {{!}} class="allrc" colspan="2" align="center" style="background:#F2F2F2;border:1px solid white;" {{!}} <small>(Some minor differences between versions.)</small> | }}
|-
+
| colspan="3" align="center" | {{{otherinfo|—————}}}
+
 
|}
 
|}
  
{| style="margin: 1em auto 1em auto" border="3"
+
[[Category:Info Page|{{PAGENAME}}]]{{#if: {{{supercat|}}} | [[Category:{{{supercat}}}|{{PAGENAME}}]] | }}{{#if: {{{cat|}}} | [[Category:{{{cat}}}|{{PAGENAME}}]] | }}{{#if: {{{subcat|}}} | [[Category:{{{subcat}}}|{{PAGENAME}}]] | }}{{#if: {{{subcat2| }}} | [[Category:{{{subcat2}}}|{{PAGENAME}}]] | }}{{#if: {{{subcat3| }}} | [[Category:{{{subcat3}}}|{{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}}
+
|}</includeonly>
+
 
<noinclude>'''Syntax:'''<br />
 
<noinclude>'''Syntax:'''<br />
<nowiki>{{Food Item</nowiki><br />
+
<nowiki>{{Info Table</nowiki><br />
|id= (Food does have an ID #. If you don't know it, don't worry about it.)<br />
+
|name= ''(The item/effect/etc's name.)''<br />
|image= (The URL of the food item's image.)<br />
+
|image= ''(The URL of the item/effect/etc's image.)''<br />
|name= (The food item's name.)<br />
+
|id= ''(The ID number of the item/effect/etc. If you don't know a food item's ID number, don't worry about it; just don't include this variable.)''<br />
|tgain= (T Gain, e.g. +10 T)<br />
+
|supercat= ''(The supercategory of the item/effect/etc. Only used for Equipment at the moment.)''<br />
|sgain= (Stat Gain, e.g. +1 Intelligence)<br />
+
|cat= ''(The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, Tattoo, or Special Item.)''<br />
|effect= (Status effect link or a description, i.e. clear out stomach and liver.)<br />
+
|subcat= (''The subcategory of the item/effect/etc. There may be more than one subcategory.)''<br />
|loc1= (First location.)<br />
+
|subcat2= (''The second subcategory of the item/effect/etc. There may be more than two subcategories.)''<br />
|cost1= (Cost of item from first location.)<br />
+
|subcat3= (''The third subcategory of the item/effect/etc. Try to only designate up to three subcategories; any more will have to hard-coded from this point forward.)''<br />
|loc2= (Second location. Does not need to be included if there is no second location.)<br />
+
|versions= ''(The versions of HoboWars the item/effect/etc is located in, i.e. HoboWars, HoboWars2, Facebook HoboWars, and HoboArena. If available in all, then don't include.)''<br />
|cost2= (Cost of item from second location. Doe not need to be included if there is no second location.)<br />
+
|vrsndiff= ''(If minor differences between versions exist, then put the word '''''yes''''' here. If no differences between versions exist, then don't include.)''<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 />
+
|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 something doesn't need to be included, simply don't include it.
+
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.
 +
 
 +
 
 +
For your convenience, simply copy and paste this to get started:<br /><br />
 +
<nowiki>{{Info Table</nowiki><br />
 +
|name= <br />
 +
|image= <br />
 +
|id= <br />
 +
|supercat= <br />
 +
|cat= <br />
 +
|subcat= <br />
 +
|subcat2= <br />
 +
|subcat3= <br />
 +
|versions= <br />
 +
|vrsndiff= <br />
 +
<nowiki>}}</nowiki>
  
<!--For your convenience, simply copy and paste this to get started:
+
[[Category:All wiki templates|{{PAGENAME}}]]
{{Food Item
+
|id=
+
|image=
+
|name=
+
|tgain=
+
|sgain=
+
|effect=
+
|loc1=
+
|cost1=
+
|loc2=
+
|cost2=
+
|loc3=
+
|cost3=
+
|loc4=
+
|cost4=
+
|loc5=
+
|cost5=
+
|loc6=
+
|cost6=
+
|loc7=
+
|cost7=
+
|loc8=
+
|cost8=
+
|loc9=
+
|cost9=
+
|loc10=
+
|cost10=
+
|otherinfo=
+
|ingredients=
+
|sepyield=
+
|info1=
+
|info2=
+
|info3=
+
|info4=
+
|info5=
+
}}
+
-->
+
 
</noinclude>
 
</noinclude>

Latest revision as of 09:32, 6 September 2016

Syntax:
{{Info Table
|name= (The item/effect/etc's name.)
|image= (The URL of the item/effect/etc's image.)
|id= (The ID number of the item/effect/etc. If you don't know a food item's ID number, don't worry about it; just don't include this variable.)
|supercat= (The supercategory of the item/effect/etc. Only used for Equipment at the moment.)
|cat= (The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, Tattoo, or Special Item.)
|subcat= (The subcategory of the item/effect/etc. There may be more than one subcategory.)
|subcat2= (The second subcategory of the item/effect/etc. There may be more than two subcategories.)
|subcat3= (The third subcategory of the item/effect/etc. Try to only designate up to three subcategories; any more will have to hard-coded from this point forward.)
|versions= (The versions of HoboWars the item/effect/etc is located in, i.e. HoboWars, HoboWars2, Facebook HoboWars, and HoboArena. If available in all, then don't include.)
|vrsndiff= (If minor differences between versions exist, then put the word yes here. If no differences between versions exist, then 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.


For your convenience, simply copy and paste this to get started:

{{Info Table
|name=
|image=
|id=
|supercat=
|cat=
|subcat=
|subcat2=
|subcat3=
|versions=
|vrsndiff=
}}