Changes

Jump to navigation Jump to search

Template:Warning

1,123 bytes added, 17:44, 15 October 2015
Redesign of the template using the Template:MessageBox meta-template transclusion. Full documentation has also been added.
{{MessageBox| cellspacingmessage ="0" style{{{message|Add message}}}| title ="Warning| border: 1px = thin solid #f42; border-left-width: 10px; margin: 1em auto; width: | bgcolor = #ffe0d0}} <noinclude> == Goal == To provide a clear warning to the reader. == Usage ==  <nowiki>{{{width</nowiki>'''warning'''|90%}''message=''<nowiki>}}</nowiki> ; background-colormessage : #ffe0d0; padding: 2px;"The obligatory warning text. == Example ==  <nowiki>{{Warning| stylemessage="padding-left:5px;"This is a warning test message}}</nowiki> {{Warning| '''<span classmessage=This is a warning test message}} == Informative Message Box Series ="smallcaps" style="font This idea of using a meta-varianttemplate transclusion was suggested by [http:small-caps;"//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>Warning{{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.}}</spannowiki>'''&ensp;  The result will be: {{tip|If you do it this way, your life will be easier.}}{{1note|Add messageDo 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.}} </noinclude>
Trusted, Bureaucrats
4,228

edits

Navigation menu