Wikipedia talk:AutoWikiBrowser/Rename template parameters
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Requesting help with Infobox company
Per a request on my talk page, I added a section to this page to replace certain parameters for {{Infobox company}}. However, it doesn't seem to be working (try Atari or Blizzard Entertainment). Did I do something wrong, or is this a bug? Thanks! GoingBatty (talk) 18:00, 10 February 2013 (UTC)
- rev 8903 Fixed (was not applying replacements to templates with first letter upper, broken in rev 8659 in November). Rjwilmsi 20:18, 10 February 2013 (UTC)
Parameters listed here that may be valid parameters or aliases
A recent edit to this list inspired me to try to determine if any of the allegedly erroneous parameters listed here are actually valid parameter names or aliases. I came up with the following list of possibilities:
- archive-date
- archive-url
- author-first
- author-last
- authors
- chapter-url
- chapterlink
- editorlink
- given
- isbn13
- periodical
- publicationdate
- publicationplace
- quotation
- surname
- trans_title
- trans-title
- URL
- website
I used the following pages and a text editor with duplicate detection to find these possible parameters.
- Wikipedia:AutoWikiBrowser/Rename_template_parameters
- Module:Citation/CS1/Configuration
- Module:Citation/CS1/Whitelist
Not all of the cite templates on this page use the Citation/CS1 module. Not all of the templates on the Whitelist are valid in all templates. Would someone bolder than I like to take the next step of verifying that one or more of the above parameters should not be listed as wrong on this AWB page? – Jonesey95 (talk) 04:30, 12 December 2013 (UTC)
- @Jonesey95: I used the information at Template:Cite web/doc to remove a few entries from this page. However, I wouldn't be surprised if there were some additional undocumented parameters. GoingBatty (talk) 02:32, 20 January 2014 (UTC)
Whitelisted parameters being renamed by AWB script
This is a list of parameters listed at Wikipedia:AutoWikiBrowser/Rename template parameters#Citation templates that are valid aliases on Module:Citation/CS1/Whitelist. Someone raised an issue that not all Whitelist parameters work in all templates (they should; I found that they don't always), so I've created examples showing them used in each template to show that they work (or don't). All listed parameters appear in the examples.
* Note that
|website=
is on the Whitelist, but if used in place of |url=
in a citation with an |archive-url=
value, it generates an error message; it also fails to link to |title=
. It should continue to be renamed unless and until the code is changed to allow it as an alias in the case where |url=
is required. (I have left a message at Module talk:Citation/CS1/Archive 10#website.)
- Ignore this. Pursuant to a response at that talk page, and another review of this page's script, I see that
|website=
is an alias of|work=
; however, that means that the script is currently replacing another whitelisted parameter on the {{citation}} template. I have updated the list.—D'Ranged 1 VTalk 00:39, 28 May 2014 (UTC)
- With the exception of
|year=
in {{cite comic}} as noted below, all the parameters listed here should be taken off of AWB's renaming script. I note that in four places, the script has|trans_title=
replacing itself.
I've ended this post with a #Discussion section; please make any comments there so editors may use the edit section feature to avoid having to scroll to the bottom of this long post.
Citation
|
|
All the listed parameters appear in the examples below. |
|
Johnson, Malcom; Divers, Robert, Evers, Margaret (ed.), "Sample Title", www.example.com, New York, p. 62, archived from the original on June 11, 1975, |
|
Johnson, Malcom; Divers, Robert, "Chapter 1: The Beginning", in Evers, Margaret (ed.), Sample Title, pp. 97–100 |
|
Evers, Margaret (ed.), Sample Title |
Cite book
|
|
|
All the listed parameters appear in the examples below.
|
|
Johnson, Malcom; Divers, Robert; Standing, Jeff; Hill, Max; Ives, Bob; Gray, Scot (July 4, 1776). "Chapter 1: The Beginning". In Evers, Margaret (ed.). Die tageszeiten (in German). p. 62. Archived from the original on June 11, 1975. |
|
Johnson, Malcom; Divers, Robert. Evers, Margaret (ed.). Sample Title. |
|
Johnson, Malcom. Evers, Margaret; Stone, Bea; Rose, Julie (eds.). Sample Title. |
Cite comic
|
While |
|
Lee, Stan (w), Kirby, Jack (p), Rule, Christopher (i), Goldberg, Stan (col), Simek, Art (let), Lee, Stan (ed). "The Fantastic Four!" The Fantastic Four, vol. 1, no. 1, p. 3/2 (November 1961). New York, NY: Marvel Comics. |
Cite journal
|
|
|
All the listed parameters appear in the examples below.
|
|
Johnson, Malcom; Divers, Robert (July 4, 1776). Evers, Margaret (ed.). "Die tageszeiten" (in German). Archived from the original on June 11, 1975. |
|
Johnson, Malcom; Divers, Robert. "Sample Title": 97–100. |
|
Johnson, Malcom. "Sample Title". |
|
"Sample Title". |
Cite news
|
|
All the listed parameters appear in the examples below.
Important |
|
Johnson, Malcom; Divers, Robert (July 4, 1776). "Die tageszeiten" (in German). Translated by Wolf, Marcus. Archived from the original on June 11, 1975. |
|
"Sample Title". |
|
Johnson, Malcom. "Sample Title". |
|
Johnson, Malcom. "Sample Title". |
Cite web
|
|
|
All the listed parameters appear in the examples below.
Important |
|
Johnson, Malcom; Divers, Robert. Evers, Margaret; Stone, Bea; Rose, Julie; Gore, Penny; Day, Mary (eds.). "Die tageszeiten". Newsweek (in German). Translated by Wolf, Marcus. p. 62. Archived from the original on June 11, 1975. |
|
Evers, Margaret (ed.). "Sample Title". pp. 97–100. |
|
Johnson, Malcom. Evers, Margaret (ed.). "Sample Title". |
Discussion
Please confine your comments to this section so editors may use the edit section feature to avoid having to scroll to the bottom of this long post. Thanks!—D'Ranged 1 VTalk 00:21, 28 May 2014 (UTC)
- @D'Ranged 1: Thanks for putting this together. It seems that
|chapterlink=
(undocumented on Template:Citation) should be a Wikipedia article, not a URL. GoingBatty (talk) 01:18, 28 May 2014 (UTC)- @D'Ranged 1: Updated WP:AWB/RTP per your fine research above. Thanks! GoingBatty (talk) 02:44, 28 May 2014 (UTC)
- I've also submitted Wikipedia talk:AutoWikiBrowser/Bugs#Request to update list of valid cite web parameters so AWB users won't be prompted to manually change these valid parameters. Thanks again! GoingBatty (talk) 03:00, 28 May 2014 (UTC)
- GoingBatty You're welcome; and thanks for doing the clean-up; I didn't want to mess with something I don't use presently; I wasn't sure if this would be the "fix" or if more would be needed. (I wouldn't have known how to alert folks like you did via the request you made.)
- I forgot to include a chapter name in the #Cite book section, so the link didn't link to anything. I've fixed that; it seems that
|chapterlink=
does link to whatever is entered in|chapter=
on all templates, including {{citation}}, so I don't know that it's a bug. It wouldn't make sense to me for it to be a Wikipedia article, but what do I know? Thanks again for doing the clean-up.—D'Ranged 1 VTalk 05:08, 28 May 2014 (UTC)- I would recommend continuing to change
|ISBN13=
and|isbn13=
to|isbn=
. One of the significant sources of ISBN errors in citations – both in templates and free-form – has been people attempting to differentiate between 10 and 13 digit ISBNs with text like ISBN (10) or ISBN-13:. While it is good to have the alias – why there is an alias for|isbn13=
and not|isbn10=
I don't know – leaving the numbered ISBN alias in citations continues to make it look as if the template or MediaWiki software distinguishes between the 10 and 13 digit versions. Obviously, it does not (except in how check-digits are calculated). - I can see an argument that having the alias allows people to express their desire for differentiation. That is good. However, that is a need only at the time the template is entered on the page by a human. It is not a ongoing requirement for the citation as it continues to exist in the article. — Makyen (talk) 19:20, 28 May 2014 (UTC)
- Valid aliases should not be replaced, even to have the "correct" form continue to exist in the article. It is a waste of time and resources. As for no alias for isbn10, I wasn't privy to any discussions about that, but would have voted against it to encourage editors to use the 13-digit ISBN consistently.—D'Ranged 1 VTalk 21:28, 28 May 2014 (UTC)
- I would recommend continuing to change
- I've also submitted Wikipedia talk:AutoWikiBrowser/Bugs#Request to update list of valid cite web parameters so AWB users won't be prompted to manually change these valid parameters. Thanks again! GoingBatty (talk) 03:00, 28 May 2014 (UTC)
- @D'Ranged 1: Updated WP:AWB/RTP per your fine research above. Thanks! GoingBatty (talk) 02:44, 28 May 2014 (UTC)
@GoingBatty:: The discussion about whether the Citation template should follow the same rules has not yet been closed with a stated decision, so it is too early to treat Citation parameters and CS1 parameters as being interchangeable, even though they are processed by the same module. Jc3s5h (talk) 20:10, 28 May 2014 (UTC)
- GoingBatty I refined my matching process to deal with all upper-case parameters and parameters containing numbers; that resulted in finding 14 additional parameters to remove. I've made additions to the tables and examples above using the color orange to indicate additions. I'm going to go ahead and delete them from the page. Thanks again for your help!—D'Ranged 1 VTalk 21:28, 28 May 2014 (UTC)
- Jc3s5h (talk · contribs) Sorry - could you please help me understand how your comment relates to my portion of this discussion? I don't see anywhere that I'm suggesting we "treat Citation parameters and CS1 parameters as being interchangeable". Thanks! GoingBatty (talk) 00:55, 29 May 2014 (UTC)
- You made mention of {{Citation}} without making any distinction between it and CS1, so I just wanted to remind you (and others involved in the discussion) that the discussion of how similar {{Citation}} and CS1 should be has not quite finished. Jc3s5h (talk) 01:12, 29 May 2014 (UTC)
- @Jc3s5h: I only made mention of the
|chapterlink=
parameter in {{Citation}} because I think the example was incorrect and the template documentation is incomplete. Each template should have accurate documentation, whether the parameters are interchangable or not. GoingBatty (talk) 01:33, 29 May 2014 (UTC)
- @Jc3s5h: I only made mention of the
- You made mention of {{Citation}} without making any distinction between it and CS1, so I just wanted to remind you (and others involved in the discussion) that the discussion of how similar {{Citation}} and CS1 should be has not quite finished. Jc3s5h (talk) 01:12, 29 May 2014 (UTC)
Stuff to add
I found a list on Module:Citation/CS1/Suggestions (a list of suggested alternatives to use when an unknown parameter is encountered by a citation template). Many of them aren't listed on Wikipedia:AutoWikiBrowser/Rename template parameters. Is it a good idea to add (some of) them to the list?
Extended content
|
---|
acccessdate = access-date accessate = access-date accessdare = access-date accessdatte = access-date accessdte = access-date accessedate = access-date accssdate = access-date address = location année = year añoacceso = access-date authorformat = name-list-format author-format = name-list-format autor2 = author2 autthor = author began = date cita = quote distributor = publisher éditeur = editor editon = edition editoin = edition editorformat = name-list-format editor-format = name-list-format editorgiven = editor-given editorial = publisher editorsurname = editor-surname en ligne le = archive-date ended = date enlaceautor = author-link fechaarchivo = archive-date foramt = format isnb = isbn langue = language lire en ligne = url loaction = location locatoin = location mois = month nespaper = newspaper newpaper = newspaper news = newspaper nom = last nom1 = last1 origdate = orig-year página = page páginas = pages passage = pages périodique = publisher plublisher = publisher prénom = first prénom1 = first1 ps = postscript publiser = publisher publsiher = publisher pulbication-place = publication-place pulbisher = publisher pulisher = publisher separator = mode série = work service = agency suscripción = subscription tile = title tite = title titre = title transchapter = trans-chapter ubicación = location urlarchivo = archive-url |
The Quixotic Potato (talk) 07:15, 30 September 2015 (UTC)
- @The Quixotic Potato: How about doing some insource searches to see how many of these actually exist? Thanks! GoingBatty (talk) 23:29, 1 October 2015 (UTC)
- As the person who added many of these parameters to the Suggestions list, I can tell you that I put them there because they show up all the time. I clean up articles in Category:Pages with citations using unsupported parameters almost every time I am on WP (6-7 days per week), and I suspect that on average, I find more than one article with one of these parameters in every day's edits. People copy and paste citations from fr.WP, es.WP, and other languages' Wikipedias, and I clean them up. If you are a geek and want some fun reading, take a look at User:Jonesey95/AutoEd/unnamed.js, the AutoEd script I use to replace these errant parameters. An insource search will not turn them up very often, because gnomes and error messages help to keep them cleaned up. Adding them to AWB's general fixes may make it easier for AWB-wielding gnomes to be part of the solution. – Jonesey95 (talk) 01:56, 2 October 2015 (UTC)
- Here's an example that appeared today. – Jonesey95 (talk) 06:16, 2 October 2015 (UTC)
- @Jonesey95: You're right - I couldn't find many of these. I added this rule to the page today. Please feel free to add the more common ones. GoingBatty (talk) 13:54, 3 October 2015 (UTC)
- Here's an example that appeared today. – Jonesey95 (talk) 06:16, 2 October 2015 (UTC)
- As the person who added many of these parameters to the Suggestions list, I can tell you that I put them there because they show up all the time. I clean up articles in Category:Pages with citations using unsupported parameters almost every time I am on WP (6-7 days per week), and I suspect that on average, I find more than one article with one of these parameters in every day's edits. People copy and paste citations from fr.WP, es.WP, and other languages' Wikipedias, and I clean them up. If you are a geek and want some fun reading, take a look at User:Jonesey95/AutoEd/unnamed.js, the AutoEd script I use to replace these errant parameters. An insource search will not turn them up very often, because gnomes and error messages help to keep them cleaned up. Adding them to AWB's general fixes may make it easier for AWB-wielding gnomes to be part of the solution. – Jonesey95 (talk) 01:56, 2 October 2015 (UTC)
@Trappist the monk: Is it a good idea to add (some of) the things mentioned above to Wikipedia:AutoWikiBrowser/Rename template parameters? The Quixotic Potato (talk) 07:26, 30 September 2015 (UTC)
- I don't think I have an opinion. I'm just an AWB user who constrains AWB to do only what I tell it to do (options in the Options -> Automatic changes always unchecked). I am not an AWB deveoper.
Renaming template parameters with specific values
Does the renaming template parameters functionality of AWB support filtering on parameter value? We want only the substitution disp=flip
→ order=flip
for templates {{convert}} and {{cvt}}.
No substitution should occur for other values of the parameter (e.g. disp=or
).
For context, this is preparatory to removing support in {{convert}} for this deprecated parameter use; also see discussion at Convert. Pinging DePiep, Johnuniq. —Quondum 16:53, 7 January 2018 (UTC)