Editing Template:Note/doc
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | {{documentation}} | ||
+ | |||
+ | == Usage == | ||
=== Method 1 === | === Method 1 === | ||
Line 5: | Line 8: | ||
{{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! |