Difference between revisions of "Template:Note"
m (Draft) |
m (Draft) |
||
Line 1: | Line 1: | ||
− | <includeonly>{|width=100% style="background-color:# | + | <includeonly>{|width=100% style="background-color:#FFFFDD" |
|rowspan="2" width="70" valign="top" align="left"|[[{{#if:{{{icon|}}}|{{{icon}}}|File:NOTE-Info.svg}}|60px|link=]] | |rowspan="2" width="70" valign="top" align="left"|[[{{#if:{{{icon|}}}|{{{icon}}}|File:NOTE-Info.svg}}|60px|link=]] | ||
|'''{{#if:{{{title|}}}|{{{title}}}|NOTE}}''' | |'''{{#if:{{{title|}}}|{{{title}}}|NOTE}}''' | ||
Line 20: | Line 20: | ||
|icon= | |icon= | ||
|title= | |title= | ||
− | |text | + | |text |
}} | }} | ||
</nowiki> | </nowiki> | ||
Line 44: | Line 44: | ||
{{Note|watch your head!}} | {{Note|watch your head!}} | ||
− | {{Note | + | {{Note|Your Text |
|icon=File:DANGER.svg | |icon=File:DANGER.svg | ||
|title=DANGER | |title=DANGER | ||
− | |||
}} | }} | ||
+ | |||
+ | |||
}} | }} |
Revision as of 11:47, 19 October 2010
This is the base template for all safety notes. It is not meant to be used directly. Instead please use one of the templates in the Category:Template:Notes.
Template
{{Note |icon= |title= |text }}
Parameters
- icon
- Icon in the File: namespace.
- title
- The bold title over the note.
- text
- The actual note text.
Examples
In this way this template should be used in all specialized sub-templates:
{{Note |icon=File:Note-Danger.svg |title=Danger |text={{{1}}} }}
NOTE | |
watch your head! |
DANGER | |
Your Text |
For more examples refer to pages, which use this template: What links here.
Help:Templates describes general usage of templates, including treatment of special characters.