Template:Deprecated template: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Debresser
Add detection for parameters that will soon be deprecated.
meta>Debresser
The purpose of nocat was to avoid categorizing non-template namespace pages that use this template. But not to avoid detection of their transclusions. Although I admit it is taking a chance.
Line 10: Line 10:
   | {{[[{{{4|Template}}}:{{{1|{{PAGENAME}}}}}]]}} is [[:Category:Deprecated templates|deprecated]].
   | {{[[{{{4|Template}}}:{{{1|{{PAGENAME}}}}}]]}} is [[:Category:Deprecated templates|deprecated]].
   }}
   }}
}}{{#if:{{{4|}}}|[[Category:Dovid]]}}{{#if:{{{5|}}}|[[Category:Dovid]]}}{{#ifeq:{{{nocat|}}}|true
}}{{#ifeq:{{ARTICLESPACE}}|Template
  ||{{#ifeq:{{ARTICLESPACE}}|Template
    |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise /doc pages -->
      |{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}<!--Don't categorise /doc pages -->
        |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
        |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1}}}}}<!-- only for the deprecated template itself -->
          |{{#ifeq:{{{nocat|}}}|true||{{DMC|Deprecated templates|from|{{{date|}}}}}}}
            |{{DMC|Deprecated templates|from|{{{date|}}}}}
        }}
          }}
      }}
        }}
       |[[Category:Pages using deprecated templates]]
       |[[Category:Pages using deprecated templates]]
    }}
   }}<noinclude>
   }}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 06:39, 23 December 2013