Difference between revisions of "Template:Dated maintenance category"

From Self-sufficiency
Jump to: navigation, search
(rm redundant line)
(Created page with '{{#if:{{NAMESPACE}}||{{#if:{{{3|}}}|[[Category:{{{1}}} {{{2}}} {{{3}}}]]{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}||[[Category:Articles with invalid date parameter…')
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#ifexpr:{{#if:{{NAMESPACE}}|0|1}}+{{#ifeq:{{{onlyarticles|no}}}|yes|0|1}}
+
{{#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>
|{{#if:{{{3|}}}
+
*This adds a category or dated category to an article space page only.
  |[[Category:{{{1}}} {{{2}}} {{{3}}}]]<!--
+
*It will add it to an optional additional category.
-->{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}
+
*If the dated cat is invalid it will add it to [[:Category:Articles with invalid date parameter in template]]
    |<!--
+
 
-->|[[Category:Articles with invalid date parameter in template]]<!--
+
Syntax
-->}}
+
 
  |[[Category:{{#if:{{{5|}}}
+
*Parameter 1: Default category name
              |{{{5}}}<!--
+
*Parameter 2: Preposition (from, since, as at, as of)
            -->|{{{1}}}<!--
+
*Parameter 3: Date (Month Year, e.g. {{{CURRENTMONTHNAME}} {{CURRENTYEAR}}) usually the "date" parameter of the calling template
          -->}}]]<!--
+
*Parameter 4: All inclusive category name - e.g. All articles containing weasel words
-->}}{{#if:{{{4|}}}
+
*Parameter 5: Alternative default category (overrides 1 which is then only used to construct the dated category if it exists)
      |[[Category:{{{4}}}]]}}<!--
+
 
  -->}}<noinclude>
+
==Note==
{{documentation}}
+
Even if the constructed dated category doesn't exist it is still used. This enables more rapid fault finding.
 +
 
 +
==See also==
 +
{{Tl|DMC}}
 
</noinclude>
 
</noinclude>

Revision as of 03:34, 28 April 2009

}}

Syntax

  • Parameter 1: Default category name
  • Parameter 2: Preposition (from, since, as at, as of)
  • Parameter 3: Date (Month Year, e.g. {May 2024) usually the "date" parameter of the calling template
  • 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)

Note

Even if the constructed dated category doesn't exist it is still used. This enables more rapid fault finding.

See also

{{DMC}}