Difference between revisions of "Template:Infobox map"

From comp.tf
Jump to navigation Jump to search
(Applying styles)
 
(52 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox"
+
<includeonly>{| 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|150px}}}]] |}}
+
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:{{{download|}}} |
 
{{!}} '''Download Link'''
 
{{!}} {{{download}}} | }}
 
|-
 
{{#if:{{{playstyle|}}} |
 
{{!}} '''Play Style'''
 
{{!}} {{{playstyle}}} | }}
 
|-
 
{{#if:{{{links|}}} |
 
! colspan=2 {{!}} Links
 
 
{{!}}-
 
{{!}}-
{{!}} colspan=2 {{!}} {{{links}}} |}}
+
|}}
|}
+
<!--
<noinclude>
+
 
==Usage==
+
 
 +
 
 +
 
 +
MAP INFORMATION
 +
 
 +
 
 +
 
 +
 
 +
-->! class="comptf-infobox-subtitle" colspan="2" | Map Information
 +
|- class="comptf-infobox-info"
 +
<!--
 +
 
 +
ALSO KNOWN AS
 +
 
 +
-->{{#if:{{{also_known_as|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Also known as'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{also_known_as|}}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
MAP TYPE
 +
 
 +
-->{{#if:{{{map_type|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Map type'''
 +
{{!}} class="comptf-infobox-body" {{!}} [[{{{map_type|}}}]]
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
STAGES
 +
 
 +
-->{{#if:{{{stages|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Stages'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{stages|}}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
CONTROL POINTS
 +
 
 +
-->{{#if:{{{control_points|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Control points'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{control_points|}}}
 +
{{!}}- 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|}}}|}}<!--
 +
-->{{#if:{{{developer6|}}}|<br />{{{developer6|}}}|}}<!--
 +
-->{{#if:{{{developer7|}}}|<br />{{{developer7|}}}|}}<!--
 +
-->{{#if:{{{developer8|}}}|<br />{{{developer8|}}}|}}<!--
 +
-->{{#if:{{{developer9|}}}|<br />{{{developer9|}}}|}}<!--
 +
-->{{#if:{{{developer10|}}}|<br />{{{developer10|}}}|}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
OFFICIAL MAP
 +
 
 +
-->{{#if:{{{official_map|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Official map'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{official_map|}}}
 +
{{!}}- {{#if:{{{download|}}}|class="comptf-infobox-info"|}}
 +
|}}
 +
<!--
 +
 
 +
DOWNLOAD
 +
 
 +
-->{{#if:{{{download|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Download'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{download|{{{download|}}}}}
 +
{{!}}-
 +
|}}
 +
<!--
 +
 
 +
 
 +
 
 +
 
 +
COMPETITIVE INFORMATION
 +
 
 +
 
 +
 
 +
 
 +
-->{{#if:{{{format|}}}{{{format1|}}}{{{in_rotation|}}}|
 +
! class="comptf-infobox-subtitle" colspan="2" {{!}} Competitive Information
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
FORMATS
 +
 
 +
-->{{#if:{{{format|}}}{{{format1|}}}|
 +
{{!}} class="comptf-infobox-header" {{!}} '''Format{{#if:{{{format2|}}}|s}}'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{{format|{{{format1|}}}}}}<!--
 +
-->{{#if:{{{format2|}}}, {{{format2|}}}}}<!--
 +
-->{{#if:{{{format3|}}}, {{{format3|}}}}}<!--
 +
-->{{#if:{{{format4|}}}, {{{format4|}}}}}<!--
 +
-->{{#if:{{{format5|}}}, {{{format5|}}}}}
 +
{{!}}- class="comptf-infobox-info"
 +
|}}
 +
<!--
 +
 
 +
IN ROTATION
  
*Just copy this code below to the page and edit the values after the "="
+
-->{{#if:{{{in_rotation|}}}|
**'''Important:''' If you don't know a value just let it be with a null value (blank) or delete the line.
+
{{!}} class="comptf-infobox-header" {{!}} '''In rotation'''
**Please input current version in full and type everything carefully as it will be linked automatically.
+
{{!}} class="comptf-infobox-body" {{!}} {{{in_rotation|}}}
*After the code you can write and format text as you normally would to expand the rest of the content.
+
{{!}}- class="comptf-infobox-info"
<pre>
+
|}}
{{Map infobox
+
|}</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
| mapname = Badlands
 
| image = badlands.jpg
 
| maptype = Control Point
 
| currentversion = cp_badlands
 
| developer = Valve
 
| download = default map
 
| playstyle = Fast
 
| links =
 
}}
 

Latest revision as of 07:08, 2 October 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