Difference between revisions of "Template:Ombox"

From BSC Policy
Jump to navigationJump to search
(Ombox Template)
 
(actually have text be a parameter)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Ombox/styles.css" />
+
<div class="messagebox"><table class="plainlinks ombox" role="presentation" style="{{{style}}}">
{{#invoke:Message box|ombox}}<noinclude>
+
<tr><td class="ombox-image">[[File:Information icon4.svg.png|40x40]]</td>
{{documentation}}
+
<td class="mbox-text" style="{{{textstyle}}}">{{{text}}}</td></tr></table></div>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
<noinclude>
 +
This is the same as [https://en.wikipedia.org/wiki/Template:Ombox Wikipedia's Ombox] except that it can't handle custom images.
 +
==Usage==
 +
<pre>{{{ombox
 +
| type = style
 +
| style = width: 400px;
 +
| textstyle = color: red; font-weight: bold; font-style: italic;
 +
| text      = The message body text.
 +
}}}
 +
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 19:01, 8 April 2021

This is the same as Wikipedia's Ombox except that it can't handle custom images.

Usage

{{{ombox
| type = style
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}}