Difference between revisions of "Template:Inline-warning"
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="border: dashed 1px #55f; border-left: solid 3px #55f; background: #eaeaee; padding: 10px; clear: both;"> | <div style="border: dashed 1px #55f; border-left: solid 3px #55f; background: #eaeaee; padding: 10px; clear: both;"> | ||
[[File:inline-warning.png | left]] | [[File:inline-warning.png | left]] | ||
− | <div style="padding-left: | + | <div style="padding-left:40px;"> |
'''Warning: '''{{{1}}} | '''Warning: '''{{{1}}} | ||
</div></div> | </div></div> | ||
+ | |||
+ | <noinclude> | ||
+ | ==How to Use This Template== | ||
+ | |||
+ | This template should be used to add an inline warning to a wiki page. | ||
+ | |||
+ | A '''warning''' is stronger than a note. To add an inline note to a page, use {{links-small|Template|Inline-note}} instead. | ||
+ | |||
+ | To include it in a page, add this where the warning should appear: | ||
+ | |||
+ | <pre> | ||
+ | {{inline-warning|display text}} | ||
+ | </pre> | ||
+ | |||
+ | Replace "display text" with the text you want to appear after the word "'''Warning:'''". | ||
+ | |||
+ | For example, this code: | ||
+ | |||
+ | <pre> | ||
+ | {{inline-warning|This template should only be used inline, not at the top of a page.}} | ||
+ | </pre> | ||
+ | |||
+ | will produce this in your page: | ||
+ | |||
+ | {{inline-warning|This template should only be used inline, not at the top of a page.}} | ||
+ | |||
+ | </noinclude> |
Latest revision as of 22:12, 7 January 2014
How to Use This Template
This template should be used to add an inline warning to a wiki page.
A warning is stronger than a note. To add an inline note to a page, use {{#if:1|[[{{#if:|Template}}:{{#if:|Inline-note|Template}}:{{#if:|foo|Inline-note}}]]}} instead.
To include it in a page, add this where the warning should appear:
{{inline-warning|display text}}
Replace "display text" with the text you want to appear after the word "Warning:".
For example, this code:
{{inline-warning|This template should only be used inline, not at the top of a page.}}
will produce this in your page: