Difference between revisions of "Template:Sidenotes begin"
From GATE
m (1 revision imported) |
|||
(3 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}}}<!-- | ||
− | -->|left=padding-left:{{#if:{{{2|}}}|{{{2}}}em| | + | -->|left=padding-left:{{#if:{{{2|}}}|{{{2}}}em|6em}};<!-- |
− | -->|right=padding-right:{{#if:{{{2|}}}|{{{2}}}em| | + | -->|right=padding-right:{{#if:{{{2|}}}|{{{2}}}em|6em}};<!-- |
− | -->|both=padding-left:{{#if:{{{2|}}}|{{{2}}}em| | + | -->|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