Template:Deprecated template: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
Overthink (talk | contribs)
Fix the code: {{ARTICLESPACE}} uses the namespace of the *page it's transcluded on*, not the namespace of the template itself, so it would be problematic.
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Mbox
<includeonly>{{Mbox
| icon = Icon-Deprecated.png
| type = delete
| type = delete
| text = [[Template: {{{1}}}]] is deprecated. {{#if:{{{2|}}}|Please use [[{{{2}}}]] instead.}} {{{details|}}}
| text = [[{{{1|{{ROOTPAGENAME}}}}}]] is deprecated. {{#if:{{{2|}}}|Please use [[{{{2}}}]] instead.}}
}}{{#ifeq:Template:{{ucfirst:{{{1|}}}}}|{{FULLPAGENAME}}|[[Category:Deprecated templates]]|[[Category:Pages with deprecated templates]]}}</includeonly><noinclude>
The <nowiki>{{</nowiki>'''Deprecated template'''<nowiki>}}</nowiki> template notifies users that a given template has been replaced by a different one or ones, or simply deprecated (advised to no longer be used) without a replacement.


{{doc}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
{{Category handler
| {{#ifeq: {{NAMESPACE}} | Template
    | {{#ifeq: {{lc:{{ARTICLEROOTPAGENAME}}}} | template:deprecated template
        | <!-- Don't categorize self -->
        | Deprecated templates
      }}
    | Pages with deprecated templates
  }}
| {{{debug|}}}
}}</includeonly><noinclude>
{{documentation}}


[[Category:Message boxes]]
[[Category:Message boxes]]
</noinclude>
</noinclude>