Difference between revisions of "Template:Note"
(Draft) |
m (Draft) |
||
| Line 1: | Line 1: | ||
<includeonly>{|width=100% | <includeonly>{|width=100% | ||
| − | |rowspan=2 width=120 valign=top align=center|[[{{{icon}}}| | + | |rowspan=2 width=120 valign=top align=center|[[{{{icon}}}|80px|link=]] |
|<big>{{{title}}}</big> | |<big>{{{title}}}</big> | ||
|- | |- | ||
| Line 11: | Line 11: | ||
{{Template | {{Template | ||
|description= | |description= | ||
| − | |template=<nowiki>{{Note | + | 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:Note]]. | ||
| + | |||
| + | |template= | ||
| + | <nowiki> | ||
| + | {{Note | ||
| + | |icon= | ||
| + | |title= | ||
| + | |text= | ||
| + | }} | ||
| + | </nowiki> | ||
| + | |||
|parameters= | |parameters= | ||
| − | + | ;icon | |
| + | : Icon in the File: namespace. | ||
| + | ;title | ||
| + | : The bold title over the note. | ||
| + | ;text | ||
| + | : The actual note text. | ||
| + | |||
|examples= | |examples= | ||
| + | In this way this template should be used in all specialized sub-templates: | ||
| + | <pre> | ||
| + | {{Note | ||
| + | |icon=File:Note-Danger.svg | ||
| + | |title=Danger | ||
| + | |text={{{1}}} | ||
}} | }} | ||
| + | </pre> | ||
| + | }} | ||
| + | |||
| + | [[Category:Template:Note]] | ||
</noinclude> | </noinclude> | ||
Revision as of 17:34, 14 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:Note.
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}}}
}}
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.