Template talk:Cite Rowlett

(Redirected from Template talk:Cite rowlett)
Latest comment: 1 year ago by GreenC in topic Wikidata
edit

Rowlett links used on wikipedia which are not covered by this template:

--Muhandes (talk) 12:07, 5 August 2010 (UTC)Reply

--Best regards, Keysanger (what?) 11:05, 6 September 2013 (UTC)Reply

Bot request

edit

I have made a request at Wikipedia:Bot requests#Replace dead links for the dead UNC links to be replaced with this template. If there are any others that should be replaced, please post there. — Martin (MSGJ · talk) 05:52, 19 March 2021 (UTC)Reply

The bot was unable to convert these, require manual attention:

-- GreenC 23:45, 27 May 2021 (UTC)Reply

Bot results

edit
  • Moved 915 square-link URLs to new site. Example.
  • Converted 582 CS templates to {{cite rowlett}}. Example, Example.
  • Converted 861 square-links to {{cite rowlett}}. Example, Example.
  • Add to template 64 sites. Diff.

Total 1,443 new instances of the template, more than doubling the number in use. Remaining around 200 www.ibiblio.org URLs that might be convertible manually. -- GreenC 00:43, 6 June 2021 (UTC)Reply

@GreenC: From a random sample of 3, most of of these are manually convertible. I added the list to my TDL and I will chew on it from time to time. Thanks! --Muhandes (talk) 11:49, 7 June 2021 (UTC)Reply
Muhandes: Excellent! If come across repeating patterns (by the same user cutting and pasting) let me know and I can run the bot, though it takes some work to generate a regex. Also the template now supports |archive-url=, |archive-date= and |url-status=. -- GreenC 16:21, 7 June 2021 (UTC)Reply
I managed to manually convert about 200, the rest are not worth it. I think this is   Done. --Muhandes (talk) 18:36, 26 June 2021 (UTC)Reply
Awesome. -- GreenC 04:14, 27 June 2021 (UTC)Reply

Template breaking

edit

The template breaks with an unknown argument in |1=

  • {{cite rowlett|foo}} produces
  • Rowlett, Russ. "Lighthouses of". The Lighthouse Directory. University of North Carolina at Chapel Hill.

