Template:Infobox map: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
m (Technochips moved page Template:MapInfobox to Template:Infobox map without leaving a redirect: sorry had this name up on the other wiki i think.)
(made the thing closer to both infobox_class and the tf2 wiki infobox)
Line 1: Line 1:
<div class="infobox">
{| class="infobox" align=right width=200px
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
|+
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
! colspan="2" | {{#if: {{{map-name-override|}}} | {{{map-name-override|}}} | {{PAGENAME}}}}
<table>{{#if:{{{gamemode|}}}|<tr>
{{#ifexist: File:{{{map-image|}}}.png | [[File:{{{map-image|}}}.png]] | }}
    <th>Gamemode</th>
|+
    <td>{{{gamemode}}}</td>
! colspan="2" | Basic Information
</tr>}}{{#if:{{{theme|}}}|<tr>
{{#if: {{{game-type|}}} |
    <th>Theme</th>
{{!}}-
    <td>{{{theme}}}</td>
{{!}} Map type {{!!}} [[{{{game-type|}}}]]
</tr>}}{{#if:{{{developer|}}}|<tr>
}}
    <th>Developer</th>
{{#if: {{{file-name|}}} |
    <td>{{{developer}}}</td>
{{!}}-
</tr>}}{{#if:{{{date|}}}|<tr>
{{!}} File name {{!!}} <code>{{{file-name|}}}</code>
    <th>Release year</th>
}}
    <td>{{{date}}}</td>
{{#if: {{{release-date|}}} |
</tr>}}{{#if:{{{official|}}}|<tr>
{{!}}-
    <th>Official</th>
{{!}} Release date {{!!}} {{{release-date|}}}
    <td>{{{official}}}</td>
}}
</tr>}}</table>
{{#if: {{{developer|}}} |
{{!}}-
{{!}} Developer(s) {{!!}} {{{developer|}}}
}}
{{#if: {{{link|}}} |
{{!}}-
{{!}} Link(s) {{!!}} {{{link|}}}
}}
|+
! colspan="2" | Map info
{{#if: {{{map-environment|}}} |
{{!}}-
{{!}} Environment {{!!}} {{{map-environment|}}}
}}
{{#if: {{{map-setting|}}} |
{{!}}-
{{!}} Setting {{!!}} {{{map-setting|}}}
}}
|}
</div>
</div>
<noinclude>
<noinclude>
Line 23: Line 41:
{
{
"params": {
"params": {
"title": {
"map-name-override": {
"description": "Title of the map.",
"description": "Title of the map.",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"image": {
"map-image": {
"description": "In-game image of the map.",
"description": "In-game image of the map.",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
},
},
"gamemode": {
"game-type": {
"description": "Which gamemode(s) the map is.",
"description": "Which gamemode(s) the map is.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"theme": {
"file-name": {
"description": "How the map is stylized (snowy, alpine, industrial, etc.)",
"description": "File name of the map (excluding the extension).",
"type": "string",
"suggested": true
},
"developer": {
"description": "Developer(s) of the map, whether person, company, or project.",
"type": "string",
"suggested": true
},
"link": {
"description": "Link(s) to the map",
"type": "string"
"type": "string"
},
},
"developer": {
"release-date": {
"description": "Creator of the map, whether person, company, or project.",
"description": "The date in which the map was released.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"date": {
"map-environment": {
"description": "The year in which the map was released.",
"description": "What environment is the map in.",
"type": "number",
"type": "string",
"suggested": true
"suggested": true
},
},
"official": {
"map-setting": {
"description": "Whether or not the map is official in TF2C.",
"description": "What setting is the map in.",
"type": "boolean"
"type": "string",
"suggested": true
}
}
},
},

Revision as of 14:19, 14 April 2022

Infobox map
Basic Information



Map info


Infobox for map pages.

Template parameters

ParameterDescriptionTypeStatus
map-name-overridemap-name-override

Title of the map.

Stringrequired
map-imagemap-image

In-game image of the map.

Filesuggested
game-typegame-type

Which gamemode(s) the map is.

Stringsuggested
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