Difference between revisions of "Template:Ombox"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Freedo50
sc4e>Freedo50
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}}
Line 25: Line 15:
 
<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>

Revision as of 05:44, 27 December 2008


This is a template which defines a syle for Other message boxes, i.e. pages using the {{[[Templae:Mbox|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