Difference between revisions of "Template:Sidenotes begin"
From GATE
ArchivesPUG (talk | contribs) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{NAMESPACE}}|Page|<div <!-- | |
− | |||
Add classes | Add classes | ||
-->class="_sidenote_container _sidenote_{{{side|both}}}" <!-- | -->class="_sidenote_container _sidenote_{{{side|both}}}" <!-- | ||
− | |||
Add container styles (could use TemplateStyles for most of this) | Add container styles (could use TemplateStyles for most of this) | ||
-->style="position:relative; text-align:{{{align|justify}}};<!-- | -->style="position:relative; text-align:{{{align|justify}}};<!-- | ||
− | |||
Add the padding for the sidenotes on the requested sides | Add the padding for the sidenotes on the requested sides | ||
--> {{#switch:{{{side|both}}}<!-- | --> {{#switch:{{{side|both}}}<!-- | ||
Line 13: | Line 10: | ||
-->|both=padding-left:{{#if:{{{2|}}}|{{{2}}}em|6em}}; padding-right:{{#if:{{{2|}}}|{{{2}}}em|6em}};<!-- | -->|both=padding-left:{{#if:{{{2|}}}|{{{2}}}em|6em}}; padding-right:{{#if:{{{2|}}}|{{{2}}}em|6em}};<!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
− | |||
End style | End style | ||
-->"><!-- | -->"><!-- | ||
− | |||
End if:page-ns | End if:page-ns | ||
− | -->}} | + | -->}}<noinclude> |
− | + | [[Category:Sidenotes templates]] | |
</noinclude> | </noinclude> |
Latest revision as of 10:03, 5 May 2021