Difference between revisions of "Template:Ombox"

From SC4D Encyclopaedia
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>{{#ifeq:{{{small|}}}|yes
+
<includeonly>{{ombox/core
| {{ombox/core
 
  | small = yes
 
  | type  = {{{type|}}}
 
  | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
 
  | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
 
  | style = {{{style|}}}
 
  | textstyle = {{{textstyle|}}}
 
  | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
 
  }}
 
| {{ombox/core
 
 
   | type  = {{{type|}}}
 
   | type  = {{{type|}}}
 
   | image = {{{image|}}}
 
   | image = {{{image|}}}
Line 17: Line 7:
 
   | text  = {{{text}}}
 
   | text  = {{{text}}}
 
   }}
 
   }}
}}</includeonly><noinclude>
+
</includeonly><noinclude>
 +
 
 +
{{pp-template}}
  
{{pp-template|small=yes}}
+
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.svg|40px]]
+
| image = none / [[Image:Some image.png|40px]]
| imageright = [[Image:Some image.svg|40px]]
+
| 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.  
| small = {{{small|}}} / yes
 
| smallimage = none / [[Image:Some image.svg|30px]]
 
| smallimageright = none / [[Image:Some image.svg|30px]]
 
| smalltext  = A shorter 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 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


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.