Difference between revisions of "Template:Mbox"

From OBEY wiki
Jump to: navigation, search
(cellpadding now customizable)
Line 1: Line 1:
<includeonly>{| style="color: black;" width="{{{width|94%}}}" cellpadding="10"
+
<includeonly>{| style="color: black;" width="{{{width|94%}}}" cellpadding="{{{padding}}}"
 
| style="background-color: #{{{color|E5E5E5}}}"| {{{text}}}
 
| style="background-color: #{{{color|E5E5E5}}}"| {{{text}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
Line 9: Line 9:
 
|width=94%
 
|width=94%
 
|color=E5E5E5
 
|color=E5E5E5
 +
|padding=10
 
}}</nowiki>
 
}}</nowiki>
  
Line 16: Line 17:
 
|width=94%
 
|width=94%
 
|color=E5E5E5
 
|color=E5E5E5
 +
|padding=10
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 16:38, 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