Template:Messagebox

From Free Hosting Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<includeonly><div style="width: 98%; margin: auto; padding: 5px 7px; border: {{{border|3px solid {{{border-color|#c5c5c5}}}}}}; background-color: {{{background-color|#f9f9f9}}};">{{{content|{{{1}}}}}}</div></includeonly><noinclude>
+
<includeonly><div style="width: 98%; margin-left: auto; margin-right: auto; margin-top: 10px; margin-bottom: 10px; padding: 5px 7px; border: {{{border|3px solid {{{border-color|#c5c5c5}}}}}}; background-color: {{{background-color|#f9f9f9}}};">{{{content|{{{1}}}}}}</div></includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 23:36, 7 January 2012

Adds a banner to the page. You would usually place this at the top of the page or header to warn the user about something in the following content. This is a meta-template and chances are that a more specific template would suit your needs.

Usage

{{Messagebox
|content=Content of message (required) - The first unnamed parameter is used if content is not specified
|border-color=Color of border (optional) - Default is #c5c5c5
|background-color=Color of background (optional) - Default is #f9f9f9
|border=Style of border, overrides border-color (optional)
}}

Examples

{{Messagebox|content=Sample Messagebox 1}}
Sample Messagebox 1
{{Messagebox|Sample Messagebox 2}}
Sample Messagebox 2
{{Messagebox|Sample Messagebox 3 ''with [[Main Page|wiki]] markup''}}
Sample Messagebox 3 with wiki markup
{{Messagebox|Sample Messagebox 4|border-color=#ff5555|background-color=#ffcccc}}
Sample Messagebox 4

Specific Templates

{{Prime}}
The following content applies to our Prime package and as such may not be relevant for Free Hosting.
{{Illuminated}}
The following content applies to our Illuminated package and as such may not be relevant for Free Hosting.
{{Premium}}
The following content applies to our Premium package and as such may not be relevant for Free Hosting.
Personal tools
Namespaces

Variants
Actions