Template talk:Tdeprecated
From Wikipedia, the free encyclopedia
Contents |
[edit] Category
Why is this template in Category:Redirect templates? It's not for use on a redirect page, is it? –RHolton≡– 02:50, 3 September 2006 (UTC)
[edit] Questions about the new Tdeprecated format
What is the advantage of categorizing deprecated templates by month? We'll just be left with a lot of monthly categories, possibly many only holding one or two templates.
How does one use the new format for templates that are replaced with non-template solutions? For example, {{qif}}. The old version allowed free text to describe replacements. Pagrashtak 17:48, 14 October 2006 (UTC)
[edit] Link the word deprecated, for those not familiar with it
Any objections to linking the word deprecated in this template? It would be helpful for those not familiar with the term. -- Zyxw 18:48, 22 February 2007 (UTC)
- I've linked it to the category page (where I'll add a description in a moment), which should make it clear to inexperienced users what the term means, while also providing an explanation of the whole process – Gurch 15:47, 12 April 2007 (UTC)
[edit] Multiple replacements
I found this idiom somewhere that can be used when there are multiple candidates for replacing an old template:
-
- {{new1}}, for when the arg is argled
- {{new2}}, for when the bar is bargled
— Ksero 21:38, 27 May 2007 (UTC)
[edit] {{PAGENAME}} vs. "old" parameter
Why is it necessary to have to type in the name of the template for the old parameter? I think that adding {{PAGENAME}} should be fine because the template will not be used anywhere but the template's page itself. –Dream out loud (talk) 00:09, 2 July 2007 (UTC)
- This template is used on the template page and (once orphaned) every page transcluding it. This shows users a message notifying them that the template is deprecated when they use it somewhere. If we only use {{PAGENAME}}, the user will get a message like "The template {{George W. Bush}} is deprecated" when they add it to George W. Bush. —{admin} Pathoschild 03:16:52, 02 July 2007 (UTC)
[edit] Ambox look
The {{Tdeprecated/sandbox}} has an {{Ambox}} implementation:
| The template {{Tdeprecated}} is deprecated. Please use {{[[Template:{{{1}}}|{{{1}}}]]}} instead. This usage is deprecated. Please replace it with {{tdeprecated|Tdeprecated |
Conrad T. Pino 10:47, 12 November 2007 (UTC)
However the div structure in the implementation is buggy and fails with {{Ambox}} use. See {{Tdeprecated/testcases}} for failure examples. NOT READY FOR PRODUCTION! Conrad T. Pino 11:57, 12 November 2007 (UTC)
- Please note that {{Ambox}} is for article message boxes, not for template message boxes :) —Ms2ger (talk) 20:46, 13 January 2008 (UTC)
[edit] Turkish link
could you please add the turkish link? --> [[tr:Şablon:Geçersizş]]--78.180.58.116 (talk) 10:22, 28 February 2008 (UTC)
- Done. Chris Cunningham (not at work) - talk 11:21, 12 April 2008 (UTC)
[edit] Convert to {{ambox}}
Rather than using a hand-hacked table, use an ambox directly. New code:
{{ ambox
| type = warning
| image = [[Image:Symbol opinion vote.svg|40px]]
| text =
{{#if:{{{new|{{{2|}}}}}}|<div style="display:none;">}}The template {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} is [[:Category:Deprecated templates|deprecated]]. Please use {{{use|{{[[Template:{{{1}}}|{{{1}}}]]}}}}} instead.<br /><small>This usage is deprecated. Please replace it with {{tdeprecated|{{PAGENAME}}|{{{1}}}}}.{{#if:{{{new|{{{2|}}}}}}||<includeonly>{{{category|[[Category:Deprecated use of tdeprecated]]}}}</includeonly>}}
<!-- new usage (with or without date) -->
{{#if:{{{new|{{{2|}}}}}}|</div>|<div style="display:none;">}}'''The template {{[[Template:{{{1}}}|{{{1}}}]]}} is deprecated. Please use {{{new|{{[[Template:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}||}}{{{3|}}}}}}}} instead.{{#if:{{{new|{{{2|}}}}}}||</div>}}
}}<includeonly>{{{category|{{#ifeq:{{ARTICLESPACE}}|Template|{{#if:{{{date|}}}|[[Category:Templates deprecated since {{{date}}}|{{PAGENAME}}]]|[[Category:Deprecated templates|{{PAGENAME}}]]}}|[[Category:Pages using deprecated templates]]}}}}}</includeonly><noinclude>
{{documentation, template}}
</noinclude>
Just drop the lot in. Chris Cunningham (not at work) - talk 11:21, 12 April 2008 (UTC)
- Ambox is supposed to be used in articles, not elsewhere. The current version is fine and shouldn't be amboxed. Nihiltres{t.l} 15:23, 12 April 2008 (UTC)
-
- Do'h. I meant messagebox. Still, removing request until there's been more input. Chris Cunningham (not at work) - talk 15:42, 12 April 2008 (UTC)

