Jump to content

Template:OOO-Notice: Difference between revisions

From Out of Ore Wiki
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:


== OOO Notice Template ==
== OOO Notice Template ==
Styled notice box that can be used on the pages.


=== Usage ===
=== Usage ===


<syntaxhighlight lang="wiki">
{{OOO-Notice
{{OOO-Notice
| type = warning
| type = warning  
| title = Help improve the wiki!
| title = Here Goes Your Title
| text = Your text here.
| text = Your message will go here here.
}}
}}
</syntaxhighlight>
Change type to what you need, samples below.
You can use: info , success, warning, danger


=== Parameters ===
----
 
=== Available Types ===
 
{{OOO-Notice
| type = info
| title = Information title example
| text = This is a general informational notice. <br><br> Type used is info
}}


; type
{{OOO-Notice
: Controls the color/style of the notice Title.
| type = warning
| title = Warning title example
| text = This highlights something important. <br><br> Type used is warning
}}


* <span style="color:#c49a00;font-weight:600;">info</span> (default – yellow accent)
{{OOO-Notice
* <span style="color:#c49a00;font-weight:600;">warning</span> (stronger yellow)
| type = success
* <span style="color:#2ea44f;font-weight:600;">success</span> (green)
| title = Success title example
* <span style="color:#d73a49;font-weight:600;">danger</span> (red)
| text = Something completed successfully. <br><br> Type used is success.
}}


; title
{{OOO-Notice
: The bold heading text shown at the top.
| type = danger
| title = Critical title example
| text = This indicates a serious issue.<br><br> Type used is Danger.
}}


; text
: The main content of the notice.


<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
Warning title example
This highlights something important.

Type used is warning
Success title example
Something completed successfully.

Type used is success.
Critical title example
This indicates a serious issue.

Type used is Danger.


Creates a branded notice box styled for the Out of Ore Wiki.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Typetype

Visual style of the notice.

Suggested values
info success warning danger
Default
info
Stringoptional
Titletitle

Notice title text.

Stringrequired
Contenttext

Main notice message. You can use line breaks and basic formatting.

Contentrequired