Template:Dated maintenance category: Difference between revisions

m
(Created page with '{{#if:{{NAMESPACE}}||{{#if:{{{3|}}}|[[Category:{{{1}}} {{{2}}} {{{3}}}]]{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}||[[Category:Articles with invalid date parameter…')
 
 
(24 intermediate revisions by 12 users not shown)
Line 1:
<nowiki/><!--This nowiki helps to prevent whitespace at the top of articles-->{{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages|<!--Do not categorize-->|<!--
{{#if:{{NAMESPACE}}||{{#if:{{{3|}}}|[[Category:{{{1}}} {{{2}}} {{{3}}}]]{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}||[[Category:Articles with invalid date parameter in template]]}}|}}|[[Category:{{{1}}}]]}}{{#if:{{{4|}}}|[[Category:{{{4}}}]]}}}}<noinclude>
-->{{#ifexpr:{{#if:{{NAMESPACE}}|0|1}}+{{#ifeq:{{{onlyarticles|no}}}|yes|0|1}}
*This adds a category or dated category to an article space page only.
|{{#if:{{{3|}}}
*It will add it to an optional additional category.
|[[Category:{{{1}}} {{{2}}} {{{3}}}]]<!--
*If the dated cat is invalid it will add it to [[:Category:Articles with invalid date parameter in template]]
-->{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}
 
|<!--
Syntax
*If the dated cat is invalid it will add it to -->|[[:Category:Articles with invalid date parameter in template]] <!--
 
-->}}
*Parameter 1: Default category name
|[[Category:{{#if:{{{5|}}}
*Parameter 2: Preposition (from, since, as at, as of)
|{{{5}}}<!--
*Parameter 3: Date (Month Year, e.g. {{{CURRENTMONTHNAME}} {{CURRENTYEAR}}) usually the "date" parameter of the calling template
-->|{{{1}}}<!--
*Parameter 4: All inclusive category name - e.g. All articles containing weasel words
-->}}]]<!--
*Parameter 5: Alternative default category (overrides 1 which is then only used to construct the dated category if it exists)
-->}}{{#if:{{{4|}}}
 
|[[Category:{{{4}}}]]}}<!--
==Note==
-->}}<!--
Even if the constructed dated category doesn't exist it is still used. This enables more rapid fault finding.
-->}}<noinclude>
 
{{documentation}}
==See also==
{{En-WP attribution notice|Template:Dated maintenance category}}
{{Tl|DMC}}
</noinclude>