Difference between revisions of "Template:Warning"

From relax wiki
Jump to navigation Jump to search
(Changed the 'message' named argument into an anonymous parameter.)
(Converted the documentation to use {{MessageBox/doc}}.)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{MessageBox
 
{{MessageBox
 
| message = {{{1|Add message}}}
 
| message = {{{1|Add message}}}
| title  = Warning
+
| title  = <span style="font-variant:small-caps;">Warning</span>
 
| border  = thin solid #f42
 
| border  = thin solid #f42
 
| bgcolor = #ffe0d0
 
| bgcolor = #ffe0d0
}}
+
}}<noinclude>
 
 
<noinclude>
 
 
 
== Goal ==
 
  
To provide a clear warning to the reader.
+
{{MessageBox/doc
 
+
| name    = {{FULLPAGENAME}}
== Usage ==
+
| goal    = To provide a clear warning to the reader.
 
+
| usage  =
  <nowiki>{{</nowiki>'''warning'''|message<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>'''warning'''&#124;message<nowiki>}}</nowiki>
  
 
; message : The obligatory warning text.
 
; message : The obligatory warning text.
 +
| example =
 +
<nowiki>{{warning|This is a warning test message}}</nowiki>
  
== Example ==
+
{{warning|This is a warning test message}}
 
+
}}
<nowiki>{{Warning|This is a warning test message}}</nowiki>
 
 
 
{{Warning|This is a warning test message}}
 
 
 
== Informative Message Box Series ==
 
 
 
This idea of using a meta-template transclusion was suggested by [http://wiki.flightgear.org/User_talk:Johan_G#Using_the_messagebox_templates_for_an_external_project Johan G. on the FlightGear wiki].  The {{tl|tip}}, {{tl|note}}, {{tl|caution}}, and {{tl|warning}} message box colour scheme was also devised by Johan.
 
 
 
The following are part of series of message boxes for helping to inform the reader.  For example if you use:
 
 
 
<nowiki>{{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 FGAddon aircraft.}}</nowiki>
 
 
 
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 FGAddon aircraft.}}
 
  
 +
[[Category:MessageBox templates]]
 +
[[Category:InformBox templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:34, 16 October 2015

Warning  Add message

Template documentation

The Template:Warning MessageBox

Goal

To provide a clear warning to the reader.

Usage

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

Example

{{warning|This is a warning test message}}


Warning  This is a warning 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.