Template:Note/doc
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Contents
Usage
Method 1
The following displays the notification icon and the word 'Note:'. You can follow this with whatever text/images/markup you like.
{{note}} Try it this way!
Note: Try it this way!
Method 2
The following includes the text passed to the template, and uses a table to stop the text flowing round the icon.
{{note|Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight. Unfortunately, the example cannot be shown in the Vector skin, because Vector's article width is longer than ScratchWikiSkin's.}}
Note: | Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight. Unfortunately, the example cannot be shown in the Vector skin, because Vector's article width is longer than ScratchWikiSkin's. |
Method 3
The following includes the text passed to the template, uses a table to stop the text flowing round the icon, and changes the word "Note".
{{note|Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.|Cool thing}}
Cool thing: | Here is a long note, which is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight. |
To achieve the same effect as Method 1 (i.e. text is allowed to wrap to the next line), simply only specify the second parameter:
{{note|2=Cool thing}}Try it this way!
Cool thing: Try it this way!