This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.

Template:Sidenotes begin/documentation

Free texts and images.
Jump to navigation Jump to search

Templates {{Sidenotes begin}}, {{Sidenotes end}}, {{Left sidenote}}, and {{Right sidenote}} are used to create a text in which notes appear to the side of the text, rather than as footnotes at the end. Usage is as follows:



{{Sidenotes begin}} appears at the begining of the section containing sidenotes.

Parameters
Paramater Mandatory Definition Default
1 no The width of the main text body in "em" 36
2 No The width of the total space for notes (on either side of the main body) in ems. This space is the sum of the width of the note and the width of the space (padding) between the note and the main text body. 11



{{Sidenotes end}} is placed at the end of the section containing sidenotes.

Parameters
Paramater Mandatory Definition Default
None. None. None. None.



{{Left sidenote}} is used to create a sidenote appearing to the left of the text.

Parameters
Paramater Mandatory Definition Default
1 Yes The text to appear at the left, possibly including wiki markup.
2 No The width of the note text in ems. 10
3 No The space (padding) between the note text and the main text body. 1
align No text alignment of the note [rigth, left, center, justify]. right
size No font size of note [xx-small, x-small, small, medium, large, x-large, xx-large] or [smaller, larger] or [%] or [length (in px or em)]. smaller



{{Right sidenote}} is used to create a sidenote appearing to the right of the text.

Parameters
Paramater Mandatory Definition Default
1 Yes The text to appear at the right, possibly including wiki markup.
2 No The width of the note text in ems. 10
3 No The space (padding) between the note text and the main text body. 1
align No text alignment of the note [right, left, center, justify]. left
size No font size of note [xx-small, x-small, small, medium, large, x-large, xx-large] or [smaller, larger] or [%] or [length (in px or em)]. smaller




Example:

{{sidenotes begin}}

''...yet if any impertinent Person shall, either to get Himself a Name, 
or for what other end soever, wilfully or carelesly mistake the State of 
the Controversie, or the sence of his Arguments, or shall rail instead 
of arguing, as hath been done of Late in Print by divers Chymists ; 
''{{left sidenote|G. and F. and H. and others, in their books 
against one another.}}''or lastly, shall write against them in 
a canting way ; I mean, shall express himself in ambiguous or obscure 
terms, or argue from experiments not intelligibly enough Deliver'd, 
''Carneades'' professes, That he values his time so much, as not to 
think the answering such Trifles worth the loss of it.''

{{sidenotes end}}


...yet if any impertinent Person shall, either to get Himself a Name, or for what other end soever, wilfully or carelesly mistake the State of the Controversie, or the sence of his Arguments, or shall rail instead of arguing, as hath been done of Late in Print by divers Chymists ; G. and F. and H. and others, in their books against one another.or lastly, shall write against them in a canting way ; I mean, shall express himself in ambiguous or obscure terms, or argue from experiments not intelligibly enough Deliver'd, Carneades professes, That he values his time so much, as not to think the answering such Trifles worth the loss of it.



Note: Non-default values should be used consistently in both the {{Sidenotes begin}} template, and the {{Right sidenote}} and {{Left sidenote}} templates. For example, for a text body width of 25em, and a note width of 15em, with a padding of 2em, you should use the following:

{{Sidenotes begin|25|17}}

...body text... {{left sidenote|note text|15|2}}  ...body text...

{{Sidenotes end}}

...yet if any impertinent Person shall, either to get Himself a Name, or for what other end soever, wilfully or carelesly mistake the State of the Controversie, or the sence of his Arguments, or shall rail instead of arguing, as hath been done of Late in Print by divers Chymists ; G. and F. and H. and others, in their books against one another.or lastly, shall write against them in a canting way ; I mean, shall express himself in ambiguous or obscure terms, or argue from experiments not intelligibly enough Deliver'd, Carneades professes, That he values his time so much, as not to think the answering such Trifles worth the loss of it.


Use of inconsistent values will result in one set of parameters for the body text, and a different set for the sidenotes, which may or may not be desirable.