Difference between revisions of "Template:NewInfobox Map"

From comp.tf
Jump to navigation Jump to search
m
m
Line 23: Line 23:
 
}}<!--
 
}}<!--
  
-->{{#if:{{{maptype|}}}{{{latestver|}}}{{{download|}}}{{{official|}}}{{{creator1|}}}|
+
-->{{#if:{{{maptype|}}}{{{creator1|}}}{{{latestver|}}}{{{download|}}}{{{lastupdate|}}}{{{official|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
 
<div class="infobox-header infobox-header-2">Map Information</div>
Line 62: Line 62:
 
}}<!--
 
}}<!--
  
Status
+
Creator/Creators
  
-->{{#if:{{{official|}}}|
+
-->{{#if:{{{creator1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Official Map?</div>
+
<div class="infobox-cell-2 infobox-description">Creator{{#if:{{{creator2|}}}|s}}:</div>
<div class="infobox-cell-2">{{#ifeq:{{{official|}}}|1|[[File:CorrectIcon.png|x16px|link=]]|[[File:IncorrectIcon.png|x20px|link=]]}}</div>
+
<div class="infobox-cell-2">{{#if:{{{creator1|}}}|{{#if:{{{creator1steam|}}}|[http://steamcommunity.com/profiles/{{{creator1steam|}}} {{{creator1|}}}]|{{{creator1|}}}}}}}{{#ifeq:{{{creator1|}}}|Valve|[[Category:Valve-made Maps]]}}<!--
 +
-->{{#if:{{{creator2|}}}|<br />{{#if:{{{creator2steam|}}}|[http://steamcommunity.com/profiles/{{{creator2steam|}}} {{{creator2|}}}]|{{{creator2|}}}}}}}<!--
 +
-->{{#if:{{{creator3|}}}|<br />{{#if:{{{creator3steam|}}}|[http://steamcommunity.com/profiles/{{{creator3steam|}}} {{{creator3|}}}]|{{{creator3|}}}}}}}<!--
 +
-->{{#if:{{{creator4|}}}|<br />{{#if:{{{creator4steam|}}}|[http://steamcommunity.com/profiles/{{{creator4steam|}}} {{{creator4|}}}]|{{{creator4|}}}}}}}<!--
 +
-->{{#if:{{{creator5|}}}|<br />{{#if:{{{creator5steam|}}}|[http://steamcommunity.com/profiles/{{{creator5steam|}}} {{{creator5|}}}]|{{{creator5|}}}}}}}<!--
 +
-->{{#if:{{{creator6|}}}|<br />{{#if:{{{creator6steam|}}}|[http://steamcommunity.com/profiles/{{{creator6steam|}}} {{{creator6|}}}]|{{{creator6|}}}}}}}<!--
 +
-->{{#if:{{{creator7|}}}|<br />{{#if:{{{creator7steam|}}}|[http://steamcommunity.com/profiles/{{{creator7steam|}}} {{{creator7|}}}]|{{{creator7|}}}}}}}<!--
 +
-->{{#if:{{{creator8|}}}|<br />{{#if:{{{creator8steam|}}}|[http://steamcommunity.com/profiles/{{{creator8steam|}}} {{{creator8|}}}]|{{{creator8|}}}}}}}<!--
 +
-->{{#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>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 76: Line 85:
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Latest Version:&#32;</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|}}}|&#32;[[File:DownloadIcon.png|16px|Download Link|link={{{download|}}}]]}}}}</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>
 
}}<!--
 
}}<!--
  
Download
+
Last Updated
  
-->{{#if:|
+
-->{{#if:{{{lastupdate|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Download:</div>
+
<div class="infobox-cell-2 infobox-description">Last Updated:</div>
<div class="infobox-cell-2"><span style="display:hidden"> </span></div>
+
<div class="infobox-cell-2">{{{lastupdate|}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Creator/Creators
+
Official Map?
  
-->{{#if:{{{creator1|}}}|
+
-->{{#if:{{{official|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Creator{{#if:{{{creator2|}}}|s}}:</div>
+
<div class="infobox-cell-2 infobox-description">Official Map?</div>
<div class="infobox-cell-2">{{#if:{{{creator1|}}}|{{#if:{{{creator1steam|}}}|[http://steamcommunity.com/profiles/{{{creator1steam|}}} {{{creator1|}}}]|{{{creator1|}}}}}}}{{#ifeq:{{{creator1|}}}|Valve|[[Category:Valve-made Maps]]}}<!--
+
<div class="infobox-cell-2">{{#ifeq:{{{official|}}}|1|[[File:CorrectIcon.png|x16px|link=]]|[[File:IncorrectIcon.png|x20px|link=]]}}</div>
-->{{#if:{{{creator2|}}}|<br />{{#if:{{{creator2steam|}}}|[http://steamcommunity.com/profiles/{{{creator2steam|}}} {{{creator2|}}}]|{{{creator2|}}}}}}}<!--
 
-->{{#if:{{{creator3|}}}|<br />{{#if:{{{creator3steam|}}}|[http://steamcommunity.com/profiles/{{{creator3steam|}}} {{{creator3|}}}]|{{{creator3|}}}}}}}<!--
 
-->{{#if:{{{creator4|}}}|<br />{{#if:{{{creator4steam|}}}|[http://steamcommunity.com/profiles/{{{creator4steam|}}} {{{creator4|}}}]|{{{creator4|}}}}}}}<!--
 
-->{{#if:{{{creator5|}}}|<br />{{#if:{{{creator5steam|}}}|[http://steamcommunity.com/profiles/{{{creator5steam|}}} {{{creator5|}}}]|{{{creator5|}}}}}}}<!--
 
-->{{#if:{{{creator6|}}}|<br />{{#if:{{{creator6steam|}}}|[http://steamcommunity.com/profiles/{{{creator6steam|}}} {{{creator6|}}}]|{{{creator6|}}}}}}}<!--
 
-->{{#if:{{{creator7|}}}|<br />{{#if:{{{creator7steam|}}}|[http://steamcommunity.com/profiles/{{{creator7steam|}}} {{{creator7|}}}]|{{{creator7|}}}}}}}<!--
 
-->{{#if:{{{creator8|}}}|<br />{{#if:{{{creator8steam|}}}|[http://steamcommunity.com/profiles/{{{creator8steam|}}} {{{creator8|}}}]|{{{creator8|}}}}}}}<!--
 
-->{{#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>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
-->{{#if:{{{gamemode1|}}}{{{currentrotation|}}}|
+
-->{{#if:{{{gamemode1|}}}{{{popularity|}}}{{{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 113:
 
}}<!--
 
}}<!--
  
Primary Game Mode/Primary Game Modes
+
Primary Game Mode
  
 
-->{{#if:{{{gamemode1|}}}|
 
-->{{#if:{{{gamemode1|}}}|
Line 137: Line 137:
 
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
 
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
 
}}}}</div>
 
}}}}</div>
 +
</div>
 +
}}<!--
 +
 +
Links
 +
 +
-->{{#if:{{{popularity|}}}|
 +
<div>
 +
<div class="infobox-center infobox-icons">{{{popularity|}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--

Revision as of 02:17, 3 April 2016

(view - edit) Documentation

[e][h]NewInfobox Map
Badlands.jpg
Map Information
Map Type:
Latest Version:
Download Link
Official Map?
CorrectIcon.png
Competitive Information
Primary Game Mode:
staple
In Current Rotation:

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