From Test-Scratch-Wiki
InterwikiBot (talk | contribs) (AUTOMATIC: Transfer template from En Wiki) |
Mass editor (talk | contribs) (Automated edit: Updated Test wiki copy of English wiki page) |
||
Line 1: | Line 1: | ||
− | {{#if:{{{1|}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative | + | <noinclude>{{:Template:Note/translate}}</noinclude> |
− | [[Category:Templates | + | {{#if: {{{1|}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative;">[[File:{{{img|Information.png}}}|18px|Note|link=]]</span> '''{{ucfirst:{{{2|Note}}}}}''': {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em; position: relative">{{{1|}}}</td></tr></table>}}<noinclude>{{/doc}}[[Category:Templates]][[Category:Meta Templates]]</noinclude> |
Latest revision as of 17:09, 9 April 2020
Template:Note/translate
Note:
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 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.}}
![]() | 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}}
![]() | 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!
Cool thing: Try it this way!