Template:Note: Difference between revisions

Jump to navigation Jump to search
Fix/update doc internals; add width param (needed for pages like Nasal library and Canvas MapStructure Layers
m (Italian translation)
(Fix/update doc internals; add width param (needed for pages like Nasal library and Canvas MapStructure Layers)
Line 1: Line 1:
{| cellspacing="0" style="border: 1px solid #1992ff; border-left-width: 10px; width: 90%; background-color: #e0f2ff; padding: 2px; margin: 1em auto;"
{| cellspacing="0" style="border: 1px solid #1992ff; border-left-width: 10px; width: {{{width|90%}}}; background-color: #e0f2ff; padding: 2px; margin: 1em auto;"
| style="padding-left: 5px"| '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
| style="padding-left: 5px"| '''<span class="smallcaps" style="font-variant:small-caps;">{{LangSwitch
  | de = Bemerkung
  | de = Bemerkung
Line 12: Line 12:


== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''note'''<nowiki>|</nowiki>message<nowiki>}}</nowiki>
  {{obr}}'''note'''{{!}}message{{!}}''width=''{{cbr}}
 
; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 90%


== Example ==
== Example ==
  <nowiki>{{note|The gyro compass may drift.  Compare the gyro compass against the wet compass at regular intervals.}}</nowiki>
  <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.}}
{{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 ==
== Known issues ==
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
Adding external links must be done like below. Specifically note the '''1{{=}}'''.
<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 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].}}
{{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].}}

Navigation menu