Template:Infobox object/doc: Difference between revisions

From Celeste Wiki
Jump to navigation Jump to search
Content deleted Content added
moved templatedata to documentation
 
objects/mechanics -> entities, cat, + nav argument
 
Line 4: Line 4:
"name": {
"name": {
"label": "Name",
"label": "Name",
"description": "The name of the object, displayed at the top of the infobox",
"description": "The name of the entity, displayed at the top of the infobox",
"example": "Pufferfish",
"example": "Pufferfish",
"type": "string",
"type": "string",
Line 13: Line 13:
"description": "The image displayed in the infobox (must be typed as a file link with square brackets)",
"description": "The image displayed in the infobox (must be typed as a file link with square brackets)",
"example": "[[File:Celeste_jellyfish.gif]]",
"example": "[[File:Celeste_jellyfish.gif]]",
"type": "wiki-file-name"
"type": "wiki-file-name",
"suggested": true
},
},
"caption": {
"caption": {
Line 19: Line 20:
"description": "The caption displayed below the image",
"description": "The caption displayed below the image",
"example": "A floating jellyfish",
"example": "A floating jellyfish",
"type": "string"
"type": "string",
"suggested": true
},
},
"othernames": {
"othernames": {
"label": "Other names",
"label": "Other names",
"description": "Alternate names for the object",
"description": "Alternate names for the entity",
"example": "Jelly, Glider",
"example": "Jelly, Glider",
"type": "string"
"type": "string",
"suggested": true
},
},
"mod": {
"mod": {
"label": "Mod",
"label": "Helper",
"description": "If applicable, the mod that this object is from",
"description": "If applicable, the mod that this entity is from",
"example": "Communal Helper",
"example": "Communal Helper",
"type": "string"
"type": "string",
"suggested": true
},
},
"found": {
"found": {
Line 37: Line 41:
"description": "A list of chapters using the {{ch}} template ",
"description": "A list of chapters using the {{ch}} template ",
"example": "{{ch|9}}",
"example": "{{ch|9}}",
"type": "string"
"type": "string",
"suggested": true
},
},
"list": {
"list": {
"label": "List link",
"label": "List link",
"description": "If used, this will make the \"list of objects\" page at the bottom link to the typed page title instead of Mechanics ",
"description": "If used, this will make the \"list of entities\" page at the bottom link to the typed page title instead of Entities",
"example": "Main Page",
"example": "Main Page",
"type": "string"
"type": "string"
},
"nav": {
"description": "If filled, removes the \"List of entities\" link",
"type": "boolean"
}
}
}
}
}
}
</templatedata>
</templatedata>
<includeonly>[[Category:Infobox templates]]</includeonly>

Latest revision as of 11:05, 12 July 2024

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the entity, displayed at the top of the infobox

Example
Pufferfish
Stringsuggested
Imageimage

The image displayed in the infobox (must be typed as a file link with square brackets)

Example
[[File:Celeste_jellyfish.gif]]
Filesuggested
Captioncaption

The caption displayed below the image

Example
A floating jellyfish
Stringsuggested
Other namesothernames

Alternate names for the entity

Example
Jelly, Glider
Stringsuggested
Helpermod

If applicable, the mod that this entity is from

Example
Communal Helper
Stringsuggested
Foundfound

A list of chapters using the {{ch}} template

Example
{{ch|9}}
Stringsuggested
List linklist

If used, this will make the "list of entities" page at the bottom link to the typed page title instead of Entities

Example
Main Page
Stringoptional
navnav

If filled, removes the "List of entities" link

Booleanoptional