Difference between revisions of "Template:NewInfobox Map"

From comp.tf
Jump to navigation Jump to search
m
(Gonna take this one step at a time; added 2 new comp formats, 7v7 and Prolander.)
 
(257 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
<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>{{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
  
-->{{#if:{{{image|File:{{PAGENAME}}.jpg}}}|
+
-->
 
<div>
 
<div>
<div class="infobox-image">[[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:
 
}}<!--
 
}}<!--
  
-->{{#if:{{{maptype|}}}{{{latestver|}}}{{{download|}}}{{{creator1|}}}|
+
-->{{#if:{{{maptype|}}}{{{filename|}}}{{{version|}}}{{{author1|}}}{{{released|}}}{{{updated|}}}{{{official|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
Line 33: Line 34:
 
-->{{#if:{{{maptype|}}}|
 
-->{{#if:{{{maptype|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Map Type:</div>
+
<div class="infobox-cell-2 infobox-description">Map Type{{#if:{{{maptype2|}}}|s|}}:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}}
 
<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:Capture the Flag 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:5 Control Point Maps]]
+
   |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
   |3cp = [[3CP|3 Control Point]] [[Category:3 Control Point Maps]]
+
   |3cp = [[3CP|Control Points (3CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:3CP Maps]]}}
 
   |attack defend
 
   |attack defend
 
   |attack/defend
 
   |attack/defend
 
   |ad
 
   |ad
   |a/d = [[Attack/Defend]] [[Category:Attack/Defend Maps]]
+
   |a/d = [[Attack/Defend]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[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]] [[Category:King of the Hill Maps]]
+
   |koth = [[King of the Hill]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:King of the Hill Maps]]}}
 
   |payload
 
   |payload
   |pl = [[Payload]] [[Category:Payload Maps]]
+
   |pl = [[Payload]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Maps]]}}
 
   |payload race
 
   |payload race
   |plr = [[Payload Race]] [[Category:Payload Race Maps]]
+
   |plr = [[Payload Race]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Payload Race Maps]]}}
 
   |special delivery
 
   |special delivery
   |sd = [[Special Delivery]] [[Category:Special Delivery Maps]]
+
   |sd = [[Special Delivery]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Special Delivery Maps]]}}
   |bball = [[BBall|Bball]] [[Category:BBall Maps]]
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
  |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |{{{maptype|}}} = [[{{{maptype|}}}]]
+
  |{{{maptype|}}} = [[{{{maptype|}}}]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Miscellaneous Maps]]}}
}}</div>
+
}}<!--
 +
-->{{#if:{{{maptype2|}}}|<br />{{#switch:{{lc:{{{maptype2|}}}}}
 +
  |arena = [[Arena]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Arena Maps]]}}
 +
  |capture the flag
 +
  |ctf = [[CTF|Capture the Flag]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Capture the Flag Maps]]}}
 +
  |control points
 +
  |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>
 +
}}<!--
 +
 
 +
File Name
 +
 
 +
-->{{#if:{{{filename|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">File Name:&#32;</div>
 +
<div class="infobox-cell-2"><small><code>{{{filename|}}}</code></small></div>
 +
</div>
 +
}}<!--
 +
 
 +
Version
 +
 
 +
