Template:Newbox: Difference between revisions

From Bastion of Hestia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
{
{
"params": {
"params": {
"name": {},
"image": {},
"image_size": {},
"image_alt": {},
"alt": {},
"caption": {},
"title": {
"title": {
"aliases": [
"aliases": [
Line 31: Line 25:
"autovalue": "",
"autovalue": "",
"required": true
"required": true
},
"subheader": {
"aliases": [
"subtitle"
],
"label": "Subheader",
"description": "Displayed as the first element in the box",
"example": "Subheader",
"type": "string",
"default": "Subheader",
"suggested": true
},
"header": {
"label": "Header",
"description": "Header of the content section",
"example": "Header",
"type": "string",
"default": "Header",
"suggested": true
}
}
},
},
Line 40: Line 53:
"paramOrder": [
"paramOrder": [
"title",
"title",
"name",
"header",
"image",
"subheader"
"image_size",
"image_alt",
"alt",
"caption"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 02:56, 28 March 2022



Test Template to do tests

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle heading

Displayed at the top of your Infobox

Default
Title
Example
Ravi-Hyral
Auto value
Stringrequired
Headerheader

Header of the content section

Default
Header
Example
Header
Stringsuggested
Subheadersubheader subtitle

Displayed as the first element in the box

Default
Subheader
Example
Subheader
Stringsuggested