Difference between revisions of "Template:NewInfobox Map"
Jump to navigation
Jump to search
{{#if:|
m (Increased image size back to 16px) |
(Re-did entire code) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{ | + | <includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{name|{{PAGENAME}}}}}}}}}<!-- |
--><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: | + | <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><!-- | ||
Line 11: | Line 11: | ||
-->{{#ifexist:File:{{PAGENAME}}.jpg| | -->{{#ifexist:File:{{PAGENAME}}.jpg| | ||
<div> | <div> | ||
− | <div class="infobox-image">[[Image:{{PAGENAME}}.jpg|center|294px]]</div> | + | <div class="infobox-image">[[Image:{{{image|{{PAGENAME}}.jpg}}}|center|294px]]</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 23: | Line 23: | ||
}}<!-- | }}<!-- | ||
− | --><div> | + | -->{{#if:{{{maptype|}}}{{{latestver|}}}{{{downloadlink|}}}{{{dev1|}}}{{{workshop|}}}| |
+ | <div> | ||
<div class="infobox-header infobox-header-2">Map Information</div> | <div class="infobox-header infobox-header-2">Map Information</div> | ||
− | </div><!-- | + | </div> |
+ | }}<!-- | ||
− | + | Map Type | |
− | -->{{#if:{{{ | + | -->{{#if:{{{maptype|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Map Type:</div> |
− | <div class="infobox-cell-2"> | + | <div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}} |
|capture the flag | |capture the flag | ||
|ctf = [[CTF|Capture the Flag]] [[Category:CTF Maps]] | |ctf = [[CTF|Capture the Flag]] [[Category:CTF Maps]] | ||
Line 43: | Line 45: | ||
|attack defense | |attack defense | ||
|attack/defense | |attack/defense | ||
− | |a/d | + | |ad |
− | + | |a/d = [[Attack/Defend]] [[Category:Attack/Defend Maps]] | |
|domination | |domination | ||
|dom = [[Domination]] [[Category:Domination Maps]] | |dom = [[Domination]] [[Category:Domination Maps]] | ||
Line 50: | Line 52: | ||
|koth = [[King_Of_The_Hill|King of the Hill]] [[Category:KOTH Maps]] | |koth = [[King_Of_The_Hill|King of the Hill]] [[Category:KOTH Maps]] | ||
|payload | |payload | ||
− | |pl = [[Payload]] [[Category: | + | |pl = [[Payload]] [[Category:Payload Maps]] |
|payload race | |payload race | ||
|plr = [[Payload_Race|Payload Race]] [[Category:Payload Race Maps]] | |plr = [[Payload_Race|Payload Race]] [[Category:Payload Race Maps]] | ||
Line 64: | Line 66: | ||
|arena respawn | |arena respawn | ||
|arenarespawn = {{Gamemode Icon|small|arenarespawn}} [[Arena Respawn]] [[Category:Arena Respawn Maps]] | |arenarespawn = {{Gamemode Icon|small|arenarespawn}} [[Arena Respawn]] [[Category:Arena Respawn Maps]] | ||
+ | |{{{maptype|}}} = [[{{{maptype}}}]] | ||
}}</div> | }}</div> | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | + | Latest Version, Download Link | |
− | -->{{#if:{{{ | + | -->{{#if:{{{latestver|}}}{{{downloadlink|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Latest Version:</div> |
− | <div class="infobox-cell-2">{{#if:{{{ | + | <div class="infobox-cell-2">{{#if:{{{latestver|}}}|<code>{{{latestver|}}}</code>|}} {{#if:{{{downloadlink|}}}|[[File:Downloadicon.png|12px|link={{{downloadlink|}}}]]|}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | + | Developer, Developers | |
− | -->{{#if:{{{ | + | -->{{#if:{{{dev1|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">{{#if:{{{dev2|}}}|Developers:|Developer:}}</div> |
− | + | <div class="infobox-cell-2">{{#if:{{{dev1flag|}}}|{{flag|{{{dev1flag}}}}}{{{dev1{{#if:{{{dev1steam|}}}|[[http://steamcommunity.com/profiles/{{{dev1steam|}}}/|{{{dev1|}}}]]|{{{dev1|}}}}}<!-- | |
− | + | -->{{#if:{{{dev2|}}}|<br />{{#if:{{{dev2flag|}}}|{{flag|{{{dev2flag}}}}}{{#if:{{{dev2steam|}}}|[[http://steamcommunity.com/profiles/{{{dev2steam|}}}/|{{{dev2|}}}]]|{{{dev2|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev3|}}}|<br />{{#if:{{{dev3flag|}}}|{{flag|{{{dev3flag}}}}}{{#if:{{{dev3steam|}}}|[[http://steamcommunity.com/profiles/{{{dev3steam|}}}/|{{{dev3|}}}]]|{{{dev3|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev4|}}}|<br />{{#if:{{{dev4flag|}}}|{{flag|{{{dev4flag}}}}}{{#if:{{{dev4steam|}}}|[[http://steamcommunity.com/profiles/{{{dev4steam|}}}/|{{{dev4|}}}]]|{{{dev4|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev5|}}}|<br />{{#if:{{{dev5flag|}}}|{{flag|{{{dev5flag}}}}}{{#if:{{{dev5steam|}}}|[[http://steamcommunity.com/profiles/{{{dev5steam|}}}/|{{{dev5|}}}]]|{{{dev5|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev6|}}}|<br />{{#if:{{{dev6flag|}}}|{{flag|{{{dev6flag}}}}}{{#if:{{{dev6steam|}}}|[[http://steamcommunity.com/profiles/{{{dev6steam|}}}/|{{{dev6|}}}]]|{{{dev6|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev7|}}}|<br />{{#if:{{{dev7flag|}}}|{{flag|{{{dev7flag}}}}}{{#if:{{{dev7steam|}}}|[[http://steamcommunity.com/profiles/{{{dev7steam|}}}/|{{{dev7|}}}]]|{{{dev7|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev8|}}}|<br />{{#if:{{{dev8flag|}}}|{{flag|{{{dev8flag}}}}}{{#if:{{{dev8steam|}}}|[[http://steamcommunity.com/profiles/{{{dev8steam|}}}/|{{{dev8|}}}]]|{{{dev8|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev9|}}}|<br />{{#if:{{{dev9flag|}}}|{{flag|{{{dev9flag}}}}}{{#if:{{{dev9steam|}}}|[[http://steamcommunity.com/profiles/{{{dev9steam|}}}/|{{{dev9|}}}]]|{{{dev9|}}}}}}}<!-- | |
− | + | -->{{#if:{{{dev10|}}}|<br />{{#if:{{{dev10flag|}}}|{{flag|{{{dev10flag}}}}}{{#if:{{{dev10steam|}}}|[[http://steamcommunity.com/profiles/{{{dev10steam|}}}/|{{{dev10|}}}]]|{{{dev10|}}}}}}}</div> | |
− | |||
− | Developer | ||
− | |||
− | |||
− | <div> | ||
− | <div class="infobox-cell-2 | ||
− | |||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | -->{{#if:{{{ | ||
− | |||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 113: | Line 100: | ||
Steam Workshop | Steam Workshop | ||
− | -->{{#if:{{{workshop|}}} | + | -->{{#if:{{{workshop|}}} |
<div> | <div> | ||
<div class="infobox-cell-2 infobox-description">Steam Workshop:</div> | <div class="infobox-cell-2 infobox-description">Steam Workshop:</div> | ||
− | <div class="infobox-cell-2">[[File: | + | <div class="infobox-cell-2">[[File:Steam icon.png|16px|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | -->{{#if: | + | -->{{#if:{{{format1|}}}| |
<div> | <div> | ||
<div class="infobox-header infobox-header-2">Competitive Information</div> | <div class="infobox-header infobox-header-2">Competitive Information</div> | ||
Line 128: | Line 115: | ||
Primary Formats | Primary Formats | ||
− | -->{{#if: | + | -->{{#if:{{{format1|}}}| |
<div> | <div> | ||
<div class="infobox-cell-2 infobox-description">{{#if:{{{format2|}}}|Primary Formats:|Primary Format:}}</div> | <div class="infobox-cell-2 infobox-description">{{#if:{{{format2|}}}|Primary Formats:|Primary Format:}}</div> | ||
− | <div class="infobox-cell-2"> | + | <div class="infobox-cell-2">{{#if:{{{format1|}}}|{{#switch:{{lc:{{{format1|}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|arena respawn | |arena respawn | ||
|arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]] | |arenarespawn = [[Arena Respawn]] [[Category:Arena Respawn Maps]] | ||
Line 191: | Line 164: | ||
}}<!-- | }}<!-- | ||
− | + | In Current Rotation: | |
− | -->{{#if:{{{ | + | -->{{#if:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l6s|}}}{{{esea6s|}}}{{{ozf6s|}}}{{{ugchl|}}}{{{etf2lhl|}}}| |
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">In Current Rotation:</div> |
− | <div class="infobox-cell-2">{{# | + | <div class="infobox-cell-2"><!-- |
+ | -->{{#if:{{{ugc4s|}}}|'''4v4''' [[File:UGC-Icon2.png|16px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]|}}<!-- | ||
+ | -->{{#if:{{{ugc6s|}}}{{{etf2l6s|}}}{{{esea6s|}}}{{{ozf6s|}}}|{{#if:{{{ugc4s|}}}|<br />|}}'''6v6'''{{#if:{{{ugc6s|}}}| [[File:UGC-Icon2.png|16px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}{{#if:{{{etf2l6s|}}}| [[File:ETF2L-Icon2.png|16px|link=ETF2L 6v6 {{Current Seasons|etf2l6s}}]]}}{{#if:{{{esea6s|}}}| [[File:EseaLogo.png|16px|link=ESEA Season {{Current Seasons|esea6s}}/Invite]]}}{{#if:{{{ugc6s|}}}| [[File:UGC-Icon2.png|16px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}[[File:Ozfortress icon.png|16px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}}}<!-- | ||
+ | -->{{#if:{{{ugchl|}}}{{{etf2lhl|}}}|{{#if:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l6s|}}}{{{esea6s|}}}{{{ozf6s|}}}|<br />|}}'''HL'''{{#if:{{{ugchl|}}}| [[File:UGC-Icon2.png|16px|link=UGC HL Season {{Current Seasons|ugchl}}]]}}{{#if:{{{etf2lhl|}}}| [[File:ETF2L-Icon2.png|16px|link=ETF2L HL Season {{Current Seasons|etf2lhl}}]]}}}} | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 230: | Line 193: | ||
<!-- | <!-- | ||
− | + | End Code | |
+ | |||
+ | -->{{#ifeq:{{NAMESPACENUMBER}}|0| | ||
+ | [[Category:Maps]]}}<!-- | ||
− | |||
− | |||
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude> | --></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude> |
Revision as of 16:16, 27 February 2016
(view - edit) Documentation
NewInfobox Map
Map Information
Map Type:
Developer:
{{#if:|{{Flag/{{{dev1flag}}}}}{{{dev1{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
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= }}