Difference between revisions of "Template:NewInfobox Map"

From comp.tf
Jump to navigation Jump to search
(Progress save)
 
m
Line 70: Line 70:
 
-->{{#if:{{{currentver|}}}{{{downloadlink|}}}|
 
-->{{#if:{{{currentver|}}}{{{downloadlink|}}}|
 
<div>
 
<div>
<div class="infobox-center">{{#if:{{{currentver|}}}|<code>{{{currentver|}}}</code>|}} {{#if:{{{downloadlink|}}}|[[File:Downloadicon.png|12px|link={{{downloadlink|}}} |}}{{#if:{{{currentverdate|}}}|<br />Released: {{{currentverdate|}}}}}</div>
+
<div class="infobox-cell-2 infobox-description">Current Version:</div>
 +
<div class="infobox-cell-2">{{#if:{{{currentver|}}}|<code>{{{currentver|}}}</code>|}} {{#if:{{{downloadlink|}}}|[[File:Downloadicon.png|12px|link={{{downloadlink|}}} |}}{{#if:{{{currentverdate|}}}|<br />Released: {{{currentverdate|}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Map type
+
Map type, Adapted from
  
 +
-->{{#if:{{{maptype|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Map Type:</div>
 +
<div class="infobox-cell-2">{{#switch:{{lc:{{{maptype|}}}}}
 +
  |valve
 +
  |official = [[File:Square_Official.png|12px|link=]] Official [[Category:Official Maps]]
 +
  |pro
 +
  |adapted = [[File:Square_Adapted.png|12px|link=]] Adapted [[Category:Adapted Maps]]
 +
  |community
 +
  |custom = Custom [[Category:Custom Maps]]
 +
}} {{#if:{{{adaptedfrom|}}}|(from: [[{{{adaptedfrom|}}}]])</div>
 +
</div>
 +
}}<!--
 +
 +
Developer(s)
 +
 +
-->{{#if:{{{developer1|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">{{#if:{{{developer2|}}}|Developers:|Developer:}}</div>
 +
<div class="infobox-cell-2">{{#if:{{{developer|}}}|{{#if:{{{developersteam|}}}|[[http://steamcommunity/profiles/{{{developersteam|}}}/|{{{developer|}}}]]|{{{developer|}}}}}|}}{{#if:developer1|}}}|{{#if:{{{developer1steam|}}}|[[http://steamcommunity.com/profiles/{{{developer1steam|}}}/|{{{developer1|}}}]]|{{{developer1|}}}}}|}}<!--
 +
-->{{#if:{{{developer2|}}}|<br />{{#if:{{{developer2steam|}}}|[[http://steamcommunity.com/profiles/{{{developer2steam|}}}/|{{{developer2|}}}]]|{{{developer2|}}}}}}}<!--
 +
-->{{#if{{{developer3|}}}|<br />{{#if:{{{developer3steam|}}}|[[http://steamcommunity.com/profiles/{{{developer3steam|}}}/|{{{developer3|}}}]]|{{{developer3|}}}}}}}<!--
 +
-->{{#if:{{{developer4|}}}|<br />{{#if:{{{developer4steam|}}}|[[http://steamcommunity.com/profiles/{{{developer4steam|}}}/|{{{developer4|}}}]]|{{{developer4|}}}}}}}<!--
 +
-->{{#if:{{{developer5|}}}|<br />{{#if:{{{developer5steam|}}}|[[http://steamcommunity.com/profiles/{{{developer5steam|}}}/|{{{developer5|}}}]]|{{{developer5|}}}}}}}<!--
 +
-->{{#if:{{{developer6|}}}|<br />{{#if:{{{developer6steam|}}}|[[http://steamcommunity.com/profiles/{{{developer6steam|}}}/|{{{developer6|}}}]]|{{{developer6|}}}}}}}<!--
 +
-->{{#if:{{{developer7|}}}|<br />{{#if:{{{developer7steam|}}}|[[http://steamcommunity.com/profiles/{{{developer7steam|}}}/|{{{developer7|}}}]]|{{{developer7|}}}}}}}<!--
 +
-->{{#if:{{{developer8|}}}|<br />{{#if:{{{developer8steam|}}}|[[http://steamcommunity.com/profiles/{{{developer8steam|}}}/|{{{developer8|}}}]]|{{{developer8|}}}}}}}<!--
 +
-->{{#if:{{{developer9|}}}|<br />{{#if:{{{developer9steam|}}}|[[http://steamcommunity.com/profiles/{{{developer9steam|}}}/|{{{developer9|}}}]]|{{{developer9|}}}}}}}<!--
 +
-->{{#if:{{{developer10|}}}|<br />{{#if:{{{developer10steam|}}}|[[http://steamcommunity.com/profiles/{{{developer10steam|}}}/|{{{developer10|}}}]]|{{{developer10|}}}}}}}</div>
 +
</div>
 +
}}<!--
 +
 +
Steam Workshop
 +
 +
-->{{#if:{{{workshop|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Steam Workshop:</div>
 +
<div class="infobox-cell-2">[[File:Steam_icon.png|12px|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]</div>
 +
</div>
 +
}}<!--
 +
 +
--><div>
 +
<div class="infobox-header infobox-header-2">Competitive Information</div>
 +
</div><!--
 +
 +
Primary Formats
 +
 +
-->{{#if:{{{format|}}}{{{format1|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Primary Formats:</div>
 +
<div class="infobox-cell-2">{{#if:{{{format|}}}|{{#switch:{{lc:{{{format|}}}}}
 +
  |mge = [[MGE]] [[Category:MGE Maps]]
 +
  |basketball
 +
  |bball = [[BBall]] [[Category:BBall Maps]]
 +
  |ulti
 +
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 +
  |4s
 +
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 +
  |6s
 +
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 +
  |hl
 +
  |highlander = [[Highlander]] [[Category:Highlander Maps]]
 +
}}|}}{{#if:{{{format1|}}}|{{#switch:{{lc:{{{format1|}}}}}
 +
  |mge = [[MGE]] [[Category:MGE Maps]]
 +
  |basketball
 +
  |bball = [[BBall]] [[Category:BBall Maps]]
 +
  |ulti
 +
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 +
  |4s
 +
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 +
  |6s
 +
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 +
  |hl
 +
  |highlander = [[Highlander]] [[Category:Highlander Maps]]
 +
}}|}}{{#if:{{{format2|}}}|,&#32;{{#switch:{{lc:{{{format2|}}}}}
 +
  |mge = [[MGE]] [[Category:MGE Maps]]
 +
  |basketball
 +
  |bball = [[BBall]] [[Category:BBall Maps]]
 +
  |ulti
 +
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 +
  |4s
 +
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 +
  |6s
 +
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 +
  |hl
 +
  |highlander = [[Highlander]] [[Category:Highlander Maps]]
 +
}}|}}{{#if:{{{format3|}}}|,&#32;{{#switch:{{lc:{{{format3|}}}}}
 +
  |mge = [[MGE]] [[Category:MGE Maps]]
 +
  |basketball
 +
  |bball = [[BBall]] [[Category:BBall Maps]]
 +
  |ulti
 +
  |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
 +
  |4s
 +
  |4v4 = [[4v4]] [[Category:4v4 Maps]]
 +
  |6s
 +
  |6v6 = [[6v6]] [[Category:6v6 Maps]]
 +
  |hl
 +
  |highlander = [[Highlander]] [[Category:Highlander Maps]]
 +
}}|}}</div>
 +
</div>
 +
}}<!--
 +
 +
Popularity
 +
 +
-->{{#if:{{{popularity|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Popularity:</div>
 +
<div class="infobox-cell-2">{{#ifeq:{{{popularity|}}}|staple|{{Abbr|Staple|This map is a staple in the current rotation}}[[Category:Staple Maps]]|}}{{#ifeq:{{{popularity|}}}|moderate|{{Abbr|Moderate|This map is moderately played in the current rotation}}[[Category:Moderately Played Maps]]|}}{{#ifeq:{{{popularity|}}}|trial|{{Abbr|Trial|This map is used as a trial in the current rotation}}[[Category:Trial Maps]]|}}{{#ifeq:{{{popularity|}}}|obsolete|{{Abbr|Obsolete|This map is no longer played in the current rotation}}[[Category:Obsolete Maps]]|}}</div>
 +
</div>
 +
}}<!--
 +
 +
In Active Rotation?
 +
 +
-->{{#if:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}{{{ugc|}}}{{{ugchl|}}}{{{etf2lhl|}}}{{{norotation|}}}{{{lastplayed|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">In Active Rotation?</div>
 +
<div class="infobox-cell-2">{{#ifeq:{{{norotation|}}}|1|No{{#if:{{{lastplayed|}}}|&#32;(Last played {{{lastplayed|}}})|}}|<!--
 +
-->{{#ifeq:{{{ugc4s|}}}|1|'''4v4:''' {{LeagueIconSmall/ugc|link=UGC 4v4 Season {{Current Seasons|ugc4s}}}}|}}<!--
 +
-->{{#ifeq:{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}|1|{{#ifeq:{{{ugc4s|}}}|1|<br />|}}'''6v6:''' {{#ifeq:{{{ugc6s|}}}|1|{{LeagueIconSmall/ugc|link=UGC 6v6 Season {{Current Seasons|ugc6s}}}}|}}{{#ifeq:{{{etf2l|}}}{{{etf2l6s|}}}|1|{{LeagueIconSmall/etf2l|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}}}|}}{{#ifeq:{{{esea|}}}{{{esea6s|}}}|1|{{LeagueIconSmall/esea|link=ESEA-I Season {{Current Seasons|esea}}}}|}}{{#ifeq:{{{ozf|}}}{{{ozf6s|}}}|1|{{LeagueIconSmall/ozf|link=OWL {{Current Seasons|ozf}}}}|}}|}}<!--
 +
-->{{#ifeq:{{{ugc|}}}{{{ugchl|}}}{{{etf2lhl|}}}|1|{{#ifeq:{{{ugc4s|}}}{{{ugc6s|}}}{{{etf2l|}}}{{{etf2l6s|}}}{{{esea|}}}{{{esea6s|}}}{{{ozf|}}}{{{ozf6s|}}}|1|<br />|}}'''Highlander:''' {{#ifeq:{{{ugc|}}}{{{ugchl|}}}|1|{{LeagueIconSmall/ugc|link=UGC Highlander Season {{Current Seasons|ugchl}}}}|}}{{#ifeq:{{{etf2lhl|}}}|1|{{LeagueIconSmall/etf2l|link=ETF2L Highlander Season {{Current Seasons|etf2lhl}}}}|}}|}}
 +
}}<!--
 +
--></div>
 +
</div>
 +
}}<!--
 +
 +
Footnotes
 +
 +
-->{{#if:{{{footnotes|}}}|
 +
<div>
 +
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 +
</div>
 +
}}<!--
 +
 +
Adbox
 
-->
 
-->
 +
</div>
 +
<htmlet>infobox</htmlet>
 +
</div>
 +
<!--
 +
 +
Categories
 +
 +
{{#ifeq:{{NAMESPACE}}||
 +
-->[[Category:Maps]]<!--
 +
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Revision as of 03:16, 17 December 2015

(view - edit) Documentation

[e][h]30px NewInfobox Map
Map Information
{{#if:|
Current Version:
{{#if:|[[File:Downloadicon.png|12px|link= |}}
}}
Map Type:
{{#if|
}}
Competitive Information
Popularity:
Staple

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