Archives |
1, 2, 3, 4, 5, 6, 7, 8, 9, 10 11, 12, 13, 14, 15, 16, 17, 18, 19 |
| ||
them at the article's talk page so that everyone who has an interest in the article may participate.
"Fix your script"
What exactly is the error that you claim I created in these two edits by you:[1], [2]?
Both those page were edited by me of a single-purpose short AWB run to fix the 12 pages (these 12 edits) in Category:CS1 errors: unsupported parameter which used the outdated parameter |deadurl=y
. That was clearly set out in the edit summaries: "replace outdated CS1 parameter, replaced: |deadurl=y → |url-status=dead"
So what exactly do you believe was done wrong? --BrownHairedGirl (talk) • (contribs) 12:08, 10 August 2021 (UTC)
- These:
- Hassan Rouhani:
|deadurl=y
→|url-status=dead es
- Four-funnel liner:
|deadurl=y
→|url-status=dead es
- Hassan Rouhani:
- and, I've just noticed, meaningless text 'foo' at the bottom of both pages.
- Please fix your script.
- —Trappist the monk (talk) 12:17, 10 August 2021 (UTC)
- Ah, I hadn't spotted that those two used "yes". I hadn't encountered that before, because nearly all of these probs are caused by reFill2, which uses "|deadurl=y".
- Dunno what caused the foo thing, but I am annoyed with myself to have missed that. I will go clean it up. --BrownHairedGirl (talk) • (contribs) 12:24, 10 August 2021 (UTC)
- "foo" removed, in these 11 edits. --BrownHairedGirl (talk) • (contribs) 12:37, 10 August 2021 (UTC)
Postscript parameter
Can you explain to me a bit better how this category works? How wrong is asking you for help in creating a find and replace regex to remove |postscript=.? :P - Klein Muçi (talk) 23:29, 10 August 2021 (UTC)
- cs1 templates (
{{cite book}}
,{{cite web}}
, etc) end with a terminal dot:{{cite book |title=Title}}
- Title. ← ends with a dot
- cs2 templates (
{{citation}}
) do not end with any punctuation:{{citation |title=Title}}
- Title ← no ending punctuation
|mode=cs2
in a cs1 template removes the terminal dot:{{cite book |title=Title |mode=cs2}}
- Title ← cs1 but no terminal dot
- and
|mode=cs1
in a cs2 template ends with a terminal dot:{{citation |title=Title |mode=cs1}}
- Title. ← cs2 but ends with a dot
- Sometimes, editors add
|postscript=none
to cs1 templates with|mode=cs2
, or they add|postscript=none
to cs2 templates. Neither of those make any sense so the citation gets the maintenance message: - Similarly, editors sometimes add
|postscript=.
to cs2 templates with|mode=cs1
, or they add|postscript=.
to cs1 templates. Again, neither of those make any sense so the citation gets the maintenance message: |postscript=
is not a dumping ground for any text that editors want to put there.|postscript=
controls the citation's terminal punctuation so the content of|punctuation=
is limited to one character (the special keywordnone
of course excepted):{{cite book |title=Title |postscript=!!}}
- Title!!CS1 maint: postscript (link) ← maintenance message
- Does that answer your question?
- —Trappist the monk (talk) 00:38, 11 August 2021 (UTC)
- Sort of. I mean, it's the first time in all these years that I'm made aware of having different kinds of templates that use different styles. To make me gain more trust in working through that category can you also show me some common fixes for the problems there? As I said, the whole information is very new to me. - Klein Muçi (talk) 08:01, 11 August 2021 (UTC)
- From sq:Attack on Titan:
{{Cito web|last=「進撃の巨人」製作委員会|script-title=ja:放送情報|trans-title=Broadcast Information|url=http://www.shingeki.tv/onair|url-status=dead|archive-url=https://web.archive.org/web/20130330061739/http://www.shingeki.tv/onair|archive-date=March 30, 2013|access-date=January 14, 2016|website=shingeki.tv|language=ja|postscript=. "{{Nihongo2|MBS 4月6日より 毎週土曜25時58分~ ※4月13日は26時10分~}}" See rest of article for other broadcasting times.}}
→{{Cite web |last=「進撃の巨人」製作委員会 |script-title=ja:放送情報 |trans-title=Broadcast Information |url=http://www.shingeki.tv/onair |archive-url=https://web.archive.org/web/20130330061739/http://www.shingeki.tv/onair |archive-date=March 30, 2013 |access-date=January 14, 2016 |website=shingeki.tv |language=ja}} "{{Nihongo2 |MBS 4月6日より 毎週土曜25時58分~ ※4月13日は26時10分~}}" See rest of article for other broadcasting times.
→- 「進撃の巨人」製作委員会. 放送情報 [Broadcast Information]. shingeki.tv (in Japanese). Archived from the original on March 30, 2013. Retrieved January 14, 2016. "MBS 4月6日より 毎週土曜25時58分~ ※4月13日は26時10分~" See rest of article for other broadcasting times.
- from sq:Carol W. Greider
{{Cite journal|doi=10.1016/0092-8674(85)90170-9 |last=Greider |first=C. W. |last2=Blackburn |first2=E. H. |lastauthoramp=yes |year=1985 |title=Identification of a specific telomere terminal transferase activity in Tetrahymena extracts |journal=Cell |volume=43 |issue=2 Pt. 1 |pages=405–413 |url= |issn= |pmid=3907856 |postscript=. }}
→{{Cite journal |doi=10.1016/0092-8674(85)90170-9 |last=Greider |first=C. W. |last2=Blackburn |first2=E. H. |name-list-style=amp |year=1985 |title=Identification of a specific telomere terminal transferase activity in Tetrahymena extracts |journal=Cell |volume=43 |issue=2 Pt. 1 |pages=405–413 |pmid=3907856}}
→- Greider, C. W. & Blackburn, E. H. (1985). "Identification of a specific telomere terminal transferase activity in Tetrahymena extracts". Cell. 43 (2 Pt. 1): 405–413. doi:10.1016/0092-8674(85)90170-9. PMID 3907856.
- from sq:Geoffrey Chaucer
{{Cite journal|title=Chaucer|last=Ward|first=Adolphus W.|year=1907|publisher=R. & R. Clark, Ltd|location=Edinburgh|postscript={{inconsistent citations}}}}
→{{Cite book |title=Chaucer |last=Ward |first=Adolphus W. |year=1907 |publisher=R. & R. Clark, Ltd |location=Edinburgh}}
→- Ward, Adolphus W. (1907). Chaucer. Edinburgh: R. & R. Clark, Ltd.
- —Trappist the monk (talk) 13:17, 11 August 2021 (UTC)
- From sq:Attack on Titan:
- Sort of. I mean, it's the first time in all these years that I'm made aware of having different kinds of templates that use different styles. To make me gain more trust in working through that category can you also show me some common fixes for the problems there? As I said, the whole information is very new to me. - Klein Muçi (talk) 08:01, 11 August 2021 (UTC)
Thanks! That will surely help me deal with the articles there. :) - Klein Muçi (talk) 18:20, 11 August 2021 (UTC)
- Quick question so I don't start a new discussion: Is |url-status=(y)es/no equivalent to |url-status=live/dead? - Klein Muçi (talk) 00:49, 12 August 2021 (UTC)
|url-status=yes
,|url-status=y
,|url-status=no
, and|url-status=n
are all invalid and have no meaning except that cs1|2 presumes that they are the same as|url-status=dead
. It is possible that someone replaced the parameter name|dead-url=
and left the value the same (sigh) so if that is the case then:|url-status=yes
/|url-status=y
may mean|url-status=dead
(in which case the whole parameter may be deleted)|url-status=no
/|url-status=n
may mean|url-status=live
- When there is no
|archive-url=
,|url-status=
serves no purpose so the whole parameter may be deleted. - Only way to know for sure what these bogus parameter values really mean, is to test the value in
|url=
. - —Trappist the monk (talk) 01:05, 12 August 2021 (UTC)
- Sad. I was trying to evade testing and do a mass editing towards articles in regard to that. No easy way to success. Another question: This is perfect for fixing those invisible characters. Found it in the category suggestions. Any chance we may have something similar implemented in-wiki in the near future? By "something similar" I mean anything that helps a bit more than what we currently have (which is still a lot). Maybe the module itself being able to underline the exact character, maybe Mediawiki showcasing some of these symbols in a certain way when used in specific situations or maybe even a replica in-wiki tool/gadget of the one above. - Klein Muçi (talk) 02:09, 12 August 2021 (UTC)
- That tool is a great tool, its free, it does the job well, why reinvent the wheel?
- —Trappist the monk (talk) 12:46, 12 August 2021 (UTC)
- It would allow for a smoother overall infrastructure I believe but okay, let's keep the wheel that we have for the moment. :) - Klein Muçi (talk) 18:42, 12 August 2021 (UTC)
- Sad. I was trying to evade testing and do a mass editing towards articles in regard to that. No easy way to success. Another question: This is perfect for fixing those invisible characters. Found it in the category suggestions. Any chance we may have something similar implemented in-wiki in the near future? By "something similar" I mean anything that helps a bit more than what we currently have (which is still a lot). Maybe the module itself being able to underline the exact character, maybe Mediawiki showcasing some of these symbols in a certain way when used in specific situations or maybe even a replica in-wiki tool/gadget of the one above. - Klein Muçi (talk) 02:09, 12 August 2021 (UTC)
In regard to |url-status=no
/|url-status=yes
, turns out, what you described was exactly what had happened and the culprit was I. I was using AWB to do exactly that fix for some articles some hours ago and that had led to this situations. Thanks for your help! Was able to fix it fast. - Klein Muçi (talk) 02:21, 12 August 2021 (UTC)
Empty unknown parameters
How am I supposed to fix the error here in the second citation? (Not the language one.) I have a lot of biology related articles with the same error but that parameter just isn't there. I thought they were getting it from a template but... :/ - Klein Muçi (talk) 21:58, 12 August 2021 (UTC)
- Well, you could edit sq:Stampa:IUCN and change
|last-author-amp=
to|name-list-style=
. Or, if you are feeling adventurous, you can do as we did and replace all instances of Stampa:IUCN, sq:Stampa:IUCN2006, sq:Stampa:IUCN2008 with sq:Stampa:cite iucn and then delete those templates. Before you do that, I would recommend an update from sq:Moduli:iucn to Module:Cite iucn because yours is a wee bit out of date. I have an awb c# module that might be helpful (or not – it was just a hack to do what needed doing here so might not work so well there; but you can try it). - —Trappist the monk (talk) 22:36, 12 August 2021 (UTC)
- I imported the module and the corresponding template. Let's try our luck with AWB now. - Klein Muçi (talk) 23:08, 12 August 2021 (UTC)
- sq:Përdoruesi:Trappist_the_monk/iucn_awb_module. When you're done with it, please delete it.
- —Trappist the monk (talk) 23:30, 12 August 2021 (UTC)
- Also, what is the new equivalent parameter to |coauthors=? We've got a dozen of articles with that unknown parameter. - Klein Muçi (talk) 23:21, 12 August 2021 (UTC)
- Individual
|author<n>=
parameters or individual|last<n>=
/|first<n>=
parameters-pairs or a single|vauthors=
parameter. - —Trappist the monk (talk) 23:30, 12 August 2021 (UTC)
- Thanks a lot! Do you mind re-telling me how to set up the module to AWB? I've only worked once with it in the past when you gave me one. Usually I just work with individual regexes. - Klein Muçi (talk) 23:38, 12 August 2021 (UTC)
- Individual
- I imported the module and the corresponding template. Let's try our luck with AWB now. - Klein Muçi (talk) 23:08, 12 August 2021 (UTC)
I think I was able to get past that. Make module, copy-paste, compile, close. That's it, no? Now the only problem is how to generate a list of all articles using those templates. Do I have to get a full database dump for that? :'( - Klein Muçi (talk) 23:42, 12 August 2021 (UTC)
- So glad AWB had the option to compile lists from transclusions. Fixed everything! Thanks a lot for the help! :)) - Klein Muçi (talk) 00:42, 13 August 2021 (UTC)
- Good. If you're done with it, delete sq:Përdoruesi:Trappist the monk/iucn awb module please.
- —Trappist the monk (talk) 00:43, 13 August 2021 (UTC)
- Deleted since the last reply was written. - Klein Muçi (talk) 01:09, 13 August 2021 (UTC)
- Equivalent of |cid=? - Klein Muçi (talk) 08:12, 13 August 2021 (UTC)
- In what context?
- —Trappist the monk (talk) 11:01, 13 August 2021 (UTC)
- The citation errors here. (Already "fixed" them though. All the parameters were empty so I just removed them.) - Klein Muçi (talk) 15:40, 13 August 2021 (UTC)
- Likely an imported citation from it.wiki where
|cid=
is the same as en.wiki|ref=
. See it:Modulo:Citazione/Configurazione. - —Trappist the monk (talk) 15:53, 13 August 2021 (UTC)
- Likely an imported citation from it.wiki where
- The citation errors here. (Already "fixed" them though. All the parameters were empty so I just removed them.) - Klein Muçi (talk) 15:40, 13 August 2021 (UTC)
- Equivalent of |cid=? - Klein Muçi (talk) 08:12, 13 August 2021 (UTC)
- Deleted since the last reply was written. - Klein Muçi (talk) 01:09, 13 August 2021 (UTC)
Unsupported parameters
Can you help me empty this category? I don't know what to do with the remaining articles there. Even checked the errors' help page but... - Klein Muçi (talk) 00:18, 14 August 2021 (UTC)
- from sq:Dielli:
|=[[Astronomy and Astrophysics]]
– needs a parameter name:|journal=
- from sq:Elektriciteti gjeotermik:
|conference=IPCC Scoping Meeting on Renewable Energy Sources
–|conference=
only works with{{cite conference}}
(to retain the same style, add|mode=cs2
)
- from sq:Fedora:
| mailing-list=Fedora Project announce
–|mailing-list=
only works with{{cite mailing list}}
- from sq:Hafezi:
|encyclopedia=Encyclopædia Iranica
–|encyclopedia=
only works with{{cite encyclopedia}}
and{{citation}}
- You see the pattern. Most of the unique parameters are listed, oddly enough, in Moduli:Citation/CS1/Whitelist at line 429 et seq.
- —Trappist the monk (talk) 01:00, 14 August 2021 (UTC)
- Thanks a lot really! What about here? Am I supposed to really change the template from the one for books to the one for conferences? I checked the English version here for guidance and funny enough, it has the same error unfortunately. :P - Klein Muçi (talk) 07:43, 14 August 2021 (UTC)
- La Chanson de Roland is not a conference proceeding so
{{cite book}}
is correct,|title=
→|section=
or|chapter=
;|book-title=
→|title=
. - —Trappist the monk (talk) 11:14, 14 August 2021 (UTC)
- Thank you! I'm very inexperienced when it comes to fixing individual citations. Can you also tell me what I should do with the last article here? Also, I'm thinking of putting the whole table here (or maybe parts of it) as find and replace regexes for Smallem to look after for. I don't think that's a thing that could become problematic, isn't it? - Klein Muçi (talk) 22:22, 14 August 2021 (UTC)
- Delete empty parameters; delete extraneous white space; change
|monte=
to|title=
; change|lrchive-url=
to|archive-url=
; change|url-status=dead
to|url-status=live
.|auth=2003
doesn't make much sense; according to the article's page at the journal's website – click the 'How to cite' link – the date should be 2011 (but not if you choose MLA from the drop-down: 2006; what?) so I would change|auth=2003
to|date=2011
and add|doi=10.12681/makedonika.8
. - You could give that table to smallem. Article with cs1|2 templates using those parameters will show up in sq:Kategoria:Gabime CS1: Parametra të palejuar so constrain smallem to that category and not run it across every single article at sq.wiki.
- —Trappist the monk (talk) 23:36, 14 August 2021 (UTC)
- Delete empty parameters; delete extraneous white space; change
- Thank you! I'm very inexperienced when it comes to fixing individual citations. Can you also tell me what I should do with the last article here? Also, I'm thinking of putting the whole table here (or maybe parts of it) as find and replace regexes for Smallem to look after for. I don't think that's a thing that could become problematic, isn't it? - Klein Muçi (talk) 22:22, 14 August 2021 (UTC)
- La Chanson de Roland is not a conference proceeding so
- Thanks a lot really! What about here? Am I supposed to really change the template from the one for books to the one for conferences? I checked the English version here for guidance and funny enough, it has the same error unfortunately. :P - Klein Muçi (talk) 07:43, 14 August 2021 (UTC)
Help with general citation fixing
I created a new discussion given that I almost emptied those categories and I intend to go on fixing other ones in which I may need your mentoring. I'm currently dealing with this one. I have 2 questions: First of all, continuing what I've asked above, I'm thinking of creating some regexes for Smallem for the most common problems with this category, examples mentioned in its description on EnWiki. Is that all right to do? Secondly, I noticed something in which the module "lacks": Although it does catch all (most?) occasions of extra text related to pages in English, it does nothing for extra text in other languages. In this article you'll see that it says there are no more errors related to that category although if you see the source code and search for the pages parameter you'll see many instances of "fq" being put in values, which is the Albanian equivalent of "p". You can also check the rendered results and see that many references have the "fq" part doubled. Can the module be internationalized at this particular point? I was thinking to make it automatically get the value from the translation table in the top of the config. page for each language (apart from the default English value). To be honest, I've always thought it did that. I was surprised to learn that that wasn't true. I'm thinking this problem will be present in some other aspects too but this is just the first I noticed. - Klein Muçi (talk) 23:47, 14 August 2021 (UTC)
- Another suggestion: See the third citation here. Maybe CS1 can use "and" as delimiter beside comma to better understand grouped pages and be able to translate the "and" part? Naïve question: Why does the pages parameter accept non-numerical values? A lot of these problems could be solved if it only accepted numbers, commas and dashes. But I believe there must be cases I'm not thinking of here. - Klein Muçi (talk) 00:05, 15 August 2021 (UTC)
- Right now, cs1|2 doesn't care what editors put in
|pages=
as long as they don't include anything that looks vaguely like the prefix that cs1|2 adds for the rendering. We could alarm on|page(s)=
containingand
where the only other text in the parameter value is digits and punctuation. I'll think about that. This (crude) search times out and returns results that we don't care about, but you can get a sense for how editors at en.wiki use 'and' in|page(s)=
. - —Trappist the monk (talk) 00:53, 15 August 2021 (UTC)
- Right now, cs1|2 doesn't care what editors put in
- i18n for volume, issue, page(s) is already there. No doubt it could use improvement but until someone tries to use it for their language and it doesn't work right, we'll never know.
- —Trappist the monk (talk) 00:53, 15 August 2021 (UTC)
- Yeah, I noticed that the page(s) parameter is not that strict. I'm a bit confused in regard to your last sentence though. Am I not that person that you mention there? I mean, the doubled "fq" part.
- I was dealing with volume parameters now: Again, my first thought was that the parameter would only accept numbers as valid values but then I saw a lot of cases with Roman numbers and, most importantly, a lot of cases of long volume titles including almost whole sentences and I gave up on that idea. Actually I'm stuck right here: sq:Kategoria:Gabime CS1: Tekst shtesë: Vëllimi - I don't know how to deal with any of these remaining articles in which the volume value is more complex than just a number. Can you give me some examples of how to deal with those so I know how to go on? - Klein Muçi (talk) 01:20, 15 August 2021 (UTC)
- There is on-and-off discussion about how cs1|2 should label
|volume=
,|issue=
, and|number=
in the rendering. There are those who argue that all of the templates should have the same style; there are those who argue that{{cite journal}}
alone among the templates should retain it's unique volume-issue-page style while all of the others should adopt the{{cite magazine}}
style. Thus far, those editors participating in the discussions have not achieved consensus. In the meantime, cs1|2 looks for specific text in the parameter values that looks like the label that cs1|2 uses (or might use in future) and alarms when that text is found. Often the correct fix is to remove that label-look-alike text. There are cases where I think that the whole|volume=
label should be removed; for example, in this one from sq:Arkitektura Pallava:{{cite book|first=Anna Aleksandra|last=Ślączka|year=2007|title=Temple consecration rituals in ancient India: text and archaeology|publisher=BRILL|volume=Volume 26 of Brill's indological library|isbn=9789004158436|url=http://books.google.com.sg/books?id=9LznwzyNE18C}}
|volume=Volume 26 of Brill's indological library
is a series-volume number/title. cs1|2 does not support series volume per se, though I suppose that information, were it important, could be made part of|series=
. For this example, I would argue that|volume=Volume 26 of Brill's indological library
is not important so the whole parameter can go away.- —Trappist the monk (talk) 14:41, 15 August 2021 (UTC)
- So, I updated Smallem's table in regex fixes that are not related to languages:
(r"\|\s*authorfirst\s*=", r"|author-first="), (r"\|\s*authorgiven\s*=", r"|author-given="), (r"\|\s*authorlast\s*=", r"|author-last="), (r"\|\s*authormask\s*=", r"|author-mask="), (r"\|\s*authorsurname\s*=", r"|author-surname="), (r"\|\s*booktitle\s*=", r"|book-title="), (r"\|\s*chapterurl\s*=", r"|chapter-url="), (r"\|\s*conferenceurl\s*=", r"|conference-url="), (r"\|\s*contributionurl\s*=", r"|contribution-url="), (r"\|\s*dead-?url\s*=\s*(?:true|yes|y)\b", r"|url-status=dead"), (r"\|\s*dead-?url\s*=\s*no", r"|url-status=live"), (r"\|\s*displayauthors\s*=", r"|display-authors="), (r"\|\s*displayeditors\s*=", r"|display-editors="), (r"\|\s*doi-broken\s*=", r"|doi-broken-date="), (r"\|\s*doi-inactive-date\s*=", r"|doi-broken-date="), (r"\|\s*editorfirst\s*=", r"|editor-first="), (r"\|\s*editorgiven\s*=", r"|editor-given="), (r"\|\s*editorlast\s*=", r"|editor-last="), (r"\|\s*editorlink\s*=", r"|editor-link="), (r"\|\s*editorsurname\s*=", r"|editor-surname="), (r"\|\s*editormask\s*=", r"|editor-mask="), (r"\|\s*embargo\s*=", r"|pmc-embargo-date="), (r"\|\s*episodelink\s*=", r"|episode-link="), (r"\|\s*event-format\s*=", r""), (r"\|\s*eventurl\s*=", r""), (r"\|\s*event-url\s*=", r""), (r"\|\s*ref\s*=\s*Harv\b", r""), (r"\|\s*interviewerlink\s*=", r"|interviewer-link="), (r"\|\s*interviewermask\s*=", r"|interviewer-mask="), (r"\|\s*lastauthoramp=\s*=\s*(?:true|yes|y)\b", r"|name-list-style=amp"), (r"\|\s*last-author-amp=\s*=\s*(?:true|yes|y)\b", r"|name-list-style=amp"), (r"\|\s*laydate\s*=", r"|lay-date="), (r"\|\s*laysource\s*=", r"|lay-source="), (r"\|\s*layurl\s*=", r"|lay-url="), (r"\|\s*mailinglist\s*=", r"|mailing-list="), (r"\|\s*mapurl\s*=", r"|map-url="), (r"\|\s*name-list-format\s*=", r"|name-list-style="), (r"\|\s*nocat\s*=", r"|no-tracking="), (r"\|\s*no-cat\s*=", r"|no-tracking="), (r"\|\s*publicationdate\s*=", r"|publication-date="), (r"\|\s*publicationplace\s*=", r"|publication-place="), (r"\|\s*registration=\s*=\s*(?:true|yes|y)\b", r"|url-access=registration"), (r"\|\s*sectionurl\s*=", r"|section-url="), (r"\|\s*serieslink\s*=", r"|series-link="), (r"\|\s*seriesno\s*=", r"|series-number="), (r"\|\s*seriesnumber\s*=", r"|series-number="), (r"\|\s*series-separator\s*=", r""), (r"\|\s*subjectlink\s*=", r"|subject-link="), (r"\|\s*subscription=\s*=\s*(?:true|yes|y)\b", r"|url-access=subscription"), (r"\|\s*timecaption\s*=", r"|time-caption="), (r"\|\s*titlelink\s*=", r"|title-link="), (r"\|\s*transcripturl\s*=", r"|transcript-url="),
- Can you please check it and tell me if you think it is correct and "all-inclusive"? Any kind of optimizations? - Klein Muçi (talk) 08:38, 15 August 2021 (UTC)
- The problem with this list of find-and-replace regexes is that it will replace the found parameters wherever they exist in an article which may not be in cs1|2 templates. They should be rewritten to be like all of the language regexes so that they are cs1|2-template specific:
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst\s*=\s*", r"\1author-first")
- I would rewrite the
|dead-url=yes
regex to simply delete that parameter because when|archive-url=
has a value,|url-status=dead
is the default state.(r"(\{\{\s*cit[aeio][^\}]*)\|\s*dead-?url\s*=\s*(?:true|yes|y)\b", r"\1")
- —Trappist the monk (talk) 14:12, 15 August 2021 (UTC)
- The problem with this list of find-and-replace regexes is that it will replace the found parameters wherever they exist in an article which may not be in cs1|2 templates. They should be rewritten to be like all of the language regexes so that they are cs1|2-template specific:
- There is on-and-off discussion about how cs1|2 should label
- Thanks for the explanation! What about more easier cases, for example: volume=1st volume? How should I act in this case? Should I leave just "1st"? How is that parameter typically supposed to work? Volume=2nd volume or Volume=2? Are both cases accepted? The first case would provide a problem in translation because you'd basically have to fully rewrite the value to make sense when rendered or make it so cs1|2 understands numbers like 1st, 2nd, etc. and automatically translates them in rendering. Moreover, touching a bit the subject that you mentioned yourself, what is the typical use of that parameter? What's typically considered a volume? The Harry Potter series has 7 books, if we are to cite something from the second book, are we supposed to write |volume=2? Maybe |volume=2nd? Or is that reserved only to didactic/encyclopedic kind of works?
- And lastly, in regard to the regexes, thank you, I'll do that. Can we merge anyone of those though? For example:
(r"\|\s*nocat\s*=", r"|no-tracking="), (r"\|\s*no-cat\s*=", r"|no-tracking="),
- Also, I've left out of that list all the numbered parameters because I didn't know how to be correct with those. Should I add those? Can I add those? - Klein Muçi (talk) 20:37, 15 August 2021 (UTC)
- PS:Is the regex about dead URLs correct? The first part is different from the other regexes on the list (I don't mean the group in the end). - Klein Muçi (talk) 20:56, 15 August 2021 (UTC)
- Yes.
- —Trappist the monk (talk) 22:22, 15 August 2021 (UTC)
- I would not write
|volume=1st
; it's rare and I don't recall ever having seen it; I would write|volume=1
. For periodicals, a volume is (typically) one year's worth of issues. For books, a volume is (typically) one part of a very lengthy work under a single title where binding the whole as a single 'book' would be cumbersome or prohibitively expensive; encyclopediae are a form of this kind of 'book'. Harry Potter is a series of individual books, not a multi-volume book. - Yes:
(r"\|\s*no-?cat\s*=", r"|no-tracking=")
(r"\|\s*authorfirst(\d*)\s*=", r"|author-first\1="), (r"\|\s*author(\d*)first\s*=", r"|author\1-first=")
- —Trappist the monk (talk) 22:22, 15 August 2021 (UTC)
- Thank you! Can you transform these regexes for me to only be used inside cs1|2 template?
(r"\|\s*dead-?url\s*=\s*no", r"|url-status=live"), (r"\|\s*ref\s*=\s*Harv\b", r""), (r"\|\s*last-?author-?amp=\s*=\s*(?:true|yes|y)\b", r"|name-list-style=amp"), (r"\|\s*registration=\s*=\s*(?:true|yes|y)\b", r"|url-access=registration"),
- I was too afraid to do it on my own because of their complexity. After that, I'll bring here the whole table for one final check. - Klein Muçi (talk) 23:14, 15 August 2021 (UTC)
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*ref\s*=\s*harv\b", r"\1"), (r"(\{\{\s*cit[aeio][^\}]*)\|\s*dead-?url\s*=\s*(?:true|yes|y)\b", r"\1"), (r"(\{\{\s*cit[aeio][^\}]*\|\s*)dead-?url\s*=\s*no\b", r"\1url-status=live"), (r"(\{\{\s*cit[aeio][^\}]*\|\s*)last-?author-?amp\s*=\s*=\s*(?:true|yes|y)\b", r"\1|name-list-style=amp"), (r"(\{\{\s*cit[aeio][^\}]*\|\s*)registration\s*=\s*=\s*(?:true|yes|y)\b", r"\1|url-access=registration"),
- —Trappist the monk (talk) 00:23, 16 August 2021 (UTC)
- PS:Is the regex about dead URLs correct? The first part is different from the other regexes on the list (I don't mean the group in the end). - Klein Muçi (talk) 20:56, 15 August 2021 (UTC)
Thanks a lot! Time to activate MonkFixer3000™. :P
List of Regexes
|
---|
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst\s*=\s*", r"\author-first"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst(\d*)\s*=\s*", r"\author-first\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)first\s*=\s*", r"\author\1-first="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorgiven\s*=\s*", r"|author-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorgiven(\d*)\s*=\s*", r"|author-given\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)given(\d*)\s*=\s*", r"|author\1-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorlast\s*=\s*", r"|author-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorlast(\d*)\s*=\s*", r"|author-last\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)last(\d*)\s*=\s*", r"|author\1-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authormask\s*=\s*", r"|author-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authormask(\d*)\s*=\s*", r"|author-mask\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)mask(\d*)\s*=\s*", r"|author\1-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorsurname\s*=\s*", r"|author-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorsurname(\d*)\s*=\s*", r"|author-surname\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)surname(\d*)\s*=\s*", r"|author\1-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)booktitle\s*=\s*", r"|book-title="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)chapterurl\s*=\s*", r"|chapter-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)conferenceurl\s*=\s*", r"|conference-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)contributionurl\s*=\s*", r"|contribution-url="),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*dead-?url\s*=\s*(?:true|yes|y)\b", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)dead-?url\s*=\s*no\b", r"\1url-status=live"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)displayauthors\s*=\s*", r"|display-authors="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)displayeditors\s*=\s*", r"|display-editors="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)doi-(?:broken|inactive)-date\s*=\s*", r"|doi-broken-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorfirst\s*=\s*", r"|editor-first="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorfirst(\d*)\s*=\s*", r"\editor-first\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)first\s*=\s*", r"\editor\1-first="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorgiven\s*=\s*", r"|editor-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorgiven(\d*)\s*=\s*", r"|editor-given\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)given(\d*)\s*=\s*", r"|editor\1-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlast\s*=\s*", r"|editor-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlast(\d*)\s*=\s*", r"|editor-last\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)last(\d*)\s*=\s*", r"|editor\1-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlink\s*=\s*", r"|editor-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlink(\d*)\s*=\s*", r"|editor-link\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)link(\d*)\s*=\s*", r"|editor\1-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorsurname\s*=\s*", r"|editor-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorsurname(\d*)\s*=\s*", r"|editor-surname\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)surname(\d*)\s*=\s*", r"|editor\1-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editormask\s*=\s*", r"|editor-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editormask(\d*)\s*=\s*", r"|editor-mask\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)mask(\d*)\s*=\s*", r"|editor\1-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)embargo\s*=\s*", r"|pmc-embargo-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)episodelink\s*=\s*", r"|episode-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)event-format\s*=\s*", r""),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)event-?url\s*=\s*", r""),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*ref\s*=\s*harv\b", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewerlink\s*=\s*", r"|interviewer-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewerlink(\d*)\s*=\s*", r"|interviewer-link\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewer(\d*)link(\d*)\s*=\s*", r"|interviewer\1-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewermask\s*=\s*", r"|interviewer-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewermask(\d*)\s*=\s*", r"|interviewer-mask\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewer(\d*)mask(\d*)\s*=\s*", r"|interviewer\1-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)last-?author-?amp\s*=\s*=\s*(?:true|yes|y)\b", r"\1|name-list-style=amp"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laydate\s*=\s*", r"|lay-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laysource\s*=\s*", r"|lay-source="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laysurl\s*=\s*", r"|lay-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)mailinglist\s*=\s*", r"|mailing-list="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)mapurl\s*=\s*", r"|map-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)name-list-format\s*=\s*", r"|name-list-style="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)no-?cat\s*=\s*", r"|no-tracking="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)publicationdate\s*=\s*", r"|publication-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)publicationplace\s*=\s*", r"|publication-place="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)registration\s*=\s*=\s*(?:true|yes|y)\b", r"\1|url-access=registration"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)sectionurl\s*=\s*", r"|section-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)serieslink\s*=\s*", r"|series-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)series(?:no|number)\s*=\s*", r"|series-number="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)series-separator\s*=\s*", r""),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subjectlink\s*=\s*", r"|subject-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subjectlink(\d*)\s*=\s*", r"|subject-link\1="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subject(\d*)link(\d*)\s*=\s*", r"|subject\1-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subscription\s*=\s*=\s*(?:true|yes|y)\b", r"\1|url-access=subscription"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)timecaption\s*=\s*", r"|time-caption="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)titlelink\s*=\s*", r"|title-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)transcripturl\s*=\s*", r"|transcript-url="),
(r"\[\[Kategoria:CS1\]\]", r""),
(r"\[\[Kategoria:Gabime\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Mirëmbajtja\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Vetitë\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Gjuhë\ CS1\]\]", r""),
|
Every fix Smallem makes that is related to citations and not to languages per se. - Klein Muçi (talk) 00:32, 16 August 2021 (UTC)
- This one (and others like it) is redundant; this one also has an error in the replacement that is repeated in other replacements: backslash (escape) should not precede the replacement parameter name (malformed
\1
):(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst\s*=\s*", r"\author-first"),
- malformed
\1
capture in replacement; the enumerator is the second capture so should use\2
in the replacement:(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst(\d*)\s*=\s*", r"\author-first\1="),
\1
capture in the replacement goes at the beginning of the replacement; when the pipe preceding the parameter name is included in the\1
capture, a pipe must not precede the parameter name in the replacement (there are many with this error); the enumerator is\2
:(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorgiven(\d*)\s*=\s*", r"|author-given\1="),
- capture
\1
should not include pipe and optional whitespace when deleting a parameter; replacement requires\1
capture(r"(\{\{\s*cit[aeio][^\}]*\|\s*)event-format\s*=\s*", r""),
- —Trappist the monk (talk) 01:09, 16 August 2021 (UTC)
List of Regexes Revised
|
---|
|
- I tried following your directions as best as I could. These are the results. I'm sorry if I've made any mistakes. - Klein Muçi (talk) 08:26, 16 August 2021 (UTC)
- Nope. Position of the captures in the replacement is everything. Captures in a regex proceed from left to right so everything preceding the parameter in question is
\1
which must be the first element of the replacement. For enumerated parameters, the enumeration is\2
and must be included in the new parameter and in the proper position. When both\1
and\2
are used, they must also proceed left to right in the replacement. - Do a text search for:
r"|
–\1
is not the first element in the replacementr"\1|
– this will result in a citation with a doubled piper"\2
– this puts the enumerator ahead of the parameter and leaves out the leading part of the citation unless:\1
– if\1
appears in the middle of the replacement, that is where the leading part of the citation will be
r"\
– the\
must be followed by1
\1
and\2
must never occur more than once in any replacement- —Trappist the monk (talk) 13:24, 16 August 2021 (UTC)
- Nope. Position of the captures in the replacement is everything. Captures in a regex proceed from left to right so everything preceding the parameter in question is
- I tried following your directions as best as I could. These are the results. I'm sorry if I've made any mistakes. - Klein Muçi (talk) 08:26, 16 August 2021 (UTC)
List of Regexes Revised (again)
|
---|
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorfirst?(\d*)\s*=\s*", r"\1author-first\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)first\s*=\s*", r"\1author\2-first="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorgiven?(\d*)\s*=\s*", r"\1author-given\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)given\s*=\s*", r"\1author\2-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorlast?(\d*)\s*=\s*", r"\1author-last\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)last\s*=\s*", r"\1author\2-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authormask?(\d*)\s*=\s*", r"\1author-mask\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)mask\s*=\s*", r"\1author\2-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)authorsurname?(\d*)\s*=\s*", r"\1author-surname\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)author(\d*)surname\s*=\s*", r"\1author\2-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)booktitle\s*=\s*", r"\1book-title="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)chapterurl\s*=\s*", r"\1chapter-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)conferenceurl\s*=\s*", r"\1conference-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)contributionurl\s*=\s*", r"\1contribution-url="),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*dead-?url\s*=\s*(?:true|yes|y)\b", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)dead-?url\s*=\s*no\b", r"\1url-status=live"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)displayauthors\s*=\s*", r"\1display-authors="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)displayeditors\s*=\s*", r"\1display-editors="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)doi-(?:broken|inactive)-date\s*=\s*", r"\1doi-broken-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorfirst?(\d*)\s*=\s*", r"\1editor-first\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)first\s*=\s*", r"\1editor\2-first="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorgiven?(\d*)\s*=\s*", r"\1editor-given\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)given\s*=\s*", r"\1editor\2-given="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlast?(\d*)\s*=\s*", r"\1editor-last\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)last\s*=\s*", r"\1editor\2-last="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorlink?(\d*)\s*=\s*", r"\1editor-link\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)link\s*=\s*", r"\1editor\2-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editorsurname?(\d*)\s*=\s*", r"\1editor-surname\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)surname\s*=\s*", r"\1editor\2-surname="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editormask?(\d*)\s*=\s*", r"\1editor-mask\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)editor(\d*)mask\s*=\s*", r"\1editor\2-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)embargo\s*=\s*", r"\1pmc-embargo-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)episodelink\s*=\s*", r"\1episode-link="),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*event-format\s*=\s*", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*event-?url\s*=\s*", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*ref\s*=\s*harv\b", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewerlink?(\d*)\s*=\s*", r"\1interviewer-link\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewer(\d*)link\s*=\s*", r"\1interviewer\2-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewermask?(\d*)\s*=\s*", r"\1interviewer-mask\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)interviewer(\d*)mask\s*=\s*", r"\1interviewer\2-mask="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)last-?author-?amp\s*=\s*=\s*(?:true|yes|y)\b", r"\1name-list-style=amp"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laydate\s*=\s*", r"\1lay-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laysource\s*=\s*", r"\1lay-source="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)laysurl\s*=\s*", r"\1lay-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)mailinglist\s*=\s*", r"\1mailing-list="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)mapurl\s*=\s*", r"\1map-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)name-list-format\s*=\s*", r"\1name-list-style="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)no-?cat\s*=\s*", r"\1no-tracking="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)publicationdate\s*=\s*", r"\1publication-date="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)publicationplace\s*=\s*", r"\1publication-place="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)registration\s*=\s*=\s*(?:true|yes|y)\b", r"\1url-access=registration"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)sectionurl\s*=\s*", r"\1section-url="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)serieslink\s*=\s*", r"\1series-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)series(?:no|number)\s*=\s*", r"\1series-number="),
(r"(\{\{\s*cit[aeio][^\}]*)\|\s*series-separator\s*=\s*", r"\1"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subjectlink?(\d*)\s*=\s*", r"\1subject-link\2="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subject(\d*)link\s*=\s*", r"\1interviewer\2-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)subscription\s*=\s*=\s*(?:true|yes|y)\b", r"\1url-access=subscription"),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)timecaption\s*=\s*", r"\1time-caption="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)titlelink\s*=\s*", r"\1title-link="),
(r"(\{\{\s*cit[aeio][^\}]*\|\s*)transcripturl\s*=\s*", r"\1transcript-url="),
(r"\[\[Kategoria:CS1\]\]", r""),
(r"\[\[Kategoria:Gabime\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Mirëmbajtja\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Vetitë\ CS1[^\]]*\]\]", r""),
(r"\[\[Kategoria:Gjuhë\ CS1\]\]", r""),
|
I tried again. I'm sorry but I've only worked once with regex group captures in the past. I have yet to fully form the concept of those and how they work in my mind. Your explanations sure are helping. I really hope I have everything all right now. If not, would you be so kind as to give some (more) practical examples of what I should change in the format [how it is] - [how it should be]? I'm really trying to get it right but... - Klein Muçi (talk) 01:29, 17 August 2021 (UTC)
Date problem
Hello Trappist, there appears to be a problem with the date replacement in this change. Regards Keith D (talk) 17:45, 16 August 2021 (UTC)
- Thanks for the report; I'm going to revert you so that I can test against that article.
- —Trappist the monk (talk) 17:50, 16 August 2021 (UTC)
- Fixed, I think.
- —Trappist the monk (talk) 18:05, 16 August 2021 (UTC)