.

Template:Documentation: Difference between revisions

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<!--Automatically add {{template sandbox notice}} when on a /sandbox page.-->{{SUBPAGENAME}} | sandbox | <div style="clear: both;"></div{{template sandbox notice}}}}<!--Automatically add {{pp-template}} to protected templates.-->{{template other
<!--
| {{PROTECTIONLEVEL:move}} | sysop
  Automatically add {{template sandbox notice}} when on a /sandbox page.
| {{pp-template}}
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| {{PROTECTIONLEVEL:edit}}
| <div style="clear: both;"></div>{{template sandbox notice}}
| {{pp-template}}
}}<!--
| <!--Not protected, or only semi-move-protected-->
  Automatically add {{pp-template}} to protected templates.
}}
-->{{template other
}}
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
}}<!--Start of green doc box.-->{{documentation/core2
  | {{pp-template|docusage=yes}}
  | {{#if: {{PROTECTIONLEVEL:edit}}
    | {{pp-template|docusage=yes}}
    | <!--Not protected, or only semi-move-protected-->
    }}
  }}
}}<!--
  Start of green doc box.
-->{{documentation/core2
| preload = {{{preload|}}}  <!--Allow custom preloads-->
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| heading-style = {{{heading-style|}}}
Line 13: Line 22:
| link box = {{{link box|}}}  <!--So "link box=off" works-->
| link box = {{{link box|}}}  <!--So "link box=off" works-->


<!--Some namespaces must have the /doc, /sandbox and /testcases in talk space-->
<!--Some namespaces must have the /doc, /sandbox and /testcases  
| docspace = {{SUBJECTSPACE}}
    in talk space-->
| {{ns:0}}
| docspace =
| {{ns:File}}
  {{#switch: {{SUBJECTSPACE}}
| {{ns:MediaWiki}}
  | {{ns:0}}
| {{ns:Category}} = {{TALKSPACE}}
  | {{ns:File}}
| #default = {{SUBJECTSPACE}}
  | {{ns:MediaWiki}}
}}
  | {{ns:Category}} = {{TALKSPACE}}
  | #default = {{SUBJECTSPACE}}
  }}


| 1 = {{{1|}}}  <!--Other docname, if fed-->
| 1 = {{{1|}}}  <!--Other docname, if fed-->


<!--The namespace is added in /core2-->
<!--The namespace is added in /core2-->
| template page = {{SUBPAGENAME}}
| template page =  
| sandbox
  {{#switch: {{SUBPAGENAME}}
| testcases = {{BASEPAGENAME}}
  | sandbox
| #default = {{PAGENAME}}
  | testcases = {{BASEPAGENAME}}
}}
  | #default = {{PAGENAME}}
  }}


}}<!--End of green doc box--><noinclude>
}}<!--End of green doc box--><noinclude>

Latest revision as of 08:59, 29 October 2010

{{#ifeq: Documentation | sandbox

|

Template:Template sandbox notice }}Template:Template other

{{#ifeq: ¬ |

|

|
{{
 #if: 
 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
   }}
 | yes
 }}
   | [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
 }}|action=edit}} edit]] [purge] 
   | 
     [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
 }}| action=edit&preload={{
       #ifeq: Template | File
       | Template:Documentation/preload-filespace
       | Template:Documentation/preload
       }} }} create]]
   }}
 }} {{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template =  Template documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
}}

}} {{#if: | | {{#if: {{#ifexist:

   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
   }}
 | yes
 }}
 | {{ {{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
 }} }}
 }}

}}

{{#if:

 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template
 }}:{{#switch: Documentation
 | sandbox
 | testcases = Documentation
 | #default = Documentation
 }}/doc
   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}

| Template:Fmbox }}{{#if:

 {{#switch: Documentation
 | doc
 | testcases = strange
 }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|Template:Main otherTemplate:Documentation]]

}}