Template:Newbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- This is the actual template parameters --> | <!-- This is the actual template parameters --> | ||
<includeonly> | <includeonly>{{Infobox | ||
{{Infobox | |||
| bodyclass = hrecipe adr | | bodyclass = hrecipe adr | ||
| above | | title = {{{title|}}} | ||
| | | above = {{{above|}}} | ||
| subheader = {{{subheader|}}} | |||
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }} | | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }} | ||
| | | header1 = {{{header|}}} | ||
}}</includeonly> | |||
| | |||
}} | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
Line 23: | Line 15: | ||
{ | { | ||
"params": { | "params": { | ||
" | "title": { | ||
"aliases": [ | |||
"heading" | |||
], | |||
"label": "Title", | |||
"description": "Displayed at the top of your Infobox", | |||
"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", | |||
"suggested": true | |||
}, | |||
"image": {}, | "image": {}, | ||
"image_size": {}, | "image_size": {}, | ||
"image_alt": {}, | "image_alt": {}, | ||
"alt | "alt": {} | ||
}, | }, | ||
"description": "Test Template to do tests", | "description": "Test Template to do tests", | ||
Line 34: | 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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title heading | Displayed at the top of your Infobox
| String | required |
Box title | above | Big letters in the Box
| String | suggested |
Subheader | subheader subtitle | Displayed as the first element in the box
| String | suggested |
Header | header | Header of the content section
| String | suggested |
image | image | no description | Unknown | optional |
image_size | image_size | no description | Unknown | optional |
image_alt | image_alt | no description | Unknown | optional |
alt | alt | no description | Unknown | optional |