Template:Newbox: Difference between revisions

From Bastion of Hestia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Infobox|infobox}}
<!-- This is the actual template parameters -->
<includeonly>{{Infobox
| bodyclass = hrecipe adr
 
| title = {{{title|}}}
| above = {{{above|}}}
| subheader = {{{subheader|}}}
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
 
| header1 = {{{header|}}}
}}</includeonly>
 
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"test parameter": {
"title": {
"aliases": [
"aliases": [
"testalias"
"heading"
],
],
"label": "testlabel",
"label": "Title",
"description": "testdescription",
"description": "Displayed at the top of your Infobox",
"example": "testexample",
"example": "Ravi-Hyral",
"type": "string",
"default": "Title",
"autovalue": "",
"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
},
"above": {
"label": "Box title",
"description": "Big letters in the Box",
"example": "Box title",
"type": "string",
"type": "string",
"default": "testdefault",
"suggested": true
"suggested": true
}
},
"image": {},
"image_size": {},
"image_alt": {},
"alt": {}
},
},
"description": "Test Template to do tests",
"description": "Test Template to do tests",
Line 20: Line 62:
"maps": {
"maps": {
"testmap": {}
"testmap": {}
}
},
"paramOrder": [
"title",
"above",
"subheader",
"header",
"image",
"image_size",
"image_alt",
"alt"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 03:36, 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
Box titleabove

Big letters in the Box

Example
Box title
Stringsuggested
Subheadersubheader subtitle

Displayed as the first element in the box

Default
Subheader
Example
Subheader
Stringsuggested
Headerheader

Header of the content section

Default
Header
Example
Header
Stringsuggested
imageimage

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
altalt

no description

Unknownoptional