Difference between revisions of "Template:TOC right"

From paradatabase
Jump to navigation Jump to search
(Created page with "<div style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px; top:{{{1|-50px}}}">__TOC__</di...")
 
Line 1: Line 1:
<div style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px; top:{{{1|-50px}}}">__TOC__</div><noinclude>
+
<div style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px; data-top:{{{1|0}}}">__TOC__</div><noinclude>
 
Places Table of contents to the right of page  
 
Places Table of contents to the right of page  
  
<nowiki>{{{1}}}</nowiki> - top (e.g. 20px)
+
see also [[MediaWiki:Common.js]] about position
 +
 
 +
<nowiki>{{{1}}}</nowiki> - top relative to &lt;h1&gt; (e.g. 20px)
  
 
Usage:  
 
Usage:  
 
* <nowiki>{{TOC_right}}</nowiki>  
 
* <nowiki>{{TOC_right}}</nowiki>  
* <nowiki>{{TOC_right|20px}}</nowiki>  
+
* <nowiki>{{TOC_right|20}}</nowiki>  
 
</noinclude>
 
</noinclude>

Revision as of 02:09, 6 February 2019

Places Table of contents to the right of page

see also MediaWiki:Common.js about position

{{{1}}} - top relative to <h1> (e.g. 20px)

Usage:

  • {{TOC_right}}
  • {{TOC_right|20}}