Template:Sidenote/doc
Jump to navigation
Jump to search
Usage
{{sidenote}} is a front-end for the HTML element <blockquote>
with the attributed CSS class sidenote, which is used to create right-aligned, narrow block quotes on a page, usually of long text strings that would be indistinct within a larger text block.
NB! It is the block quote itself, that is aligned to the right. The text you enter will be aligned to the left.
Parameter
There is 1 parameter, which is unnamed and required.
Syntax
The template's syntax is
{{sidenote|custom text }}
Required parameter
1
- Custom text
The text you wish to enclose in <blockquote class="sidenote">
tags.
- Usage
{{sidenote|1}}
Examples
Case | What you type | What you see a) |
---|---|---|
Basic use | {{sidenote|”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.” <br><br>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 | {{sidenote|''”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.”'' <br><br>'''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 paoperties. - {{note}}: inserts
<blockquote>
tags with the CSS class note.
- {{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.