|
|
Line 1: |
Line 1: |
− | {{documentation}}
| |
− |
| |
− | == Usage ==
| |
| === Method 1 === | | === Method 1 === |
| | | |
Line 8: |
Line 5: |
| | | |
| {{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.
| |
− | <pre><nowiki>{{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.}}
| |
− | </nowiki></pre>
| |
− |
| |
− | {{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".
| |
− |
| |
− | <pre><nowiki>{{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}}</nowiki></pre>
| |
− |
| |
− | {{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}}
| |
− | <noinclude>[[Category:Template Documentations|Note/doc]]</noinclude>
| |
− |
| |
− | 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:
| |
− |
| |
− | <pre><nowiki>{{note|2=Cool thing}}Try it this way!</nowiki></pre>
| |
− |
| |
− | {{note|2=Cool thing}}Try it this way!
| |