Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox map: Difference between revisions

Template page
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>