Difference between revisions of "Template:Highlight"

From Sugar Labs
Jump to navigation Jump to search
Line 1: Line 1:
<span class="messagebox {{{class|}}}" style="background-color:{{{bgcolor|#def3fe}}}; color: {{{fgcolor|black}}}; padding: 5px 0px; margin: 0ex 0; min-height: 35px; {{{style|}}}">{{{1}}}</span><noinclude>
+
<span class="messagebox {{{class|}}}" style="background-color:{{{bgcolor|#def3fe}}}; color: {{{fgcolor|black}}}; padding: 5px 0px; margin: 0ex 0; min-height: 35px; {{{style|}}}">{{{1}}}</span><noinclude>[[Category:Highlighting template]]
  
 
==Usage==
 
==Usage==

Revision as of 20:59, 15 March 2011

{{{1}}}

Usage

Simple example:

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

Disadvantages:

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