Difference between revisions of "Template:RightTOC"

From PortlandWiki
Jump to: navigation, search
(http://wiki.secondlife.com/wiki/Template:RightToc)
(Merge with previous.)
 
Line 1: Line 1:
<onlyinclude><div style="float:right;max-width:{{{width|30%}}};margin:8px;{{{1|}}}">__TOC__</div></onlyinclude>
+
<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}}}}}};"
Usage:
+
| __TOC__
 +
|}</onlyinclude>
 +
 
 +
==Usage==
 +
; Standard Right Floating Table of Contents
 
{|{{Prettytable}}
 
{|{{Prettytable}}
 
|-
 
|-
|<code><nowiki>{{RightTOC}}</nowiki></code>
+
|Insert '''<code><nowiki>{{RightTOC}}</nowiki></code>''' into your page's wiki markup.
|Standard right floating TOC that won't grow them more than 30% of the screen width.
+
 
|-
 
|-
 
|<code><nowiki>{{RightTOC|extra style}}</nowiki></code>
 
|<code><nowiki>{{RightTOC|extra style}}</nowiki></code>
Line 10: Line 13:
 
|-
 
|-
 
|<code><nowiki>{{RightTOC|width=40%}}</nowiki></code>
 
|<code><nowiki>{{RightTOC|width=40%}}</nowiki></code>
|Sets max-width. Default is 30%.
+
|Sets max-width.
 
|-
 
|-
 
|<code><nowiki>{{RightTOC|content=}}</nowiki></code>
 
|<code><nowiki>{{RightTOC|content=}}</nowiki></code>
Line 17: Line 20:
 
[[Category:TOC templates|{{PAGENAME}}]]
 
[[Category:TOC templates|{{PAGENAME}}]]
  
Template code copied from [http://wiki.secondlife.com/wiki/Template:RightToc Second Life Wiki].
+
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

Contents

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.