Difference between revisions of "Template:NewInfobox Map"

From comp.tf
Jump to navigation Jump to search
m (Simplified code a little)
(Gonna take this one step at a time; added 2 new comp formats, 7v7 and Prolander.)
 
(282 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{id|{{PAGENAME}}}}}}}}}<!--
+
<includeonly><!--
  
 
--><div class="fo-nttax-infobox-wrapper">
 
--><div class="fo-nttax-infobox-wrapper">
 
<div class="fo-nttax-infobox">
 
<div class="fo-nttax-infobox">
 
<div>
 
<div>
<div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox_Map|h]]<nowiki>]</nowiki></span>{{Gamemode Icon|large|{{{gamemode|}}}}}&nbsp;{{PAGENAME}}</div>
+
<div class="infobox-header"><div style="width:27px; display:inline-block;"></div>{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}<div style="width:27px; display:inline-block; float:right;"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox Map|h]]<nowiki>]</nowiki></span></div>
 +
</div>
 
</div><!--
 
</div><!--
  
 
Image
 
Image
  
-->{{#ifexist:File:{{PAGENAME}}.jpg|
+
-->
 
<div>
 
<div>
<div class="infobox-image">[[Image:{{PAGENAME}}.jpg|center|294px]]</div>
+
<div class="infobox-image">{{#ifexist:File:{{PAGENAME}}.jpg|[[Image:{{PAGENAME}}.jpg|center|294px]]|{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Map infoboxes without images]]}} }}{{#if:{{{image|}}}|[[Image:{{{image|}}}|center|294px]]}}</div>
 
</div>
 
</div>
}}<!--
+
<!--
  
 
Caption
 
Caption
Line 23: Line 24:
 
}}<!--
 
}}<!--
  
--><div>
+
-->{{#if:{{{maptype|}}}{{{filename|}}}{{{version|}}}{{{author1|}}}{{{released|}}}{{{updated|}}}{{{official|}}}|
 +
<div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
</div><!--
+
</div>
 +
}}<!--
  
Gamemode
+
Map Type
  
-->{{#if:{{{gamemode|}}}|
+
-->{{#if:{{{maptype|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Gamemode:</div>
+
<div class="infobox-cell-2 infobox-description">Map Type{{#if:{{{maptype2|}}}|s|}}:</div>
<div class="infobox-cell-2">{{Gamemode Icon|small|{{{gamemode|}}}}} {{#switch:{{lc:{{{gamemode|}}}}}
+
<div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}}
 +
  |arena = [[Arena]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Arena Maps]]}}
 
   |capture the flag
 
   |capture the flag
   |ctf = [[CTF|Capture the Flag]] [[Category:CTF Maps]]
+
   |ctf = [[CTF|Capture the Flag]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Capture the Flag Maps]]}}
 +
  |control points
 
   |control point
 
   |control point
 
   |cp
 
   |cp
   |5cp = [[5CP|5 Control Point]] [[Category:5CP Maps]]
+
   |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
   |3cp = [[3CP|3 Control Point]] [[Category:3CP Maps]]
+
   |3cp = [[3CP|Control Points (3CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:3CP Maps]]}}
 
   |attack defend
 
   |attack defend
 
   |attack/defend
 
   |attack/defend
   |attack defense
+
   |ad
  |attack/defense
+
   |a/d = [[Attack/Defend]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Attack/Defend Maps]]}}
   |a/d
 
  |ad = [[Attack/Defend]] [[Category:Attack/Defend Maps]]
 
 
   |domination
 
   |domination
   |dom = [[Domination]] [[Category:Domination Maps]]
+
   |dom = [[Domination]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Domination Maps]]}}
 
   |king of the hill
 
   |king of the hill
   |koth = [[King_Of_The_Hill|King of the Hill]] [[Category:KOTH Maps]]
+
   |koth = [[King of the Hill]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:King of the Hill Maps]]}}
 
   |payload
 
   |payload
   |pl = [[Payload]] [[Category:PayloadMaps]]
+
   |pl = [[Payload]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Maps]]}}
 
   |payload race
 
   |payload race
   |plr = [[Payload_Race|Payload Race]] [[Category:Payload Race Maps]]
+
   |plr = [[Payload Race]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Race Maps]]}}
 
   |special delivery
 
   |special delivery
   |sd = [[Special_Delivery|Special Delivery]] [[Category:Special Delivery Maps]]
+
   |sd = [[Special Delivery]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Special Delivery Maps]]}}
   |basketball
+
  |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
   |bball = [[BBall|Bball]] [[Category:BBall Maps]]
+
  |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |2v2
