Difference between revisions of "Template:Message"
Jump to navigation
Jump to search
(Undo revision 59967 test failed) |
|||
Line 2: | Line 2: | ||
<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}}}</div> | <div>{{{1}}}</div> | ||
− | </div> | + | </div><noinclude> |
+ | |||
+ | ==Usage== | ||
+ | Simple example: | ||
+ | |||
+ | <nowiki>{{Message|This is interesting stuff.}}</nowiki> | ||
+ | {{Message|This is interesting stuff.}} | ||
+ | |||
+ | |||
+ | For embeddin in other templates: | ||
+ | <nowiki>{{message|1={{#if:{{{1|}}}|'''{{{1}}}'''<BR>}} | ||
+ | {{#if:{{{2|}}}|{{{2}}}}} | ||
+ | |image=35px-Activity-write.png | ||
+ | |bgcolor=#def3fe | ||
+ | |bdcolor=#c5d7e0 | ||
+ | }}</nowiki> | ||
+ | |||
+ | See, for example: | ||
+ | [[Template:Admon/note]] | ||
+ | |||
+ | |||
+ | [[Category:Admonition template]] | ||
+ | </noinclude> |
Revision as of 03:46, 27 January 2011
Usage
Simple example:
{{Message|This is interesting stuff.}}
For embeddin 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:Admon/note