Template:Caution: Difference between revisions
Jump to navigation
Jump to search
m (+-style: width: 50% → min-width: 50% for visual similarity to Template:Note) |
No edit summary |
||
(13 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{| cellspacing="0" style=" | {| cellspacing="0" style="border: 1px solid #FC2; border-left-width: 10px; margin: {{{margin|1em auto}}}; width: {{{width|90%}}}; background-color: #fdf8d8; padding: {{{padding|2px}}};" | ||
| style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">Caution</span>'''  {{{1|Add message}}} | | style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch | ||
|} | | ca = Precaució | ||
<noinclude>{{Informative template |1= | | de = Achtung | ||
| en = Caution | |||
| fr = Attention | |||
| it = Attenzione | |||
| nl = Let op | |||
| th = '''ระวัง''' | |||
}}</span>'''  {{{1|Add message}}} | |||
|}<noinclude>{{Informative template |1= | |||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
Use this template to add a caution when there might be | Use this template to add a caution when there might be damage to the virtual aircraft or to real equipment. | ||
== Usage == | == Usage == | ||
{{obr}}'''caution''' | |||
{{!}} message | |||
{{!}} ''width'' = | |||
{{!}} ''padding'' = | |||
{{!}} ''margin'' = | |||
{{cbr}} | |||
; width : Width of the messagebox, preferably as a percentage of the width of the page content. This defaults to {{param||90%}}. | |||
; padding: The padding CSS setting for the message box. This defaults to {{param||2px}}. | |||
; margin: The margin CSS setting for the message box. This defaults to {{param||1em auto}}. | |||
== Example == | == Example == | ||
<nowiki>{{caution|Never apply full throttle instantly at take off in high performance tail draggers. You will ground loop and possibly crash.}}</nowiki> | <nowiki>{{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.}}</nowiki> | ||
{{caution|Never apply full throttle instantly at take off in high performance tail draggers. You will ground loop and possibly crash.}} | {{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.}} | ||
<pre style="white-space: pre-wrap;"><nowiki>{{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.|width=50%}}</nowiki></pre> | |||
{{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.|width=50%}} | |||
== Known issues == | |||
Adding external links must be done like below. Specifically note the '''1{{=}}'''. | |||
{{obr}}'''caution'''{{!}}'''1='''message{{cbr}} | |||
== Related templates == | == Related templates == | ||
=== Messagebox templates === | |||
* {{tl|warning}} – When a virtual aircraft might crash or when real equipment or ones health might be jeopardized | |||
* {{tl|note}} – For important notes | * {{tl|note}} – For important notes | ||
* {{tl|tip}} – For helpful tips | * {{tl|tip}} – For helpful tips | ||
* {{tl| | |||
=== Inline italic templates === | |||
{{inote|If there is a need for a warning use a messagebox template instead.}} | |||
* {{tl|icaution}} | |||
* {{tl|inote}} | |||
* {{tl|itip}} | |||
}} | }} |
Revision as of 11:40, 24 February 2020
Caution Add message |
The following template description is not displayed when the template is inserted in an article.
Goal
Use this template to add a caution when there might be damage to the virtual aircraft or to real equipment.
Usage
{{caution | message | width = | padding = | margin = }}
- width
- Width of the messagebox, preferably as a percentage of the width of the page content. This defaults to 90%.
- padding
- The padding CSS setting for the message box. This defaults to 2px.
- margin
- The margin CSS setting for the message box. This defaults to 1em auto.
Example
{{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.}}
Caution Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash. |
{{caution|Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash.|width=50%}}
Caution Never apply full throttle instantly at take off in high performance tail-draggers. You will ground loop and possibly crash. |
Known issues
Adding external links must be done like below. Specifically note the 1=.
{{caution|1=message}}
Related templates
Messagebox templates
- {{warning}} – When a virtual aircraft might crash or when real equipment or ones health might be jeopardized
- {{note}} – For important notes
- {{tip}} – For helpful tips
Inline italic templates
Note If there is a need for a warning use a messagebox template instead.