Template:Outside L

From Wikisource
Jump to: navigation, search
[view] [edit] [history] [purge] Documentation icon Template documentation

Contents

Usage[edit]

For use with works with sidenotes where the works are transcluded from the Page: namespace.

These templates display sidenotes to the left and right as displayed when in the Page namespace, though when the pages are transcluded to the main namespace, the sidenotes are 'all displayed on the left hand side of the page. Uses a &ltspan> for formatting.

  • Pages with original notes on left hand side use {{outside L}}
{{outside L|Special sidenote to display}}{{lorem ipsum}}
Special sidenote to display Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
  • Pages with original notes on right hand side use {{outside RL}}
{{outside RL|Special sidenote to display}}{{lorem ipsum}}

Note: Template:outside is not and should not be used directly, it is called as appropriate from within {{outside L}} and {{outside RL}}

Available parameters[edit]

  • {{{depth}}}: Depth of penetration into left margin, default 9em.
  • {{{padding}}}: The space on the right of the text, default 1em.
  • {{{top}}}: Vertical offset of text (margin-top) in pixel, default is 4px
  • {{{align}}}: Text alignment (text-align) within the span, default to "left"
  • {{{size}}}: Size of font (font-size), default to "smaller", can be freely set,
  • Note that line-height is set to 125%

Notes[edit]

Note - The use of this template has elements of complexity due to the requirement for the technical placement of text relative to other text
  • PAGE: namespace

When set within the Page: namespace, the use of {{sidenotes begin}} and {{sidenotes end}} within the header and footer, respectively, is recommended for display purposes.

  • MAIN namespace

When transcluding to main namespace, the following formatting is recommended

<div style="margin-left: XXem">
<pages your transclusion details as Wikisource:ProofreadPage />
</div>

where XXem = depth + padding; so 10em for default usage
example Copyright Act, 1956 (United Kingdom)/Part 1

See also[edit]