Template:Caution: Difference between revisions

Jump to navigation Jump to search
Fix/update doc internals; add width param (needed for pages like Nasal library and Canvas MapStructure Layers
m (Italian translation)
(Fix/update doc internals; add width param (needed for pages like Nasal library and Canvas MapStructure Layers)
Line 1: Line 1:
{| cellspacing="0" style="border: 1px solid #FC2; border-left-width: 10px; margin: 1em auto; width: 90%; background-color: #fdf8d8; padding: 2px;"
{| cellspacing="0" style="border: 1px solid #FC2; border-left-width: 10px; margin: 1em auto; width: {{{width|90%}}}; background-color: #fdf8d8; padding: 2px;"
| style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
| style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
  | de = Achtung
  | de = Achtung
Line 9: Line 9:
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
Use this template to add a caution when there might be damages to the virtual aircraft or to real equipment.
Use this template to add a caution when there might be damage to the virtual aircraft or to real equipment.


== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''caution'''<nowiki>|</nowiki>message<nowiki>}}</nowiki>
  {{obr}}'''caution'''{{!}}message{{!}}''width=''{{cbr}}
 
; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 90%.


== 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 ==
== Known issues ==
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
  <nowiki>{{</nowiki>'''caution'''<nowiki>|</nowiki>'''1='''message<nowiki>}}</nowiki>
  {{obr}}'''caution'''{{!}}'''1='''message{{cbr}}


== Related templates ==
== Related templates ==

Navigation menu