Editing Template:Note/doc

Jump to: navigation, search

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!

Please note that all contributions to Mod My Classic Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Mod My Classic Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: