Template:RightTOC: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
No edit summary
(Merge with previous.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| 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}}}}}};"
<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__
| __TOC__
|}<noinclude>
|}</onlyinclude>
Copied from [[Wikipedia]] [http://en.wikipedia.org/wiki/Template:TOCright]</noinclude>
 
==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 18: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.