Difference between revisions of "Template:Info Table"
m (fixed supercat) |
DoctorKnow (Talk | contribs) (Updated the template with Parser Functions so that if a variable is present, categories will automatically be made. A few other improvements were added. PREPARE FOR BROKEN ITEM PAGES.) |
||
Line 12: | Line 12: | ||
|- | |- | ||
| valign="middle" height="40pt" align="center" | '''{{{id|—}}}''' | | valign="middle" height="40pt" align="center" | '''{{{id|—}}}''' | ||
− | + | | valign="middle" height="40pt" align="center" | {{#if: {{{cat}}} | [[:Category:{{{cat}}}|{{{cat}}}]] | None}}{{#if: {{{supercat}}} | {{clr}}<small>([[:Category:{{{supercat}}}|{{{supercat}}}]])</small> | }} | |
− | | valign="middle" height="40pt" align="center" | [[:Category:{{{cat | + | |
| valign="middle" height="40pt" align="center" | {{{subcat|None}}}{{clr}}{{{subcat2|}}}{{clr}}{{{subcat3|}}} | | valign="middle" height="40pt" align="center" | {{{subcat|None}}}{{clr}}{{{subcat2|}}}{{clr}}{{{subcat3|}}} | ||
|- | |- | ||
! 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 | ||
|- | |- | ||
− | | colspan="3" align="center" | {{{versions|All}}}{{ | + | | colspan="3" align="center" | {{{versions|All}}}{{#ifeq: {{{vrsndiff}}} | yes | {{clr}}<small>''(Some minor differences between versions.)''</small> | }} |
|} | |} | ||
− | [[Category:{{{cat| | + | {{#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> | ||
<noinclude>'''Syntax:'''<br /> | <noinclude>'''Syntax:'''<br /> | ||
<nowiki>{{Info Table</nowiki><br /> | <nowiki>{{Info Table</nowiki><br /> | ||
Line 27: | Line 30: | ||
|image= ''(The URL of the item/effect's image.)''<br /> | |image= ''(The URL of the item/effect's image.)''<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 /> | |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 /> | ||
− | |supercat= ''(The | + | |supercat= ''(The supercategory of the item/effect/etc. Only used for Equipment at the moment.)''<br /> |
|cat= ''(The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, Tattoo, or Special Item.)''<br /> | |cat= ''(The category of item/effect/etc. For example: Food Item, Equipment, Skill, Status Effect, Backpack Item, Tattoo, or Special Item.)''<br /> | ||
− | |subcat= (''The subcategory of the item/effect/etc. There may be more than one subcategory | + | |subcat= (''The subcategory of the item/effect/etc. There may be more than one subcategory.)''<br /> |
− | |subcat2= (''The second subcategory of the item/effect/etc. There may be more than two subcategories | + | |subcat2= (''The second subcategory of the item/effect/etc. There may be more than two subcategories.)''<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 | + | |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 /> |
− | |versions= ''(The versions of HoboWars the item/effect/etc is located in, i.e. HoboWars, HoboWars2, Facebook HoboWars, and HoboArena. If available in all, don't include.)''<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 /> |
− | |vrsndiff= ''( | + | |vrsndiff= ''(If minor differences between versions exist, then put the word '''''yes''''' here. If no differences between versions exist, then don't include.)''<br /> |
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Revision as of 09:46, 7 November 2012
Syntax:
{{Info Table
|name= (The item/effect/etc's name.)
|image= (The URL of the item/effect'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=
}}