Jump to content

Template:Message: Difference between revisions

From Sugar Labs
mNo edit summary
update category, remove embedded comments
Line 1: Line 1:
<div class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#def3fe}}}; border: 1px solid {{{bdcolor|#c4c295}}}; color: {{{fgcolor|black}}}; padding: 5px; margin: 1ex 0; min-height: {{{imgwidth|35}}}px; padding-left: {{#expr:{{{imgwidth|35}}}+10}}px; {{{style|}}}">
<div class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#def3fe}}}; border: 1px solid {{{bdcolor|#c4c295}}}; color: {{{fgcolor|black}}}; padding: 5px; margin: 1ex 0; min-height: {{{imgwidth|35}}}px; padding-left: {{#expr:{{{imgwidth|35}}}+10}}px; {{{style|}}}">
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|35}}}+5}}px;">[[Image:{{{image|favorite-star.png}}}|link=|{{{imgwidth|35}}}px]]</div>
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|35}}}+5}}px;">[[Image:{{{image|favorite-star.png}}}|link=|{{{imgwidth|35}}}px]]</div>
<div>{{{1}}}<noinclude>'''Bold headword'''<br>extended highlight message</noinclude></div>
<div>{{{1}}}</div>
</div><noinclude>
</div><noinclude>


Line 20: Line 20:


See, for example:
See, for example:
[[Template:Admon/note]]
[[Template:Note/note]]




[[Category:Admonition template|Message]]
[[Category:Highlighting template|Message]]
</noinclude>
</noinclude>

Revision as of 12:41, 16 July 2011

{{{1}}}

Usage

Simple example:

{{Message|'''Latest News:'''<br>Instructions have been added to these templates.}}
Latest News:
Instructions have been added to these templates.


For embedding in other templates:

{{message|1={{#if:{{{1|}}}|'''{{{1}}}'''<BR>}}
{{#if:{{{2|}}}|{{{2}}}}}
|image=35px-Activity-write.png
|bgcolor=#def3fe
|bdcolor=#c5d7e0
}}

See, for example: Template:Note/note