Template:Highlight: Difference between revisions
Appearance
removing nested noincludes |
reorder style elements in relation to CSS box model |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<span class="messagebox {{{class|}}}" style="background-color:{{{bgcolor|#def3fe}}}; color: {{{fgcolor|black}}} | <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> | ||
<noinclude> | [[Category:Highlighting template|Highlight]] | ||
==Usage== | ==Usage== | ||
Simple example: | Simple example: | ||
<nowiki>{{Highlight|bgcolor= | <nowiki>* {{Highlight|bgcolor=yellow|'''Proposed edit: '''Include some usage examples.}}</nowiki> | ||
* {{Highlight|bgcolor= | * {{Highlight|bgcolor=yellow|'''Proposed edit: '''Include some usage examples.}} | ||
Disadvantages: | Disadvantages: | ||
* <s>wiki formatting with *, #, :, etc. voids the styling, namely color.</s> | * <s>wiki formatting with *, #, :, etc. voids the styling, namely color.</s> | ||
*: by removing the message to highlight after the {{{1}}}} | *: (This was fixed by removing the {{Code|<noinclude>example message to highlight</noinclude>}} after the {{Code|<nowiki>{{{1}}}</nowiki>}} in the template wikicode.) | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:15, 1 August 2012
Usage
Simple example:
* {{Highlight|bgcolor=yellow|'''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.)
- (This was fixed by removing the