Template:Infobox map: Difference between revisions
Jump to navigation
Jump to search
Technochips (talk | contribs) 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.) |
Technochips (talk | contribs) (made the thing closer to both infobox_class and the tf2 wiki infobox) |
||
Line 1: | Line 1: | ||
{| class="infobox" align=right width=200px | |||
|+ | |||
! colspan="2" | {{#if: {{{map-name-override|}}} | {{{map-name-override|}}} | {{PAGENAME}}}} | |||
{{#ifexist: File:{{{map-image|}}}.png | [[File:{{{map-image|}}}.png]] | }} | |||
|+ | |||
! colspan="2" | Basic Information | |||
{{#if: {{{game-type|}}} | | |||
{{!}}- | |||
{{!}} Map type {{!!}} [[{{{game-type|}}}]] | |||
}} | |||
{{#if: {{{file-name|}}} | | |||
{{!}}- | |||
{{!}} File name {{!!}} <code>{{{file-name|}}}</code> | |||
}} | |||
{{#if: {{{release-date|}}} | | |||
{{!}}- | |||
{{!}} Release date {{!!}} {{{release-date|}}} | |||
}} | |||
{{#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": { | ||
" | "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 | ||
}, | }, | ||
" | "game-type": { | ||
"description": "Which gamemode(s) the map is.", | "description": "Which gamemode(s) the map is.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "file-name": { | ||
"description": " | "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 | |||
} | } | ||
}, | }, |
Revision as of 14:19, 14 April 2022
Infobox map | |
---|---|
Basic Information
|
|
Map info
|
Infobox for map pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
map-name-override | map-name-override | Title of the map. | String | required |
map-image | map-image | In-game image of the map. | File | suggested |
game-type | game-type | Which gamemode(s) the map is. | String | suggested |
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 |