Budlight
Bots, Bureaucrats, Administrators
529
edits
(Importing image file) |
m (1 revision) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | ||
This is the {{tl| | This is the {{tl|tdeprecated}} template. | ||
'''Note: This template itself is ''not'' deprecated.''' However using it with only one parameter is deprecated, it now takes 2-3 parameters instead. In the display above it gets no parameters, that's why the small text says: "This usage is deprecated." | |||
{{tl|deprecated template}} redirects here and can be used as an alternative name for this template. | |||
This template notifies users that a given template has been replaced by a different one. This is useful when usage is different (so a redirect won't work) or you'd like to reduce the number of redirects (which makes bot parsing more difficult). | |||
Whenever possible, it should replace the deprecated template's content entirely, so that someone using the template will see the message. | |||
=== Usage === | === Usage === | ||
: <code><nowiki>{{tdeprecated|old template name|new template name}}</nowiki></code> | |||
{{template | : <code><nowiki>{{tdeprecated|old template name|new template name|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code> | ||
{{ | |||
==== Normal usage ==== | |||
Normal usage categorises templates to [[:Category:Deprecated templates]]. | |||
=== | <pre> | ||
{{tdeprecated|old|new}} | |||
{{tdeprecated|old|new|parameter}} | |||
{{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>}} | |||
</pre> | |||
{{tdeprecated|old|new|category=}} | |||
{{tdeprecated|old|new|parameter|category=}} | |||
{{tdeprecated|old|new|<nowiki>parameter|fuu</nowiki>|category=}} | |||
==== With a date ==== | |||
Adding the 'date' parameter subcategorises the template to [[:Category:Templates deprecated since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]. | |||
{{ | <div style="{{quote style}} font-family:monospace;"><nowiki>{{tdeprecated|old|new|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></div> | ||
{{tdeprecated|old|new|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category=}} | |||
{{ | |||
=== Technical details === | |||
This template changes style depending on what kind of page it is show on. Thus it adheres to the standardised looks for the different pages. For instance if this template becomes visible in an article it looks like this: | |||
{{ | {{tdeprecated|demospace=main|old|new|category=}} | ||
=== See also === | === See also === | ||
* {{tl| | * {{tl|sdeprecated}} – For deprecated shortcuts. | ||
* [[:Category:Deprecated templates]] – The category where this template lists templates it is used on. | |||
* | |||
[[Category: | |||
<!-- | <includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[ | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
[[ | [[Category:Redirect templates|{{PAGENAME}}]] | ||
[[de:Vorlage:Veraltete Vorlage]] | |||
[[es:Plantilla:Plantilla en desuso]] | |||
[[hsb:Předłoha:Zestarjena předłoha]] | |||
[[it:Template:Template obsoleto]] | |||
[[ka:თარგი:თმოძველდა]] | |||
[[ja:Template:移行中のテンプレート]] | |||
[[sq:Stampa:Stampa të vjetruar]] | |||
[[sl:Predloga:Todsvetovana]] | |||
[[tr:Şablon:Geçersizş]] | |||
</includeonly> | </includeonly> |
edits