Difference between revisions of "Template:Warning"

From relax wiki
Jump to navigation Jump to search
(→‎Informative Message Box Series: Added info about {{MessageBox}}.)
(The 'Informative Message Box Series' text has been shifted into {{MessageBox/doc_series}} to be reused by all the message box templates, and is now transcluded.)
Line 24: Line 24:
 
{{Warning|This is a warning test message}}
 
{{Warning|This is a warning test message}}
  
== Informative Message Box Series ==
+
{{MessageBox/doc_series}}
 
 
{{note|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 a series of message boxes for helping to inform the reader:
 
 
 
* {{tl|tip}}
 
* {{tl|note}}
 
* {{tl|caution}}
 
* {{tl|warning}}
 
 
 
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 files from your harddrive.}}</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 files from your harddrive.}}
 
 
 
These message boxes all use transclusion from {{tl|MessageBox}}.
 
  
 
</noinclude>
 
</noinclude>

Revision as of 17:56, 15 October 2015

Warning  Add message


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


Template:MessageBox/doc series