Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Template:Message"

(New page: <div class="messagebox {{{class|}}}" style="background-color: {{{bgcolor|#f9f6b7}}}; border: 1px solid {{{bdcolor|#c4c295}}}; color: {{{fgcolor|black}}}; padding: 5px; margin: 1ex 0; min-h...)
 
m (add example and link)
 
(One intermediate revision by one other 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|}}}">
+
<includeonly><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 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|Idea.png}}}|{{{imgwidth|35}}}px]]</div>
 
<div>{{{1}}}</div>
 
<div>{{{1}}}</div>
</div
+
</div></includeonly>
 +
<noinclude>
 +
==== Example ====
 +
 
 +
Usage:
 +
  <nowiki>{{Message|Text that can be '''very''' long <br> and can ''contain'' breaks.}}</nowiki>
 +
 
 +
Output:
 +
{{Message|Text that can be '''very''' long <br> and can ''contain'' breaks.}}
 +
 
 +
See [[:Category:Admonition Templates|Admonition Templates]] for different occurrences.
 +
 
 +
</noinclude>

Latest revision as of 07:44, 4 October 2012


Example

Usage:

 {{Message|Text that can be '''very''' long <br> and can ''contain'' breaks.}}

Output:

Idea.png
Text that can be very long
and can contain breaks.


See Admonition Templates for different occurrences.


Back to the top