TOC top

From The Foundry MODO SDK wiki
Jump to: navigation, search
{{#ifeq: TOC top | sandbox |
Template sandbox notice

}}{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq: | sysop

 | {{#invoke:Protection banner|main}}
 | {{#if: 
   | {{#invoke:Protection banner|main}}
   | 
   }}
 }}

| other | #default =

}}
{{#ifeq: ¬ |

|

|
{{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = Documentation icon Template documentation
   | {{safesubst:#invoke:Ns has subpages|main}} = Documentation icon Module documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
 }}{{
 #if: This is used to create custom table of contents templates such as {{list TOC}}.

Please note that this is solely for ease of maintaining existing templates. Please do not use this to write new templates: instead, browse through Wikipedia table of contents templates and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.

See also

 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

   }}
 | yes
 }}
   | [[[{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

 }}|view]]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

 }}|action=edit}} edit]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

 }}|action=history}} history]] [{{#invoke:Purge|main}}] 
   | 
     [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}
}}

}} {{#switch: {{#if:This is used to create custom table of contents templates such as {{list TOC}}.

Please note that this is solely for ease of maintaining existing templates. Please do not use this to write new templates: instead, browse through Wikipedia table of contents templates and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.

See also

  • {{TOC bottom}}|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = This is used to create custom table of contents templates such as {{list TOC}}.

Please note that this is solely for ease of maintaining existing templates. Please do not use this to write new templates: instead, browse through Wikipedia table of contents templates and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.

See also

| 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:
 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: TOC top | sandbox | testcases = TOC top | #default = TOC top }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | {{safesubst:#invoke:Ns has subpages|main}}
   | Template = yes
   }}
 }}

| {{#invoke:Message box|fmbox}} }}{{#if:

 {{#switch: TOC top
 | doc
 | testcases = strange
 }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|Main otherTemplate:TOC top]]

}}