:Template talk:Old prod#Template-protected edit request on 20 April 2022

{{permprot}}

{{User:MiszaBot/config

| algo = old(150d)

| archive = Template talk:Old prod/Archive %(counter)d

| counter = 1

| maxarchivesize = 175K

| archiveheader = {{Automatic archive navigator}}

| minthreadstoarchive = 2

| minthreadsleft = 4

}}

{{talkheader}}

__TOC__

Differentiate between BLPprod and regular prod

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 (utc) 20:58, 15 November 2020 (UTC)

:{{ping|Hack|Amorymeltzer}} {{tl|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 {{tl|old prod}} on talk pages when applying the {{tl|prod blp}} template.[https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Twinkle&diff=prev&oldid=992563846] davidwr/(talk)/(contribs) 23:08, 5 December 2020 (UTC)

Template-protected edit request on 20 April 2022

{{edit template-protected|Template:Old prod|answered=yes}}

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

{{Blockquote

|text=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[https://en.wikipedia.org/w/index.php?title=Talk:Abraham_Cornelius_Benjamin&diff=1083827186&oldid=1082662734] Jahaza (talk) 23:57, 20 April 2022 (UTC)

: Re-opening this request. voorts (talk/contributions) 23:45, 17 May 2024 (UTC)

:{{ping|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)

::{{ping|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)

::: {{done}} * Pppery * it has begun... 15:56, 21 April 2022 (UTC)

{{ping|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 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 {{strongbad|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 {{u|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 {{t|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 [DATE] inputs ([https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns1=1&search=hastemplate%3A%22Old+prod%22+insource%3A%2Fcondate+%2A%3D+%2A%5C%3Cspan%2F about 600]), and these would cause errors in the old format. {{tl|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}} -> {{date|2017-06-23}}

::::{{date|1=2017-06-23}} -> {{date|1=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 {{tl|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)

::::::::{{ping|Jahaza|Aidan9382|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. [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns1=1&search=hastemplate%3A%22Old+prod%22+insource%3A%2Fcondate+%2A%3D+%2A%5C%3Cspan%2F Aidan's search] now returns zero results. jlwoodwa (talk) 21:59, 22 April 2024 (UTC)

:Appears to be {{complete2|completed}}. P.I. Ellsworth , ed. put'er there 12:55, 20 May 2024 (UTC)

::@Paine Ellsworth I wouldn't call this completed, since the first requested issue of how the different dates aren't displayed the same, hasn't changed. Nobody (talk) 05:35, 16 April 2025 (UTC)

:::{{to|1AmNobody24|s1=Nobody}} the code in the sandbox by editor {{u|Aidan9382}} appears to have fixed the date displays. Let me know if you find otherwise. P.I. Ellsworth , ed. put'er there 15:45, 16 April 2025 (UTC)

::::Looks like it works and didn't create any errors this time. Thanks for implementing this. Nobody (talk) 15:56, 16 April 2025 (UTC)

:::::Happy to help! Paine  23:44, 16 April 2025 (UTC)

::::::Noticed 20 new pages at :Category:Pages with parser function time errors, so please take a look at these talk pages. Gonnym (talk) 06:38, 17 April 2025 (UTC)

:::::::{{Fixed}} Nobody (talk) 06:53, 17 April 2025 (UTC)

Template-protected edit request on 17 October 2024

{{Edit template-protected|Template:Old prod|answered=yes}}

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.

class="diff diff-editfont-monospace" style="margin: auto; font-size: small; overflow-wrap: break-word;"
class="diff-lineno" | Line 2:

| class="diff-lineno" | Line 2:

class="diff-context diff-side-deleted" | |small = {{{small
}}

| class="diff-context diff-side-added" | |small = {{{small|}}}

|-

| class="diff-context diff-side-deleted" | |image = File:Clipboard.svg

| class="diff-context diff-side-added" | |image = File:Clipboard.svg

|-

| class="diff-deletedline diff-side-deleted" | |type = {{#if:{{{nomdate|{{{date|}}}}}}|{{#if:{{{contested|{{{declined|}}}}}}|notice|{{#ifexpr:({{#time:U|now}}-{{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|‎}}}})<626400|speedy|notice}}}}|notice}}

| class="diff-addedline diff-side-added" | |type = {{#if:{{{nomdate|{{{date|}}}}}}|{{#if:{{{contested|{{{con|{{{declined|}}}}}}}}}|notice|{{#ifexpr:({{#time:U|now}}-{{#time:U|{{#invoke:String|replace|{{{nomdate|{{{date}}}}}}|‎}}}})<626400|speedy|notice}}}}|notice}}

|-

| class="diff-context diff-side-deleted" | |style = {{#ifeq:{{{small|}}}|yes||text-align:center;}}

| class="diff-context diff-side-added" | |style = {{#ifeq:{{{small|}}}|yes||text-align:center;}}

|-

| class="diff-context diff-side-deleted" | |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 -->

| class="diff-context diff-side-added" | |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 -->

|}

– 🌻 Hilst (talk | contribs) 20:14, 17 October 2024 (UTC)

:{{done}} Sohom (talk) 13:42, 18 October 2024 (UTC)