Difference between revisions of "Template:Infobox map"

From comp.tf
Jump to navigation Jump to search
m
Line 1: Line 1:
{| class="infobox"
+
<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{alias|{{PAGENAME}}}}}}}}}
 +
{| class="comptf-infobox" cellpadding="2"
 +
<!--
 +
 
 +
 
 +
 
 +
 
 +
TITLE
 +
 
 +
 
 +
 
 +
 
 +
-->! class="comptf-infobox-title" colspan=2 | {{{title|}}}
 
|-
 
|-
! colspan=2 | {{{mapname}}}
+
<!--
|-
+
 
| colspan=2 class="centered" | {{#if:{{{image|}}} | [[File:{{{image}}}{{!}}{{{imagesize|225px}}}]] |}}
+
IMAGE
|-
+
 
! colspan=2 | Basic Information
+
-->{{#if:{{{image|}}}|
|-
+
{{!}} style="padding:0" colspan="2" {{!}} [[File: {{{image}}} | 294px | center ]]
{{#if:{{{maptype|}}} |
+
{{!}}-
{{!}} style="width: 40%" {{!}} '''Map Type'''
+
|}}
{{!}} {{{maptype}}} |}}
+
<!--
|-
+
 
{{#if:{{{currentversion|}}} |
+
CAPTION
{{!}} '''Current Version'''
+
 
{{!}} {{{currentversion}}} | }}
+
-->{{#if:{{{caption|}}}|
|-
+
{{!}} colspan="2" style="font-size:11px; line-height:1.3; text-align:center" {{!}} {{{caption}}}
{{#if:{{{developer|}}} |
 
{{!}} '''Developer'''
 
{{!}} {{{developer}}} | }}
 
|-
 
{{#if:{{{default|}}} |
 
{{!}} '''Default map'''
 
{{!}} {{{default}}} | }}
 
|-
 
{{#if:{{{download|}}} |
 
{{!}} '''Download Link'''
 
{{!}} [[Image:Downloadicon.png|link={{{download}}}]] | }}
 
|-
 
{{#if:{{{extrainfo|}}} |
 
! colspan=2 {{!}} Extra Info
 
 
{{!}}-
 
{{!}}-
{{!}} colspan=2 {{!}} {{{extrainfo}}}
+
|}}
| {{!}} colspan=2 {{!}} }}
+
<!--
|}
+
 
<noinclude>
+
 
==Usage==
+
 
 +
 
 +
MAP INFORMATION
 +
 
 +
 
 +
 
 +
 
 +
-->! class="comptf-infobox-subtitle" colspan="2" | Map Information
 +
|- class="comptf-infobox-info"
 +
<!---
 +
 
 +
GAME MODE
 +
 
 +
-->{{#if:{{{game_mode|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Game Mode'''
 +
{{!}} class="comptf-infobox-body" {{!}} [[{{{game_mode|}}}]]
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
LATEST VERSION
 +
 
 +
-->{{#if:{{{latest_version|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Latest Version'''
 +
{{!}} class="comptf-infobox-body" {{!}} <code>{{{latest_version|}}}</code>
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
FIRST RELEASED
 +
 
 +
-->{{#if:{{{first_released|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''First Released'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{first_released|}}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
LAST UPDATED
 +
 
 +
-->{{#if:{{{last_updated|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Last Updated'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{last_updated|}}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
DEVELOPERS
 +
 
 +
-->{{#if:{{{developer|}}}{{{developer1|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Developer{{#if:{{{developer2|}}}|s|}}'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{developer|}}}{{{developer1|}}}<!--
 +
-->{{#if:{{{developer2|}}}|<br>{{{developer2|}}}|}}<!--
 +
-->{{#if:{{{developer3|}}}|<br>{{{developer3|}}}|}}<!--
 +
-->{{#if:{{{developer4|}}}|<br>{{{developer4|}}}|}}<!--
 +
-->{{#if:{{{developer5|}}}|<br>{{{developer5|}}}|}}<!--
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
PRO VERSION OF
 +
 
 +
-->{{#if:{{{pro_version_of|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Pro Version Of'''
 +
{{!}} class="comptf-infobox-body" {{!}} <code>{{{pro_version_of|}}}</code>
 +
{{!}}- class="comptf-infobox-info"
 +
|}}<!--
 +
 
 +
 
 +
 
 +
 
 +
LINKS
 +
 
  
*Just copy this code below to the page and edit the values after the "="
 
**'''Important:''' If you don't know a value just let it be with a null value (blank) or delete the line.
 
**Please input current version in full and type everything carefully as it will be linked automatically.
 
*After the code you can write and format text as you normally would to expand the rest of the content.
 
=== Example ===
 
<pre>
 
{{Map infobox
 
| mapname = Badlands
 
| image = cp_badlands.png
 
| maptype = Control Point
 
| currentversion = cp_badlands
 
| developer = Valve
 
| default = Yes
 
| download = http://comp.tf/
 
| extrainfo = test
 
}}
 
</pre>
 
===Will Yeld===
 
{{Map infobox
 
| mapname = Badlands
 
| image = cp_badlands.png
 
| maptype = Control Point
 
| currentversion = cp_badlands
 
| developer = Valve
 
| default = Yes
 
| download = http://comp.tf/
 
| extrainfo = test
 
}}
 
  
[[Category:Infoboxes]][[Category:Template]]
+
 
 +
-->{{#if: {{{tftv|}}}{{{logs|}}}{{{rgl|}}}{{{esea|}}}{{{etf2l|}}}{{{ozf|}}}{{{ozfold|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}{{{misc_links|}}}|
 +
! class="comptf-infobox-subtitle" colspan="2" {{!}} Links
 +
{{!}}-
 +
{{!}} class="comptf-infobox-icons" colspan="2" style="text-align:center; height:36px" {{!}}<!--
 +
--> {{#if:{{{download|}}}|[[File:Download icon.png|x24px|Download Link|link={{{download|}}}]]|}}<!--
 +
--> {{#if:{{{steam|}}}|[[File:Steam Logo.png|x24px|Steam Workshop Page|link={{{steam|}}}]]|}}<!--
 +
--> {{#if:{{{tf2maps|}}}|[[File:TF2Maps.net Logo.png|x24px|TF2Maps.net Forum Thread|link={{{tf2maps|}}}]]|}}<!--
 +
--> {{#if:{{{teamfortresstv|}}}|[[File:TeamFortressTV Icon2.png|x24px|TeamFortressTV Forum Thread|link={{{teamfortresstv|}}}]]|}}<!--
 +
--> {{#if:{{{official_wiki|}}}|[[File:Official Team Fortress Wiki Icon.png|x24px|Official Team Fortress Wiki Page|link={{{tf2wiki|}}}]]|}}<!--
 +
--> {{#if:{{{official_wiki_competitive|}}}|[[File:Official Team Fortress Wiki Icon (Competitive)5.png|x24px|Official Team Fortress Wiki Page (Competitive)|link={{{official_wiki_competitive|}}}]]|}}<!--
 +
-->{{#if:{{{misc_links|}}}|{{{misc_links|}}}|}}
 +
|}}
 +
|}</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>

Revision as of 11:01, 22 June 2022

(view - edit) Documentation

Parameters

Bold denotes compulsory parameter

  • Intro
    • title
    • image
    • caption
  • Map Information
    • also_known_as
    • map_type
    • stages
    • control_points
    • latest_version
    • first_released
    • last_updated
    • developer/developer1, developer2, ..., developer10
    • official_map
    • download
  • Competitive Information
    • format/format1, format2, ..., format5
    • in rotation