Template:Warning: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "<div style="margin:1em 5% 1em 5%; border: 1px solid #f42; border-left: 10px solid #f42; width: 50%; background-color: #ffe0d0; padding: 2px;"> {| cellspacing="0" | style="padd...")
 
mNo edit summary
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<div style="margin:1em 5% 1em 5%; border: 1px solid #f42; border-left: 10px solid #f42; width: 50%; background-color: #ffe0d0; padding: 2px;">
{| cellspacing="0" style="border: 1px solid #f42; border-left-width: 10px; margin: {{{margin|1em auto}}}; width: {{{width|90%}}}; background-color: #ffe0d0; padding: {{{padding|2px}}};"
{| cellspacing="0"
| 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;">Warning</span>'''&ensp; {{{1|Add message}}}
| ca = Advertència
|}</div>
| de = Warnung
<noinclude>{{Informative template |1=
| en = Warning
| es = Advertencia
| fr = Avertissement
| it = Avviso
| nl = Waarschuwing
| ru = Предупреждение
| th = '''เดี๋ยวก่อน!'''
}}</span>'''&ensp; {{{1|Add message}}}
|}<noinclude>{{Informative template |1=
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
Line 9: Line 17:


== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''warning'''<nowiki>|</nowiki>message<nowiki>}}</nowiki>
  {{obr}}'''warning'''  
{{!}} 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>{{warning|Dumping the fuel enroute may leave you unable to reach any airport}}</nowiki>
  <nowiki>{{warning|Dumping the fuel enroute may leave you unable to reach any airport.}}</nowiki>
{{warning|Dumping the fuel enroute may leave you unable to reach any airport}}
{{warning|Dumping the fuel enroute may leave you unable to reach any airport.}}
 
<nowiki>{{warning|Dumping the fuel enroute may leave you unable to reach any airport.|width=30%}}</nowiki>
{{warning|Dumping the fuel enroute may leave you unable to reach any airport.|width=30%}}
 
== Known issues ==
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
{{obr}}'''warning'''{{!}}'''1='''message{{cbr}}


== Related templates ==
== Related templates ==
=== Messagebox templates ===
* {{tl|caution}} &ndash; When there might be damages to the virtual aircraft or to real equipment
* {{tl|caution}} &ndash; When there might be damages to the virtual aircraft or to real equipment
* {{tl|note}} &ndash; For important notes
* {{tl|note}} &ndash; For important notes
* {{tl|tip}} &ndash; For helpful tips
* {{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}}


}}
}}

Revision as of 11:48, 24 February 2020

Warning  Add message
The following template description is not displayed when the template is inserted in an article.

Goal

Use this template to add a warning when a virtual aircraft might crash or when real equipment or ones health might be jeopardized.

Usage

{{warning 
| 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

{{warning|Dumping the fuel enroute may leave you unable to reach any airport.}}
Warning  Dumping the fuel enroute may leave you unable to reach any airport.
{{warning|Dumping the fuel enroute may leave you unable to reach any airport.|width=30%}}
Warning  Dumping the fuel enroute may leave you unable to reach any airport.

Known issues

Adding external links must be done like below. Specifically note the 1=.

{{warning|1=message}}

Related templates

Messagebox templates

  • {{caution}} – When there might be damages to the virtual aircraft or to real equipment
  • {{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.