Template:Ambox

From MediaWiki
Revision as of 18:40, 30 December 2011 by Killiondude (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{#ifeq:{{{subst}}}|SUBST

|{{#if:
 |<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong

}} class="error">Template {{{{#if: |subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} has been incorrectly substituted.</{{#switch:{{{tag}}}

|p=p
|span=span
|div=div
|#default=strong

}}>

}}

}}{{#ifeq:{{{small}}}|left

|{{#switch:{{#if: |{{{smallimage}}} | }} |blank |none = |#default = }}{{#switch:{{#if: |{{{smallimageright}}} | }} |none = |= |#default = }} |{{#switch: |blank |none = |#default = }}{{#switch: |none = |= |#default = }}

}}{{#if:

 {{#ifeq:  | true
 | dontcat    
 }}{{#ifeq:  | no
 | dontcat
 }}{{#switch: ¬
 | yes
 | ¬   =   
 | #default = dontcat   
 }}{{#switch: 
 | no = 
   {{#switch:
 {{#if:
 | {{#if:{{#titleparts:|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:|0|2}}
     | subpage
     | basepage
     }}
   }}
 | {{#if:{{#titleparts:Template:Ambox|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:Template:Ambox|0|2}}
     | subpage
     | basepage
     }}
   }}
 }}

| basepage =

| subpage = dontcat

| subsubpage = dontcat

}}

 | only = 
   {{#switch:
 {{#if:
 | {{#if:{{#titleparts:|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:|0|2}}
     | subpage
     | basepage
     }}
   }}
 | {{#if:{{#titleparts:Template:Ambox|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:Template:Ambox|0|2}}
     | subpage
     | basepage
     }}
   }}
 }}

| basepage = dontcat

| subpage = | subsubpage = }}

 }}

| |

 {{#switch:
   {{#ifeq:  | false
   |   
   | {{#ifeq:  | yes
     |   
     | {{#ifeq:  | yes
       |   
       | {{#if:x   

|


     {{#if:{{#titleparts:{{#if:|  | Template:Ambox }}|0|2}}
     | 
        
          
            
              
                
                       
                 
               
             
           
         
       
     | 
             
       
     }}   
   
 

}}

       }}
     }}
   }}
 | hide = 
 | #default  = 
   {{#ifeq: h0#384!5nea+w9 |  {{#if:
|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}

   | 
     {{#switch:
 {{#if: 
   | {{{demospace}}}
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =

}}

   | 
     {{#iferror: {{#expr: 1 + {{#switch:
 {{#if: 
   | {{{demospace}}}
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = {{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}} | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#ifeq:Ambox|Ambox|{{#ifeq:|true

   | 
   |
   }}
 }}

| help = | category = | portal = | book = | other | #default =

}} }} | {{#switch:

 {{#if: 
   | {{{demospace}}}
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = {{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}}{{#if:

|{{#if:
 |{{#ifexist:Category: from |
  |
 }}
 |[[Category:]]
}}

}}{{#if:

|[[Category:]]

}} | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#ifeq:Ambox|Ambox|{{#ifeq:|true

   | 
   |
   }}
 }}

| help = | category = | portal = | book = | other | #default =

}} | }}

   }}
 }}

}}{{#ifeq:Template:Ambox|Template:

|{{#ifeq:{{{doc}}}|no|
 |{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}
}}

}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox