Template:Ambox

From TomWiki
Jump to navigationJump to search

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

|{{#if:
 |Template:Error
}}

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

|

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

| #default =

}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}

{{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =

This message box is using an invalid "type=" parameter and needs fixing.

[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]]

}}{{#switch:{{#if:

  |{{{smallimage}}}
  |
 }}

| blank = [[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]] }}

|

{{#switch: | blank | none =

| #default =

}} {{#if: | {{#ifeq:|none | | }} }}

{{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =

This message box is using an invalid "type=" parameter and needs fixing.

[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]]

}}{{#switch: | blank = [[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]] }} }}{{#if:

 {{#ifeq:  | true
 | dontcat    
 }}{{#ifeq:  | no
 | dontcat
 }}{{#switch: ¬
 | yes
 | ¬   =   
 | #default = dontcat   
 }}{{#switch: 
 | no = 
   Template:Basepage subpage
 | only = 
   Template:Basepage subpage
 }}

| |

 {{#switch:
   {{#ifeq:  | false
   |   
   | {{#ifeq:  | yes
     |   
     | {{#ifeq:  | yes
       |   
       | Template:Cat handler/blacklist   
       }}
     }}
   }}
 | hide = 
 | #default  = 
   {{#ifeq: h0#384!5nea+w9 |  Template:Ambox/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 | = Template:Ambox/category | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#ifeq:Ambox|Ambox|}} | help = | category = | portal = | book = | other | #default =

}} }} | {{#switch:

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

| main | = Template:Ambox/category | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#ifeq:Ambox|Ambox|}} | help = | category = | portal = | book = | other | #default =

}} | }}

   }}
 }}

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

|{{#ifeq:{{{doc}}}|no|
 |Template:Documentation
}}

}}See Wikipedia Templates for examples