Template:Infobox game: Difference between revisions
m 1 revision imported |
m Protected "Template:Infobox game" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
|caption = A chess board in action | |caption = A chess board in action | ||
|inventor = Bob | |inventor = Bob | ||
|category = Board Games | |||
|playernumber = 1-2 | |playernumber = 1-2 | ||
|public = Yes | |public = Yes | ||
|availability = On Demand | |availability = On Demand | ||
|locationspecific = Yes (if no, skip the next 4 fields) | |||
|server = Alpha | |||
|dimension = Gallifrey | |||
|restp = | |||
|nearestwarp = Fair | |||
}} | }} | ||
</pre> | </pre> | ||
Line 27: | Line 32: | ||
|caption = | |caption = | ||
|inventor = | |inventor = | ||
|category = | |||
|playernumber = | |playernumber = | ||
|public = | |public = | ||
|availability = | |||
|locationspecific = | |locationspecific = | ||
| | |server = | ||
|dimension = | |||
|restp = | |||
|nearestwarp = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 39: | Line 49: | ||
|name = | |name = | ||
|bodystyle = | |bodystyle = | ||
|title = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}} | |title = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}} | ||
|titlestyle = | |titlestyle = | ||
Line 46: | Line 55: | ||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
|captionstyle = | |captionstyle = | ||
|headerstyle = background:# | |headerstyle = color:#FFFFFF;background:#003B6F; | ||
|labelstyle = background:# | |labelstyle = background:#f9f9f9; | ||
|datastyle = | |datastyle = | ||
|header1 = About | |header1 = About | ||
|label2 = Inventor | |label2 = Inventor | ||
|data2 = {{#if:{{{inventor|}}}|{{{inventor|}}}|Unknown}} | |data2 = {{#if:{{{inventor|}}}|{{{inventor|}}}|Unknown}} | ||
|label3 = | |label3 = Category | ||
|data3 | |data3 = {{#if:{{{category|}}}|[[:Category:{{{category|}}}|{{{category|}}}]]|}} | ||
|label4 = | |label4 = # of Players | ||
|data4 | |data4 = {{{playernumber|}}} | ||
|label5 = | |label5 = Public? | ||
|data5 = {{{ | |data5 = {{{public|}}} | ||
|label6 = Availability | |label6 = Availability | ||
|data6 = {{{availability|}}} | |data6 = {{{availability|}}} | ||
|header7 = Location | |||
}}[[Category:Games]] | |label8 = Location Specific? | ||
|data8 = {{{locationspecific|}}} | |||
|label9 = Server | |||
|data9 = {{#if:{{{server|}}}|[[{{{server|}}}]]|}} | |||
|label10 = Dimension | |||
|data10 = {{{dimension|Gallifrey}}} | |||
|label11 = /res tp | |||
|data11 = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|}} | |||
|label12 = Nearest [[warp]] | |||
|data12 = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|}} | |||
}} | |||
[[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]]}} | |||
</includeonly> | </includeonly> |
Latest revision as of 15:25, 20 August 2019
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.