Template:Note/doc: Difference between revisions
Jump to navigation
Jump to search
(Corr.) |
|||
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 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 26: | Line 26: | ||
! Case !! style="width:300px;" | What you type !! What you see {{sup|a)}} | ! Case !! style="width:300px;" | What you type !! What you see {{sup|a)}} | ||
|- | |- | ||
| Basic use || {{tlc|note|<nowiki>”Den kulan visste, hur den tog, det måste erkänt bli”, <br>så talte generalen blott, ”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm | | Basic use || {{tlc|note|<nowiki>”Den kulan visste, hur den tog, det måste erkänt bli”, <br>så talte generalen blott, ”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”</nowiki>}} || {{note|”Den kulan visste, hur den tog, det måste erkänt bli”, <br>så talte generalen blott, ”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”}} | ||
|- | |- | ||
| Wiki-code || {{tlc|note|<nowiki>''”Den kulan visste, hur den tog, det måste erkänt bli”'', <br>'''så talte generalen blott,''' ''”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm | | Wiki-code || {{tlc|note|<nowiki>''”Den kulan visste, hur den tog, det måste erkänt bli”'', <br>'''så talte generalen blott,''' ''”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”''</nowiki>}} || {{note|''”Den kulan visste, hur den tog, det måste erkänt bli”'', <br>'''så talte generalen blott,''' ''”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”''}} | ||
|} | |} | ||
{{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. |
Revision as of 08:30, 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 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|”Den kulan visste, hur den tog, det måste erkänt bli”, <br>så talte generalen blott, ”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”}} |
|
Wiki-code | {{note|''”Den kulan visste, hur den tog, det måste erkänt bli”'', <br>'''så talte generalen blott,''' ''”den visste mer än vi; <br>den lät hans panna bli i fred, ty den var klen och arm, <br>och höll sig till, vad bättre var, hans ädla, tappra barm.”''}} |
|
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.