Difference between revisions of "Template:Note"

From SoftMC-Wiki
Jump to: navigation, search
m (Draft)
(Draft)
Line 1: Line 1:
 
<includeonly>{|width=100%
 
<includeonly>{|width=100%
 
|rowspan="2" width="80" valign="top" align="center" border=1|[[{{#if:{{{icon|}}}|{{{icon}}}|File:NOTE-Info}}|60px|link=]]
 
|rowspan="2" width="80" valign="top" align="center" border=1|[[{{#if:{{{icon|}}}|{{{icon}}}|File:NOTE-Info}}|60px|link=]]
|<big>{{{title}}}</big>
+
|<big>{{#if:{{{title|}}}|{{{title}}}|NOTE}}</big>
 
|-
 
|-
|valign=top|{{{text}}}
+
|valign=top|{{{1}}}
 
|}</includeonly><!--  
 
|}</includeonly><!--  
  
Line 41: Line 41:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
{{Note|watch your head!}}
 +
 +
{{Note
 +
|icon=File:DANGER.svg
 +
|title=DANGER
 +
|Text
 +
}}
 +
 
}}
 
}}
 +
 +
[[Category:Template:Notes]]
 
</noinclude>
 
</noinclude>

Revision as of 11:30, 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-Info.svgNOTE
watch your head!
DANGER.svgDANGER
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.