Template:Infobox map: Difference between revisions
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:{{{ | <table>{{#if:{{{gamemode|}}}|<tr> | ||
<th>Gamemode</th> | <th>Gamemode</th> | ||
<td>{{{ | <td>{{{gamemode}}}</td> | ||
</tr>}}{{#if:{{{ | </tr>}}{{#if:{{{theme|}}}|<tr> | ||
<th>Theme</th> | <th>Theme</th> | ||
<td>{{{theme}}}</td> | <td>{{{theme}}}</td> | ||
</tr>}}{{#if:{{{ | </tr>}}{{#if:{{{developer|}}}|<tr> | ||
<th>Developer</th> | <th>Developer</th> | ||
<td>{{{developer}}}</td> | <td>{{{developer}}}</td> | ||
</tr>}}{{#if:{{{ | </tr>}}{{#if:{{{date|}}}|<tr> | ||
<th>Release year</th> | <th>Release year</th> | ||
<td>{{{date}}}</td> | <td>{{{date}}}</td> | ||
</tr>}}{{#if:{{{ | </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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Title of the map. | String | required |
image | image | In-game image of the map. | File | suggested |
gamemode | gamemode | Which gamemode(s) the map is. | String | suggested |
theme | theme | How the map is stylized (snowy, alpine, industrial, etc.) | String | optional |
developer | developer | Creator of the map, whether person, company, or project. | String | suggested |
date | date | The year in which the map was released. | Number | suggested |
official | official | Whether or not the map is official in TF2C. | Boolean | optional |