-->{{#if:{{{version|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Version:</div>
 +
<div class="infobox-cell-2">{{{version|}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Latest Version
+
Author
  
-->{{#if:{{{latestver|}}}|
+
-->{{#if:{{{author1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Latest Version:</div>
+
<div class="infobox-cell-2 infobox-description">Author{{#if:{{{author2|}}}|s}}:</div>
<div class="infobox-cell-2">{{#if:{{{latestver|}}}|<small><code>{{{latestver|}}}</code></small>}}</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:{{{released|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">First Released:</div>
 +
<div class="infobox-cell-2">{{{released|}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Creator/Creators
+
Last Updated
  
-->{{#if:{{{creator1|}}}|
+
-->{{#if:{{{updated|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">{{#if:{{{creator2|}}}|Creators:|Creator:}}</div>
+
<div class="infobox-cell-2 infobox-description">Last Updated:</div>
<div class="infobox-cell-2">{{#if:{{{creator1|}}}|{{#if:{{{creator1steam|}}}|[http://steamcommunity.com/profiles/{{{creator1steam|}}} {{{creator1|}}}]|{{{creator1|}}}}}}}<!--
+
<div class="infobox-cell-2">{{{updated|}}}</div>
-->{{#if:{{{creator2|}}}|<br />{{#if:{{{creator2steam|}}}|[http://steamcommunity.com/profiles/{{{creator2steam|}}} {{{creator2|}}}]|{{{creator2|}}}}}}}<!--
 
-->{{#if:{{{creator3|}}}|<br />{{#if:{{{creator3steam|}}}|[http://steamcommunity.com/profiles/{{{creator3steam|}}} {{{creator3|}}}]|{{{creator3|}}}}}}}<!--
 
-->{{#if:{{{creator4|}}}|<br />{{#if:{{{creator4steam|}}}|[http://steamcommunity.com/profiles/{{{creator4steam|}}} {{{creator4|}}}]|{{{creator4|}}}}}}}<!--
 
-->{{#if:{{{creator5|}}}|<br />{{#if:{{{creator5steam|}}}|[http://steamcommunity.com/profiles/{{{creator5steam|}}} {{{creator5|}}}]|{{{creator5|}}}}}}}<!--
 
-->{{#if:{{{creator6|}}}|<br />{{#if:{{{creator6steam|}}}|[http://steamcommunity.com/profiles/{{{creator6steam|}}} {{{creator6|}}}]|{{{creator6|}}}}}}}<!--
 
-->{{#if:{{{creator7|}}}|<br />{{#if:{{{creator7steam|}}}|[http://steamcommunity.com/profiles/{{{creator7steam|}}} {{{creator7|}}}]|{{{creator7|}}}}}}}<!--
 
-->{{#if:{{{creator8|}}}|<br />{{#if:{{{creator8steam|}}}|[http://steamcommunity.com/profiles/{{{creator8steam|}}} {{{creator8|}}}]|{{{creator8|}}}}}}}<!--
 
-->{{#if:{{{creator9|}}}|<br />{{#if:{{{creator9steam|}}}|[http://steamcommunity.com/profiles/{{{creator9steam|}}} {{{creator9|}}}]|{{{creator9|}}}}}}}<!--
 
-->{{#if:{{{creator10|}}}|<br />{{#if:{{{creator10steam|}}}|[http://steamcommunity.com/profiles/{{{creator10steam|}}} {{{creator10|}}}]|{{{creator10|}}}}}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
-->{{#if:{{{gamemode1|}}}{{{currentrotation|}}}|
+
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 95: Line 164:
 
}}<!--
 
}}<!--
  
Game Mode/Game Modes
+
Game Modes
  
 
-->{{#if:{{{gamemode1|}}}|
 
-->{{#if:{{{gamemode1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">{{#if:{{{gamemode2|}}}|Game Modes:|Game Mode:}}</div>
+
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
<div class="infobox-cell-2">{{#if:{{{gamemode1|}}}|{{#switch:{{lc:{{{gamemode1|}}}}}
+
<div class="infobox-cell-2">{{#switch:{{lc:{{{gamemode1|}}}}}
   |bball = [[BBall]] [[Category:BBall Maps]]
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
  |ultitrio = [[Ultitrio]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultitrio Maps]]}}
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
}}}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
+
  |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
   |bball = [[BBall]] [[Category:BBall Maps]]
+
  |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
  |hl
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
 +
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
 +
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
 +
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
 +
  |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
 +
  |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
 +
  |hl
 +
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
 
}}}}{{#if:{{{gamemode3|}}}|,&#32;{{#switch:{{lc:{{{gamemode3|}}}}}
 
}}}}{{#if:{{{gamemode3|}}}|,&#32;{{#switch:{{lc:{{{gamemode3|}}}}}
   |bball = [[BBall]] [[Category:BBall Maps]]
+
   |bball = [[BBall]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BBall Maps]]}}
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |ultiduo = [[Ultiduo]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Ultiduo Maps]]}}
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
   |4v4 = [[4v4]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:4v4 Maps]]}}
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
   |6v6 = [[6v6]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:6v6 Maps]]}}
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
  |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
 +
  |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
 +
  |hl
 +
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
 
}}}}</div>
 
}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
In Rotation:
+
Adapted From, Pro Version
 +
 
 +
-->{{#if:{{{adapted|}}}{{{pro|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">{{#if:{{{adapted|}}}|Adapted From:}}{{#if:{{{pro|}}}|Pro Version{{#if:{{{pro2|}}}|s}}:}}</div>
 +
<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>
 +
</div>
 +
}}<!--
 +
 
 +
League Popularity
  
-->
+
-->{{#if:{{{popularity|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">League Popularity:</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>
<div class="infobox-cell-2 infobox-description">In Rotation:</div>
+
<div class="infobox-cell-2 infobox-description">In Current Rotations:</div>
<div class="infobox-cell-2">{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|'''4v4:''' [[File:UGC-Icon2.png|16px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]}}<!--
+
<div class="infobox-cell-2"><!--
-->{{#ifeq:{{#expr:{{Current Rotations/ugc6s|{{PAGENAME}}}}+{{Current Rotations/etf2l6s|{{PAGENAME}}}}+{{Current Rotations/esea6s|{{PAGENAME}}}}+{{Current Rotations/ozf6s|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<br />}}'''6v6:'''}}{{#ifeq:{{Current Rotations/ugc6s|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|16px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}{{#ifeq:{{Current Rotations/etf2l6s|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|16px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}{{#ifeq:{{Current Rotations/esea6s|{{PAGENAME}}}}|1|&#32;[[File:EseaLogo.png|16px|link=ESEA Season {{Current Seasons|esea6s}}]]}}{{#ifeq:{{Current Rotations/ozf6s|{{PAGENAME}}}}|1|&#32;[[File:Ozfortress icon.png|16px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}<!--
+
 
-->{{#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}}}}>0}}|1|<br />}}{{Abbr|'''HL'''|Highlander}}''':'''{{#ifeq:{{Current Rotations/ugchl|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|16px|link=UGC HL Season {{Current Seasons|ugchl}}]]}}{{#ifeq:{{Current Rotations/etf2lhl|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|16px|link=ETF2L HL Season {{Current Seasons|etf2lhl}}]]}}}}</div>
+
-->{{#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>
<!--
+
</div>}}}}}}<!--
 +
 
 +
Last Played
  
-->{{#if:{{{download|}}}{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}|
+
-->{{#if:{{{lpleague|}}}{{{lpseason|}}}|
 
<div>
 
<div>
<div class="infobox-header infobox-header-2">Links</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>
 
</div>
 
}}<!--
 
}}<!--
  
Links
+
Total Inclusions
  
-->{{#if:{{{download|}}}{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}|
+
-->{{#ifeq:{{{popularity|}}}|never played||
 
<div>
 
<div>
<div class="infobox-center infobox-icons">{{#if:{{{download|}}}|[[File:Downloadicon.png|32px|link={{{download|}}}]]}}{{#if:{{{workshop|}}}|[[File:Steam Logo.png|32px|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]}}{{#if:{{{tf2maps|}}}|[[File:TF2Maps.net Logo.png|32px|link=http://tf2maps.net/threads/{{{tf2maps|}}}]]}}{{#if:{{{tftv|}}}|[[File:TFTV Logo.png|32px|link=http://www.teamfortress.tv/11931]]}}</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>
 
}}<!--
 
}}<!--
  
Footnotes
+
Links/Icons
  
-->{{#if:{{{footnotes|}}}|
+
-->{{#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-center"><small>{{{footnotes}}}</small></div>
+
<div class="infobox-center infobox-icons"><!--
 +
--> {{#if:{{{download|}}}|[[Image:DownloadIcon.png|32px|Download Link|link={{{download}}}]]|{{#ifeq:{{NAMESPACENUMBER}}|0|
 +
[[Category:Map infoboxes with no download]]}} }}<!--
 +
--> {{#if:{{{website|}}}|[[Image:InfoboxIcon Homepage.png|32px|Website|link={{{website}}}]]}}<!--
 +
--> {{#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>
 
}}<!--
 
}}<!--
  
Adbox
+
Footnotes
  
-->
+
-->{{#if:{{{footnotes|}}}|
 +
<div>
 +
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
</div>
 
</div>
<htmlet>infobox</htmlet>
+
}}
 
</div>
 
</div>
<!--
+
</div><!--
  
 
End Code
 
End Code

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