Template:Message: Difference between revisions

No edit summary
update example
 
(5 intermediate revisions by the same user not shown)
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>
<div>{{{1}}}</div>
{{{1}}}</div>
</div><noinclude>
</div><noinclude>


Line 8: Line 7:
Simple example:
Simple example:


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




Line 20: Line 20:
}}</nowiki>
}}</nowiki>


See, for example:
{{Note/note|For example:|See [[Template:Note/note]].}}
[[Template:Admon/note]]
 


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