Difference between revisions of "Template:Info Table"

From Hobowars Wiki
Jump to: navigation, search
(All right. Rounded corners are working now. It turns out that the non-rounded table cell borders were hiding the table's rounded borders. I gave the cells rounded borders to compensate.)
m (hmmm....)
Line 1: Line 1:
<includeonly>{| class="allrc" border="0" align="right" cellspacing="0" cellpadding="3px" style="background:#EAEAEA"
+
<includeonly>{| class="allrc" cellspacing="0" cellpadding="3px" style="background:#EAEAEA;border:3px solid black;"
 
|-  
 
|-  
! class="leftrc" valign="middle" style="background:#B0171F;color:white;font-size:0.85em;white-space:nowrap" | {{{name|None}}}
+
! class="allrc" colspan="2" valign="middle" style="background:#B0171F;color:white;font-size:0.9em;white-space:nowrap;border:1px solid white;" | <span title="{{{id|&mdash;}}}">{{{name|None}}}</span>
| class="rightrc" valign="middle" align="center" style="background:#CD5555;font-size:0.85em" | {{{id|&mdash;}}}
+
 
|-  
 
|-  
 
! colspan="2" valign="middle" | {{{image|<big>'''N/A'''</big>}}}
 
! colspan="2" valign="middle" | {{{image|<big>'''N/A'''</big>}}}
 +
|- style="border-style:1px solid white"
 +
! class="leftrc" valign="middle" align="center" style="background:#778899;color:white;font-size:0.85em;border:1px solid white;border-right:none" | Category
 +
| class="rightrc" valign="middle" align="center" style="background:#778899;font-size:0.85em;border:1px solid white;border-left:none" | {{#if: {{{cat|}}} | [[:Category:{{{cat}}}|{{{cat}}}]] | None}}{{#if: {{{supercat|}}} | {{clr}}<small>([[:Category:{{{supercat}}}|{{{supercat}}}]])</small> | }}
 
|-
 
|-
! class="leftrc" valign="middle" align="center" style="background:#556B2F;color:white;font-size:0.85em;" | Category
+
! class="leftrc" valign="middle" align="center" style="background:#A2B5CD;color:white;font-size:0.85em;border:1px solid white;border-right:none" | Subcategory
| class="rightrc" valign="middle" align="center" style="background:#899B32;font-size:0.85em;" | {{#if: {{{cat|}}} | [[:Category:{{{cat}}}|{{{cat}}}]] | None}}{{#if: {{{supercat|}}} | {{clr}}<small>([[:Category:{{{supercat}}}|{{{supercat}}}]])</small> | }}
+
| class="rightrc" valign="middle" align="center" style="background:#A2B5CD;font-size:0.85em;border:1px solid white;border-left:none" | {{#if: {{{subcat|}}} | [[:Category:{{{subcat}}}|{{{subcat}}}]] | None}}{{#if: {{{subcat2|}}} | {{clr}}[[:Category:{{{subcat2}}}|{{{subcat2}}}]] | }}{{#if: {{{subcat3|}}} | {{clr}}[[:Category:{{{subcat3}}}|{{{subcat3}}}]] | }}
 
|-
 
|-
! class="leftrc" valign="middle" align="center" style="background:#698B22;color:white;font-size:0.85em;" | Subcategory
+
! class="leftrc" valign="middle" align="center" style="background:#B0C4DE;color:white;font-size:0.85em;border:1px solid white;border-right:none" | Version&nbsp;Availability
| class="rightrc" valign="middle" align="center" style="background:#9ABD32;font-size:0.85em;" | {{#if: {{{subcat|}}} | [[:Category:{{{subcat}}}|{{{subcat}}}]] | None}}{{#if: {{{subcat2|}}} | {{clr}}[[:Category:{{{subcat2}}}|{{{subcat2}}}]] | }}{{#if: {{{subcat3|}}} | {{clr}}[[:Category:{{{subcat3}}}|{{{subcat3}}}]] | }}
+
| class="rightrc" valign="middle" align="center" style="background:#B0C4DE;font-size:0.85em;border:1px solid white;border-left:none" | {{{versions|All}}}
 
|-
 
|-
! class="leftrc" valign="middle" align="center" style="background:#8B8B83;color:white;font-size:0.85em;" | Version&nbsp;Availability
+
{{#ifeq: {{{vrsndiff|}}} | yes | {{!}} class="allrc" colspan="2" align="center" style="background:#BFBFBF;border:1px solid white;" {{!}} <small>(Some minor differences between versions.)</small> | }}
| class="rightrc" valign="middle" align="center" style="background:#CDCDC1;font-size:0.85em;" | {{{versions|All}}}
+
|-
+
{{#ifeq: {{{vrsndiff|}}} | yes | {{!}} class="allrc" colspan="2" align="center" style="background:#E3CF57" {{!}} <small>(Some minor differences between versions.)</small> | }}
+
 
|}
 
|}
 
[[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>
 
[[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>

Revision as of 08:36, 10 March 2013

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=
}}