Template:Number

From Wikisource
Jump to: navigation, search

{{{1}}}

Documentation[edit]

  • Inserts a number of a page, section or a line.
  • To the right of the text.
  • Creates an anchor for linking from URL, such as Page_name#anchor. The anchor is either the second parameter of the templates, of if the second is not specified, the first one.

Can be used with {{Sidenotes begin}} and {{Sidenotes end}}.

Parameters
Paramater Mandatory Definition Note
1 Yes The text to appear at the right, possibly including wiki markup.
2 No The name of the anchor. If not given, the name of the anchor shall be the parameter 1.
class No If set to "lefttext", the number is positioned at 480 px from the left, to appear next to the right text border when the text class of the surrounding DIV element is "lefttext". Further classes can be added in the future, when needed.

Usage[edit]

Example Note
{{number|123}}
{{number|123''a''|123a}}
{{number|123''a''|123a|class=lefttext}}

Usage with sidenotes[edit]

Usage is:

{{sidenotes begin}}
...But I blush not to acknowledge that I much lesse scruple to confess that I Doubt, 
when I do so, then{{number|2}} to profess that I Know what I do not : And I should have 
much stronger Expectations then I dare yet entertain, to see Philosophy solidly 
establish't, if men would more carefully distinguish those things that they know, 
from those that they ignore or do but think...
{{sidenotes end}}

which becomes:


...But I blush not to acknowledge that I much lesse scruple to confess that I Doubt, when I do so, then2 to profess that I Know what I do not : And I should have much stronger Expectations then I dare yet entertain, to see Philosophy solidly establish't, if men would more carefully distinguish those things that they know, from those that they ignore or do but think...


Anchor[edit]

The anchor may be entered manually as the 2nd parameter. For example {{number|123''a''|456}} ) shows "123a" as the number, setting "456" as the anchor name.

Implementation[edit]

Uses the template {{section}}.

Related templates[edit]

See also {{misnumber}} for errors in the numbering of the original texts.