Difference between revisions of "Template:NewInfobox Map"
Jump to navigation
Jump to search
}}
}}
m (In Current Rotation fixes) |
m |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <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§ion=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox Map|h]]<nowiki>]</nowiki></span>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}</div> | + | <div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit§ion=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox Map|h]]<nowiki>]</nowiki></span>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</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">[[Image:{{{image|{{PAGENAME}}.jpg}}}|center|294px]]</div> | ||
Line 23: | Line 23: | ||
}}<!-- | }}<!-- | ||
− | -->{{#if:{{{maptype|}}}{{{latestver|}}}{{{downloadlink|}}}{{{ | + | -->{{#if:{{{maptype|}}}{{{latestver|}}}{{{downloadlink|}}}{{{creator1|}}}| |
<div> | <div> | ||
<div class="infobox-header infobox-header-2">Map Information</div> | <div class="infobox-header infobox-header-2">Map Information</div> | ||
Line 36: | Line 36: | ||
<div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}} | <div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}} | ||
|capture the flag | |capture the flag | ||
− | |ctf = [[CTF|Capture the Flag]] [[Category: | + | |ctf = [[CTF|Capture the Flag]] [[Category:Capture the Flag Maps]] |
|control point | |control point | ||
|cp | |cp | ||
− | |5cp = [[5CP|5 Control Point]] [[Category: | + | |5cp = [[5CP|5 Control Point]] [[Category:5 Control Point Maps]] |
− | |3cp = [[3CP|3 Control Point]] [[Category: | + | |3cp = [[3CP|3 Control Point]] [[Category:3 Control Point Maps]] |
|attack defend | |attack defend | ||
|attack/defend | |attack/defend | ||
− | |||
− | |||
|ad | |ad | ||
|a/d = [[Attack/Defend]] [[Category:Attack/Defend Maps]] | |a/d = [[Attack/Defend]] [[Category:Attack/Defend Maps]] | ||
Line 50: | Line 48: | ||
|dom = [[Domination]] [[Category:Domination Maps]] | |dom = [[Domination]] [[Category:Domination Maps]] | ||
|king of the hill | |king of the hill | ||
− | |koth = [[ | + | |koth = [[King of the Hill]] [[Category:King of the Hill Maps]] |
|payload | |payload | ||
|pl = [[Payload]] [[Category:Payload Maps]] | |pl = [[Payload]] [[Category:Payload Maps]] | ||
|payload race | |payload race | ||
− | |plr = [[ | + | |plr = [[Payload Race]] [[Category:Payload Race Maps]] |
|special delivery | |special delivery | ||
− | |sd = [[ | + | |sd = [[Special Delivery]] [[Category:Special Delivery Maps]] |
− | |||
|bball = [[BBall|Bball]] [[Category:BBall Maps]] | |bball = [[BBall|Bball]] [[Category:BBall Maps]] | ||
− | |||
− | |||
|ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | ||
− | + | |{{{maptype|}}} = [[{{{maptype|}}}]] | |
− | |||
− | |||
− | |||
− | |{{{maptype|}}} = [[{{{maptype}}}]] | ||
}}</div> | }}</div> | ||
</div> | </div> | ||
Line 76: | Line 67: | ||
<div> | <div> | ||
<div class="infobox-cell-2 infobox-description">Latest Version:</div> | <div class="infobox-cell-2 infobox-description">Latest Version:</div> | ||
− | <div class="infobox-cell-2">{{#if:{{{latestver|}}}|<code>{{{latestver|}}}</code> | + | <div class="infobox-cell-2">{{#if:{{{latestver|}}}|<code>{{{latestver|}}}</code>}} {{#if:{{{downloadlink|}}}|[[File:Downloadicon.png|12px|link={{{downloadlink|}}}]]}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | + | Creator/Creators | |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator1|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description">{{#if:{{{ | + | <div class="infobox-cell-2 infobox-description">{{#if:{{{creator2|}}}|Creators:|Creator:}}</div> |
− | <div class="infobox-cell-2">{{#if:{{{ | + | <div class="infobox-cell-2">{{#if:{{{creator1|}}}|{{#if:{{{creator1steam|}}}|[http://steamcommunity.com/profiles/{{{creator1steam|}}} {{{creator1|}}}]|{{{creator1|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator2|}}}|<br />{{#if:{{{creator2steam|}}}|[http://steamcommunity.com/profiles/{{{creator2steam|}}} {{{creator2|}}}]|{{{creator2|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator3|}}}|<br />{{#if:{{{creator3steam|}}}|[http://steamcommunity.com/profiles/{{{creator3steam|}}} {{{creator3|}}}]|{{{creator3|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator4|}}}|<br />{{#if:{{{creator4steam|}}}|[http://steamcommunity.com/profiles/{{{creator4steam|}}} {{{creator4|}}}]|{{{creator4|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator5|}}}|<br />{{#if:{{{creator5steam|}}}|[http://steamcommunity.com/profiles/{{{creator5steam|}}} {{{creator5|}}}]|{{{creator5|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator6|}}}|<br />{{#if:{{{creator6steam|}}}|[http://steamcommunity.com/profiles/{{{creator6steam|}}} {{{creator6|}}}]|{{{creator6|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator7|}}}|<br />{{#if:{{{creator7steam|}}}|[http://steamcommunity.com/profiles/{{{creator7steam|}}} {{{creator7|}}}]|{{{creator7|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator8|}}}|<br />{{#if:{{{creator8steam|}}}|[http://steamcommunity.com/profiles/{{{creator8steam|}}} {{{creator8|}}}]|{{{creator8|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator9|}}}|<br />{{#if:{{{creator9steam|}}}|[http://steamcommunity.com/profiles/{{{creator9steam|}}} {{{creator9|}}}]|{{{creator9|}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{creator10|}}}|<br />{{#if:{{{creator10steam|}}}|[http://steamcommunity.com/profiles/{{{creator10steam|}}} {{{creator10|}}}]|{{{creator10|}}}}}}}</div> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
}}}}<!-- | }}}}<!-- | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{gamemode1|}}}{{{currentrotation|}}}| |
<div> | <div> | ||
<div class="infobox-header infobox-header-2">Competitive Information</div> | <div class="infobox-header infobox-header-2">Competitive Information</div> | ||
Line 113: | Line 95: | ||
}}<!-- | }}<!-- | ||
− | + | Game Mode/Game Modes | |
− | -->{{#if:{{{ | + | -->{{#if:{{{gamemode1|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description">{{#if:{{{ | + | <div class="infobox-cell-2 infobox-description">{{#if:{{{gamemode2|}}}|Game Modes:|Game Mode:}}</div> |
− | <div class="infobox-cell-2">{{#if:{{{ | + | <div class="infobox-cell-2">{{#if:{{{gamemode1|}}}|{{#switch:{{lc:{{{gamemode1|}}}}} |
− | |||
− | |||
− | |||
− | |||
|bball = [[BBall]] [[Category:BBall Maps]] | |bball = [[BBall]] [[Category:BBall Maps]] | ||
− | |||
|ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | ||
− | |||
|4v4 = [[4v4]] [[Category:4v4 Maps]] | |4v4 = [[4v4]] [[Category:4v4 Maps]] | ||
− | |||
|6v6 = [[6v6]] [[Category:6v6 Maps]] | |6v6 = [[6v6]] [[Category:6v6 Maps]] | ||
− | |||
|highlander = [[Highlander]] [[Category:Highlander Maps]] | |highlander = [[Highlander]] [[Category:Highlander Maps]] | ||
− | }} | + | }}}}{{#if:{{{gamemode2|}}}|, {{#switch:{{lc:{{{gamemode2|}}}}} |
− | |||
− | |||
− | |||
− | |||
|bball = [[BBall]] [[Category:BBall Maps]] | |bball = [[BBall]] [[Category:BBall Maps]] | ||
− | |||
|ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | ||
− | |||
|4v4 = [[4v4]] [[Category:4v4 Maps]] | |4v4 = [[4v4]] [[Category:4v4 Maps]] | ||
− | |||
|6v6 = [[6v6]] [[Category:6v6 Maps]] | |6v6 = [[6v6]] [[Category:6v6 Maps]] | ||
− | |||
|highlander = [[Highlander]] [[Category:Highlander Maps]] | |highlander = [[Highlander]] [[Category:Highlander Maps]] | ||
− | }} | + | }}}}{{#if:{{{gamemode3|}}}|, {{#switch:{{lc:{{{gamemode3|}}}}} |
− | |||
− | |||
− | |||
− | |||
|bball = [[BBall]] [[Category:BBall Maps]] | |bball = [[BBall]] [[Category:BBall Maps]] | ||
− | |||
|ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]] | ||
− | |||
|4v4 = [[4v4]] [[Category:4v4 Maps]] | |4v4 = [[4v4]] [[Category:4v4 Maps]] | ||
− | |||
|6v6 = [[6v6]] [[Category:6v6 Maps]] | |6v6 = [[6v6]] [[Category:6v6 Maps]] | ||
− | |||
|highlander = [[Highlander]] [[Category:Highlander Maps]] | |highlander = [[Highlander]] [[Category:Highlander Maps]] | ||
− | }} | + | }}}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 166: | Line 124: | ||
In Current Rotation: | In Current Rotation: | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{currentrotation|}}}| |
<div> | <div> | ||
<div class="infobox-cell-2 infobox-description">In Current Rotation:</div> | <div class="infobox-cell-2 infobox-description">In Current Rotation:</div> | ||
− | <div class="infobox-cell-2" | + | <div class="infobox-cell-2">{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|''4v4'' [[File:UGC-Icon2.png|16px|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}}}}>0}}|1|<br />''6v6''}}{{#ifeq:{{Current Rotations/ugc6s|{{PAGENAME}}}}|1| [[File:UGC-Icon2.png|16px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}{{#ifeq:{{Current Rotations/etf2l6s|{{PAGENAME}}}}|1| [[File:ETF2L-Icon2.png|16px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}{{#ifeq:{{Current Rotations/esea6s|{{PAGENAME}}}}|1| [[File:ESEALogo.png|16px|link=ESEA Season {{Current Seasons|esea6s}}]]}}{{#ifeq:{{Current Rotations/ozf6s|{{PAGENAME}}}}|1| [[File:Ozfortress icon.png|16px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}<!-- | |
− | -->{{# | + | -->{{#ifeq:{{#expr:{{Current Rotations/ugchl|{{PAGENAME}}}}+{{Current Rotations/etf2lhl|{{PAGENAME}}}}>0}}|1|<br />''{{Abbr|HL|Highlander''}}{{#ifeq:{{Current Rotations/ugchl|{{PAGENAME}}}}|1| [[File:UGC-Icon2.png|16px|link=UGC HL Season {{Current Seasons|ugchl}}]]}}{{#ifeq:{{Current Rotations/etf2lhl|{{PAGENAME}}}}|1| [[File:ETF2L-Icon2.png|16px|link=ETF2L HL Season {{Current Seasons|etf2lhl}}]]}}</div> |
− | -->{{# | + | </div> |
+ | }}}}<!-- | ||
+ | |||
+ | -->{{#if:{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-header infobox-header-2">Links</div> | ||
</div> | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{#if:{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-cell-2 infobox-description">Links:</div> | ||
+ | <div class="infobox-cell-2">{{#if:{{{workshop|}}}|[[File:Steam Logo.png|16px|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]}}{{#if:{{{tf2maps|}}}|[[File:TF2Maps.net Logo.png|16px|link=http://tf2maps.net/threads/{{{tf2maps|}}}]]}}{{#if:{{{tftv|}}}|[[File:TFTV Logo.png|16px|link=http://www.teamfortress.tv/11931]]}}</div> | ||
</div> | </div> | ||
}}}}<!-- | }}}}<!-- |
Revision as of 02:40, 2 April 2016
(view - edit) Documentation
NewInfobox Map
Map Information
Map Type:
Competitive Information
Game Mode:
Cannot find HTML file infobox.html
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= }}