Template:Sidenote
From MozillaWiki
{{{1}}}
Usage
{{sidenote}} is a front-end for the HTML element <blockquote>
with the attributed CSS class note sidenote, which is used to create right-aligned, narrow block quotes on a page, in the form of short notes, or comments.
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="note sidenote">
tags.
- Usage
-
{{sidenote|1}}
Examples
Case | What you type | What you see a) |
---|---|---|
Basic use | 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 | '''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. - {{note}}: inserts
<blockquote>
tags with the CSS class note for short 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.
The above documentation is transcluded from Template:Sidenote/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |