Template:Infobox game: Difference between revisions

From BadWolfMC Wiki
No edit summary
No edit summary
Line 73: Line 73:
|data8  = {{{locationspecific|}}}
|data8  = {{{locationspecific|}}}
|label9  = Server
|label9  = Server
|data9  = {{#if:{{{server|}}}|[[{{{server|}}}]]|[[BadWolfMC Alpha|Alpha]]}}
|data9  = {{#if:{{{server|}}}|[[{{{server|}}}]]|}}
|label10  = Dimension
|label10  = Dimension
|data10  = {{{dimension|Gallifrey}}}
|data10  = {{{dimension|Gallifrey}}}
|label11  = /res tp
|label11  = /res tp
|data11  = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}}
|data11  = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|}}
|label12  = Nearest [[warp]]
|label12  = Nearest [[warp]]
|data12  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
|data12  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|}}
}}
}}
[[Category:Games]]
[[Category:Games]]
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#if:{{{restp|}}}|[[Category:Residences]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#if:{{{restp|}}}|[[Category:Residences]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
</includeonly>
</includeonly>

Revision as of 20:53, 16 July 2018

When to use

Place this on any page suitable for the games category. It will add the page to the category, as well as producing the handy info box.

Please don't attempt to alter the code for this template unless you really know what you're doing, and you have community consensus.

Usage

Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:

{{Infobox game
|title            = Chess
|image            = chess.png
|caption          = A chess board in action
|inventor         = Bob
|category         = Board Games
|playernumber     = 1-2
|public           = Yes
|availability     = On Demand
|locationspecific = Yes (if no, skip the next 4 fields)
|server           = Alpha
|dimension        = Gallifrey
|restp            = 
|nearestwarp      = Fair
}}

Or use this blank template:

{{Infobox game
|title            = 
|image            = 
|caption          = 
|inventor         = 
|category         =
|playernumber     =  
|public           = 
|availability     =
|locationspecific = 
|server           =
|dimension        = 
|restp            = 
|nearestwarp      = 
}}

Note: If you use this template and don't populate all fields, do NOT delete the unused fields - this will only make it difficult for future editors to fill in the additional information later.