Difference between revisions of "Template:NewInfobox Map"

From comp.tf
Jump to navigation Jump to search
m
m
Line 59: Line 59:
 
   |{{{maptype|}}} = [[{{{maptype|}}}]]
 
   |{{{maptype|}}} = [[{{{maptype|}}}]]
 
}}</div>
 
}}</div>
 +
</div>
 +
}}<!--
 +
 +
Latest Version
 +
 +
-->{{#if:{{{latestver|}}}{{{download|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Latest Version:&#32;</div>
 +
<div class="infobox-cell-2">{{#if:{{{latestver|}}}|<small><code><font style="font-family:Arial">{{{latestver|}}}</font></code></small>}} {{#if:{{{download|}}}|[[File:DownloadIcon.png|16px|Download Link|link={{{download|}}}]]}}</div>
 +
</div>
 +
}}<!--Official Map?
 +
 +
-->{{#if:{{{official|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Official Map?</div>
 +
<div class="infobox-cell-2">{{#ifeq:{{{official|}}}|yes|Yes}}{{#ifeq:{{{official|}}}|no|No}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 77: Line 93:
 
-->{{#if:{{{creator9|}}}|<br />{{#if:{{{creator9steam|}}}|[http://steamcommunity.com/profiles/{{{creator9steam|}}} {{{creator9|}}}]|{{{creator9|}}}}}}}<!--
 
-->{{#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>
 
-->{{#if:{{{creator10|}}}|<br />{{#if:{{{creator10steam|}}}|[http://steamcommunity.com/profiles/{{{creator10steam|}}} {{{creator10|}}}]|{{{creator10|}}}}}}}</div>
</div>
 
}}<!--
 
 
Latest Version
 
 
-->{{#if:{{{latestver|}}}{{{download|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Latest Version:&#32;</div>
 
<div class="infobox-cell-2">{{#if:{{{latestver|}}}|<small><code><font style="font-family:Arial">{{{latestver|}}}</font></code></small>}} {{#if:{{{download|}}}|[[File:DownloadIcon.png|16px|Download Link|link={{{download|}}}]]}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 98: Line 105:
 
}}<!--
 
}}<!--
  
Official Map?
+
Steam Workshop
  
-->{{#if:{{{official|}}}|
+
-->{{#if:{{{workshop|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Official Map?</div>
+
<div class="infobox-cell-2 infobox-description">Steam Workshop:</div>
<div class="infobox-cell-2">{{#ifeq:{{{official|}}}|yes|Yes}}{{#ifeq:{{{official|}}}|no|No}}</div>
+
<div class="infobox-cell-2">{{#if:{{{workshop|}}}|[[File:Steam Logo.png|20px|Steam Workshop|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
-->{{#if:{{{gamemode1|}}}{{{popularity|}}}|
+
-->{{#if:{{{gamemode1|}}}{{{popularity|}}}{{{lpleague|}}}{{{lpseason|}}}{{{lpdate|}}}|
 
<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 120:
 
}}<!--
 
}}<!--
  
Primary Game Mode
+
Predominant Game Mode
  
 
-->{{#if:{{{gamemode1|}}}|
 
-->{{#if:{{{gamemode1|}}}|
Line 140: Line 147:
 
}}<!--
 
}}<!--
  
Links
+
Popularity
  
 
-->{{#if:{{{popularity|}}}|
 
-->{{#if:{{{popularity|}}}|
Line 149: Line 156:
 
}}<!--
 
}}<!--
  
In Active Rotation:
+
In League Rotations:
  
 
-->
 
-->
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">In Active Rotations:</div>
+
<div class="infobox-cell-2 infobox-description">In League Rotations:</div>
 
<div class="infobox-cell-2">{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<div style="width:24px; display:inline-block;">4v4:</div> [[File:UGC-Icon2.png|20px|link=UGC 4v4 Season {{Current Seasons|ugc4s}}]]}}<!--
 
<div class="infobox-cell-2">{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<div style="width:24px; display:inline-block;">4v4:</div> [[File:UGC-Icon2.png|20px|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|{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<br />}}<div style="width:24px; display:inline-block;">6v6:</div>}}{{#ifeq:{{Current Rotations/ugc6s|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|20px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}{{#ifeq:{{Current Rotations/etf2l6s|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|20px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}{{#ifeq:{{Current Rotations/esea6s|{{PAGENAME}}}}|1|&#32;[[File:EseaLogo.png|20px|link=ESEA Season {{Current Seasons|esea6s}}]]}}{{#ifeq:{{Current Rotations/ozf6s|{{PAGENAME}}}}|1|&#32;[[File:Ozfortress icon.png|20px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}<!--
 
-->{{#ifeq:{{#expr:{{Current Rotations/ugc6s|{{PAGENAME}}}}+{{Current Rotations/etf2l6s|{{PAGENAME}}}}+{{Current Rotations/esea6s|{{PAGENAME}}}}+{{Current Rotations/ozf6s|{{PAGENAME}}}}>0}}|1|{{#ifeq:{{Current Rotations/ugc4s|{{PAGENAME}}}}|1|<br />}}<div style="width:24px; display:inline-block;">6v6:</div>}}{{#ifeq:{{Current Rotations/ugc6s|{{PAGENAME}}}}|1|&#32;[[File:UGC-Icon2.png|20px|link=UGC 6v6 Season {{Current Seasons|ugc6s}}]]}}{{#ifeq:{{Current Rotations/etf2l6s|{{PAGENAME}}}}|1|&#32;[[File:ETF2L-Icon2.png|20px|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}]]}}{{#ifeq:{{Current Rotations/esea6s|{{PAGENAME}}}}|1|&#32;[[File:EseaLogo.png|20px|link=ESEA Season {{Current Seasons|esea6s}}]]}}{{#ifeq:{{Current Rotations/ozf6s|{{PAGENAME}}}}|1|&#32;[[File:Ozfortress icon.png|20px|link=ozfortress Season {{Current Seasons|ozf6s}}]]}}<!--
Line 161: Line 168:
 
<!--
 
<!--
  
-->{{#if:{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}|
+
Last Played
<div>
 
<div class="infobox-header infobox-header-2">Links</div>
 
</div>
 
}}<!--
 
 
 
Links
 
  
-->{{#if:{{{workshop|}}}{{{tf2maps|}}}{{{tftv|}}}|
+
-->{{#if:{{{lpleague|}}}{{{lpseason|}}}{{{lpdate|}}}|
 
<div>
 
<div>
<div class="infobox-center infobox-icons">{{#if:{{{workshop|}}}|[[File:Steam Logo.png|32px|Steam Workshop|link=http://steamcommunity.com/sharedfiles/filedetails/?id={{{workshop|}}}]]}}{{#if:{{{tf2maps|}}}|[[File:TF2Maps.net Logo.png|32px|TF2Maps.net|link=http://tf2maps.net/threads/{{{tf2maps|}}}]]}}{{#if:{{{tftv|}}}|[[File:TeamFortressTV Icon2.png|32px|TeamfortressTV|link=http://www.teamfortress.tv/{{{tftv|}}}]]}}</div>
+
<div class="infobox-cell-2 infobox-description">Last Played:</div>
 +
<div class="infobox-cell-2">{{#ifeq:{{{lpleague|}}}|ugc4s|[[UGC 4v4 Season {{{lpseason|}}}|[[File:UGC-Icon2.png|20px]] 4v4 Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|ugc6s|[[UGC 6v6 Season {{{lpseason|}}}|[[File:UGC-Icon2.png|20px]] 6v6 Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|etf2l6s|[[ETF2L 6v6 Season {{{lpseason|}}}|[[File:ETF2L-Icon2.png|20px]] 6v6 Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|esea6s|[[ESEA Season {{{lpseason|}}}|[[File:EseaLogo.png|20px]] 6v6 Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|ozf6s|[[ozfortress Season {{{lpseason|}}}|[[File:Ozfortress icon.png|20px]] 6v6 Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|ugchl|[[UGC HL Season {{{lpseason|}}}|[[File:UGC-Icon2.png|20px]] HL Season {{{lpseason|}}}]]}}{{#ifeq:{{{lpleague|}}}|etf2lhl|[[ETF2L Highlander Season {{{lpseason|}}}|[[File:ETF2L-Icon2.png|20px]] HL Season {{{lpseason|}}}]]}} ({{{lpdate|}}})</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--

Revision as of 08:15, 12 April 2016

(view - edit) Documentation

[e][h]NewInfobox Map
Badlands.jpg
Map Information
Map Type:
Latest Version:
Download Link
Official Map?
Competitive Information
Primary Game Modes:
Popularity:
staple
In League Rotations:

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