+
  |{{{maptype|}}} = [[{{{maptype|}}}]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Miscellaneous Maps]]}}
   |ulti
+
}}<!--
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
-->{{#if:{{{maptype2|}}}|<br />{{#switch:{{lc:{{{maptype2|}}}}}
   |1v1
+
  |arena = [[Arena]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Arena Maps]]}}
   |mge = {{Gamemode Icon|small|mge}} [[MGE]] [[Category:MGE Maps]]
+
   |capture the flag
   |arena respawn
+
   |ctf = [[CTF|Capture the Flag]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Capture the Flag Maps]]}}
   |arenarespawn = {{Gamemode Icon|small|arenarespawn}} [[Arena Respawn]] [[Category:Arena Respawn Maps]]
+
  |control points
}}</div>
+
  |control point
 +
  |cp
 +
  |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
 +
  |3cp = [[3CP|Control Points (3CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:3CP Maps]]}}
 +
  |attack defend
 +
  |attack/defend
 +
  |ad
 +
  |a/d = [[Attack/Defend]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Attack/Defend Maps]]}}
 +
  |domination
 +
  |dom = [[Domination]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Domination Maps]]}}
 +
   |king of the hill
 +
  |koth = [[King of the Hill]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:King of the Hill Maps]]}}
 +
   |payload
 +
   |pl = [[Payload]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Maps]]}}
 +
   |payload race
 +
   |plr = [[Payload Race]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Race Maps]]}}
 +
  |special delivery
 +
  |sd = [[Special Delivery]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Special Delivery Maps]]}}
 +
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
 +
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
 +
  |{{{maptype|}}} = [[{{{maptype|}}}]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Miscellaneous Maps]]}}
 +
}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Current Version, Download Link, Current Version Release Date
+
File Name
  
