Difference between revisions of "Template:Documentation/banner"

From Slicer Wiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{| width="100%" style="clear:both; background:none; color:black;"
 
<includeonly>{| width="100%" style="clear:both; background:none; color:black;"
 
|-
 
|-
| style="padding:1em 1em 1em 1em; border:1px solid #A3B1BF; background-color:#fce9f4; text-align:center" valign="top" |
+
| style="padding:1em 1em 1em 1em; border:1px solid #A3B1BF; background-color: #{{#if: {{{background-color|}}} |{{{background-color}}}|fce9f4}}; text-align:center" valign="top" |
 
<span style="font-size:16pt">{{{text}}}</span>
 
<span style="font-size:16pt">{{{text}}}</span>
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
Line 10: Line 10:
 
| text  = The message body text.}}</pre>
 
| text  = The message body text.}}</pre>
  
{{documentation/banner| text  = The message body text.}}
+
== Examples ==
 +
 
 +
<pre>{{documentation/banner
 +
| text  = The is an important message.}}</pre>
 +
 
 +
{{documentation/banner| text = The is an important message.}}
 +
 
 +
<pre>{{documentation/banner
 +
| text  = The is an important message in green.
 +
| background-color = 8FBC8F }}</pre>
 +
 
 +
{{documentation/banner
 +
| text  = The is an important message in green.
 +
| background-color = 8FBC8F }}
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:18, 12 May 2016

Home < Template:Documentation < banner


Usage

{{documentation/banner
| text  = The message body text.}}

Examples

{{documentation/banner
| text  = The is an important message.}}

The is an important message.

{{documentation/banner
| text  = The is an important message in green.
| background-color = 8FBC8F }}

The is an important message in green.