Template:Infobox map: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(Make parameters relevant to maps)
(docs)
Line 2: Line 2:
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
<table>{{#if:{{{gamemode|}}}|<tr>
     <th>Gamemode</th>
     <th>Gamemode</th>
     <td>{{{param1}}}</td>
     <td>{{{gamemode}}}</td>
</tr>}}{{#if:{{{gamemode|}}}|<tr>
</tr>}}{{#if:{{{theme|}}}|<tr>
     <th>Theme</th>
     <th>Theme</th>
     <td>{{{theme}}}</td>
     <td>{{{theme}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
</tr>}}{{#if:{{{developer|}}}|<tr>
     <th>Developer</th>
     <th>Developer</th>
     <td>{{{developer}}}</td>
     <td>{{{developer}}}</td>
</tr>}}{{#if:{{{param4|}}}|<tr>
</tr>}}{{#if:{{{date|}}}|<tr>
     <th>Release year</th>
     <th>Release year</th>
     <td>{{{date}}}</td>
     <td>{{{date}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
</tr>}}{{#if:{{{official|}}}|<tr>
     <th>Official</th>
     <th>Official</th>
     <td>{{{official}}}</td>
     <td>{{{official}}}</td>
</tr>}}</table>
</tr>}}</table>
</div>
</div>
<noinclude>
<templatedata>
{
"params": {
"title": {
"description": "Title of the map.",
"type": "string",
"required": true
},
"image": {
"description": "In-game image of the map.",
"type": "wiki-file-name",
"suggested": true
},
"gamemode": {
"description": "Which gamemode(s) the map is.",
"type": "string",
"suggested": true
},
"theme": {
"description": "How the map is stylized (snowy, alpine, industrial, etc.)",
"type": "string"
},
"developer": {
"description": "Creator of the map, whether person, company, or project.",
"type": "string",
"suggested": true
},
"date": {
"description": "The year in which the map was released.",
"type": "number",
"suggested": true
},
"official": {
"description": "Whether or not the map is official in TF2C.",
"type": "boolean"
}
},
"description": "Infobox for map pages."
}
</templatedata>
</noinclude>

Revision as of 02:49, 31 March 2022

Infobox map

Infobox for map pages.

Template parameters

ParameterDescriptionTypeStatus
titletitle

Title of the map.

Stringrequired
imageimage

In-game image of the map.

Filesuggested
gamemodegamemode

Which gamemode(s) the map is.

Stringsuggested
themetheme

How the map is stylized (snowy, alpine, industrial, etc.)

Stringoptional
developerdeveloper

Creator of the map, whether person, company, or project.

Stringsuggested
datedate

The year in which the map was released.

Numbersuggested
officialofficial

Whether or not the map is official in TF2C.

Booleanoptional