Template:Messagebox/doc: Difference between revisions
Add the examples in pre tags to show the wikitext |
Add Template Data |
||
| Line 112: | Line 112: | ||
[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions]] | ||
<templatedata> | |||
{ | |||
"params": { | |||
"type": { | |||
"label": "Type of box", | |||
"description": "Type determines the decoration of the message box", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"success", | |||
"warning", | |||
"failure", | |||
" restricted", | |||
"forbidden", | |||
"normal" | |||
], | |||
"default": "normal" | |||
}, | |||
"style": { | |||
"label": "CSS markup", | |||
"description": "Add CSS if desired. This will be passed to the \"style\" attribute of the containing div.", | |||
"example": "width:50%;", | |||
"type": "string" | |||
}, | |||
"text": { | |||
"label": "Your message", | |||
"description": "The text (and wiki markup) displayed in the message box.", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Messagebox is for creating call-outs of text in a bordered box. This visually distinguishes the text from other content on the page. There are multiple \"types\" that are predefined - basically red, yellow green.", | |||
"format": "block" | |||
} | |||
</templatedata> | |||