Difference between revisions of "MediaWiki:Common.js"
From Hobowars Wiki
m (removed collapsed table code) |
m (brackets ~ new) |
||
Line 1: | Line 1: | ||
− | / | + | <includeonly>new{| class="allrc" align="right" cellspacing="0" cellpadding="5px" style="background:#white;border:2px solid black;" |
+ | |- | ||
+ | ! 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|—}}} | {{{cat|Object}}} #{{{id|—}}} }}}">{{{name|None}}}</div> | ||
+ | |- | ||
+ | ! colspan="2" valign="middle" height="44px" | {{{image|<big>'''N/A'''</big>}}} | ||
+ | |- | ||
+ | {{{#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}}} | ||
+ | |- | ||
+ | {{{#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}}}]] | }}} | }}} }}} | ||
+ | |- | ||
+ | ! class="leftrc" valign="middle" align="center" style="background:#D9D9D9;color:black;font-size:0.85em;border:1px solid white;border-right:none" | Version Availability | ||
+ | | class="rightrc" valign="middle" align="center" style="background:#D9D9D9;font-size:0.85em;border:1px solid white;border-left:none" | {{{versions|All}}} | ||
+ | |- | ||
+ | {{{#ifeq: {{{vrsndiff|}}} | yes | {{!}} class="allrc" colspan="2" align="center" style="background:#F2F2F2;border:1px solid white;" {{!}} <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> | ||
+ | <noinclude>'''Syntax:'''<br /> | ||
+ | <nowiki>{{Info Table</nowiki><br /> | ||
+ | |name= ''(The item/effect/etc's name.)''<br /> | ||
+ | |image= ''(The URL of the item/effect/etc'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 /> | ||
+ | |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 /> | ||
+ | |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.)''<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 /> | ||
+ | |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= ''(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> | ||
− | |||
− | + | 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> | ||
− | + | [[Category:All wiki templates|{{PAGENAME}}]] | |
− | + | </noinclude> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 16:02, 10 July 2014
<includeonly>new{| class="allrc" align="right" cellspacing="0" cellpadding="5px" style="background:#white;border:2px solid black;" |- ! 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|—}}} | {{{cat|Object}}} #{{{id|—}}} }}}">{{{name|None}}}</div> |- ! colspan="2" valign="middle" height="44px" | {{{image|<big>'''N/A'''</big>}}} |- {{{#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}}} |- {{{#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}}}]] | }}} | }}} }}} |- ! class="leftrc" valign="middle" align="center" style="background:#D9D9D9;color:black;font-size:0.85em;border:1px solid white;border-right:none" | Version Availability | class="rightrc" valign="middle" align="center" style="background:#D9D9D9;font-size:0.85em;border:1px solid white;border-left:none" | {{{versions|All}}} |- {{{#ifeq: {{{vrsndiff|}}} | yes | {{!}} class="allrc" colspan="2" align="center" style="background:#F2F2F2;border:1px solid white;" {{!}} <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> <noinclude>'''Syntax:'''<br /> <nowiki>{{Info Table</nowiki><br /> |name= ''(The item/effect/etc's name.)''<br /> |image= ''(The URL of the item/effect/etc'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 /> |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 /> |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.)''<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 /> |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= ''(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> 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> [[Category:All wiki templates|{{PAGENAME}}]] </noinclude>