Difference between revisions of "Template:Infobox map"

From QWiki
(Created page with "<includeonly><!-- --><div class="fo-nttax-infobox-wrapper infobox-{{{game|wol}}}"> <div class="fo-nttax-infobox wiki-bordercolor-light"> <div> <div class="infobox-header wiki...")
 
m
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
  
--><div class="fo-nttax-infobox-wrapper infobox-{{{game|wol}}}">
+
--><div class="fo-nttax-infobox-wrapper infobox-{{{game|dota2}}}">
 
<div class="fo-nttax-infobox wiki-bordercolor-light">
 
<div class="fo-nttax-infobox wiki-bordercolor-light">
 
<div>
 
<div>
<div class="infobox-header wiki-backgroundcolor-light"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:Infobox_map|h]]<nowiki>]</nowiki></span>{{{name|{{tlpd_map|{{{id}}}|name}}}}}</div>
+
<div class="infobox-header wiki-backgroundcolor-light"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:Infobox_map|h]]<nowiki>]</nowiki></span>{{{name|}}}</div>
 
</div><!--
 
</div><!--
 +
 +
Image
 +
 +
-->{{#if:{{{image|}}}|
 +
<div>
 +
<div class="infobox-image">[[File:{{{image}}}|center|600px]]</div>
 +
</div>|
 +
<div>
 +
<div class="infobox-image">[[File:Infobox placeholder.png|600px]]</div>
 +
</div>
 +
}}<!--
  
 
Creator
 
Creator
Line 16: Line 27:
 
}}<!--
 
}}<!--
  
TLPD
+
Released year
  
-->{{#if:{{{id|}}}|
+
-->{{#if:{{{year|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">TLPD:</div>
+
<div class="infobox-cell-2 infobox-description">Released:</div>
<div class="infobox-cell-2">[http://www.teamliquid.net/tlpd/hots/maps/{{{id}}} HotS], [http://www.teamliquid.net/tlpd/sc2-international/maps/{{{id}}} Int], [http://www.teamliquid.net/tlpd/sc2-korean/maps/{{{id}}} Korean]</div>
+
<div class="infobox-cell-2">{{{year}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Tileset
+
Gametype
  
--><div>
+
-->{{#if:{{{gametype|}}}|
<div class="infobox-cell-2 infobox-description">Tileset:</div>
+
<div>
<div class="infobox-cell-2">{{{tileset|{{tlpd_map|{{{id}}}|tileset}}}}}</div>
+
<div class="infobox-cell-2 infobox-description">Gametype:</div>
</div><!--
+
<div class="infobox-cell-2">{{{gametype}}}</div>
 +
</div>
 +
}}<!--
  
 
Size
 
Size
  
--><div>
+
-->{{#if:{{{size|}}}|
 +
<div>
 
<div class="infobox-cell-2 infobox-description">Size:</div>
 
<div class="infobox-cell-2 infobox-description">Size:</div>
<div class="infobox-cell-2">{{{width|{{tlpd_map|{{{id}}}|width}}}}}x{{{height|{{tlpd_map|{{{id}}}|height}}}}}</div>
+
<div class="infobox-cell-2">{{{size}}}</div>
</div><!--
 
 
 
Spawn Positions
 
 
 
--><div>
 
<div class="infobox-cell-2 infobox-description">Spawn Positions:</div>
 
<div class="infobox-cell-2">{{{players|{{tlpd_map|{{{id}}}|players}}}}} at {{{positions|{{tlpd_map|{{{id}}}|positions}}}}}</div>
 
</div><!--
 
 
 
Versions
 
 
 
-->{{#if:{{{versions|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Versions:</div>
 
<div class="infobox-cell-2">{{{versions|Unknown}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Competition Span
+
Family
  
-->{{#if:{{{span|}}}|
+
-->{{#if:{{{family|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Competition Span:</div>
+
<div class="infobox-cell-2 infobox-description">Family:</div>
<div class="infobox-cell-2">{{{span}}}</div>
+
<div class="infobox-cell-2">{{{family|none}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Leagues Featured
+
Download
  
-->{{#if:{{{leagues|}}}|
+
-->{{#if:{{{download}}}{{{bsp}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Leagues Featured:</div>
+
<div class="infobox-cell-2 infobox-description">Download:</div>
<div class="infobox-cell-2">{{{leagues}}}</div>
+
<div class="infobox-cell-2">{{#if:{{{download|}}}|[{{{download}}} bsp] }}{{#if:{{{loc|}}}|,&nbsp;[{{{loc}}} loc]}}{{#if:{{{lit|}}}|,&nbsp;[{{{lit}}} lit]}}{{#if:{{{map|}}}|,&nbsp;[{{{map}}} map]}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
 +
  
 
Adbox
 
Adbox
  
 
--></div>
 
--></div>
<div class="fo-nttax-infobox-adbox wiki-bordercolor-light"><adbox /></div>
+
 
 
</div><!--
 
</div><!--
  
 
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 13:49, 20 September 2024

Documentation (view - edit)

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

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
  • lit = (optional) URL to download .lit
  • map = (optional) URL to download .map

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

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
|lit=https://maps.quakeworld.nu/base/xm00s19.lit
|map=https://maps.quakeworld.nu/base/xm00s19.map
}}