Difference between revisions of "Template:Infobox map"

From QWiki
m (Changed order of rows)
m (Adding loc file support)
 
(6 intermediate revisions by the same user not shown)
Line 63: Line 63:
 
}}<!--
 
}}<!--
  
Icons & Links
+
Download
  
 
-->{{#if:{{{download|}}}|
 
-->{{#if:{{{download|}}}|
 
<div>
 
<div>
 
<div class="infobox-center infobox-icons">[{{{download}}} Download map]</div>
 
<div class="infobox-center infobox-icons">[{{{download}}} Download map]</div>
 +
</div>
 +
}}<!--
 +
 +
LOC
 +
 +
-->{{#if:{{{loc|}}}|
 +
<div>
 +
<div class="infobox-center infobox-icons">[{{{loc}}} Download loc]</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 79: Line 87:
 
Categories
 
Categories
  
-->{{#ifeq:{{NAMESPACE}}||
+
-->{{#ifeq:{{NAMESPACE}}||[[Category:Maps]]
 
 
{{#if: {{{tileset|}}} | [[Category:{{{tileset|}}} Tileset]]|{{#if:{{{id|}}}| [[Category:{{tlpd_map|{{{id}}}|tileset}} Tileset]]}} }}
 
{{#if:{{{players|}}}{{{id|}}}|
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|2|[[Category:Maps (2 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|3|[[Category:Maps (3 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|4|[[Category:Maps (4 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|5|[[Category:Maps (5 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|6|[[Category:Maps (6 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|7|[[Category:Maps (7 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|8|[[Category:Maps (8 Players)]]}}
 
{{#ifeq:{{{players|{{tlpd_map|{{{id}}}|players}}}}}|?|[[Category:InfoboxIncomplete]]}}
 
{{DEFAULTSORT:{{{players|{{tlpd_map|{{{id}}}|players}}}}} {{PAGENAME}}}}
 
}}[[Category:Maps]][[Category:Map pages]]
 
 
}}<!--
 
}}<!--
  
 
--></includeonly><noinclude>{{documentation}}[[Category:Infoboxes]]</noinclude>
 
--></includeonly><noinclude>{{documentation}}[[Category:Infoboxes]]</noinclude>

Latest revision as of 12:37, 9 October 2020

Documentation (view - edit)

[e][h]xm00s19
Map Xm00s19.jpg
Creator:
Released:
2019
Gametype:
1on1, ffa
Size:
Small
Family:
Fun maps

This Infobox is designed to give basic information about Quakeworld maps.

Parameters

  • name = Map name
  • creator = (optional) Nickname of author with flag
  • year = (optional) Year first released
  • image = (optional) Picture
  • gametype = (optional) 1on1, 2on2, 4on4, ffa, dmm4 or other modes
  • size = (optional) Small, Medium, Large
  • family = (optional) What category/family it belongs to
  • download = (optional) URL to download bsp
  • loc = (optional) URL to download loc

Blank template

You can copy the code snippet below and fill in the parameters to customize this Infobox. If any parameter doesn't apply, leave it blank and that line will not appear in the Infobox.

{{Infobox map
|name=
|creator=
|year=
|image=
|gametype=
|size=
|family=
|download=
|loc=
}}

Example

The code below created the Infobox on this page.

{{Infobox map
|name= xm00s19
|creator={{player|lurq|flag=se}}
|year=2019
|image=Map Xm00s19.jpg
|gametype=1on1, ffa
|size=Small
|family=Fun maps
|download=https://maps.quakeworld.nu/base/xm00s19.bsp
|loc=https://cdn.discordapp.com/attachments/501427349846360064/502962604340281355/an1-beta6.loc
}}