User talk:JJMC89/Archives/2016/April

Talk Page Redirects

  What a Brilliant Idea Barnstar
For your suggestion of multiple talk page redirects to a single lead page. It might not have shaken the foundations of Wikipedia, but it sure helped me. Robert Brukner (talk) 12:58, 2 April 2016 (UTC)

Thank you

For this I had started the same but saw that you had finished - thus saving me five minutes or so. It even gave me time to leave this message :-) Cheers. MarnetteD|Talk 00:53, 7 April 2016 (UTC)

MarnetteD, we can only hope that they'll give up one day .... — JJMC89 01:00, 7 April 2016 (UTC)
Hope springs eternal :-) Bonadea certainly does not deserve this nonsense. Best regards. MarnetteD|Talk 01:01, 7 April 2016 (UTC)

Another question

Hi. Is this something that could be archived with AWB? I was told I might need a script to do this, but thought I'd check with you first — Martin (MSGJ · talk) 09:38, 5 April 2016 (UTC)

@MSGJ: It might be possible with some regex in AWB, but I don't know if I would be able to come up with something to cover all cases. I can look into it. Maybe APerson could integrate it into WP:Bot requests#Merge talk page banners if it isn't already. — JJMC89 05:13, 6 April 2016 (UTC)
MSGJ, the way my bot works is by rolling all of the banners together into {{Article history}}; the only thing it does to individual ITN, OTD, and DYK templates is to remove them. In the case of the diff you linked to, for instance, the bot would roll both the ITN templates and the OTD template into a single transclusion of {{Article history}} with the appropriate parameters. Would this be acceptable too? APerson (talk!) 17:27, 6 April 2016 (UTC)
APerson I just tried it on that article mentioned above, and it looks good. I support your bot's proposed actions. Cheers — Martin (MSGJ · talk) 19:43, 12 April 2016 (UTC)

Besmircher

Yes, you've hit the nail on the head. Plenty of pseudo-journalistic OR, mile-long quotes and nothing properly sourced. There's no way I'm allowing enormous chunks of unsourced stuff in Fleetwood Mac album articles. I shouldn't have allowed his treatment of the AC/DC album articles to remain, as they are all basket cases now. I might revisit those at some point. Bretonbanquet (talk) 20:49, 12 April 2016 (UTC)

Template syntax

If have a question. Why is it that in {{More footnotes}} and {{BLP sources}}, the syntax

