Template:Cleanup-gallery
Jump to navigation
Jump to search
{{#ifeq:Template|Template||}}{{#ifeq:{{{subst}}}|SUBST
|{{#if:Cleanup-gallery
|{{#invoke:Error|error|Template {{{{#if: |subst:}}Cleanup-gallery{{#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.|tag=}}
}}
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type = style
|image =
|smallimage = {{#if:|{{{smallimage}}}|}}
|imageright =
|smallimageright = {{#if:|{{{smallimageright}}}|}}
|class = ambox-{{#switch:style
|speedy = speedy
|delete = delete
|content = content
|style = style
|move = move
|protection = protection
|notice|#default = notice
}}
|style =
|textstyle =
|smalltext =
|talk = {{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}}
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Cleanup-gallery}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Cleanup-gallery}}
}}|Template:Cleanup-gallery|#}}
|#default = {{{talk}}}
}}
|issue = {{#switch:¬
|¬ =
| = This article
|This {{{sect}}}
}} This section contains a gallery of images.
|fix = Galleries containing indiscriminate images of the article subject are discouraged; please improve or remove the section accordingly, moving freely licensed images to Wikimedia Commons if not already hosted there. {{#if:|({{{date}}})}}
|date = {{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}}
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Cleanup-gallery}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Cleanup-gallery}}
}}|Template:Cleanup-gallery|October 2025}}
|#default = {{{date}}}
}}
|info =
}}{{#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:Cleanup-gallery|0|3}}
| subsubpage
| {{#if:{{#titleparts:Template:Cleanup-gallery|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:Cleanup-gallery|0|3}}
| subsubpage
| {{#if:{{#titleparts:Template:Cleanup-gallery|0|2}}
| subpage
| basepage
}}
}}
}}
| basepage = dontcat
| subpage = | subsubpage = }}
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Cleanup-gallery }}|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:]]
}}
|
{{#invoke:Namespace detect|main}}
|
{{#iferror: {{#expr: 1 + {{#invoke:Namespace detect|main}} }}
| {{#invoke:Namespace detect|main}} | }}
}} }}
}}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}