Template:Standout box

From PCSAR

(Difference between revisions)
Jump to: navigation, search
(New page: <noinclude> This template is designed to display a box that highlights important information. It's typically used at the start of a page. Example usage: <pre> {{Standout box|This page ma...)
Current revision (05:54, 23 February 2018) (edit) (undo)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-
<noinclude>
+
<noinclude>{{documentation}}<noinclude><includeonly><onlyinclude><blockquote>
-
This template is designed to
+
-
display a box that highlights important information.
+
-
It's typically used at the start of a page.
+
-
 
+
-
Example usage:
+
-
<pre>
+
-
{{Standout box|This page may contain spoilers.}}
+
-
 
+
-
{{Standout box|colour=red|We do not attempt to maintain the accuracy of the information on this page.}}
+
-
</pre>
+
-
 
+
-
Results:
+
-
 
+
-
{{Standout box|This page may contain spoilers.}}
+
-
 
+
-
{{Standout box|colour=red|We do not attempt to maintain the accuracy of the information on this page.}}
+
-
 
+
-
 
+
-
The <code>colour</code> attribute can be an html colour name, or a six-digit RGB code of the form: <code>#AAFF00</code>.
+
-
 
+
-
Edit this page and examine the ''include only'' section to see how this template works.
+
-
 
+
-
<noinclude><includeonly><onlyinclude><blockquote>
+
<!-- width="100%" apparently required by Microsoft Internet Explorer 8 (bug?) as seen on Mary-Ann Warren's computer.
<!-- width="100%" apparently required by Microsoft Internet Explorer 8 (bug?) as seen on Mary-Ann Warren's computer.
Otherwise text appears as long column, one word per line.
Otherwise text appears as long column, one word per line.
-->
-->
-
{| style="border:1px #AAA solid; background-color:{{{colour|#ffffcc}}};" width="100%"
+
<table style="border:1px #AAA solid; background-color:{{{colour|rgb(255,255,100)}}};" width="100%">
-
|{{{1}}}
+
<tr><td>{{{1}}}</td></tr>
-
|}
+
</table>
</blockquote></onlyinclude></includeonly>
</blockquote></onlyinclude></includeonly>

Current revision

This is the documentation for the template Template:Standout box

Template:Standout box/Doc:

The template {{Standout box|colour=...|text}} is designed to display a box that highlights important information. It's typically used at the start of a page.

Example usage:

{{Standout box|This page may contain spoilers.}}

{{Standout box|colour=red|We do not attempt to maintain the accuracy of the information on this page.}}

Results:

This page may contain spoilers.
We do not attempt to maintain the accuracy of the information on this page.


The colour attribute can be an html colour name, or a six-digit RGB code of the form: #AAFF00.


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools