Template talk:Old prod
Template:Old prod is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Old prod template. |
|
Archives: 1Auto-archiving period: 5 months |
Differentiate between BLPprod and regular prod
[edit]Would it be possible to somehow differentiate between BLPprods and regular prods? For example, it would be useful to see that an article was BLPprodded on May 18, subsequently deprodded on May 25 and a regular prod placed on May 26? Hack (talk) 04:26, 27 May 2020 (UTC)
- I'd love this. ~ Amory (u • t • c) 20:58, 15 November 2020 (UTC)
- @Hack and Amorymeltzer: {{old prod}} wasn't designed for BLPProd. It's purpose is to alert editors that the page is "ineligible to be regular-PRODded again" since regular "PROD" is a "one time use only" form of deletion.
- BLPProd could, in theory, be used over and over again if references were removed to the point where there were none. In practice, that won't happen, but in theory if you tagged a reference-less BLP for BLPProdded, then an editor added a phony book reference that everyone took at face value, then years later without any other references being added in the meantime, that reference was discovered to be a hoax, the page would again be without references, and again eligible for BLPProd. Since it had never been regular-PRODded and never sent to AFD, it would also still be eligible for a regular PROD. davidwr/(talk)/(contribs) 21:05, 15 November 2020 (UTC)
- Self-followup: I just updated the documentation page to make this distinction clear. I've also put a note on WT:Twinkle asking the developer to not put {{old prod}} on talk pages when applying the {{prod blp}} template.[1] davidwr/(talk)/(contribs) 23:08, 5 December 2020 (UTC)
Adding permalinks/diff links to template
[edit]Per a brief discussion on Twinkle talk page, I am proposing the addition of |nomid=
and |condiff=
parameters. Usage will generate a permalink to the PRODed version of the page (in case of nomid) and to the diff showing the deprod (in case of condiff). For the sake of completeness we can also add a |2ndid=
. The intent is to save space on talk pages by not including the full |nomreason=
or |2ndreason=
or |conreason=
.
The nomid parameter can be populated automatically by Twinkle, whereas condiff can be populated automatically by a bot.
The existing *reason parameters will of course be retained (at least for now?) for backward compatibility. – SD0001 (talk) 19:07, 17 November 2020 (UTC)
- Sounds good to me. davidwr/(talk)/(contribs) 20:28, 17 November 2020 (UTC)
Template-protected edit request on 20 April 2022
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The nomdate and condate fields result in differently formatted dates in the same template. This should probably be edited (by someone with more skill than I) to make them both show in the same format? Right now entering 2022-04-14 in nomdate and 2022-04-15 in condate results in
This page has been recently proposed for deletion (14 April 2022) ... with the comment:
propose deletion as non-notable
It was contested by ... on 2022-04-15 with the comment:
See diff here[2] Jahaza (talk) 23:57, 20 April 2022 (UTC)
- Re-opening this request. voorts (talk/contributions) 23:45, 17 May 2024 (UTC)
- @Jahaza: Ive gone ahead and made a fix for the changes you requested on the sandbox. You can see it in action on the testcases page. Now it just needs to be checked and edited by a Template Editor. Aidan9382 (talk) 14:43, 21 April 2022 (UTC)
- Done * Pppery * it has begun... 15:16, 21 April 2022 (UTC)
- @Pppery: Thanks, but i just realised after looking at the template's documentation page that im an idiot, and missed the fact the secondded parameter was also not auto-translating the dates. Ive gone and done the same fix for that, so if you could also add that along with it, that would be great. (Ive got some terrible luck with template fixing i swear). Sorry! Aidan9382 (talk) 15:24, 21 April 2022 (UTC)
@Pppery: there were errors introduced by your 21 April 2022 change. I made this edit to clear the error from a page. I don't know what <span class="bday dtstart updated">
was doing there, but this seems to have been something used many times. For example see the top of Talk:Myra Bairstow where there is an Error: Invalid time message. I found these when patrolling Category:Pages with parser function time errors which is pointing to hundreds of similar errors. – wbm1058 (talk) 13:53, 4 July 2022 (UTC)
- Feel free to revert my edit then (fyi Aidan9382) * Pppery * it has begun... 13:56, 4 July 2022 (UTC)
- Thanks for the ping. I'll take a look at it when I'm available. Aidan9382 (talk) 14:34, 4 July 2022 (UTC)
- I am not overly familiar with this template (and was asked to look at it) but would this not be fixed by adding {{date}} or similar to each instance of a date parameter so that a) they are standardised, and b) can be switched between formats if desired? Primefac (talk) 14:27, 26 November 2022 (UTC)
- Ah, forgot about this template, woops. The reason the initial change was reverted was because it turns out quite a few inputs to the template aren't exactly perfect. For some reason (I think some sort of template substitution), there seem to be a large amount of parameters with
<span class="bday dtstart updated">[DATE]</span>
inputs (about 600), and these would cause errors in the old format. {{date}} would be a good middle ground, since it would just return the text instead of erroring, but it still won't convert it. (compare below, taken from Special:Diff/1096340268). {{date|2017-06-23}}
-> 23 June 2017{{date|1=<span class="bday dtstart updated">2017-06-23</span>}}
-> 2017-06-23 (no conversions done)- Hope this provides a good enough overview. Aidan9382 (talk) 14:44, 26 November 2022 (UTC)
- If there is no opposition here, I could always file a bot request to remove those spurious spans. Primefac (talk) 14:47, 26 November 2022 (UTC)
- Out of interest, I decided to look into where exactly these span tags were coming from. Judging from this older version of the doc page and a quick look at {{ISO date}}, it seems to have arised from the documentation suggesting that said ISO date should be substituted. Luckily, this was changed back in 2019 (for this exact reason as well), so the issue shouldn't arise again, which is good. Aidan9382 (talk) 15:09, 27 November 2022 (UTC)
- Apologies for the delay, bot task took a while to get approved, but it should be done now. Primefac (talk) 15:23, 14 January 2023 (UTC)
- @Jahaza, Aidan9382, and Primefac: Is there still interest in making this change? There are only two remaining talk pages with spans (Talk:Legacy of Roberto Clemente and Talk:Embassy of India, Ljubljana), so it might be possible now. jlwoodwa (talk) 21:56, 22 April 2024 (UTC)
- Might as well just fix them myself, actually. Aidan's search now returns zero results. jlwoodwa (talk) 21:59, 22 April 2024 (UTC)
- @Jahaza, Aidan9382, and Primefac: Is there still interest in making this change? There are only two remaining talk pages with spans (Talk:Legacy of Roberto Clemente and Talk:Embassy of India, Ljubljana), so it might be possible now. jlwoodwa (talk) 21:56, 22 April 2024 (UTC)
- Apologies for the delay, bot task took a while to get approved, but it should be done now. Primefac (talk) 15:23, 14 January 2023 (UTC)
- Out of interest, I decided to look into where exactly these span tags were coming from. Judging from this older version of the doc page and a quick look at {{ISO date}}, it seems to have arised from the documentation suggesting that said ISO date should be substituted. Luckily, this was changed back in 2019 (for this exact reason as well), so the issue shouldn't arise again, which is good. Aidan9382 (talk) 15:09, 27 November 2022 (UTC)
- If there is no opposition here, I could always file a bot request to remove those spurious spans. Primefac (talk) 14:47, 26 November 2022 (UTC)
- Ah, forgot about this template, woops. The reason the initial change was reverted was because it turns out quite a few inputs to the template aren't exactly perfect. For some reason (I think some sort of template substitution), there seem to be a large amount of parameters with
- I am not overly familiar with this template (and was asked to look at it) but would this not be fixed by adding {{date}} or similar to each instance of a date parameter so that a) they are standardised, and b) can be switched between formats if desired? Primefac (talk) 14:27, 26 November 2022 (UTC)
- Thanks for the ping. I'll take a look at it when I'm available. Aidan9382 (talk) 14:34, 4 July 2022 (UTC)
- Appears to be completed. P.I. Ellsworth , ed. put'er there 12:55, 20 May 2024 (UTC)
Template-protected edit request on 17 October 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add {{{con}}}
as an alias to {{{contested}}}
in the type logic. Setting con to any value currently does not change the styling, despite what the documentation says.
Line 2: | Line 2: |
|small = {{{small|}}} | |small = {{{small|}}} |
|image = [[File:Clipboard.svg|{{#ifeq:{{{small|}}}|yes|20px|35px}}|Proposed deletion]] | |image = [[File:Clipboard.svg|{{#ifeq:{{{small|}}}|yes|20px|35px}}|Proposed deletion]] |
|type = {{#if:{{{nomdate|{{{date|}}}}}}|{{#if:{{{contested|{{{declined|}}}}}}|notice|{{#ifexpr:({{#time:U|now}}-{{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|}}}})<626400|speedy|notice}}}}|notice}} | |type = {{#if:{{{nomdate|{{{date|}}}}}}|{{#if:{{{contested|{{{con|{{{declined|}}}}}}}}}|notice|{{#ifexpr:({{#time:U|now}}-{{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|}}}})<626400|speedy|notice}}}}|notice}} |
|style = {{#ifeq:{{{small|}}}|yes||text-align:center;}} | |style = {{#ifeq:{{{small|}}}|yes||text-align:center;}} |
|text = {{#if:{{{nomdate|{{{date|}}}}}} <!-- In {{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|}} There is an invisible left-to-right marker after the final |. This character is removed before passing the date string to #time --> | |text = {{#if:{{{nomdate|{{{date|}}}}}} <!-- In {{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|}} There is an invisible left-to-right marker after the final |. This character is removed before passing the date string to #time --> |