Template:Infobox map: Difference between revisions
Jump to navigation
Jump to search
(docs) |
Ratboy Slim (talk | contribs) (Set infobox width explicitly as 320px) |
||
(19 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly> {| class="infobox" width=320px | ||
|+ | |||
! class="infobox-title" colspan="2" | {{{map-name-override|{{PAGENAME}}}}} | |||
{{#ifexist: File:{{{map-image|}}} | | |||
{{!}}- | |||
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{map-image|}}}|320px]] | }} | |||
|+ | |||
! colspan="2" | Basic Information | |||
{{#if: {{{game-type|}}} | | |||
{{!}}- | |||
{{!}} Map type {{!!}} [[{{{game-type|}}}]] {{#if: {{{four-team|}}} | ([[Four-Team]])}} {{#if: {{{medieval|}}} | ([[Medieval]])}} | |||
}} | |||
{{#if: {{{file-name|}}} | | |||
{{!}}- | |||
{{!}} File name {{!!}} <code>{{{file-name|}}}</code> | |||
}} | |||
{{#if: {{{release-date|}}} | | |||
{{!}}- | |||
{{!}} Release date {{!!}} {{{release-date|}}} | |||
</ | }} | ||
<noinclude> | {{#if: {{{developer|}}} | | ||
<templatedata> | {{!}}- | ||
{{!}} Developer(s) {{!!}} {{{developer|}}} | |||
}} | |||
{{#if: {{{link|}}} | | |||
{{!}}- | |||
{{!}} Link(s) {{!!}} {{{link|}}} | |||
}} | |||
|+ | |||
! colspan="2" | Map info | |||
{{#if: {{{map-environment|}}} | | |||
{{!}}- | |||
{{!}} Environment {{!!}} {{{map-environment|}}} | |||
}} | |||
{{#if: {{{map-setting|}}} | | |||
{{!}}- | |||
{{!}} Setting {{!!}} {{{map-setting|}}} | |||
}} | |||
|} | |||
{{#if: {{{no-category|}}} | | | |||
[[Category:Maps]] | |||
{{#if: {{{game-type|}}} | [[Category:{{{game-type}}} maps]]}} | |||
{{#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": { | ||
" | "map-name-override": { | ||
"description": "Title of the map.", | "description": "Title of the map.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"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 | ||
}, | }, | ||
" | "game-type": { | ||
"description": "Which gamemode(s) the map is.", | "description": "Which gamemode(s) the map is.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "four-team": { | ||
"description": " | "description": "Map is four-team", | ||
"type": "boolean" | |||
}, | |||
"medieval": { | |||
"description": "Map is in Medieval mode", | |||
"type": "boolean" | |||
}, | |||
"file-name": { | |||
"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" | ||
}, | }, | ||
" | "release-date": { | ||
"description": " | "description": "The date in which the map was released.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "map-environment": { | ||
"description": " | "description": "What environment is the map in.", | ||
"type": " | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "map-setting": { | ||
"description": " | "description": "What setting is the map in.", | ||
"type": " | "type": "string", | ||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 60: | Line 102: | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Infobox]] | |||
</noinclude> | </noinclude> |
Latest revision as of 04:08, 3 September 2023
Infobox for map pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
map-name-override | map-name-override | Title of the map. | String | optional |
map-image | map-image | In-game image of the map. | File | suggested |
game-type | game-type | Which gamemode(s) the map is. | String | suggested |
four-team | four-team | Map is four-team | Boolean | optional |
medieval | medieval | Map is in Medieval mode | Boolean | optional |
file-name | file-name | File name of the map (excluding the extension). | String | suggested |
developer | developer | Developer(s) of the map, whether person, company, or project. | String | suggested |
link | link | Link(s) to the map | String | optional |
release-date | release-date | The date in which the map was released. | String | suggested |
map-environment | map-environment | What environment is the map in. | String | suggested |
map-setting | map-setting | What setting is the map in. | String | suggested |