Difference between revisions of "Template:Caution"

From relax wiki
Jump to navigation Jump to search
(Converted the documentation to use {{MessageBox/doc}}.)
m (1 revision imported)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{MessageBox
+
{| cellspacing="0" style="border: 1px solid #FC2; border-left-width: 10px; margin: 1em auto; width: {{{width|90%}}}; background-color: #fdf8d8; padding: 2px;"
| message = {{{1|Add message}}}
+
| style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
| title  = <span style="font-variant:small-caps;">Caution</span>
+
| de = Achtung
| border = thin solid #fc2
+
| en = Caution
| bgcolor = #fdf8d8
+
| fr = Attention
}}<noinclude>
+
  | it = Attenzione
 +
| th = '''ระวัง'''
 +
}}</span>'''&ensp; {{{1|Add message}}}
 +
|}<noinclude>{{Informative template |1=
 +
__NOTOC__
 +
== Goal ==
 +
Use this template to add a caution when there might be damage to the virtual aircraft or to real equipment.
  
{{MessageBox/doc
+
== Usage ==
| name    = {{FULLPAGENAME}}
+
  {{obr}}'''caution'''{{!}}message{{!}}''width=''{{cbr}}
| goal    = To provide a cautionary message to the reader.
 
| usage  =
 
  <nowiki>{{</nowiki>'''caution'''&#124;message<nowiki>}}</nowiki>
 
  
; message : The obligatory warning text.
+
; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 90%.
| example =  
+
 
<nowiki>{{caution|This is a cautious test message}}</nowiki>
+
== Example ==
 +
<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.}}
 +
 
 +
<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 ==
 +
=== Messagebox templates ===
 +
* {{tl|warning}} &ndash; When a virtual aircraft might crash or when real equipment or ones health might be jeopardized
 +
* {{tl|note}} &ndash; For important notes
 +
* {{tl|tip}} &ndash; For helpful tips
 +
 
 +
=== Inline italic templates ===
 +
{{inote|If there is a need for a warning use a messagebox template instead.}}
 +
* {{tl|icaution}}
 +
* {{tl|inote}}
 +
* {{tl|itip}}
  
{{caution|This is a cautious test message}}
 
 
}}
 
}}
  
[[Category:MessageBox templates]]
+
[[Category:Messagebox templates]]
[[Category:InformBox templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 21:11, 6 September 2017

Caution  Add message

Template:Informative template