The problem: the tracking category is a wiki-link (ie. [[Category:...]] which the template adds to |title= field (?)which conflicts with the |url= field, which causes CS1|2 to throw an error. -- GreenC 06:38, 27 May 2021 (UTC)Reply

@GreenC: Please educate me. We should not have a single such occurrence in the main space, so why is that a problem? Is it the single CS error in the doc? --Muhandes (talk) 06:53, 27 May 2021 (UTC)Reply
"Fixed" in the sandbox by removing wikilinks from the error message: Rowlett, Russ. "Lighthouses of". The Lighthouse Directory. University of North Carolina at Chapel Hill. A disadvantage of this change is such errors will no longer be tracked by any error category, as far as I can tell. That may not, overall, be an improvement. It may be better to document this strange error condition in the documentation for this template. I think that code outside of |title= would be needed for true categorization. – Jonesey95 (talk) 14:57, 27 May 2021 (UTC)Reply
Thank you, Jonesy, removing the tracking is one way. The problem is I am about to run a bot that converts more than a four hundred {{cite web}} to {{cite rowlett}} and while it should go smoothly, one never knows what data exists and it may end up converting some that throw an error, so a tracking cat would be useful. However, looking at the source it is pretty awkward. Would be trivial in Lua. -- GreenC 15:41, 27 May 2021 (UTC)Reply
@GreenC: If this is what you need, and as awkward as this may seem, we can also just test for all valid designations and categorize when not. We can do this as a temporary measure for your bot run, or keep it as standard. I did that in the sandbox and can go live if you wish. --Muhandes (talk) 16:02, 27 May 2021 (UTC)Reply
If there were any instances of {{cite web}} with unnamed parameters, they would be in Category:CS1 errors: unrecognized parameter or Category:CS1 errors: empty unknown parameters, which have only a couple hundred articles total. I wouldn't worry about it. It is better for a bunch of new stuff to appear in a CS1 category, even if the error messages are strange, so that we can get it fixed quickly. If you post here when you are done with the run, I'll be happy to look for errors. – Jonesey95 (talk) 16:07, 27 May 2021 (UTC)Reply
The parameter would be unsupported such {{cite rowlett|foo}}. Come to think of I suppose my bot could just check the list and log any problems before making the conversion. Muhandes created a pipe-separated list that can be copy-pasted to make a regex statement. -- GreenC 16:15, 27 May 2021 (UTC)Reply
Regardless of my bot work, we should permanently install the version ("version MJ") by Muhandes which includes code by Jonesey as it solves the problem of an erroneous error message and adds a tracking category. If it's too much code, the version ("version J") by Jonesey so the error message displays correctly but without a tracking category. Any objections to the MJ or J versions? @Muhandes and Jonesey95: -- GreenC 18:48, 27 May 2021 (UTC)Reply
I have implemented the sandbox version with a few tweaks, including putting the error check at its normal place at the end of the template, and adjusting the tracking category name to better match similar category names. – Jonesey95 (talk) 19:01, 27 May 2021 (UTC)Reply
Well done. --Muhandes (talk) 21:59, 27 May 2021 (UTC)Reply

The bot ran and unfortunately the tracking category lit up with problems: Category:Articles using Cite rowlett template with invalid page designation -- GreenC 00:19, 28 May 2021 (UTC)Reply

Some codes don't exist in the template. -- GreenC 00:29, 28 May 2021 (UTC)Reply
Template updated. Tracking will clear in time. -- GreenC 01:57, 28 May 2021 (UTC)Reply

space in first argument causes error

edit

Example broken:

Fixed:

Is that expected? Found one case in an article, maybe others. -- GreenC 06:08, 5 June 2021 (UTC)Reply

I suppose we can (and probably should) add a {{trim}}. --Muhandes (talk) 10:27, 7 June 2021 (UTC)   Done --Muhandes (talk) 10:55, 7 June 2021 (UTC)Reply
Yep. -- GreenC 19:55, 7 June 2021 (UTC)Reply

phls doesn't work

edit
{{cite rowlett|phls}}

produces a dead link:

— Martin (MSGJ · talk) 17:01, 3 October 2021 (UTC)Reply

@MSGJ: That's because it no longer exists, it was split in December 2020 into two pages, Cebu and Bohol and Siquijor. In fact, the entire Philippines area was redone. Fixing the phls one is easy, I'll just remove it and all pages using it will appear in Category:Articles using Cite rowlett template with invalid page designation (0). Fixing the other ones is more difficult and needs to be done by hunting all the Philippines area lighthouses for references. --Muhandes (talk) 17:43, 3 October 2021 (UTC)Reply

nornw1a

edit
{{cite rowlett|nornw1a}}

is not recognised — Martin (MSGJ · talk) 11:30, 21 October 2021 (UTC)Reply

@MSGJ:   Done I updated the Norway pages, including Rowlett, Russ. "Lighthouses of Norway: Central Trøndelag". The Lighthouse Directory. University of North Carolina at Chapel Hill.. As always, the articles using these pages may need editing, but that is a whole different project. --Muhandes (talk) 13:21, 21 October 2021 (UTC)Reply
Thanks! — Martin (MSGJ · talk) 14:58, 21 October 2021 (UTC)Reply

Revert

edit

@Gilo1969: please can you explain your edit on this template? I don't think "fix citation with wikilink embedded in URL title" is accurate. Thanks — Martin (MSGJ · talk) 20:09, 19 March 2023 (UTC)Reply

The previous edit introduced an error message which resulted in about 260 pages using the Cite Rowlett template showing the CS1 errors: URL–wikilink conflict error. As far as I could make out from the error message the P11627 parameter being called does not exist, at least on those pages. Regards,  GILO   A&E  20:26, 19 March 2023 (UTC)Reply
Thanks, I'll check it out. Don't suppose you can give me an example of one of those pages? — Martin (MSGJ · talk) 21:26, 19 March 2023 (UTC)Reply
Unfortunately not - the majority of the affected pages were from the "List of lighthouses in..." series. It may be easiest to redo the change and then check Category:CS1 errors: URL–wikilink conflict for pages showing the error.  GILO   A&E  22:31, 19 March 2023 (UTC)Reply

Wikidata

edit

I have updated the template so it will use Lighthouse Directory page (P11627) when it is available. In this case you could use this template without any parameters. Please let me know if you see anything untoward — Martin (MSGJ · talk) 09:30, 5 June 2023 (UTC)Reply

IMO Wikidata is prone to vandalism and other data integrity problems. We put a lot of work into maintaining and watching the data here is reliable. It's not that hard to use the template as originally designed with the lighthouse code. I'd rather see it use Wikidata only if the template instance has no parameters, and not be the default to always use Wikidata. -- GreenC 21:55, 5 June 2023 (UTC)Reply