Template:Infobox map/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Fixed cat links)
(Added title param to templatedata)
 
Line 8: Line 8:
"width": {},
"width": {},
"name": {
"name": {
"type": "string"
"type": "string",
"description": "Replaced by `title` parameter",
"deprecated": "Use `title` parameter instead"
},
},
"image": {
"image": {
Line 27: Line 29:
"label": "map id",
"label": "map id",
"type": "number"
"type": "number"
},
"title": {
"label": "infobox title",
"description": "Text for the title of the infobox (default is page name)",
"example": "The Swamp's Dark Center",
"type": "string"
}
}
},
},
"paramOrder": [
"paramOrder": [
"name",
"title",
"image",
"image",
"caption",
"caption",
Line 36: Line 44:
"episode",
"episode",
"filename",
"filename",
"id"
"id",
"name"
],
],
"description": "An infobox template for game maps."
"description": "An infobox template for game maps."

Latest revision as of 23:00, 16 August 2022

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.

Template parameters

ParameterDescriptionTypeStatus
infobox titletitle

Text for the title of the infobox (default is page name)

Example
The Swamp's Dark Center
Stringoptional
imageimage

no description

Fileoptional
captioncaption

no description

Stringoptional
widthwidth

no description

Unknownoptional
episode nameepisode

no description

Example
Tide of Terror
Stringoptional
filenamefilename

no description

Stringoptional
map idid

no description

Numberoptional
namename

Replaced by `title` parameter

Stringdeprecated