Difference between revisions of "Template:Highlight"

From Sugar Labs
Jump to navigation Jump to search
(reorder style elements in relation to CSS box model)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="messagebox {{{class|}}}" style="background-color:{{{bgcolor|#def3fe}}}; color: {{{fgcolor|black}}}; margin: 0px 0; padding: 5px 6px; min-height: 35px; {{{style|}}}">{{{1}}}</span><noinclude>
+
<span class="messagebox {{{class|}}}" style="margin: 0ex 0; padding: 5px 6px; background-color:{{{bgcolor|#def3fe}}}; color: {{{fgcolor|black}}}; min-height: 35px; {{{style|}}}">{{{1}}}</span><noinclude>
 
[[Category:Highlighting template|Highlight]]
 
[[Category:Highlighting template|Highlight]]
  

Latest revision as of 19:15, 1 August 2012

{{{1}}}

Usage

Simple example:

* {{Highlight|bgcolor=yellow|'''Proposed edit: '''Include some usage examples.}}
  • Proposed edit: Include some usage examples.

Disadvantages:

  • wiki formatting with *, #, :, etc. voids the styling, namely color.
    (This was fixed by removing the <noinclude>example message to highlight</noinclude> after the {{{1}}} in the template wikicode.)