Difference between revisions of "Template:Message"

From Sugar Labs
Jump to navigation Jump to search
m (Created page with '<div class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#f9f6b7}}}; border: 1px solid {{{bdcolor|#c4c295}}}; color: {{{fgcolor|black}}}; padding: 5px; margin: 1e...')
 
(update example)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#f9f6b7}}}; 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|Idea.png}}}|{{{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}}}</div>
 
<div>{{{1}}}</div>
</div>
+
</div><noinclude>
 +
 
 +
==Usage==
 +
Simple example:
 +
 
 +
<nowiki>{{Message|'''Latest News:'''<br>Instructions have been added to these templates.}}</nowiki>
 +
{{Message|'''Latest News:'''<br>Instructions have been added to these templates.}}
 +
 
 +
 
 +
 
 +
For embedding in other templates:
 +
<nowiki>{{message|1={{#if:{{{1|}}}|'''{{{1}}}'''<BR>}}
 +
{{#if:{{{2|}}}|{{{2}}}}}
 +
|image=35px-Activity-write.png
 +
|bgcolor=#def3fe
 +
|bdcolor=#c5d7e0
 +
}}</nowiki>
 +
 
 +
{{Note/note|For example:|See [[Template:Note/note]].}}
 +
 
 +
[[Category:Highlighting template|Message]]
 +
</noinclude>

Latest revision as of 12:50, 16 July 2011

Favorite-star.png
{{{1}}}

Usage

Simple example:

{{Message|'''Latest News:'''<br>Instructions have been added to these templates.}}
Favorite-star.png
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
}}
35px-Activity-write.png
For example:
See Template:Note/note.