Difference between revisions of "Template:Sidenotes end"
en>Inductiveload (better comment for weird newline) |
m (1 revision imported) |
(No difference)
|
Revision as of 07:57, 26 April 2021
About
Templates {{Right sidenote}}, and {{Left sidenote}} are used to create a text in which notes appear to the side of the text, rather than as footnotes at the end.
These templates are compatible with dynamic layouts. Thus, the way notes are rendered depends on the layout. CSS properties are defined in self.ws_layouts.
Usage
Usage is as follows:
This template uses block (e.g. <div> or <p> ) elements.It should not be nested inside an inline element (e.g. |
- In the Page Namespace, {{Sidenotes begin}} should be placed in the header of the page, and {{Sidenotes end}} in the footer, in order to create margins. (Note: these templates will be deprecated in the future, as css style properties will be imported from the index page)
- In the main namespace, these templates are no longer necessary.
Parameter | Mandatory | Definition | Default |
---|---|---|---|
1 | No | Unused, temporarily retained for access to 2 | — |
2 | No | Width of left and right margin to apply(measured in em values) | 11 |
side | No | Side of page to place a sidenotes column (options: left , right , both ) |
both
|
This template uses a <span> element for formatting.Block-based templates and paragraph breaks cannot be nested inside it. |
{{Right sidenote}} is used to create a sidenote appearing to the right of the text. Script error: No such module "Uses TemplateStyles".
Parameter | Mandatory | Definition | Default |
---|---|---|---|
1 | Yes | The text to appear at the right, possibly including wiki markup. | |
2 | No | The css style of the note |
{{Left sidenote}} is used to create a sidenote appearing to the left of the text. Script error: No such module "Uses TemplateStyles".
Parameter | Mandatory | Definition | Default |
---|---|---|---|
1 | Yes | The text to appear at the left, possibly including wiki markup. | |
2 | No | The css style of the note |
Example:
- The Solar System/Chapter 1 (try the different layouts to check how notes are rendered in each of them)
The above documentation is transcluded from Template:Sidenotes begin/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |