Template:OOO-Notice: Difference between revisions
mNo edit summary |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
== OOO Notice Template == | == OOO Notice Template == | ||
=== Usage === | === Usage === | ||
<syntaxhighlight lang="wiki"> | |||
{{OOO-Notice | {{OOO-Notice | ||
| type = warning | | type = warning | ||
| title = | | title = Here Goes Your Title | ||
| text = Your | | text = Your message will go here here. | ||
}} | }} | ||
</syntaxhighlight> | |||
Change type to what you need, samples below. | |||
You can use: info , success, warning, danger | |||
=== | ---- | ||
=== Available Types === | |||
{{OOO-Notice | |||
| type = info | |||
| title = Information title example | |||
| text = This is a general informational notice. <br><br> Type used is info | |||
}} | |||
{{OOO-Notice | |||
| type = warning | |||
| title = Warning title example | |||
| text = This highlights something important. <br><br> Type used is warning | |||
}} | |||
{{OOO-Notice | |||
| type = success | |||
| title = Success title example | |||
| text = Something completed successfully. <br><br> Type used is success. | |||
}} | |||
{{OOO-Notice | |||
| type = danger | |||
| title = Critical title example | |||
| text = This indicates a serious issue.<br><br> Type used is Danger. | |||
}} | |||
<templatedata> | |||
{ | |||
"description": "Creates a branded notice box styled for the Out of Ore Wiki.", | |||
"params": { | |||
"type": { | |||
"label": "Type", | |||
"description": "Visual style of the notice.", | |||
"type": "string", | |||
"default": "info", | |||
"suggestedvalues": [ | |||
"info", | |||
"success", | |||
"warning", | |||
"danger" | |||
] | |||
}, | |||
"title": { | |||
"label": "Title", | |||
"description": "Notice title text.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"text": { | |||
"label": "Content", | |||
"description": "Main notice message. You can use line breaks and basic formatting.", | |||
"type": "content", | |||
"required": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||