Template:Ambox: Difference between revisions
No edit summary |
m 1 revision: Importing mediawikis ambox template |
(No difference)
| |
Latest revision as of 14:07, 30 August 2013
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|Template:Error
}}
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type =
|image =
|smallimage = {{#if:|{{{smallimage}}}|}}
|imageright =
|smallimageright = {{#if:|{{{smallimageright}}}|}}
|class = ambox-{{#switch:
|speedy = speedy
|delete = delete
|warning = warning
|content = content
|style = style
|move = move
|protection = protection
|notice|#default = notice
}}
|style =
|textstyle =
|smalltext =
|talk = {{#switch:¬
|¬ =
| = {{#ifeq:Template:FULLROOTPAGENAME|Template:|#}}
|#default = {{{talk}}}
}}
|issue = {{#switch:¬
|¬ =
| = This article
|This {{{sect}}}
}} {{{issue}}}
|fix = {{{fix}}}
|date = {{#switch:¬
|¬ =
| = {{#ifeq:Template:FULLROOTPAGENAME|Template:|April 2026}}
|#default = {{{date}}}
}}
|info =
}}{{#if:
{{#ifeq: true | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: true | 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 = | project = | file | image = | mediawiki = | template = | help = | category = | book = | extension = | 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 = | project = | file | image = | mediawiki = | template = {{#switch:Template:
|Template:Ambox = {{#ifexpr:{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}
|
}}{{#if:
|
}}
|Template: = {{#ifeq:Ambox|Ambox|}}
}}
| help = | category = | book = | extension = | 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 = | project = | file | image = | mediawiki = | template = {{#switch:Template:
|Template:Ambox = {{#ifexpr:{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}
|
}}{{#if:
|
}}
|Template: = {{#ifeq:Ambox|Ambox|}}
}}
| help = | category = | book = | extension = | other | #default =
}} | }}
}} }}
}} {{#ifeq: Ambox | sandbox |
Template:Template sandbox notice }}{{documentation/start box{{#if: |/}} | preload = | heading = ¬ | heading-style = | content =
| docpage =
{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc
}}
| doc exist =
{{#ifexist:
{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc
}} | yes }}
}} {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template
| | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc|1|0}} | 0000 | 0100 | 0010 | 0101 = | 0001 | 0011 = {{ {{#switch: Template
| | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }} | 0110 | 0111 = {{ }} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = }}
{{#if:
{{#ifeq: | off
|
| {{#ifexist:
{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc
}}
| yes
}}{{
#switch: Template
| User
| Module
| Template = yes
}}
}}
|
{{#ifeq:none|none | | }} {{#if: |}}
{{#if:none
| none
| [[File:{{#switch:
| warning = Cmbox deletion.png
| editnotice = Imbox notice.png
| system
| #default = Imbox notice.png
}}|40x40px|link=|alt=]]
}} | {{#if:
|
| {{#if: {{#ifexist:
{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }}
| yes
}}
|
The above documentation is transcluded from [[{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }}]]. ([{{fullurl:{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }}|action=edit}} edit] | [{{fullurl:{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }}|action=history}} history]) }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }} | action=edit&preload=Template:Documentation/preload-module-doc }} create] a documentation page for this Scribunto module }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/sandbox | [[{{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/sandbox|sandbox]] ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/sandbox | action=edit }} edit] | diff) | sandbox ([{{fullurl: {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/sandbox | action=edit&preload=Template:Documentation/preload-{{#ifeq: Template|Module|module-}}sandbox }} create] | [{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/sandbox | action=edit&preload=Template%3A%7B%7B%23switch%3A+Ambox%0A%7C+sandbox%0A%7C+testcases+%3D+Ambox%0A%7C+%23default+%3D+Ambox%0A%7D%7D&summary=Create+sandbox+version+of+%5B%5BTemplate%3A%7B%7B%23switch%3A+Ambox%0A%7C+sandbox%0A%7C+testcases+%3D+Ambox%0A%7C+%23default+%3D+Ambox%0A%7D%7D%5D%5D }} mirror]) }} and {{
#ifexist: {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/testcases | [[{{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/testcases|testcases]] ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/testcases | action=edit }} edit]) | testcases ([{{fullurl: {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/testcases | action=edit&preload=Template:Documentation/preload-{{#ifeq: Template|Module|module-}}testcases }} create]) }} pages. }}:{{#switch: Ambox | sandbox | testcases = Ambox | #default = Ambox }}/doc }}|/doc]] subpage.
}}{{#switch: Template
| File =
| Module = [[Special:PrefixIndex/Template:{{#switch: Ambox
| sandbox | testcases = Ambox | #default = Ambox }}/|Subpages of this module]]. | Template = [[Special:PrefixIndex/Template:{{#switch: Ambox
| sandbox | testcases = Ambox | #default = Ambox }}/|Subpages of this template]]. | #default = [[Special:PrefixIndex/Template:{{#switch: Ambox
| sandbox | testcases = Ambox | #default = Ambox }}/|Subpages of this page]]. }}
}}{{#ifexist:Template:Ambox/Print
|
}} | {{{imageright}}} |
{{#switch:
| | warning | editnotice | system =
| #default =
}} }}{{#if:
{{#switch: Ambox
| doc
| testcases = strange
}}
|
}}