Template:Deprecated template: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>TheDragonFire Cleanup template. |
meta>TheDragonFire Add `historical` parameter support, to rebuild Template:Historical template as a subcase of this template. |
||
Line 1: | Line 1: | ||
{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,note,nocat|date=__DATE__|$B= | {{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B= | ||
{{Ombox | {{Ombox | ||
| type = content | | type = content | ||
| text = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}| by {{{by}}}}}.{{#if:{{{new|{{{2<includeonly>|</includeonly>}}}}}} | | text = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}| by {{{by}}}}}{{#if:{{{historical|}}}|, but preserved for historical reasons}}.{{#if:{{{new|{{{2<includeonly>|</includeonly>}}}}}} | ||
|  Please use [[{{{new|Template:{{{2}}}}}}{{#if:{{{3|}}} | |  Please use [[{{{new|Template:{{{2}}}}}}{{#if:{{{3|}}} | ||
|{{{!}}}{{{3}}} | |{{{!}}}{{{3}}} | ||
Line 11: | Line 11: | ||
|{{When on basepage<!-- Don't categorise subpages, like /doc, /sandbox or /testcases --> | |{{When on basepage<!-- Don't categorise subpages, like /doc, /sandbox or /testcases --> | ||
|{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}<!-- Only for the deprecated template itself --> | |{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}<!-- Only for the deprecated template itself --> | ||
|<includeonly>{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}</includeonly> | |<includeonly>{{#if:{{{historical|}}}|[[Category:Deprecated templates kept for historical reasons]]|{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}}}</includeonly> | ||
}} | }} | ||
}} | }} | ||
|{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}} | |{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}} | ||
}} | }} | ||
}}}}<noinclude> | }} | ||
}}<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | ||
</noinclude> | </noinclude> |
Revision as of 13:38, 14 August 2017
Template:Deprecated template is deprecated. Please use [[Template:{{{2}}}]] instead. |