Template:Highlight: Difference between revisions
Created page with "<span class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#def3fe}}}; border: 1px solid {{{bdcolor|#c4c295}}}; color: {{{fgcolor|black}}}; padding: 5px; margin: 1..." |
reorder style elements in relation to CSS box model |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<span class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#def3fe | <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> | ||
{{{1}}} | [[Category:Highlighting template|Highlight]] | ||
<noinclude> | |||
==Usage== | ==Usage== | ||
Simple example: | Simple example: | ||
<nowiki>{{Highlight|bgcolor= | <nowiki>* {{Highlight|bgcolor=yellow|'''Proposed edit: '''Include some usage examples.}}</nowiki> | ||
{{Highlight|'''Proposed edit: '''Include some usage examples. | * {{Highlight|bgcolor=yellow|'''Proposed edit: '''Include some usage examples.}} | ||
Disadvantages: | |||
* <s>wiki formatting with *, #, :, etc. voids the styling, namely color.</s> | |||
*: (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> | ||