Difference between revisions of "Template:Caution"

From relax wiki
Jump to navigation Jump to search
m (1 revision imported)
 
(Undo revision 6859 by Parnikkapore (talk))
 
Line 1: Line 1:
{| cellspacing="0" style="border: 1px solid #FC2; border-left-width: 10px; margin: 1em auto; width: {{{width|90%}}}; background-color: #fdf8d8; padding: 2px;"
+
{{MessageBox
| style="padding-left:5px;" | '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
+
| message = {{{1|Add message}}}
| de = Achtung
+
| title  = <span style="font-variant:small-caps;">Caution</span>
| en = Caution
+
| border = thin solid #fc2
| fr = Attention
+
| bgcolor = #fdf8d8
  | it = Attenzione
+
}}<noinclude>
| 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.
 
  
== Usage ==
+
{{MessageBox/doc
  {{obr}}'''caution'''{{!}}message{{!}}''width=''{{cbr}}
+
| name    = {{FULLPAGENAME}}
 +
| goal    = To provide a cautionary message to the reader.
 +
| usage  =
 +
  <nowiki>{{</nowiki>'''caution'''&#124;message<nowiki>}}</nowiki>
  
; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 90%.
+
; message : The obligatory warning text.
 
+
| example =  
== Example ==
+
<nowiki>{{caution|This is a cautious test message}}</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.}}
 
 
 
<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>

Latest revision as of 21:15, 6 September 2017

Caution  Add message

Template documentation

The Template:Caution MessageBox

Goal

To provide a cautionary message to the reader.

Usage

{{caution|message}}
message 
The obligatory warning text.

Example

{{caution|This is a cautious test message}}


Caution  This is a cautious test message

Categories of MessageBoxes

The Inform MessageBox Series

Note  This idea of using a meta-template transclusion was suggested by Johan G. on the FlightGear wiki. The {{tip}}, {{note}}, {{caution}}, and {{warning}} message box colour scheme and names were also devised by Johan, based on a "typical flight manual/pilot operating handbook and cockpit indicator use, all sometimes defined by regulation to be used for notes of importance, cations about risk of damaging equipment or minor physical injuries and warnings about major damage to equipment, major physical injuries or death".

The following are a series of message boxes for helping to inform the reader:

For example if you use:

{{tip|If you do it this way, your life will be easier.}}
{{note|Do not forget to run this command.}}
{{caution|If you run this command incorrectly, your harddrive will be erased.}}
{{warning|Do not delete all files from your harddrive.}}

The result will be:


Tip  If you do it this way, your life will be easier.
Note  Do not forget to run this command.
Caution  If you run this command incorrectly, your harddrive will be erased.
Warning  Do not delete all files from your harddrive.

These message boxes all use transclusion from {{MessageBox}}.


The Header MessageBox Series

These are a series of specific message boxes for using at the top of articles. The derive via transclusion from the {{MessageBox}} template.

The Stub MessageBox Series

The stub template is {{stub}}. The result of using this template will be:

This article is a stub. Please help to improve the relax wiki by expanding the article.