Difference between revisions of "Template:Sidenotes begin"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="position:relative; {{#switch:{{{side|both}}}|left=padding-left | + | <includeonly>{{#ifeq:{{NAMESPACE}}|Page|<div <!-- |
+ | |||
+ | Add classes | ||
+ | -->class="_sidenote_container _sidenote_{{{side|both}}}" <!-- | ||
+ | |||
+ | Add container styles (could use TemplateStyles for most of this) | ||
+ | -->style="position:relative;<!-- | ||
+ | |||
+ | Add the padding for the sidenotes on the requested sides | ||
+ | --> {{#switch:{{{side|both}}}<!-- | ||
+ | -->|left=padding-left:{{{2|11em}}};<!-- | ||
+ | -->|right=padding-right:{{{2|11em}}};<!-- | ||
+ | -->|both=padding-left:{{{2|11em}}}; padding-right:{{{2|11em}}};<!-- | ||
+ | -->|}}<!-- | ||
+ | |||
+ | End style | ||
+ | -->"><!-- | ||
+ | |||
+ | Dummy div to match {{sidenotes end}} - can be removed eventually | ||
+ | --><div><!-- | ||
+ | |||
+ | End if:page-ns | ||
+ | -->}}</includeonly> |