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.)
 
(59 intermediate revisions by 3 users not shown)
Line 12: Line 12:
 
-->
 
-->
 
<div>
 
<div>
<div class="infobox-image">{{#ifexist:File:{{PAGENAME}}.jpg|[[Image:{{PAGENAME}}.jpg|center|294px]]}}{{#if:{{{image|}}}|[[Image:{{{image|}}}|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>
 
<!--
 
<!--
Line 24: Line 24:
 
}}<!--
 
}}<!--
  
-->{{#if:{{{maptype|}}}{{{filename|}}}{{{version|}}}{{{download|}}}{{{creator1|}}}{{{released|}}}{{{updated|}}}{{{official|}}}|
+
-->{{#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 34: 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|Symmetrical 5CP]] [[Category:5CP Maps]]
+
   |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
   |3cp = [[5CP|Symmetrical 3CP]] [[Category:3CP 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]] [[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>
 
</div>
 
}}<!--
 
}}<!--
  
File Name:
+
File Name
  
 
-->{{#if:{{{filename|}}}|
 
-->{{#if:{{{filename|}}}|
Line 72: Line 101:
 
}}<!--
 
}}<!--
  
Version:
+
Version
  
 
-->{{#if:{{{version|}}}|
 
-->{{#if:{{{version|}}}|
Line 81: Line 110:
 
}}<!--
 
}}<!--
  
Download
+
Author
  
-->{{#if:{{{download|}}}|
+
-->{{#if:{{{author1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Download:</div>
+
<div class="infobox-cell-2 infobox-description">Author{{#if:{{{author2|}}}|s}}:</div>
<div class="infobox-cell-2">[[File:DownloadIcon.png|19px|Download Link|link={{{download}}}]]</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|}}}}}}}}}<!--
</div>
+
-->{{#if:{{{author2|}}}|<br />{{#if:{{{author2steam|}}}|[http://steamcommunity.com/profiles/{{{author2steam|}}} {{{author2|}}}]|{{{author2|}}}}}}}<!--
|[[Category:Map pages with no download link]]}}<!--
+
-->{{#if:{{{author3|}}}|<br />{{#if:{{{author3steam|}}}|[http://steamcommunity.com/profiles/{{{author3steam|}}} {{{author3|}}}]|{{{author3|}}}}}}}<!--
 
+
-->{{#if:{{{author4|}}}|<br />{{#if:{{{author4steam|}}}|[http://steamcommunity.com/profiles/{{{author4steam|}}} {{{author4|}}}]|{{{author4|}}}}}}}<!--
Creator/Creators
+
-->{{#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:{{{creator1|}}}|
+
-->{{#if:{{{author7|}}}|<br />{{#if:{{{author7steam|}}}|[http://steamcommunity.com/profiles/{{{author7steam|}}} {{{author7|}}}]|{{{author7|}}}}}}}<!--
<div>
+
-->{{#if:{{{author8|}}}|<br />{{#if:{{{author8steam|}}}|[http://steamcommunity.com/profiles/{{{author8steam|}}} {{{author8|}}}]|{{{author8|}}}}}}}<!--
<div class="infobox-cell-2 infobox-description">Creator{{#if:{{{creator2|}}}|s}}:</div>
+
-->{{#if:{{{author9|}}}|<br />{{#if:{{{author9steam|}}}|[http://steamcommunity.com/profiles/{{{author9steam|}}} {{{author9|}}}]|{{{author9|}}}}}}}<!--
<div class="infobox-cell-2">{{#if:{{{creator1|}}}|{{#if:{{{creator1steam|}}}|[http://steamcommunity.com/profiles/{{{creator1steam|}}} {{{creator1|}}}]|{{#switch:{{lc:{{{creator1|}}}}}|valve=[https://en.wikipedia.org/wiki/Valve_Corporation Valve][[Category:Maps by Valve]]|#default={{{creator1|}}}}}}}}}<!--
+
-->{{#if:{{{author10|}}}|<br />{{#if:{{{author10steam|}}}|[http://steamcommunity.com/profiles/{{{author10steam|}}} {{{author10|}}}]|{{{author10|}}}}}}}</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>
 
}}
 
}}
Line 127: Line 147:
 
}}<!--
 
}}<!--
  
Official Map:
+
Official Map
  
 
-->
 
-->
Line 133: Line 153:
 
<div class="infobox-cell-2 infobox-description">Official Map:</div>
 
<div class="infobox-cell-2 infobox-description">Official Map:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{official|}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{official|}}}}}
   |1=[[File:CorrectIcon.png|19px|link=Category:Official Maps]][[Category:Official Maps]]
+
   |1=[[File:CorrectIcon.png|19px|link=Category:Official Maps]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Official Maps]]}}
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Maps]][[Category:Unofficial Maps]]
+
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Maps]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Unofficial Maps]]}}
 
}}</div>
 
}}</div>
 
</div><!--
 
</div><!--
  
-->{{#if:{{{gamemode1|}}}{{competitiveof|}}}{{{competitive|}}}{{{popularity|}}}{{{lpleague|}}}{{{lpseason|}}}{{{lpdate|}}}|
+
-->{{#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 150: Line 170:
 
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
 
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
 
<div class="infobox-cell-2">{{#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]]}}
 +
   |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
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
 
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
 
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
   |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]]}}
 +
  |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
 +
  |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |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]]}}
 +
  |7v7 = [[7v7]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:7v7 Maps]]}}
 +
  |prolander = [[Prolander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Prolander Maps]]}}
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Highlander Maps]]}}
 
}}}}</div>
 
}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Competitive Version of, Competitive Version
+
Adapted From, Pro Version
  
-->{{#if:{{{competitiveof|}}}{{{competitive|}}}|
+
-->{{#if:{{{adapted|}}}{{{pro|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">{{#if:{{{competitiveof|}}}|Competitive Version of:}}{{#if:{{{competitive|}}}|Competitive Version{{#if:{{{competitive2|}}}|s}}:}}</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:{{{competitiveof|}}}|[[{{{competitiveof|}}}]][[Category:Competitive Version Maps]]}}{{#if:{{{competitive|}}}|[[{{{competitive|}}}]][[Category:Maps with Competitive Versions]]}}{{#if:{{{competitive2|}}}|<br />[[{{{competitive2|}}}]]}}</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>
 
</div>
 
}}<!--
 
}}<!--
Line 189: Line 216:
 
<div class="infobox-cell-2 infobox-description">League Popularity:</div>
 
<div class="infobox-cell-2 infobox-description">League Popularity:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{popularity|}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{popularity|}}}}}
   |staple={{abbr|Staple|This map is consistently played in leagues of its primary game mode(s)}}
+
   |staple={{abbr|Staple|This map is consistently played in all leagues of its primary game mode(s)}}
   |moderate={{abbr|Moderate|This map is commonly played in 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)}}
 
   |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}}
 
   |obsolete={{abbr|Obsolete|This map is no longer played in any leagues}}
Line 198: Line 225:
 
}}<!--
 
}}<!--
  
In Current Rotations:
+
In Current Rotations
  
