Difference between revisions of "Template:Note"

From relax wiki
Jump to navigation Jump to search
(Converted the documentation to use {{MessageBox/doc}}.)
m (1 revision imported)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{MessageBox
+
{| cellspacing="0" style="border: 1px solid #1992ff; border-left-width: 10px; width: {{{width|90%}}}; background-color: #e0f2ff; padding: {{{padding|2px}}}; margin: {{{margin|1em auto}}};"
| message = {{{1|Add message}}}
+
| style="padding-left: 5px"| '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
| title  = <span style="font-variant:small-caps;">Note</span>
+
| de = Bemerkung
| border = thin solid #1992ff
+
| en = Note
| bgcolor = #e0f2ff
+
| fr = Note
}}<noinclude>
+
  | it = Nota
 +
| th = นี่!
 +
}}</span>'''&ensp; {{{1|Add message}}}
 +
|}<noinclude>{{Informative template |1=
 +
__NOTOC__
 +
== Goal ==
 +
Use this template to add a note about something important.
  
{{MessageBox/doc
+
== Usage ==
| name    = {{FULLPAGENAME}}
+
{{obr}}'''note'''
| goal    = To provide a highly visible note to the reader.
+
{{!}} message
| usage   =
+
{{!}} ''width''   =
  <nowiki>{{</nowiki>'''note'''&#124;message<nowiki>}}</nowiki>
+
  {{!}} ''padding'' =
 +
{{!}} ''margin'' =
 +
{{cbr}}
  
; message : The obligatory note to the reader.
+
; width : Width of the messagebox, preferably as a percentage of the width of the page content. This defaults to {{param||90%}}.
| example =  
+
 
  <nowiki>{{note|Please take note of this}}</nowiki>
+
; 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 ==
 +
<nowiki>{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.}}</nowiki>
 +
{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.}}
 +
 
 +
<nowiki>{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.|width=50%}}</nowiki>
 +
{{note|The gyro compass may drift. Compare the gyro compass against the wet compass at regular intervals.|width=50%}}
 +
 
 +
== Known issues ==
 +
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
 +
<pre style="white-space: pre-wrap;"><nowiki>{{note|1=For instruction on how to add screenshots to a forum post, see [http://forum.flightgear.org/viewtopic.php?f=19&t=8873 this forum sticky].}}</nowiki></pre>
 +
 
 +
{{note|1=For instruction on how to add screenshots to a forum post, see [http://forum.flightgear.org/viewtopic.php?f=19&t=8873 this forum sticky].}}
 +
 
 +
== Related templates ==
 +
=== Messagebox templates ===
 +
* {{tl|warning}} &ndash; When a virtual aircraft might crash or when real equipment or ones health might be jeopardized
 +
* {{tl|caution}} &ndash; When there might be damages to the virtual aircraft or to real equipment
 +
* {{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}}
  
{{note|Please take note of this}}
 
 
}}
 
}}
  
[[Category:MessageBox templates]]
+
[[Category:Messagebox templates]]
[[Category:InformBox templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 21:11, 6 September 2017

Note  Add message

Template:Informative template