Template:Notebox: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
mNo edit summary
 
Line 1: Line 1:
<noinclude>
Creates a formatted note in a box, float right by default.
Use: <code><nowiki>{{Notebox|Stuff I want to say}}</nowiki></code>
 
;Syntax
* float [right, left, none] - default is 'right'.
* width - default is 20em. setting to 'auto' will do normal horizontal fill behavior.
 
;Examples
<code><nowiki>{{Notebox|Stuff I want to say}}</nowiki></code>
Or for a multi-bullet box:
Or for a multi-bullet box:


Line 9: Line 15:
[[Category:General wiki templates|{{PAGENAME}}]]
[[Category:General wiki templates|{{PAGENAME}}]]
----
----
 
;Template
 
<onlyinclude><div class="mainpagetableblue" style="float:{{{float|right}}}; width: {{{width|20em}}}; border: 1px #606080 solid; padding: 5px; margin: 0em 0em 1em 2em; font-size:85%;">{{{1}}}</div></onlyinclude>
</noinclude>
<div class="mainpagetableblue" style="float:{{{float|right}}}; width: 20em; border: 1px #606080 solid; padding: 5px; margin: 0em 0em 1em 2em; font-size:85%;">{{{1}}}</div>

Latest revision as of 07:51, 18 May 2020

Creates a formatted note in a box, float right by default.

Syntax
  • float [right, left, none] - default is 'right'.
  • width - default is 20em. setting to 'auto' will do normal horizontal fill behavior.
Examples
{{Notebox|Stuff I want to say}}

Or for a multi-bullet box:

{{Notebox|The first line
 * The second line
 }}

Template
{{{1}}}