మూస:Ambox: కూర్పుల మధ్య తేడాలు
Content deleted Content added
imported>Edokter |
adding functionality for substitution detection and cleanup categorisation, per discussion |
||
పంక్తి 1:
{{#ifeq:{{{subst}}}|SUBST
|{{#if:{{{name|}}}
|{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
{{Ambox/core▼
}}[[Category:Pages with incorrectly substituted templates]]
}}{{#ifeq:{{{small}}}|left
| type = {{{type|}}}▼
| image = {{#if:{{{smallimage|}}}▼
|small =
|type
|image =
|{{{smallimage}}}
| imageright = {{#if:{{{smallimageright|}}}▼
| {{{imageright|}}}▼
}}▼
| style = {{{style|}}}▼
| textstyle = {{{textstyle|}}}▼
| text = {{#if:{{{smalltext|}}}▼
| {{{smalltext}}} ▼
| {{{text}}} ▼
}}
|{{{smallimageright}}}
{{Ambox/core▼
|
| image = {{{image|}}}▼
| style = {{{style|}}}▼
}}
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--▼
}}
}}
}}
}}{{cat handler
|main={{#if:{{{cat|}}}
|{{#if:{{{date|}}}
|[[Category:{{{cat}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat}}} {{{preposition|from}}} {{{date}}}|
|[[Category:Articles with invalid date parameter in template]]
}}
|[[Category:{{#if:{{{undated|}}}
|{{{undated}}}
|{{{cat}}}
}}]]
}}
}}{{#if:{{{all|}}}
|[[Category:{{{all}}}]]
}}
▲
}}{{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{documentation}}<!-- Transclude documentation on template page -->
}}<noinclude>
{{Documentation}}
|