Template:Tip: 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 #0c6; border-left-width: 10px; margin: 1em auto; width: 90%; background-color: #e0ffe8; padding: 2px;"
{| cellspacing="0" style="border: 1px solid #0c6; border-left-width: 10px; margin: 1em auto; width: {{{width|90%}}}; background-color: #e0ffe8; 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
  | de = Hinweis
  | de = Hinweis
Line 12: Line 12:


== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''tip'''<nowiki>|</nowiki>message<nowiki>}}</nowiki>
  {{obr}}'''tip'''{{!}}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>{{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>
{{tip|If the main menu is hidden press {{key press|F10}}.}}
{{tip|If the main menu is hidden press {{key press|F10}}.}}
<nowiki>{{tip|If the main menu is hidden press {{key press|F10}}.|width=20%}}</nowiki>
{{tip|If the main menu is hidden press {{key press|F10}}.|width=20%}}


== Known issues ==
== Known issues ==

Navigation menu