Template:RightTOC: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(fail)
(http://wiki.secondlife.com/wiki/Template:RightToc)
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><div style="float:right;max-width:{{{width|30%}}};margin:8px;{{{1|}}}">__TOC__</div></onlyinclude>
| __TOC__
Usage:  
|}<noinclude>
{|{{Prettytable}}
|-
|<code><nowiki>{{RightTOC}}</nowiki></code>
|Standard right floating TOC that won't grow them more than 30% of the screen width.
|-
|<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. Default is 30%.
|-
|<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}}]]


==Usage==
Template code copied from [http://wiki.secondlife.com/wiki/Template:RightToc Second Life Wiki].
Insert '''<nowiki>{{RightTOC}}</nowiki>''' into your page's wiki markup.
 
Template code copied from [[Wikipedia]]'s [http://en.wikipedia.org/wiki/Template:TOCright Template:TOCright] template.</noinclude>

Revision as of 18:00, 19 March 2012

Usage:

{{RightTOC}} Standard right floating TOC that won't grow them more than 30% of the screen width.
{{RightTOC|extra style}} Use the extra style area to add additional style to the surrounding TOC div.
{{RightTOC|width=40%}} Sets max-width. Default is 30%.
{{RightTOC|content=}} Includes content from stylized section headers. Example here: http://outreach.wikimedia.org/wiki/GLAM/Model_projects

Template code copied from Second Life Wiki.