Jump to content

Template talk:Old peer review

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Oldpeerreview)

why isn't article name made a required parameter

[edit]

It would stop the template from breaking when article is moved. It would also let us skip the kludgey workaround. CapnZapp (talk) 13:37, 25 August 2020 (UTC)[reply]

@CapnZapp Great idea. We can change the way this works to be a "subst" type template, which will then let the name be auto inserted. I'll give it a go over the next few weeks in my sandbox here: User:Tom (LT)/sandbox/Old peer review. We might as well make a few other improvements while we're here which I'll propose when I have a working template.--Tom (LT) (talk) 05:11, 30 August 2020 (UTC)[reply]

Template-protected edit request on 29 October 2020

[edit]

This change will change it so that a valid reviewedname will not add a broken link category. The reason for this is to allow my bot to facilitate its job effectively and doesn't add duplicate arguments for the template because of multiple runs. This will add a ifexist to check if reviewedname is in existence and is valid.

my version of the template here BJackJS talk 21:55, 29 October 2020 (UTC)[reply]

To editor BJackJS:  done, and thank you for your work on this! P.I. Ellsworth  ed. put'r there 03:35, 30 October 2020 (UTC)[reply]
Hi Paine Ellsworth thanks for trying to help out but your edit is not correct. There are two ways that peer review links are provided:
  1. |archivelink= gives the full title, e.g. |archivelink=ARCHIVE LINK will go to https://en.wikipedia.org/wiki/ARCHIVE LINK
  2. |reviewedname= gives the article title when the review was made e.g. |reviewedname=NAME will go to https://en.wikipedia.org/wiki/Wikipedia:Peer review/NAME/archiveN (where |archive=N, defaulting to 1)
If NEITHER of the two reviews exist, then the article needs to be added to the category. Hope this helps and also fingers crossed to see your super template editing skills in this circumstance.--Tom (LT) (talk) 06:43, 30 October 2020 (UTC)[reply]
To editor Tom (LT): lol – it would probably help if I had even an inkling of what you're talking about. I'll do my best and keep my fingers crossed, too. Thank you for your basic instructions! So the challenge is to maintain this template's present savoir-faire while providing BJackJS's bot with what it needs to do its job effectively, as well. I'll dive into it soon with sandbox tests and won't go live until it has your seal of approval. P.I. Ellsworth  ed. put'r there 10:33, 30 October 2020 (UTC)[reply]
To editor Paine Ellsworth: or To editor Tom (LT): I'm not exactly sure who to mention, but my latest revision of the template has added handling for the archive link. I'm sorry about not adding that in my previous versions. BJackJS talk 11:46, 30 October 2020 (UTC)[reply]
Okay BJackJS, I've put that code from your user page into the sandbox and have updated the testcases page and have done some testing in preview on a page where this template is used. So far so good. Would love to hear what Tom (LT) thinks. P.I. Ellsworth  ed. put'r there 12:55, 30 October 2020 (UTC)[reply]
@Paine Ellsworth peer review is a very complex process, I feel your pain and appreciate your help 😆. I will make some bastardised edits to your sandbox and please feel free to correct them. --Tom (LT) (talk) 22:41, 30 October 2020 (UTC)[reply]
To editor Tom (LT): had to tweak the sandbox code just a teensy bit to erase spurious code on the testcases page. Hope that helps the template's functionality for normal placement and for the bot. How about it, BJackJS? Does it work for you? P.I. Ellsworth  ed. put'r there 03:09, 31 October 2020 (UTC)[reply]
It works fine for me. BJackJS talk 03:29, 31 October 2020 (UTC)[reply]

See if you approve of this: the category populated by transclusion of this template, Old requests for peer review, has been wrapped in the {{Main other}} template in the sandbox. If that goes live, it will only allow mainspace articles to populate the category. That will keep the /doc, /sandbox and /testcases pages out of the category. Additionally, the category has been added to the /doc page to place the live template at the top of the category's page list. Thoughts? P.I. Ellsworth  ed. put'r there 10:38, 31 October 2020 (UTC)[reply]

That works. My bot doesn't run on the Old requests for peer review, it actually just locates broken archive links and repairs them. BJackJS talk 16:41, 31 October 2020 (UTC)[reply]
To me it looks and works well. Have changed 'main other' to be 'talk other' as the template is intended for use on article talk pages. Great to work with you both and I think the template is actually overall easier to edit as well, which is great.--Tom (LT) (talk) 22:14, 31 October 2020 (UTC)[reply]

Okay good, and the edits are live. Thank you so much! P.I. Ellsworth  ed. put'r there 01:43, 1 November 2020 (UTC)[reply]