Template:OOO-Notice: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
=== Usage === | === Usage === | ||
< | <syntaxhighlight lang="wiki"> | ||
{{OOO-Notice | {{OOO-Notice | ||
| type = warning | | type = warning | ||
| title = | | title = Here Goes Your Title | ||
| text = Your message here. | | text = Your message will go here here. | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
Change type to what you need, samples below. | |||
You can use: info , success, warning, danger | |||
---- | ---- | ||
| Line 20: | Line 23: | ||
=== Available Types === | === Available Types === | ||
{{OOO-Notice | {{OOO-Notice | ||
| type = info | | type = info | ||
| title = Information | | title = Information title example | ||
| text = This is a general informational notice. | | text = This is a general informational notice. <br><br> Type used is info | ||
}} | }} | ||
{{OOO-Notice | {{OOO-Notice | ||
| type = warning | | type = warning | ||
| title = Warning | | title = Warning title example | ||
| text = This highlights something important. | | text = This highlights something important. <br><br> Type used is warning | ||
}} | }} | ||
{{OOO-Notice | {{OOO-Notice | ||
| type = success | | type = success | ||
| title = Success | | title = Success title example | ||
| text = Something completed successfully. | | text = Something completed successfully. <br><br> Type used is success. | ||
}} | }} | ||
{{OOO-Notice | {{OOO-Notice | ||
| type = danger | | type = danger | ||
| title = Critical | | title = Critical title example | ||
| text = This indicates a serious issue. | | 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> | ||
Latest revision as of 22:10, 3 March 2026
OOO Notice Template
Usage
{{OOO-Notice
| type = warning
| title = Here Goes Your Title
| text = Your message will go here here.
}}Change type to what you need, samples below. You can use: info , success, warning, danger
Available Types
Information title example
This is a general informational notice.
Type used is info
Type used is info
Warning title example
This highlights something important.
Type used is warning
Type used is warning
Success title example
Something completed successfully.
Type used is success.
Type used is success.
Critical title example
This indicates a serious issue.
Type used is Danger.
Type used is Danger.
Creates a branded notice box styled for the Out of Ore Wiki.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type | type | Visual style of the notice.
| String | optional |
| Title | title | Notice title text. | String | required |
| Content | text | Main notice message. You can use line breaks and basic formatting. | Content | required |