Template:Note: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Ferri Leberl (talk | contribs) No edit summary |
Ferri Leberl (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{|border="5" | <includeonly>{|border="5" | ||
| | | | ||
{|type="wikitable" border="0" style={{#switch:{{{2}}}|error="background-color:#ffbbbb;"|gotcha="background-color:#ffbbbb;"|reminder="background-color:#E7DBBD;"|#default="background-color:#ffeeee;"}} | {|type="wikitable" border="0" style={{#switch:{{{2}}}|error="background-color:#ffbbbb;"|gotcha="background-color:#ffbbbb;"|reminder="background-color:#E7DBBD;"|notice="background-color:#E0E0FF;"|#default="background-color:#ffeeee;"}} | ||
|valign="top"|<font size="+3">{{#switch:{{{2}}}|error=❗[[category:Error]]|gotcha=❗|reminder=💡|#default=🗒️}}</font> | |valign="top"|{{#if:{{{file|}}}|[[file:{{{file}}}|{{{width|100}}}px]]|<font size="+3">{{#switch:{{{2}}}|error=❗[[category:Error]]|gotcha=❗|reminder=💡|#default=🗒️}}</font>{{#ifeq:{{{2}}}|notice|<br>'''NOTICE'''}}}} | ||
|{{{1}}} | |{{{1}}} | ||
| | |||
|} | |} | ||
|}</includeonly> | |}</includeonly> | ||
Line 10: | Line 11: | ||
This template allows for a standardized display of general notes, error notes and reminders. | This template allows for a standardized display of general notes, error notes and reminders. | ||
===Arguments=== | ===Arguments=== | ||
*1 (required): the content | |||
*2: the kind of note.<br>Possible values for the second argument are: | |||
** (Empty): general note | |||
** error: error note | |||
** gotcha: like error | |||
** reminder: reminder | |||
** notice: as in ISO 3864-2; points to possible material damage | |||
*file: Alows to customize the image | |||
*width: allows to customize the image width (in px) | |||
===dependencies=== | ===dependencies=== | ||
This template does not employ any other templates and is not used by any other templates. | This template does not employ any other templates and is not used by any other templates. | ||
Line 29: | Line 33: | ||
{{note|Error|error}} | {{note|Error|error}} | ||
{{interwiki|2=all}} | |||
<pre>{{note|Don't forget me!|reminder}}</pre> | <pre>{{note|Don't forget me!|reminder}}</pre> | ||
delivers | delivers | ||
{{note|Don't forget me!|reminder}} | {{note|Don't forget me!|reminder}} | ||
<pre>{{note|Once and forall!|notice}}</pre> | |||
delivers | |||
{{note|Once and forall!|notice}} | |||
<pre>{{note|Feel free to manipulate the image ...|file=timeline.svg}}</pre> | |||
delivers | |||
{{note|Feel free to manipulate the image ...|file=timeline.svg}} | |||
<pre>{{note|... and its size|file=timeline.svg|width=200}}</pre> | |||
delivers | |||
{{note|... and its size|file=timeline.svg|width=200}} | |||
[[Category:ContentTemplate]] | [[Category:ContentTemplate]] | ||
{{interwiki}} | |||
</noinclude> | </noinclude> |
Latest revision as of 14:16, 23 March 2025
Application
This template allows for a standardized display of general notes, error notes and reminders.
Arguments
- 1 (required): the content
- 2: the kind of note.
Possible values for the second argument are:- (Empty): general note
- error: error note
- gotcha: like error
- reminder: reminder
- notice: as in ISO 3864-2; points to possible material damage
- file: Alows to customize the image
- width: allows to customize the image width (in px)
dependencies
This template does not employ any other templates and is not used by any other templates.
Example
{{note|This is just a note.}}
delivers
|
{{note|Error|error}}
delivers
|
{{note|Don't forget me!|reminder}}
delivers
|
{{note|Once and forall!|notice}}
delivers
|
{{note|Feel free to manipulate the image ...|file=timeline.svg}}
delivers
|
{{note|... and its size|file=timeline.svg|width=200}}
delivers
|