Template:Note/doc: Difference between revisions
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
==Usage== | ==Usage== | ||
{{tlf|'''note'''}} is a front-end for the HTML element {{tag|blockquote|o}} with the attributed CSS class {{samp|note}}, which is used to create block quotes on a page, | {{tlf|'''note'''}} is a front-end for the HTML element {{tag|blockquote|o}} with the attributed CSS class {{samp|note}}, which is used to create narrow block quotes on a page, in the form of short notes, or comments. | ||
This template is specifically intended for adding notes on wiki-pages. In the output, your inserted text is preceded by the text "'''Note: '''". | This template is specifically intended for adding notes on wiki-pages. In the output, your inserted text is preceded by the text "'''Note: '''". | ||
Line 24: | Line 24: | ||
{| class="wikitable" style="background-color: white;" | {| class="wikitable" style="background-color: white;" | ||
|- | |- | ||
! Case !! | ! Case !! width="300px;" | What you type !! width="600px;" | What you see {{sup|a)}} | ||
|- | |- | ||
| Basic use || {{tlc|note|<nowiki | | Basic use || {{tlc|note|<nowiki>Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att Sandels talat rätt. <br>”Ty visst var tanken”, mente man, ”hos Dufva knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”</nowiki>}} || {{note|Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att Sandels talat rätt. <br>”Ty visst var tanken”, mente man, ”hos Dufva knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”}} | ||
|- | |- | ||
| Wiki-code || {{tlc|note|<nowiki | | Wiki-code || {{tlc|note|<nowiki>'''Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att''' [[Wikipedia:Johan August Sandels|Sandels]] '''talat rätt.''' <br>''”Ty visst var tanken”'', '''mente man,''' ''”hos ''Dufva'' knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”''</nowiki>}} || {{note|'''Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att''' [[Wikipedia:Johan August Sandels|Sandels]] '''talat rätt.''' <br>''”Ty visst var tanken”'', '''mente man,''' ''”hos ''Dufva'' knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”''}} | ||
|} | |} | ||
{{sup|a)}} <small>Excerpt from ''"Sven Dufva"'' from ''Fänrik Ståls sägner'' (eng. "The Tales of Ensign Stål") by [[Wikipedia:Johan Ludvig Runeberg|Johan Ludvig Runeberg]]. (Read a hastily put together [[User:Lakrits/Sven Dufva|translation into English]].)</small> | {{sup|a)}} <small>Excerpt from ''"Sven Dufva"'' from ''Fänrik Ståls sägner'' (eng. "The Tales of Ensign Stål") by [[Wikipedia:Johan Ludvig Runeberg|Johan Ludvig Runeberg]]. (Read a hastily put together [[User:Lakrits/Sven Dufva|translation into English]].)</small> | ||
Line 34: | Line 34: | ||
==See also== | ==See also== | ||
* {{tl|blockquote}}: inserts {{tag|blockquote|o}} tags without any CSS class, but with an option to add CSS styling properties. | * {{tl|blockquote}}: inserts {{tag|blockquote|o}} tags without any CSS class, but with an option to add CSS styling properties. | ||
* {{tl|sidenote}}: inserts {{tag|blockquote|o}} tags with the CSS class {{samp|note sidenote}}. | * {{tl|sidenote}}: inserts {{tag|blockquote|o}} tags with the CSS class {{samp|note sidenote}} for short, right-aligned notes. | ||
* {{tl|abbr}}: inserts {{tag|abbr|o}} tags to include a tooltip explanation of an abbreviation. | * {{tl|abbr}}: inserts {{tag|abbr|o}} tags to include a tooltip explanation of an abbreviation. |
Latest revision as of 08:35, 22 December 2014
Usage
{{note}} is a front-end for the HTML element <blockquote>
with the attributed CSS class note, which is used to create narrow block quotes on a page, in the form of short notes, or comments.
This template is specifically intended for adding notes on wiki-pages. In the output, your inserted text is preceded by the text "Note: ".
Parameter
There is 1 parameter, which is unnamed and required.
Syntax
The template's syntax is
{{note|custom text }}
Required parameter
1
- Custom text
The text you wish to enclose in <blockquote class="note">
tags.
- Usage
{{note|1}}
Examples
Case | What you type | What you see a) |
---|---|---|
Basic use | {{note|Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att Sandels talat rätt. <br>”Ty visst var tanken”, mente man, ”hos Dufva knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”}} |
|
Wiki-code | {{note|'''Och dessa ord, de spriddes sen i hären vitt och brett, <br>och alla tyckte överallt, att''' [[Wikipedia:Johan August Sandels|Sandels]] '''talat rätt.''' <br>''”Ty visst var tanken”'', '''mente man,''' ''”hos ''Dufva'' knapp till mått; <br>ett dåligt huvud hade han, men hjärtat, det var gott.”''}} |
|
a) Excerpt from "Sven Dufva" from Fänrik Ståls sägner (eng. "The Tales of Ensign Stål") by Johan Ludvig Runeberg. (Read a hastily put together translation into English.)
See also
- {{blockquote}}: inserts
<blockquote>
tags without any CSS class, but with an option to add CSS styling properties. - {{sidenote}}: inserts
<blockquote>
tags with the CSS class note sidenote for short, right-aligned notes.
- {{abbr}}: inserts
<abbr>
tags to include a tooltip explanation of an abbreviation. - {{bdi}}: inserts
<bdi>
tags to allow for inline changes in text direction. - {{bdo}}: inserts
<bdo>
tags, forcing inline changes in text direction. - {{code}}: inserts
<code>
tags. - {{mark}}: inserts
<mark>
tags, highlighting the enclosed text. - {{samp}}: inserts
<samp>
tags. - {{var}}: inserts
<var>
tags. - {{varserif}}: inserts
<var>
tags with serif font styling.