Jump to content

Template:Ombox/doc: Difference between revisions

From Consumer Rights Wiki
ConsciousCode (talk | contribs)
Importing from Wikipedia:Template:Ombox/doc (partial: flagging the prohibited word filter?)
 
ConsciousCode (talk | contribs)
Introduction: Trying more of the doc
 
Line 18: Line 18:


When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.
When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.
=== Usage ===
Simple usage example:
<syntaxhighlight lang="wikitext">
{{ombox
| text      = Some text.
}}
</syntaxhighlight>
{{ombox | text = Some text.}}
{{clear}}
Complex example:
<syntaxhighlight lang="wikitext">
{{ombox
| type      = style
| image    = [[File:Emblem-question-yellow.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}
</syntaxhighlight>
{{ombox
| type      = style
| image    = [[File:Emblem-question-yellow.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}
{{clear}}
=== Other pages message box types ===
The following examples use different '''type''' parameters but use no image parameters; thus, they use the default images for each type.
{{ombox
| type = speedy
| text = type=<u>speedy</u> – Speedy deletion templates.
}}
{{ombox
| type = delete
| text = type=<u>delete</u> – Deletion templates.
}}
{{ombox
| type = content
| text = type=<u>content</u> – Major warnings and problems, such as {{tl|high-use}}.
}}
{{ombox
| type = style
| text = type=<u>style</u> – Minor warnings and problems. {{tl|Intricate template}} should perhaps use this type.
}}
{{ombox
| type = notice
| text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. Such as {{tl|guideline}} and {{tl|Wikipedia how-to}}.
}}
{{ombox
| type = move
| text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals.
}}
{{ombox
| type = protection
| text = type=<u>protection</u> – Protection templates such as {{tl|pp}} when shown on "other pages".
}}

Latest revision as of 05:42, 13 August 2025

Template:Cascade-protected template Template:Used in system

Template:Mbox templates (small)

This is the {{Ombox }} ([O]ther pages [m]essage [box]) metatemplate.

It is used to build message box templates for pages of the types User, Draft, Wikipedia, MediaWiki, Template, Help, Portal and any new future namespaces; i.e. for page types not covered by {{Ambox }}, {{Tmbox }}, {{Imbox }} or {{Cmbox }}. Thus, it should not be used for boxes for articles, talk pages, image pages or category pages.

This template works almost exactly like {{Ambox }} and uses the same parameters.

Introduction[edit source]

Template:Anchor As noted above, this template should be used for message boxes that are not articles, talk pages, image pages or category pages. Some message boxes for other pages may incorrectly use one of those four mentioned. Feel free to convert any message boxes used on "other pages" to use this meta-template. If you find any tricky cases then list them on the talk page of this template and you'll get help.

When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.

Usage[edit source]

Simple usage example:

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Complex example:

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Other pages message box types[edit source]

The following examples use different type parameters but use no image parameters; thus, they use the default images for each type.