Difference between revisions of "Template:Ombox"
Jump to navigation
Jump to search
sc4e>Freedo50 (New page: <includeonly>{{#ifeq:{{{small|}}}|yes | {{ombox/core | small = yes | type = {{{type|}}} | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }} | imageright = {{#if:...) |
m (7 revisions imported) |
||
(76 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{ombox/core |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| type = {{{type|}}} | | type = {{{type|}}} | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
Line 17: | Line 7: | ||
| text = {{{text}}} | | text = {{{text}}} | ||
}} | }} | ||
− | + | </includeonly><noinclude> | |
+ | |||
+ | {{pp-template}} | ||
− | {{ | + | This is a template which defines a syle for Other message boxes, i.e. pages using the {{[[Template:Mbox|Mbox]]}} tag which aren't article, category, talk, or image pages. |
<pre>{{ombox | <pre>{{ombox | ||
| type = speedy / delete / content / style / notice / move / protection | | type = speedy / delete / content / style / notice / move / protection | ||
− | | image = none / [[Image:Some image. | + | | image = none / [[Image:Some image.png|40px]] |
− | | imageright = [[Image:Some image. | + | | imageright = [[Image:Some image.png|40px]] |
| style = CSS values | | style = CSS values | ||
| textstyle = CSS values | | textstyle = CSS values | ||
| text = The message body text. | | text = The message body text. | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
==Example== | ==Example== | ||
{{ombox|text= Lorem ipsum dolor si amet}} | {{ombox|text= Lorem ipsum dolor si amet}} | ||
+ | |||
+ | === 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 {{[[Template:Inappropriate_content| Inappropriate content]]}}. | ||
+ | }} | ||
+ | {{ombox | ||
+ | | type = style | ||
+ | | text = type=<u>style</u> – Minor warnings and problems. | ||
+ | }} | ||
+ | {{ombox | ||
+ | | type = notice | ||
+ | | text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. | ||
+ | }} | ||
+ | {{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 {{[[Template:Pp-protected|pp-protected]]}} when shown on "other pages". | ||
+ | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 18:55, 8 August 2019
This high-risk template has been protected from editing to prevent vandalism. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may ask an editor or a moderator to make the edit if it is supported by consensus. You may also request that this page be unprotected. |
This is a template which defines a syle for Other message boxes, i.e. pages using the {{Mbox}} tag which aren't article, category, talk, or image pages.
{{ombox | type = speedy / delete / content / style / notice / move / protection | image = none / [[Image:Some image.png|40px]] | imageright = [[Image:Some image.png|40px]] | style = CSS values | textstyle = CSS values | text = The message body text. }}
Example
Lorem ipsum dolor si amet |
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.
type=speedy – Speedy deletion templates. |
type=delete – Deletion templates. |
type=content – Major warnings and problems, such as {{ Inappropriate content}}. |
type=style – Minor warnings and problems. |
type=notice – Notices and messages of any kind, both permanent and temporary. |
40x40px | type=move – Merge, split, rename and transwiki messages and proposals. |
40x40px | type=protection – Protection templates such as {{pp-protected}} when shown on "other pages". |