{{#if:{{{suffix|{{{1|}}}}}}|{{{suffix|{{{1}}}}}}

includes both {{{1|}}} and {{{1}}}? I had originally thought that maybe it had to do with making it work with both, for example, {{BLP sources|section}} and {{BLP sources|section|date=April 2016}}, since the former doesn't have a pipe after the suffix and the latter does. However, when I was making my edit request on {{No footnotes}}, I experimented with this, and it wasn't the case. It seems that in template syntax, pipes are often used to specify additional parameters or conditions. Is this what this for? Does that mean the extra {{{suffix|{{{1}}}}} is unnecessary? Or does it do something else? -©2016 Compassionate727(Talk)(Contributions) 17:57, 12 April 2016 (UTC)

@Compassionate727: It isn't about calling another parameter (having a pipe) after it. Pipes are used to separate parameters in template transclusions. When coding a template, a pipe inside a {{{parameter}}} allows a default or fallback value to be specified for when the parameter isn't specified in the transclusion. In the case of {{{suffix|{{{1|}}}}}}, |1= will be used if |suffix= isn't specified, and if neither are specified, it will result in an empty string. For {{{suffix|{{{1}}}}}}, |1= will be used if |suffix= isn't specified; however, if neither are specified, it will result in the string {{{1}}}. {{#if}} tests a string and determines whether or not it is empty. If the first one in {{#if:{{{suffix|{{{1|}}}}}}|{{{suffix|{{{1}}}}}} plus something if not empty|otherwise this if not empty}} didn't have a pipe and |suffix= is not specified, {{#if}} will evaluate whether {{{1}}} is empty, and if |1= is not specified it will always result in the string {{{1}}}, which is not empty. The second one doesn't need the pipe since {{#if}} has already determined that {{{suffix|{{{1|}}}}}} has resulted in a non-empty string, which could only occur if |suffix= or |1= were specified in the template transclusion.
If my explanation isn't clear, please let me know. — JJMC89 06:37, 13 April 2016 (UTC)
It took me an hour (seriously, it did), but I'm finally pretty much certain I figured it out! Had to read that link {{#if}} takes you to, but I finally understand. {{No footnotes}} contains the code {{#if:{{{suffix|{{{1|}}}}}}|{{{suffix|{{{1}}}}}} '''[[Wikipedia:Biographies of living persons|about a living person]]'''|'''[[Wikipedia:Biographies of living persons|biography of a living person]]'''}}. In it, the only code involved in checking for something is {{#if:{{{suffix|{{{1|}}}}}}. This code first checks to see if you transcluded {{No footnotes|suffix=section}}. If you didn't, it then checks if you transcluded either {{No footnotes|1=section}} or {{No footnotes|section}}; these two methods are equivalent. If you didn't do any of these, it prints the code '''[[Wikipedia:biographies of living persons|biography of a living person]]'''. If you did, it prints what you inputted ({{{suffix}}} does it if you used |suffix=, {{{1}}} does it if you used |1= or just typed the input in after a pipe) along with the code '''[[Wikipedia:Biographies of living persons|about a living person]]'''.
Did I get it? -©2016 Compassionate727(Talk)(Contributions) 15:45, 13 April 2016 (UTC)
@Compassionate727: Yes, that is correct. — JJMC89 16:06, 13 April 2016 (UTC)

Request for assistance

Hello, I am trying to do something with AWB and you seem to be quite good with it. The idea is (per WP:DCS) to remove /Comments subpages of article talk pages. There are two steps:

  1. Substitute the contents of the subpage on to the article talk page. I can do this easily, making the list using one of the categories in User:WOSlinker/comments and then appending {{subst:substituted comment/subst}} to each talk page. Works a treat, see Talk:Forestry#Assessment comment for example.
  2. Redirect the subpage to the article talk page. This is where I'm stuck. I don't know how to make the list - it would be good if I could just add a suffix "/Comments" to each page from step 1. Secondly I don't know how to redirect by replacing all content with #REDIRECT[[Talk:{{subst:ROOTPAGENAME}}]]

If you could help I would be grateful — Martin (MSGJ · talk) 22:14, 20 March 2016 (UTC)

@MSGJ: To make the list of comments subpages I would just save the list from step one or Category:Pages whose comments subpage can be redirected (List > Save list...) and use a text editor to find ]] and replace all with /Comments]]. You can then make a new list using the text file as the source. To replace everything on a page use a regex find of (.|\n)+ (42 test edits). — JJMC89 05:14, 21 March 2016 (UTC)
Thanks very much. I don't suppose you'd be interested in running a bot like this? I did post at WP:BOTREQ but it didn't garner much comment. — Martin (MSGJ · talk) 12:17, 21 March 2016 (UTC)
@MSGJ: I could run a bot task for this. Once you've settled on a implementation for {{substituted comment}} and {{subst:substituted comment/subst}}, I can file a BRFA. — JJMC89 16:30, 21 March 2016 (UTC)
Great. What do you think of current implementation? Planning to add collapsed box if comment is particularly long (>1000). I'll try and get a few people to comment on WT:DCS to give evidence of support for this task. — Martin (MSGJ · talk) 16:38, 21 March 2016 (UTC)
@MSGJ: {{Substituted comment}} might be better off being subst but otherwise looks good. I made an adjustment to it to prevent issues from archiving. I adjusted {{subst:substituted comment/subst}} so that it doesn't give any output if there aren't any comments. This will make the bot not have to check the same thing that {{ifexist not redirect}} checks. If the error output is needed, I'll look into having the bot check it. Are the tracking categories needed for something in the future? I can build lists from the categories on User:WOSlinker/comments, so I won't need Category:Pages whose comments subpage can be redirected. — JJMC89 04:41, 22 March 2016 (UTC)
Changes look good. I think the currect setup with substituting the content but transcluding {{Substituted comment}} is cleanest: don't need all the technical code on the talk page, and still have the ability to tweak the code later! Good catch with the archiving. All these categories can and should be depopulated/deleted when the job is complete. I think you can open the BRFA whenever you are ready. Thanks — Martin (MSGJ · talk) 06:44, 22 March 2016 (UTC)
@MSGJ:   BRFA filed — JJMC89 06:00, 23 March 2016 (UTC)

I've left a couple of notes/queries for you at Template talk:Substituted comment when you get a chance. This is in readiness for the trial. Regards — Martin (MSGJ · talk) 16:44, 13 April 2016 (UTC)

@MSGJ: I have replied there. — JJMC89 02:23, 14 April 2016 (UTC)

RfA nom?

Hi! I know you're not listed on WP:RRN, but I thought I'd ask anyway. (Sorry for bothering you.) I was reading through a few discussions on WT:RFA and thought I should look into doing another RfA. Would you consider (co-)nominating me? I'd be focused on technical work, but also some AfD or uncontroversial CSD work. Thanks! APerson (talk!) 02:53, 14 April 2016 (UTC)

It's not a bother, APerson. I recall seeing your first RFA, but I didn't participate. I'd like to do some research. We can move this conversation off wiki if you prefer. — JJMC89 05:30, 15 April 2016 (UTC)
Wikipedia:Requests for adminship/APerson and its talk page are essential reading. I feel a future nomination is likely to be successful, but it would definitely help if APerson could be transparent about the alternate account thingy. — Martin (MSGJ · talk) 11:06, 15 April 2016 (UTC)
Yes, it definitely would, and I plan to be as transparent as possible in future discussions about it. APerson (talk!) 11:22, 15 April 2016 (UTC)

Regarding suffixes in templates

I noticed that {{More footnotes}} and {{No footnotes}} are nominally designed to support {{{suffix}}}, but they actually don't. {{Refimprove}}, {{Unreferenced}}, {{Cleanup bare URLs}} and {{Copy edit}} aren't designed to. I've never seen anyone use |suffix= in a transclusion. I think it would make those two templates significantly more readable to simply remove all the instances of {{{suffix}}} from them. What do you think? -©2016 Compassionate727(Talk)(Contributions) 15:57, 25 April 2016 (UTC)

@Compassionate727: Sorry for the delayed response. I'm not sure what you mean that |suffix= doesn't work; {{No footnotes|blp=yes|suffix=text}} works fine. Didn't your edit requests introduce |suffix= into those two templates? In any case, I don't think I've seen anyone use it, and it's not really a good parameter name since it's a prefix, not a suffix. {{{suffix}}} could be removed. — JJMC89 04:56, 27 April 2016 (UTC)