-->{{#if:{{{currentver|}}}{{{downloadlink|}}}|
+
-->{{#if:{{{filename|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Current Version:</div>
+
<div class="infobox-cell-2 infobox-description">File Name:&#32;</div>
<div class="infobox-cell-2">{{#if:{{{currentver|}}}|<code>{{{currentver|}}}</code>|}} {{#if:{{{downloadlink|}}}|[[File:Downloadicon.png|12px|link={{{downloadlink|}}} |}}{{#if:{{{currentverdate|}}}|<br />Released: {{{currentverdate|}}}}}</div>
+
<div class="infobox-cell-2"><small><code>{{{filename|}}}</code></small></div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Map type, Adapted from
+
Version
  
-->{{#if:{{{maptype|}}}|
+
-->{{#if:{{{version|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Map Type:</div>
+
<div class="infobox-cell-2 infobox-description">Version:</div>
<div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}}
+
<div class="infobox-cell-2">{{{version|}}}</div>
  |valve
 
  |official = [[File:Square_Official.png|12px|link=]] Official [[Category:Official Maps]]
 
  |pro
 
  |adapted = [[File:Square_Adapted.png|12px|link=]] Adapted [[Category:Adapted Maps]]
 
  |community
 
  |custom = Custom [[Category:Custom Maps]]
 
}} {{#if:{{{adaptedfrom|}}}|(from: [[{{{adaptedfrom|}}}]])</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Developer(s)
+
Author
 +
 
 +
-->{{#if:{{{author1|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Author{{#if:{{{author2|}}}|s}}:</div>
 +
<div class="infobox-cell-2">{{#if:{{{author1|}}}|{{#if:{{{author1steam|}}}|[http://steamcommunity.com/profiles/{{{author1steam|}}} {{{author1|}}}]|{{#switch:{{lc:{{{author1|}}}}}|valve=[https://en.wikipedia.org/wiki/Valve_Corporation Valve]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Maps by Valve]]}}|#default={{{author1|}}}}}}}}}<!--
 +
-->{{#if:{{{author2|}}}|<br />{{#if:{{{author2steam|}}}|[http://steamcommunity.com/profiles/{{{author2steam|}}} {{{author2|}}}]|{{{author2|}}}}}}}<!--
 +
-->{{#if:{{{author3|}}}|<br />{{#if:{{{author3steam|}}}|[http://steamcommunity.com/profiles/{{{author3steam|}}} {{{author3|}}}]|{{{author3|}}}}}}}<!--
 +
-->{{#if:{{{author4|}}}|<br />{{#if:{{{author4steam|}}}|[http://steamcommunity.com/profiles/{{{author4steam|}}} {{{author4|}}}]|{{{author4|}}}}}}}<!--
 +
-->{{#if:{{{author5|}}}|<br />{{#if:{{{author5steam|}}}|[http://steamcommunity.com/profiles/{{{author5steam|}}} {{{author5|}}}]|{{{author5|}}}}}}}<!--
 +
-->{{#if:{{{author6|}}}|<br />{{#if:{{{author6steam|}}}|[http://steamcommunity.com/profiles/{{{author6steam|}}} {{{author6|}}}]|{{{author6|}}}}}}}<!--
 +
-->{{#if:{{{author7|}}}|<br />{{#if:{{{author7steam|}}}|[http://steamcommunity.com/profiles/{{{author7steam|}}} {{{author7|}}}]|{{{author7|}}}}}}}<!--
 +
-->{{#if:{{{author8|}}}|<br />{{#if:{{{author8steam|}}}|[http://steamcommunity.com/profiles/{{{author8steam|}}} {{{author8|}}}]|{{{author8|}}}}}}}<!--
 +
-->{{#if:{{{author9|}}}|<br />{{#if:{{{author9steam|}}}|[http://steamcommunity.com/profiles/{{{author9steam|}}} {{{author9|}}}]|{{{author9|}}}}}}}<!--
 +
-->{{#if:{{{author10|}}}|<br />{{#if:{{{author10steam|}}}|[http://steamcommunity.com/profiles/{{{author10steam|}}} {{{author10|}}}]|{{{author10|}}}}}}}</div>
 +
</div>
 +
}}
 +
<!--
 +
 
 +
First Released
  
-->{{#if:{{{developer1|}}}|
+
-->{{#if:{{{released|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">{{#if:{{{developer2|}}}|Developers:|Developer:}}</div>
+
<div class="infobox-cell-2 infobox-description">First Released:</div>
<div class="infobox-cell-2">{{#if:{{{developer|}}}|{{#if:{{{developersteam|}}}|[[http://steamcommunity/profiles/{{{developersteam|}}}/|{{{developer|}}}]]|{{{developer|}}}}}|}}{{#if:developer1|}}}|{{#if:{{{developer1steam|}}}|[[http://steamcommunity.com/profiles/{{{developer1steam|}}}/|{{{developer1|}}}]]|{{{developer1|}}}}}|}}<!--
+
<div class="infobox-cell-2">{{{released|}}}</div>
-->{{#if:{{{developer2|}}}|<br />{{#if:{{{developer2steam|}}}|[[http://steamcommunity.com/profiles/{{{developer2steam|}}}/|{{{developer2|}}}]]|{{{developer2|}}}}}}}<!--
 
-->{{#if{{{developer3|}}}|<br />{{#if:{{{developer3steam|}}}|[[http://steamcommunity.com/profiles/{{{developer3steam|}}}/|{{{developer3|}}}]]|{{{developer3|}}}}}}}<!--
 
-->{{#if:{{{developer4|}}}|<br />{{#if:{{{developer4steam|}}}|[[http://steamcommunity.com/profiles/{{{developer4steam|}}}/|{{{developer4|}}}]]|{{{developer4|}}}}}}}<!--
 
-->{{#if:{{{developer5|}}}|<br />{{#if:{{{developer5steam|}}}|[[http://steamcommunity.com/profiles/{{{developer5steam|}}}/|{{{developer5|}}}]]|{{{developer5|}}}}}}}<!--
 
-->{{#if:{{{developer6|}}}|<br />{{#if:{{{developer6steam|}}}|[[http://steamcommunity.com/profiles/{{{developer6steam|}}}/|{{{developer6|}}}]]|{{{developer6|}}}}}}}<!--
 
-->{{#if:{{{developer7|}}}|<br />{{#if:{{{developer7steam|}}}|[[http://steamcommunity.com/profiles/{{{developer7steam|}}}/|{{{developer7|}}}]]|{{{developer7|}}}}}}}<!--
 
-->{{#if:{{{developer8|}}}|<br />{{#if:{{{developer8steam|}}}|[[http://steamcommunity.com/profiles/{{{developer8steam|}}}/|{{{developer8|}}}]]|{{{developer8|}}}}}}}<!--
 
-->{{#if:{{{developer9|}}}|<br />{{#if:{{{developer9steam|}}}|[[http://steamcommunity.com/profiles/{{{developer9steam|}}}/|{{{developer9|}}}]]|{{{developer9|}}}}}}}<!--
 
-->{{#if:{{{developer10|}}}|<br />{{#if:{{{developer10steam|}}}|[[http://steamcommunity.com/profiles/{{{developer10steam|}}}/|{{{developer10|}}}]]|{{{developer10|}}}}}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Steam Workshop
+
Last Updated
  
-->{{#if:{{{workshop|}}}|
+
-->{{#if:{{{updated|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Steam Workshop:</div>
+
<div class="infobox-cell-2 infobox-description">Last Updated:</div>
<div class="infobox-cell-2">[[File:Steam_icon.png|12px|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]</div>
+
<div class="infobox-cell-2">{{{updated|}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
-->{{#if:{{{format|}}}{{{format1|}}}{{{popularity|}}}{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}{{{ugc|}}}{{{ugchl|}}}{{{etf2lhl|}}}{{{norotation|}}}{{{lastplayed|}}}|
+
Official Map
 +
 
 +
-->
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Official Map:</div>
 +
<div class="infobox-cell-2">{{#switch:{{lc:{{{official|}}}}}
 +
  |1=[[File:CorrectIcon.png|19px|link=Category:Official Maps]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Official Maps]]}}
 +
  |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Maps]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Unofficial Maps]]}}
 +
}}</div>
 +
</div><!--
 +
 
 +
-->{{#if:{{{gamemode1|}}}{{adapted|}}}{{{pro|}}}{{{popularity|}}}{{{lpleague|}}}{{{lpseason|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Competitive Information</div>
 
<div class="infobox-header infobox-header-2">Competitive Information</div>
Line 126: Line 164:
 
}}<!--
 
}}<!--
  
Primary Formats
+
Game Modes
  
-->{{#if:{{{format|}}}{{{format1|}}}|
+
-->{{#if:{{{gamemode1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">{{#if:{{{format2|}}}|Primary Formats:|Primary Format:}}</div>
+
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
<div class="infobox-cell-2">{{#if:{{{format|}}}|{{#switch:{{lc:{{{format|}}}}}
+
<div class="infobox-cell-2">{{#switch:{{lc:{{{gamemode1|}}}}}
   |arena respawn
+
  |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
  |arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]]
+
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |mge = [[MGE]] [[Category:MGE Maps]]
+
   |ultitrio = [[Ultitrio]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultitrio Maps]]}}
   |basketball
+
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
  |bball = [[BBall]] [[Category:BBall Maps]]
+
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
   |ulti
+
   |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
   |4s
 
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 
   |6s
 
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
}}|}}{{#if:{{{format1|}}}|{{#switch:{{lc:{{{format1|}}}}}
+
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
   |arena respawn
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
  |arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]]
+
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |mge = [[MGE]] [[Category:MGE Maps]]
+
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
   |basketball
+
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
  |bball = [[BBall]] [[Category:BBall Maps]]
+
   |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
   |ulti
+
   |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 
   |4s
 
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 
   |6s
 
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
}}|}}{{#if:{{{format2|}}}|,&#32;{{#switch:{{lc:{{{format2|}}}}}
+
}}}}{{#if:{{{gamemode3|}}}|,&#32;{{#switch:{{lc:{{{gamemode3|}}}}}
   |arena respawn
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
  |arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]]
+
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |mge = [[MGE]] [[Category:MGE Maps]]
+
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
   |basketball
+
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
  |bball = [[BBall]] [[Category:BBall Maps]]
+
   |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
   |ulti
+
   |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 
   |4s
 
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 
   |6s
 
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
}}|}}{{#if:{{{format3|}}}|,&#32;{{#switch:{{lc:{{{format3|}}}}}
+
}}}}</div>
  |arena respawn
+
</div>
  |arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]]
+
}}<!--
  |mge = [[MGE]] [[Category:MGE Maps]]
+
 
  |basketball
+
Adapted From, Pro Version
  |bball = [[BBall]] [[Category:BBall Maps]]
+
 
  |ulti
+
-->{{#if:{{{adapted|}}}{{{pro|}}}|
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
<div>
  |4s
+
<div class="infobox-cell-2 infobox-description">{{#if:{{{adapted|}}}|Adapted From:}}{{#if:{{{pro|}}}|Pro Version{{#if:{{{pro2|}}}|s}}:}}</div>
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
<div class="infobox-cell-2">{{#if:{{{adapted|}}}|[[{{{adapted|}}}]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Pro Maps]]}} }}{{#if:{{{pro|}}}|[[{{{pro|}}}]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Maps with Pro Versions]]}} }}{{#if:{{{pro2|}}}|<br />[[{{{pro2|}}}]]}}</div>
  |6s
 
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 
  |hl
 
  |highlander = [[Highlander]] [[Category:Highlander Maps]]
 
}}|}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Popularity
+
League Popularity
  
 
-->{{#if:{{{popularity|}}}|
 
-->{{#if:{{{popularity|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Popularity:</div>
+
<div class="infobox-cell-2 infobox-description">League Popularity:</div>
<div class="infobox-cell-2">{{#ifeq:{{{popularity|}}}|staple|{{Abbr|Staple|This map is a staple in the current rotation}}[[Category:Staple Maps]]|}}{{#ifeq:{{{popularity|}}}|moderate|{{Abbr|Moderate|This map is moderately played in the current rotation}}[[Category:Moderately Played Maps]]|}}{{#ifeq:{{{popularity|}}}|trial|{{Abbr|Trial|This map is used as a trial in the current rotation}}[[Category:Trial Maps]]|}}{{#ifeq:{{{popularity|}}}|obsolete|{{Abbr|Obsolete|This map is no longer played in the current rotation}}[[Category:Obsolete Maps]]|}}</div>
+
<div class="infobox-cell-2">{{#switch:{{lc:{{{popularity|}}}}}
 +
  |staple={{abbr|Staple|This map is consistently played in all leagues of its primary game mode(s)}}
 +
  |moderate={{abbr|Moderate|This map is played in some but not all leagues of its primary game mode(s)}}
 +
  |trial={{abbr|Trial|This map is being tested in leagues of its primary game mode(s)}}
 +
  |obsolete={{abbr|Obsolete|This map is no longer played in any leagues}}
 +
  |never played={{abbr|Never Played|This map has never been included in any leagues}}
 +
}}</div>
 +
</div>
 +
}}<!--
 +
 
 +
In Current Rotations
 +
 
 +
-->{{#ifeq:{{Current Rotations|{{PAGENAME}}}}|1|{{#ifeq:{{{popularity|}}}|{{lc:never played}}||{{#ifeq:{{{popularity|}}}|{{lc:obsolete}}||
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">In Current Rotations:</div>
 +
<div class="infobox-cell-2"><!--
 +
 
 +
-->{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<div style="width:23px; display:inline-block;">4v4:</div> [[File:UGC-Icon2.png|19px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]}}<!--
 +
 
 +
-->{{#ifeq:{{#expr:{{Current Rotations/ugc6s|{{PAGENAME}}}}+{{Current Rotations/etf2l6s|{{PAGENAME}}}}+{{Current Rotations/esea6s|{{PAGENAME}}}}+{{Current Rotations/ozf6s|{{PAGENAME}}}}+{{Current Rotations/af6s|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<br />}}<div style="width:23px; display:inline-block;">6v6:</div>}}<!--
 +
-->{{#ifeq:{{Current Rotations/ugc6s|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|19px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}<!--
 +
-->{{#ifeq:{{Current Rotations/etf2l6s|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|19px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}<!--
 +
-->{{#ifeq:{{Current Rotations/esea6s|{{PAGENAME}}}}|1|&#32;[[File:EseaLogo.png|19px|link=ESEA Season {{Current Seasons|esea6s}}]]}}<!--
 +
-->{{#ifeq:{{Current Rotations/ozf6s|{{PAGENAME}}}}|1|&#32;[[File:Ozfortress Icon.png|19px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}<!--
 +
-->{{#ifeq:{{Current Rotations/af6s|{{PAGENAME}}}}|1|&#32;[[File:AsiaFortress-Icon.png|19px|link=AsiaFortress Cup {{Current Seasons|af6s}}]]}}<!--
 +
 
 +
-->{{#ifeq:{{#expr:{{Current Rotations/ugchl|{{PAGENAME}}}}+{{Current Rotations/etf2lhl|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{#expr:{{Current Rotations/ugc4s|{{PAGENAME}}}}+{{Current Rotations/ugc6s|{{PAGENAME}}}}+{{Current Rotations/etf2l6s|{{PAGENAME}}}}+{{Current Rotations/esea6s|{{PAGENAME}}}}+{{Current Rotations/ozf6s|{{PAGENAME}}}}+{{Current Rotations/af6s|{{PAGENAME}}}}>0}}|1|<br />}}<div style="width:23px; display:inline-block;">HL:</div>}}<!--
 +
-->{{#ifeq:{{Current Rotations/ugchl|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|19px|link=UGC Highlander Season {{Current Seasons|ugchl}}]]}}<!--
 +
-->{{#ifeq:{{Current Rotations/etf2lhl|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|19px|link=ETF2L Highlander Season {{Current Seasons|etf2lhl}}]]}}
 +
</div>
 +
</div>}}}}}}<!--
 +
 
 +
Last Played
 +
 
 +
-->{{#if:{{{lpleague|}}}{{{lpseason|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Last Played:</div>
 +
<div class="infobox-cell-2">{{#switch:{{lc:{{{lpleague|}}}}}
 +
  | ugc4s = [[File:UGC-Icon2.png|19px|link=UGC 4v4 Season {{{lpseason|}}}]] [[UGC 4v4 Season {{{lpseason|}}}|4v4 Season {{{lpseason|}}}]]
 +
  | ugc6s = [[File:UGC-Icon2.png|19px|link=UGC 6v6 Season {{{lpseason|}}}]]  [[UGC 6v6 Season {{{lpseason|}}}|6v6 Season {{{lpseason|}}}]]
 +
  | etf2l6s = [[File:ETF2L-Icon2.png|19px|link=ETF2L 6v6 Season {{{lpseason|}}}]] [[ETF2L 6v6 Season {{{lpseason|}}}|6v6 Season {{{lpseason|}}}]]
 +
  | esea6s = [[File:EseaLogo.png|19px|link={{#ifeq:{{#expr:{{{lpseason|}}}>19}}|1|ESEA Season {{{lpseason|}}}|ESEA-I Season {{{lpseason|}}}}}]] [[{{#ifeq:{{#expr:{{{lpseason|}}}>19}}|1|ESEA Season {{{lpseason|}}}|ESEA-I Season {{{lpseason|}}}}}|6v6 Season {{{lpseason|}}}]]
 +
  | ozf6s = [[File:Ozfortress Icon.png|19px|link={{#ifeq:{{#expr:{{{lpseason|}}}>14}}|1|Ozfortress Season {{{lpseason|}}}|OWL {{{lpseason|}}}}}]] [[{{#ifeq:{{#expr:{{{lpseason|}}}>14}}|1|Ozfortress Season {{{lpseason|}}}|OWL {{{lpseason|}}}}}|6v6 Season {{{lpseason|}}}]]
 +
  | af6s = [[File:AsiaFortress-Icon.png|19px|link=AsiaFortress Cup {{{lpseason|}}}]] [[AsiaFortress Cup {{{lpseason|}}}|6v6 Season {{{lpseason|}}}]]
 +
  | ugchl = [[File:UGC-Icon2.png|19px|link=UGC Highlander Season {{{lpseason|}}}]] [[UGC Highlander Season {{{lpseason|}}}|HL Season {{{lpseason|}}}]]
 +
  | etf2lhl = [[File:ETF2L-Icon2.png|19px|link=ETF2L Highlander Season {{{lpseason|}}}]] [[ETF2L Highlander Season {{{lpseason|}}}|HL Season {{{lpseason|}}}]]
 +
}}
 +
</div>
 +
</div>
 +
}}<!--
 +
 
 +
Total Inclusions
 +
 
 +
-->{{#ifeq:{{{popularity|}}}|never played||
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Total Inclusions:</div>
 +
<div class="infobox-cell-2"><!--
 +
-->{{#ifeq:{{#expr:{{Total Inclusions/4s|{{PAGENAME}}}}>0}}|1|<div style="width:23px; display:inline-block;">4v4:</div> '''{{Total Inclusions/4s|{{PAGENAME}}}}''' inclusion{{#ifeq:{{Total Inclusions/4s|{{PAGENAME}}}}|1||s}} [[Portal:Maps/4v4#Total_inclusions|''({{Total Inclusions/4s/relative|{{PAGENAME}}}})'']]}}<!--
 +
 
 +
-->{{#ifeq:{{#expr:{{Total Inclusions/6s|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{#expr:{{Total Inclusions/4s|{{PAGENAME}}}}>0}}|1|<br />}}<div style="width:23px; display:inline-block;">6v6:</div> '''{{Total Inclusions/6s|{{PAGENAME}}}}''' inclusion{{#ifeq:{{Total Inclusions/6s|{{PAGENAME}}}}|1||s}} [[Portal:Maps/6v6#Total_inclusions|''({{Total Inclusions/6s/relative|{{PAGENAME}}}})'']]}}<!--
 +
 
 +
-->{{#ifeq:{{#expr:{{Total Inclusions/hl|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{#expr:{{Total Inclusions/4s|{{PAGENAME}}}}+{{Total Inclusions/6s|{{PAGENAME}}}}>0}}|1|<br />}}<div style="width:23px; display:inline-block;">HL:</div> '''{{Total Inclusions/hl|{{PAGENAME}}}}''' inclusion{{#ifeq:{{Total Inclusions/hl|{{PAGENAME}}}}|1||s}} [[Portal:Maps/Highlander#Total_inclusions|''({{Total Inclusions/hl/relative|{{PAGENAME}}}})'']]}}<!--
 +
 
 +
-->{{#if:{{Total Inclusions/4s|{{PAGENAME}}}}{{Total Inclusions/6s|{{PAGENAME}}}}{{Total Inclusions/hl|{{PAGENAME}}}}||None}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
In Active Rotation?
+
Links/Icons
  
-->{{#if:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}{{{ugc|}}}{{{ugchl|}}}{{{etf2lhl|}}}{{{norotation|}}}{{{lastplayed|}}}|
+
-->{{#if:{{{download|}}}{{{website|}}}{{{workshop|}}}{{{tf2maps|}}}{{{gamebanana|}}}{{{tftv|}}}{{{ugc|}}}{{{etf2l|}}}{{{officialwiki|}}}{{{officialwiki2|}}}|
 +
<div>
 +
<div class="infobox-header infobox-header-2">Links</div>
 +
</div>
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">In Active Rotation?</div>
+
<div class="infobox-center infobox-icons"><!--
<div class="infobox-cell-2">{{#if:{{{norotation|}}}|No{{#if:{{{lastplayed|}}}| (Last played {{{lastplayed|}}})|}}|<!--
+
--> {{#if:{{{download|}}}|[[Image:DownloadIcon.png|32px|Download Link|link={{{download}}}]]|{{#ifeq:{{NAMESPACENUMBER}}|0|
-->{{#if:{{{ugc4s|}}}|'''4v4:''' [[File:UGC-Icon2.png|16px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]|}}<!--
+
[[Category:Map infoboxes with no download]]}} }}<!--
-->{{#if:{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}|{{#if:{{{ugc4s|}}}|<br />|}}'''6v6:'''{{#if:{{{ugc6s|}}}| [[File:UGC-Icon2.png|16px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]|}}{{#if:{{{etf2l|}}}{{{etf2l6s|}}}| [[File:ETF2L-Icon2.png|16px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]|}}{{#if:{{{esea|}}}{{{esea6s|}}}| [[File:EseaLogo.png|16px|link=ESEA-I Season {{Current Seasons|esea}}]]|}}{{#if:{{{ozf|}}}{{{ozf6s|}}}| [[File:Ozfortress icon.png|16px|link=OWL {{Current Seasons|ozf}}]]|}}|}}<!--
+
--> {{#if:{{{website|}}}|[[Image:InfoboxIcon Homepage.png|32px|Website|link={{{website}}}]]}}<!--
-->{{#if:{{{ugc|}}}{{{ugchl|}}}{{{etf2lhl|}}}|{{#if:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}|<br />|}}'''Highlander:'''{{#if:{{{ugc|}}}{{{ugchl|}}}| [[File:UGC-Icon2.png|16px|link=UGC Highlander Season {{Current Seasons|ugchl}}]]{{#if:{{{etf2lhl|}}}| [[File:ETF2L-Icon2.png|16px|link=ETF2L Highlander Season {{Current Seasons|etf2lhl}}]]|}}}}
+
--> {{#if:{{{workshop|}}}|[[Image:Steam Logo.png|32px|Steam Workshop Page|link=https://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop}}}]]}}<!--
|}}<!--
+
--> {{#if:{{{tf2maps|}}}|[[Image:TF2Maps.net Logo.png|32px|TF2Maps.net Forum Thread|link=http://tf2maps.net/threads/{{{tf2maps}}}]]}}<!--
 +
--> {{#if:{{{gamebanana|}}}|[[Image:GameBanana.png|32px|GameBanana Page|link=http://tf2.gamebanana.com/maps/{{{gamebanana|}}}]]}}<!--
 +
--> {{#if:{{{tftv|}}}|[[Image:TeamfortressTV icon2.png|32px|TeamFortressTV Forum Thread|link=http://www.teamfortress.tv/{{{tftv|}}}]]}}<!--
 +
--> {{#if:{{{ugc|}}}|[[Image:UGC-Icon2.png|32px|UGC Forum Thread|link=http://www.ugcleague.net/forum/showthread.php?{{{ugc|}}}]]}}<!--
 +
--> {{#if:{{{etf2l|}}}|[[Image:ETF2L-Icon2.png|32px|ETF2L Forum Thread|link=http://etf2l.org/forum/maps/topic-{{{etf2l|}}}]]}}<!--
 +
--> {{#if:{{{officialwiki|}}}|[[Image:Official Team Fortress Wiki Icon.png|32px|Official Team Fortress Wiki Page|link=https://wiki.teamfortress.com/wiki/{{{officialwiki|}}}]]}}<!--
 +
--> {{#if:{{{officialwiki2|}}}|[[Image:Official Team Fortress Wiki Icon (Competitive)5.png|32px|Official Team Fortress Wiki Page (Competitive)|link=https://wiki.teamfortress.com/wiki/{{{officialwiki2|}}}]]}}<!--
 
--></div>
 
--></div>
 
</div>
 
</div>
Line 220: Line 311:
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
</div>
 
</div>
}}<!--
+
}}
 +
</div>
 +
</div><!--
  
Adbox
+
End Code
 
 
-->
 
</div>
 
<htmlet>infobox</htmlet>
 
</div>
 
<!--
 
  
Categories
+
-->{{#ifeq:{{NAMESPACENUMBER}}|0|
 +
[[Category:Maps]]}}<!--
  
{{#ifeq:{{NAMESPACE}}||
 
-->[[Category:Maps]]<!--
 
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Latest revision as of 09:04, 21 August 2023

(view - edit) Documentation

NewInfobox Map
[e][h]
Badlands.jpg
Map Information
File Name:
cp_badlands
Version:
Official Release
Author:
First Released:
14 February 2008
Last Updated:
8 July 2016
Official Map:
CorrectIcon.png
Competitive Information
Game Modes:
League Popularity:
Staple
Total Inclusions:
None
Links
Download Link Official Team Fortress Wiki Page Official Team Fortress Wiki Page (Competitive)

This template produces an Infobox on a map page. Credit to Liquipedia for the template.

Example

The code:

{{NewInfobox Map
|name=
|image=
|caption=

|maptype=5cp
|filename=cp_badlands
|version=Official Release
|author1=valve
|author1steam=
|author2=
|author2steam=
|author3=
|author3steam=
|released=14 February 2008
|updated=8 July 2016
|official=1

|gamemode1=6v6
|gamemode2=
|gamemode3=
|adapted=
|pro=
|popularity=staple
|lpleague=
|lpseason=

|download=http://www.sodahappy.com/fastdl/tf2/maps/cp_badlands.bsp.bz2
|workshop=
|tf2maps=
|gamebanana=
|tftv=
|etf2l=
|ugc=
|officialwiki=Badlands_(Control_Point)
|officialwiki2=Badlands_(competitive)

|footnotes=
}}

Parameters

These are the variables in the Map template:

  • name = Map name. You can leave it blank if it's the same name of the page
  • image = Don't use it for the main one since the template automatically searches for <map_name>.jpg. Use it rarely for secondary images.
  • caption = caption
  • maptype = Game mode ( 5cp, 3cp, ad, arena, bball, ctf, dom, koth, pl, plr, sd, ultiduo )
  • filename = Name of the last map version
  • version = Leave blank if official. "Alpha", "Beta", "Final", "Official Release" or "Release Candidate" otherwise
  • author1 = Author name with the format <Name> "nickname" <Surname> ( Es. Rebecca "Phi" Ailes )
  • author1steam = Author steam link. Better if it's used the 17 digit long ( Es. 76561198039117675 )
  • released = First date of release ( Es. 17 November 2015)
  • updated = Last update date
  • official = 1 if official. Leave blank if not
  • gamemode1 = In which competitive game modes it is used (4 v4, 6v6, BBall, Highlander, Ultiduo )
  • adapted = Map from which it has been taken from ( Es. Product is an adapted version of Viaduct )
  • pro = Official map from which it was perfected ( Es. Granary for cp_granary_pro_rc4 )
  • popularity = How often the map is used by leagues ( moderate, never played, obsolete, stample, trial )
  • lpleague = Last played league ( af6s, etf2l6s, etf2lhl, esea, ozf6s, ugc4s, ugc6s, ugchl )
  • lpseason = Number of the last season played
  • download = Reliable download link (better if from http://fakkelbrigade.eu/maps/ )
  • workshop = Steam workshop link
  • tf2maps = TF2Maps.net thread
  • tftv = teamfortress.tv thread
  • etf2l = etf2l.org thread
  • ugc = ugcleague.com thread
  • officialwiki = wiki.teamfortress.com official page ( Es. Badlands_(Control_Point) )
  • officialwiki2 = wiki.teamfortress.com official competitive page ( Es. Badlands_(competitive) )
  • footnotes = Foot notes
  • portal = Don't use it yet!


Copy / Paste

{{NewInfobox Map
|name=
|image=
|caption=

|maptype=
|filename=
|version=
|author1=
|author1steam=
|author2=
|author2steam=
|author3=
|author3steam=
|released=
|updated=
|official=

|gamemode1=
|gamemode2=
|gamemode3=
|adapted=
|pro=
|popularity=
|lpleague=
|lpseason=

|download=
|workshop=
|tf2maps=
|gamebanana=
|tftv=
|etf2l=
|ugc=
|officialwiki=
|officialwiki2=

|footnotes=
|portal=
}}