Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Template:Note"

From FlightGear wiki
Jump to: navigation, search
(Now with an example ... :/)
m (Switch to the {{forum link}} template for all forum links.)
 
(38 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{| style="background-color:#ddddee;color:#000000;border:1px solid #606060;margin:1em 5% 1em 5%;"
+
{| cellspacing="0" style="border: 1px solid #1992ff; border-left-width: 10px; width: {{{width|90%}}}; background-color: #e0f2ff; padding: {{{padding|2px}}}; margin: {{{margin|1em auto}}};"
| style="padding:0.5em 0.5em;" |
+
| style="padding-left: 5px"| '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
| style="padding:0.5em 0.5em;" | <b>NOTE:</b> {{{note|Example note is here}}}
+
| ca = Nota
|}
+
| de = Bemerkung
 +
| en = Note
 +
| es = Porfavor notar:
 +
| fr = Note
 +
| it = Nota
 +
| ru = Примечание
 +
| th = นี่!
 +
}}</span>'''&ensp; {{{1|Add message}}}
 +
|}<noinclude>{{Informative template |1=
 +
__NOTOC__
 +
== Goal ==
 +
Use this template to add a note about something important.
  
[[Category:Templates]]
+
== Usage ==
 +
{{obr}}'''note'''
 +
{{!}} 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 ==
 +
<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{{=}}'''.
 +
{{obr}}note{{!}}1{{=}}For instruction on how to add screenshots to a forum post, see {{obr}}forum link{{!}}t=8873{{!}}text{{=}}this forum sticky{{cbr}}.{{cbr}}
 +
 
 +
{{note|1=For instruction on how to add screenshots to a forum post, see {{forum link|t=8873|text=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}}
 +
 
 +
}}
 +
 
 +
[[Category:Messagebox templates]]
 +
</noinclude>

Latest revision as of 06:04, 8 June 2019

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

Goal

Use this template to add a note about something important.

Usage

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

{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.}}
Note  The gyro compass may drift. Compare the gyro compass against the wet compass at regular intervals.
{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.|width=50%}}
Note  The gyro compass may drift. Compare the gyro compass against the wet compass at regular intervals.

Known issues

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

{{note|1=For instruction on how to add screenshots to a forum post, see {{forum link|t=8873|text=this forum sticky}}.}}
Note  For instruction on how to add screenshots to a forum post, see this forum sticky This is a link to the FlightGear forum..

Related templates

Messagebox templates

  • {{warning}} – When a virtual aircraft might crash or when real equipment or ones health might be jeopardized
  • {{caution}} – When there might be damages to the virtual aircraft or to real equipment
  • {{tip}} – For helpful tips

Inline italic templates

Note If there is a need for a warning use a messagebox template instead.