Template:Tip: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Fix/update doc internals; add width param (needed for pages like Nasal library and Canvas MapStructure Layers)
No edit summary
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="0" style="border: 1px solid #0c6; border-left-width: 10px; margin: 1em auto; width: {{{width|90%}}}; background-color: #e0ffe8; padding: 2px;"
{| cellspacing="0" style="border: 1px solid #0c6; border-left-width: 10px; margin: {{{margin|1em auto}}};; width: {{{width|90%}}}; background-color: #e0ffe8; padding: {{{padding|2px}}};"
| 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
| ca = Consell
  | de = Hinweis
  | de = Hinweis
  | en = Tip
  | en = Tip
| es = Consejo
  | fr = Conseil
  | fr = Conseil
  | it = Suggerimento
  | it = Suggerimento
Line 12: Line 14:


== Usage ==
== Usage ==
  {{obr}}'''tip'''{{!}}message{{!}}''width=''{{cbr}}
  {{obr}}'''tip'''
{{!}} message
{{!}} ''width=''
{{!}} ''padding'' =
{{!}} ''margin''  =
{{cbr}}


; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 90%.
; width : Width of the messagebox, preferably as a percentage of the width of the page content. Defaults to 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 ==
== Example ==
  <nowiki>{{tip|If the main menu is hidden press {{key press|F10}}.}}</nowiki>
  <nowiki>{{tip|If the main menu is hidden press {{key press|F10}}.}}</nowiki>
Line 25: Line 35:
== 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=You can add your screenshots to a forum post.  For instructions see [http://forum.flightgear.org/viewtopic.php?f=19&t=8873 this forum sticky].}}</nowiki>
  {{obr}}note{{!}}1{{=}}You can add your screenshots to a forum post.  For instructions see {{obr}}forum link{{!}}t{{=}}8873{{!}}text{{=}}this forum sticky{{cbr}}.{{cbr}}


{{tip|1=You can add your screenshots to a forum post.  For instructions see [http://forum.flightgear.org/viewtopic.php?f=19&t=8873 this forum sticky].}}
{{tip|1=You can add your screenshots to a forum post.  For instructions see {{forum link|t=8873|text=this forum sticky}}.}}


== Related templates ==
== Related templates ==

Revision as of 11:21, 24 February 2020

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

Goal

Use this template to add a helpful tip.

Usage

{{tip
| message
| width=
| padding =
| margin  =
}}
width
Width of the messagebox, preferably as a percentage of the width of the page content. 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

{{tip|If the main menu is hidden press {{key press|F10}}.}}
Tip  If the main menu is hidden press F10.
{{tip|If the main menu is hidden press {{key press|F10}}.|width=20%}}
Tip  If the main menu is hidden press F10.

Known issues

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

{{note|1=You can add your screenshots to a forum post.  For instructions see {{forum link|t=8873|text=this forum sticky}}.}}
Tip  You can add your screenshots to a forum post. For instructions 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
  • {{note}} – For important notes

Inline italic templates

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