Template:TOC right: Difference between revisions

From Sapphire Wiki
m 1 revision
 
don't emit style unless width exists
Line 1: Line 1:
<div style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}>__TOC__</div><noinclude>
<templatestyles src="Template:TOC_right/styles.css" />{{#if:{{{limit|}}}|<templatestyles src="Template:TOC limit/styles.css" />}}<!--
--><div class="tocright {{#if:{{{clear|}}}|tocright-clear-{{{clear|}}}}} {{#if:{{{limit|}}}|toclimit-{{{limit}}}}}" {{#if:{{{width|{{{1|}}}}}}|style="width: {{{width|{{{1}}}}}};"}}>__TOC__</div><noinclude>
{{documentation}}
{{documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
</noinclude>
</noinclude>

Revision as of 13:06, 17 September 2021