Template:Infobox map: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) No edit summary |
TheOnlyZac (talk | contribs) (Added displaytitle using filename parameter, moved templatedata to doc) |
||
Line 15: | Line 15: | ||
| data2= {{{episode|}}} |
| data2= {{{episode|}}} |
||
| label3= File Name |
| label3= File Name |
||
| data3= {{{filename|}}} |
| data3= {{{filename|}}}<includeonly>{{DISPLAYTITLE:{{{filename|}}}}}</includeonly> |
||
| label4 = Map ID |
| label4 = Map ID |
||
| data4 = {{{id|}}} |
| data4 = {{{id|}}} |
||
Line 28: | Line 28: | ||
}} |
}} |
||
{{Documentation}} |
{{Documentation}} |
||
⚫ | |||
{{TemplateData header}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"width": {}, |
|||
"name": { |
|||
"type": "string" |
|||
}, |
|||
"image": { |
|||
"type": "wiki-file-name" |
|||
}, |
|||
"caption": { |
|||
"type": "string" |
|||
}, |
|||
"episode": { |
|||
"label": "episode name", |
|||
"example": "Tide of Terror", |
|||
"type": "string" |
|||
}, |
|||
"filename": { |
|||
"type": "string" |
|||
}, |
|||
"id": { |
|||
"label": "map id", |
|||
"type": "number" |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"name", |
|||
"image", |
|||
"caption", |
|||
"width", |
|||
"episode", |
|||
"filename", |
|||
"id" |
|||
], |
|||
"description": "An infobox template for game maps." |
|||
} |
|||
⚫ |
Revision as of 01:02, 9 August 2022
| label4 = Map ID | data4 = }} </includeonly>
Map | |
---|---|
Episode | Tide of Terror |
File Name | uw_exterior_boat |
Map ID | 101 |
An infobox for use on pages for maps and levels.
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Infobox map
An infobox template for game maps.
Parameter | Description | Type | Status | |
---|---|---|---|---|
infobox title | title | Text for the title of the infobox (default is page name)
| String | optional |
image | image | no description | File | optional |
caption | caption | no description | String | optional |
width | width | no description | Unknown | optional |
episode name | episode | no description
| String | optional |
filename | filename | no description | String | optional |
map id | id | no description | Number | optional |
name | name | Replaced by `title` parameter | String | deprecated |