Template:Infobox map: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(fixed new line)
Tag: Reverted
(Set infobox width explicitly as 320px)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly> {| class="infobox" align=right
<includeonly> {| class="infobox" width=320px
|+
|+
! class="infobox-title" colspan="2" | {{#if: {{{map-name-override|}}} | {{{map-name-override|}}} | {{PAGENAME}}}}
! class="infobox-title" colspan="2" | {{{map-name-override|{{PAGENAME}}}}}
{{#ifexist: File:{{{map-image|}}} |
{{#ifexist: File:{{{map-image|}}} |
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{map-image|}}}|300px]] | }}
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{map-image|}}}|320px]] | }}
|+
|+
! colspan="2" | Basic Information
! colspan="2" | Basic Information
{{#if: {{{game-type|}}} |
{{#if: {{{game-type|}}} |
{{!}}-
{{!}}-
{{!}} Map type {{!!}} [[{{{game-type|}}}]]
{{!}} Map type {{!!}} [[{{{game-type|}}}]] {{#if: {{{four-team|}}} | ([[Four-Team]])}} {{#if: {{{medieval|}}} | ([[Medieval]])}}
}}{{#if: {{{file-name|}}} |
}}
{{#if: {{{file-name|}}} |
{{!}}-
{{!}}-
{{!}} File name {{!!}} <code>{{{file-name|}}}</code>
{{!}} File name {{!!}} <code>{{{file-name|}}}</code>
}}{{#if: {{{release-date|}}} |
}}
{{#if: {{{release-date|}}} |
{{!}}-
{{!}}-
{{!}} Release date {{!!}} {{{release-date|}}}
{{!}} Release date {{!!}} {{{release-date|}}}
}}{{#if: {{{developer|}}} |
}}
{{#if: {{{developer|}}} |
{{!}}-
{{!}}-
{{!}} Developer(s) {{!!}} {{{developer|}}}
{{!}} Developer(s) {{!!}} {{{developer|}}}
}}{{#if: {{{link|}}} |
}}
{{#if: {{{link|}}} |
{{!}}-
{{!}}-
{{!}} Link(s) {{!!}} {{{link|}}}
{{!}} Link(s) {{!!}} {{{link|}}}
Line 28: Line 32:
{{!}}-
{{!}}-
{{!}} Environment {{!!}} {{{map-environment|}}}
{{!}} Environment {{!!}} {{{map-environment|}}}
}}{{#if: {{{map-setting|}}} |
}}
{{#if: {{{map-setting|}}} |
{{!}}-
{{!}}-
{{!}} Setting {{!!}} {{{map-setting|}}}
{{!}} Setting {{!!}} {{{map-setting|}}}
}}
}}
|}
|}
{{#if: {{{no-category|}}} | |
[[Category:Maps]]
[[Category:Maps]]
{{#if: {{{game-type|}}} | [[Category:{{{game-type|}}} maps]]}} </includeonly>
{{#if: {{{game-type|}}} | [[Category:{{{game-type}}} maps]]}}
<noinclude><templatedata>
{{#if: {{{medieval|}}} | [[Category:Medieval maps]]}}
{{#if: {{{four-team|}}} | [[Category:Four-Team maps]] {{#if: {{{game-type|}}} | [[Category:{{{game-type}}} (Four-Team) maps]]}}}}
}} </includeonly>
<noinclude> <templatedata>
{
{
"params": {
"params": {
Line 51: Line 60:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"four-team": {
"description": "Map is four-team",
"type": "boolean"
},
"medieval": {
"description": "Map is in Medieval mode",
"type": "boolean"
},
},
"file-name": {
"file-name": {

Latest revision as of 04:08, 3 September 2023

Infobox for map pages.

Template parameters

ParameterDescriptionTypeStatus
map-name-overridemap-name-override

Title of the map.

Stringoptional
map-imagemap-image

In-game image of the map.

Filesuggested
game-typegame-type

Which gamemode(s) the map is.

Stringsuggested
four-teamfour-team

Map is four-team

Booleanoptional
medievalmedieval

Map is in Medieval mode

Booleanoptional
file-namefile-name

File name of the map (excluding the extension).

Stringsuggested
developerdeveloper

Developer(s) of the map, whether person, company, or project.

Stringsuggested
linklink

Link(s) to the map

Stringoptional
release-daterelease-date

The date in which the map was released.

Stringsuggested
map-environmentmap-environment

What environment is the map in.

Stringsuggested
map-settingmap-setting

What setting is the map in.

Stringsuggested