Template:RightTOC: Difference between revisions
Jump to navigation
Jump to search
(nhvWOXYun) |
WikiMaster (talk | contribs) (Merge with previous.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" | |||
| __TOC__ | |||
|}</onlyinclude> | |||
==Usage== | |||
; Standard Right Floating Table of Contents | |||
{|{{Prettytable}} | |||
|- | |||
|Insert '''<code><nowiki>{{RightTOC}}</nowiki></code>''' into your page's wiki markup. | |||
|- | |||
|<code><nowiki>{{RightTOC|extra style}}</nowiki></code> | |||
|Use the extra style area to add additional style to the surrounding TOC div. | |||
|- | |||
|<code><nowiki>{{RightTOC|width=40%}}</nowiki></code> | |||
|Sets max-width. | |||
|- | |||
|<code><nowiki>{{RightTOC|content=}}</nowiki></code> | |||
|Includes content from stylized section headers. Example here: http://outreach.wikimedia.org/wiki/GLAM/Model_projects | |||
|} | |||
[[Category:TOC templates|{{PAGENAME}}]] | |||
Template code copied from [[Wikipedia]]'s [[wikipedia:Template:TOCright|Template:TOCright]] template, and from [http://wiki.secondlife.com/wiki/Template:RightToc Second Life Wiki]. |
Latest revision as of 17:19, 19 March 2012
Usage
- Standard Right Floating Table of Contents
Insert {{RightTOC}} into your page's wiki markup.
| |
{{RightTOC|extra style}}
|
Use the extra style area to add additional style to the surrounding TOC div. |
{{RightTOC|width=40%}}
|
Sets max-width. |
{{RightTOC|content=}}
|
Includes content from stylized section headers. Example here: http://outreach.wikimedia.org/wiki/GLAM/Model_projects |
Template code copied from Wikipedia's Template:TOCright template, and from Second Life Wiki.