From Test-Scratch-Wiki

< Template:Note

(AUTOMATIC: Transfer template from En Wiki)
 
(Automated edit: Updated Test wiki copy of English wiki page)
 
Line 1: Line 1:
 +
<noinclude>{{:Template:Note/doc/translate}}</noinclude>
 
{{documentation}}
 
{{documentation}}
==Usage==
+
 
===Method 1===
+
== Usage ==
 +
=== Method 1 ===
  
 
The following displays the notification icon and the word 'Note:'.  You can follow this with whatever text/images/markup you like.
 
The following displays the notification icon and the word 'Note:'.  You can follow this with whatever text/images/markup you like.
Line 8: Line 10:
 
{{note}} Try it this way!
 
{{note}} Try it this way!
  
===Method 2===
+
=== Method 2 ===
  
 
The following includes the text passed to the template, and uses a table to stop the text flowing round the icon.
 
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
+
<pre><nowiki>{{note|Here is an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight.}}
second line, which would normally cause it to wrap round the icon, but
+
</nowiki></pre>
because we passed it as a parameter it keeps its left alignment straight.}}</nowiki></pre>
+
 
 +
{{note|Here is an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight. }}
 +
 
 +
=== 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 an extremely long note, which is so long that it 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 instead of writing it after the template, 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  
+
{{note|Here is an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight.|Cool thing}}
because we passed it as a parameter it keeps its left alignment straight.}}
 
 
<noinclude>[[Category:Template Documentations|Note/doc]]</noinclude>
 
<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!

Latest revision as of 17:09, 9 April 2020

Template:Note/doc/translate

Documentation This is a documentation subpage for Template:Note (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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 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 an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight.}}


Note Note: Here is an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight.

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 an extremely long note, which is so long that it 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 instead of writing it after the template, it keeps its left alignment straight.|Cool thing}}


Note Cool thing: Here is an extremely long note, which is so long that it 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 instead of writing it after the template, 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!


Note Cool thing: Try it this way!

Cookies help us deliver our services. By using our services, you agree to our use of cookies.