-->{{#ifeq:{{{popularity|}}}|{{lc:never played}}||{{#ifeq:{{{popularity|}}}|{{lc:obsolete}}||{{#ifeq:{{{popularity|}}}|{{lc:previous trial}}||
+
-->{{#ifeq:{{Current Rotations|{{PAGENAME}}}}|1|{{#ifeq:{{{popularity|}}}|{{lc:never played}}||{{#ifeq:{{{popularity|}}}|{{lc:obsolete}}||
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">In Current Rotations:</div>
 
<div class="infobox-cell-2 infobox-description">In Current Rotations:</div>
 
<div class="infobox-cell-2"><!--
 
<div class="infobox-cell-2"><!--
  
-->{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<div style="width:23px; display:inline-block; font-size:12px;">4v4:</div> [[File:UGC-Icon2.png|19px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]}}<!--
+
-->{{#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; font-size:12px;">6v6:</div>}}<!--
+
-->{{#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/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/etf2l6s|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|19px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}<!--
Line 214: Line 241:
 
-->{{#ifeq:{{Current Rotations/af6s|{{PAGENAME}}}}|1|&#32;[[File:AsiaFortress-Icon.png|19px|link=AsiaFortress Cup {{Current Seasons|af6s}}]]}}<!--
 
-->{{#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; font-size:12px;">HL:</div>}}<!--
+
-->{{#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 HL Season {{Current Seasons|ugchl}}]]}}<!--
+
-->{{#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}}]]}}
 
-->{{#ifeq:{{Current Rotations/etf2lhl|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|19px|link=ETF2L Highlander Season {{Current Seasons|etf2lhl}}]]}}
 
</div>
 
</div>
Line 222: Line 249:
 
Last Played
 
Last Played
  
-->{{#if:{{{lpleague|}}}{{{lpseason|}}}{{{lpdate|}}}|
+
-->{{#if:{{{lpleague|}}}{{{lpseason|}}}|
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Last Played:</div>
 
<div class="infobox-cell-2 infobox-description">Last Played:</div>
Line 232: Line 259:
 
   | 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|}}}]]
 
   | 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|}}}]]
 
   | af6s = [[File:AsiaFortress-Icon.png|19px|link=AsiaFortress Cup {{{lpseason|}}}]] [[AsiaFortress Cup {{{lpseason|}}}|6v6 Season {{{lpseason|}}}]]
   | ugchl = [[File:UGC-Icon2.png|19px|link=UGC HL Season {{{lpseason|}}}]] [[UGC HL Season {{{lpseason|}}}|HL 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|}}}]]
 
   | etf2lhl = [[File:ETF2L-Icon2.png|19px|link=ETF2L Highlander Season {{{lpseason|}}}]] [[ETF2L Highlander Season {{{lpseason|}}}|HL Season {{{lpseason|}}}]]
 
}}
 
}}
<br />{{{lpdate|}}}</div>
+
</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 241: Line 268:
 
Total Inclusions
 
Total Inclusions
  
-->{{#ifeq:{{{popularity|}}}|Never Played||
+
-->{{#ifeq:{{{popularity|}}}|never played||
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Total Inclusions:</div>
 
<div class="infobox-cell-2 infobox-description">Total Inclusions:</div>
 
<div class="infobox-cell-2"><!--
 
<div class="infobox-cell-2"><!--
-->{{#ifeq:{{#expr:{{Total Inclusions/4s|{{PAGENAME}}}}>0}}|1|<div style="width:23px; display:inline-block; font-size:12px;">4v4:</div> '''{{Total Inclusions/4s|{{PAGENAME}}}}''' <div style="font-size:12px; display:inline-block;">inclusion{{#ifeq:{{Total Inclusions/4s|{{PAGENAME}}}}|1||s}} ''({{Total Inclusions/4s/relative|{{PAGENAME}}}})</div>''}}<!--
+
-->{{#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; font-size:12px;">6v6:</div> '''{{Total Inclusions/6s|{{PAGENAME}}}}''' <div style="font-size:12px; display:inline-block;">inclusion{{#ifeq:{{Total Inclusions/6s|{{PAGENAME}}}}|1||s}} ''({{Total Inclusions/6s/relative|{{PAGENAME}}}})</div>''}}<!--
+
-->{{#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; font-size:12px;">HL:</div> '''{{Total Inclusions/hl|{{PAGENAME}}}}''' <div style="font-size:12px; display:inline-block;">inclusion{{#ifeq:{{Total Inclusions/hl|{{PAGENAME}}}}|1||s}} ''({{Total Inclusions/hl/relative|{{PAGENAME}}}})</div>''}}<!--
+
-->{{#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>
 
-->{{#if:{{Total Inclusions/4s|{{PAGENAME}}}}{{Total Inclusions/6s|{{PAGENAME}}}}{{Total Inclusions/hl|{{PAGENAME}}}}||None}}</div>
Line 255: Line 282:
 
}}<!--
 
}}<!--
  
Icons
+
Links/Icons
  
-->{{#if:{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}{{{tftv2|}}}{{{etf2l|}}}{{{ugc|}}}{{{officialwiki|}}}{{{officialwiki2|}}}{{{gamebanana|}}}|
+
-->{{#if:{{{download|}}}{{{website|}}}{{{workshop|}}}{{{tf2maps|}}}{{{gamebanana|}}}{{{tftv|}}}{{{ugc|}}}{{{etf2l|}}}{{{officialwiki|}}}{{{officialwiki2|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Links</div>
 
<div class="infobox-header infobox-header-2">Links</div>
Line 263: Line 290:
 
<div>
 
<div>
 
<div class="infobox-center infobox-icons"><!--
 
<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:{{{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:{{{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:{{{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:{{{tftv|}}}|[[Image:TeamfortressTV icon2.png|32px|TeamFortressTV Forum Thread|link=http://www.teamfortress.tv/{{{tftv|}}}]]}}<!--
--> {{#if:{{{tftv2|}}}|[[Image:TeamfortressTV icon2.png|32px|TeamFortressTV Forum Thread (2)|link=http://www.teamfortress.tv/{{{tftv2|}}}]]}}<!--
+
--> {{#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:{{{etf2l|}}}|[[Image:ETF2L-Icon2.png|32px|ETF2L Forum Thread|link=http://etf2l.org/forum/maps/topic-{{{etf2l|}}}]]}}<!--
--> {{#if:{{{ugc|}}}|[[Image:UGC-Icon2.png|32px|UGC Forum Thread|link=http://www.ugcleague.net/forum/showthread.php?{{{ugc|}}}]]}}<!--
 
 
--> {{#if:{{{officialwiki|}}}|[[Image:Official Team Fortress Wiki Icon.png|32px|Official Team Fortress Wiki Page|link=https://wiki.teamfortress.com/wiki/{{{officialwiki|}}}]]}}<!--
 
--> {{#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|}}}]]}}<!--
 
--> {{#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|}}}]]}}<!--
Line 282: Line 311:
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
</div>
 
</div>
}}<!--
+
}}
 
 
Adbox
 
 
 
-->
 
 
</div>
 
</div>
<htmlet>infobox</htmlet>
+
</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=
}}