Difference between revisions of "Template:Mbox"

From OBEY wiki
Jump to: navigation, search
(Created page with "<includeonly>{| style="color: black;" width="{{{width|94%}}}" cellpadding="10" | style="background-color: #{{{color|E5E5E5}}}"| {{{text}}} |}</includeonly> Creates a message...")
 
(Default padding value)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| style="color: black;" width="{{{width|94%}}}" cellpadding="10"
+
<includeonly>{| style="color: black;" width="{{{width|94%}}}" cellpadding="{{{padding|10}}}"
 
| style="background-color: #{{{color|E5E5E5}}}"| {{{text}}}
 
| style="background-color: #{{{color|E5E5E5}}}"| {{{text}}}
|}</includeonly>
+
|} </includeonly><noinclude>
 
+
 
Creates a message box. The message box is not centered by default, you will need to do this with the pair of tags, <nowiki><center> and </center></nowiki>
 
Creates a message box. The message box is not centered by default, you will need to do this with the pair of tags, <nowiki><center> and </center></nowiki>
  
 
'''Usage:''' (note that these are the default values)<br/>
 
'''Usage:''' (note that these are the default values)<br/>
  <nowiki>{{mbox|
+
  <nowiki>{{mbox
text=Lorem ipsum dolor sit amet
+
|text=Lorem ipsum dolor sit amet
width=94%
+
|width=94%
color=E5E5E5
+
|color=E5E5E5
 +
|padding=10
 
}}</nowiki>
 
}}</nowiki>
  
 
'''Generates:'''<br/>
 
'''Generates:'''<br/>
{{mbox|
+
{{mbox
text=Lorem ipsum dolor sit amet
+
|text=Lorem ipsum dolor sit amet
width=94%
+
|width=94%
color=E5E5E5
+
|color=E5E5E5
 +
|padding=10
 
}}
 
}}
 +
</noinclude>

Latest revision as of 17:21, 24 June 2015

Creates a message box. The message box is not centered by default, you will need to do this with the pair of tags, <center> and </center>

Usage: (note that these are the default values)

{{mbox
|text=Lorem ipsum dolor sit amet
|width=94%
|color=E5E5E5
|padding=10
}}

Generates:

Lorem ipsum dolor sit amet