Template:Tocright/doc

From wiki.jriver.com
< Template:Tocright
Revision as of 05:24, 11 April 2014 by Glynor (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{

 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: Tocright | {{ #ifeq: {{ #titleparts: Tocright/doc | 1 | -1 }} | doc | Tocright | Tocright/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is on | |is on }}{{ #ifeq: Tocright | ¬ | | |name=Tocright }}}} with {{SPW{{ #if: is on | |is on }}|name=Tocright}}.
}}:{{ #switch: is on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: Tocright/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Tocright/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: Tocright/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Tocright/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: Tocright/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Tocright/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: Tocright/doc | 1 | -1 }} | doc |  | }}
 }}

}}

Description
This template will float the article's table of contents (ToC) to the right. It will also force a ToC to appear even if it would not normally appear.
Use it only when needed.
Syntax
Type {{#ifeq:|code|}}{{{{#if:|{{{prefix}}}:}}tocright{{#if:||<{{{2}}}>}}{{#if:||<{{{3}}}>}}{{#if:||<{{{4}}}>}}{{#if:||<{{{5}}}>}}{{#if:||<{{{6}}}>}}{{#if:||<{{{7}}}>}}{{#if:||<{{{8}}}>}}{{#if:||<{{{9}}}>}}{{#if:||<{{{10}}}>}}{{#if:||<{{{11}}}>}}{{#if:||<{{{12}}}>}}{{#if:||<{{{13}}}>}}{{#if:||<{{{14}}}>}}{{#if:||<{{{15}}}>}}{{#if:||<{{{16}}}>}}{{#if:||<{{{17}}}>}}{{#if:||<{{{18}}}>}}{{#if:||<{{{19}}}>}}{{#if:||<{{{20}}}>}}{{#if:||<{{{21}}}>}}}}{{#ifeq:|code|}}