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.)
 
(30 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]]|[[Category:Map infoboxes without images]]}}{{#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 36: Line 36:
 
<div class="infobox-cell-2 infobox-description">Map Type{{#if:{{{maptype2|}}}|s|}}:</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]] [[Category:Arena Maps]]
+
   |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 points
 
   |control point
 
   |control point
 
   |cp
 
   |cp
   |5cp = [[5CP|Control Points (5CP)]] [[Category:5CP Maps]]
+
   |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
   |3cp = [[5CP|Control Points (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|}}}]] [[Category:Miscellaneous Maps]]
+
   |{{{maptype|}}} = [[{{{maptype|}}}]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Miscellaneous Maps]]}}
 
}}<!--
 
}}<!--
 
-->{{#if:{{{maptype2|}}}|<br />{{#switch:{{lc:{{{maptype2|}}}}}
 
-->{{#if:{{{maptype2|}}}|<br />{{#switch:{{lc:{{{maptype2|}}}}}
   |arena = [[Arena]] [[Category:Arena Maps]]
+
   |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 points
 
   |control point
 
   |control point
 
   |cp
 
   |cp
   |5cp = [[5CP|Control Points (5CP)]] [[Category:5CP Maps]]
+
   |5cp = [[5CP|Control Points (5CP)]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:5CP Maps]]}}
   |3cp = [[5CP|Control Points (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|}}}]] [[Category:Miscellaneous Maps]]
+
   |{{{maptype|}}} = [[{{{maptype|}}}]] {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Miscellaneous Maps]]}}
 
}}}}</div>
 
}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
File Name:
+
File Name
  
 
-->{{#if:{{{filename|}}}|
 
-->{{#if:{{{filename|}}}|
Line 101: Line 101:
 
}}<!--
 
}}<!--
  
Version:
+
Version
  
 
-->{{#if:{{{version|}}}|
 
-->{{#if:{{{version|}}}|
Line 115: Line 115:
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Author{{#if:{{{author2|}}}|s}}:</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][[Category:Maps by Valve]]|#default={{{author1|}}}}}}}}}<!--
+
<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:{{{author2|}}}|<br />{{#if:{{{author2steam|}}}|[http://steamcommunity.com/profiles/{{{author2steam|}}} {{{author2|}}}]|{{{author2|}}}}}}}<!--
 
-->{{#if:{{{author3|}}}|<br />{{#if:{{{author3steam|}}}|[http://steamcommunity.com/profiles/{{{author3steam|}}} {{{author3|}}}]|{{{author3|}}}}}}}<!--
 
-->{{#if:{{{author3|}}}|<br />{{#if:{{{author3steam|}}}|[http://steamcommunity.com/profiles/{{{author3steam|}}} {{{author3|}}}]|{{{author3|}}}}}}}<!--
Line 147: Line 147:
 
}}<!--
 
}}<!--
  
Official Map:
+
Official Map
  
 
-->
 
-->
Line 153: 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><!--
Line 170: 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>
Line 199: Line 206:
 
<div>
 
<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 infobox-description">{{#if:{{{adapted|}}}|Adapted From:}}{{#if:{{{pro|}}}|Pro Version{{#if:{{{pro2|}}}|s}}:}}</div>
<div class="infobox-cell-2">{{#if:{{{adapted|}}}|[[{{{adapted|}}}]][[Category:Pro Maps]]}}{{#if:{{{pro|}}}|[[{{{pro|}}}]][[Category:Maps with Pro Versions]]}}{{#if:{{{pro2|}}}|<br />[[{{{pro2|}}}]]}}</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 209: 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 218: 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>
Line 252: 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 Highlander 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|}}}]]
 
}}
 
}}
Line 265: Line 272:
 
<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;">4v4:</div> '''{{Total Inclusions/4s|{{PAGENAME}}}}''' inclusion{{#ifeq:{{Total Inclusions/4s|{{PAGENAME}}}}|1||s}} ''({{Total Inclusions/4s/relative|{{PAGENAME}}}})'}}<!--
+
-->{{#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}} ''({{Total Inclusions/6s/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}} ''({{Total Inclusions/hl/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>
 
-->{{#if:{{Total Inclusions/4s|{{PAGENAME}}}}{{Total Inclusions/6s|{{PAGENAME}}}}{{Total Inclusions/hl|{{PAGENAME}}}}||None}}</div>
Line 275: Line 282:
 
}}<!--
 
}}<!--
  
Icons
+
Links/Icons
  
-->{{#if:{{{download|}}}{{{website|}}}{{{workshop|}}}{{{tf2maps|}}}{{{gamebanana|}}}{{{tftv|}}}{{{tftv2|}}}{{{etf2l|}}}{{{ugc|}}}{{{officialwiki|}}}{{{officialwiki2|}}}|
+
-->{{#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 283: 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}}}]]|[[Category:Map infoboxes with no download link]]}}<!--
+
--> {{#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:{{{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}}}]]}}<!--
Line 289: Line 297:
 
--> {{#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 306: Line 313:
 
}}
 
}}
 
</div>
 
</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=
}}