Template:Note: Difference between revisions

From RailTopoModel® Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
No edit summary
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}}}
|&nbsp;
|}
|}
|}</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===
This template has two unnamed arguments: A first, obligatory for the content and a second, optional for the kind of note.
*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)


Possible values for the second argument are:
* (Empty): general note
* error: error note
* gotcha: like error
* reminder: reminder
===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

🗒️ This is just a note.  


{{note|Error|error}}

delivers

Error  
{{note|Don't forget me!|reminder}}

delivers

💡 Don't forget me!  


{{note|Once and forall!|notice}}

delivers

🗒️
NOTICE
Once and forall!  


{{note|Feel free to manipulate the image ...|file=timeline.svg}}

delivers

Timeline.svg Feel free to manipulate the image ...  


{{note|... and its size|file=timeline.svg|width=200}}

delivers

Timeline.svg ... and its size