Wikipedia talk:AutoWikiBrowser/Archive 27
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 20 | ← | Archive 25 | Archive 26 | Archive 27 | Archive 28 | Archive 29 | Archive 30 |
AWB: mass category creation
Can AWB create mass categories? E.g. i need to create categories from ”Football clubs established in 1900” to ”Football clubs established in 2020”. Each category must have 2 categories- parents, one stable ”Football clubs establishements by year” and second incrementable ”Establishements in {{year}}", where {{year}} has value from 1900 to 2020, for each new category incrementation +1. Its possible to do that with AWB? XXN (talk) 19:50, 24 October 2013 (UTC)
- @XXN:, yes, check out CSV Loader. You will need to file a BRFA and get approval before you start creating the categories. — Ganeshk (talk) 22:42, 24 October 2013 (UTC)
- Thanks, but i dont understand how to use your plugin)) I know about bot policy, i will work on ro.wiki, i have already submitted an request for approval. XXN (talk) 23:35, 25 October 2013 (UTC)
- Please follow the steps in this walk through. Please leave a message on my talk page if you have any questions or run into any issues. — Ganeshk (talk) 14:17, 27 October 2013 (UTC)
- Thanks, but i dont understand how to use your plugin)) I know about bot policy, i will work on ro.wiki, i have already submitted an request for approval. XXN (talk) 23:35, 25 October 2013 (UTC)
section parameter in cite web template and AWB alert
Hi,
I just reformatted a bunch of citations on amphetamine for consistency. I noticed that my use of "| section=XYZ" in template:cite web generates an error alert in AWB even though the template itself accepts the parameter and doesn't display an error notice (in refs or hidden categories). Just thought I'd put this notice here. Just to provide an example[1][2] on this page:
References
- ^ "Amphetamine". DrugBank. Retrieved 13 October 2013.
{{cite web}}
:|section=
ignored (help) - ^ "Amphetamine". DrugBank. Retrieved 13 October 2013.
{{cite web}}
:|section=
ignored (help)
Regards, Seppi333 (talk) 03:04, 4 November 2013 (UTC).
- rev 9587 Will be fixed for next release. Rjwilmsi 16:27, 4 November 2013 (UTC)
Update to the live CS1 module week of 2013-11-03
Toward the end of this week I propose to update Module:Citation/CS1 to match Module:Citation/CS1/sandbox (diff) and Module:Citation/CS1/Configuration to match Module:Citation/CS1/Configuration/sandbox (diff). This update changes several things:
- Added deprecated parameter tracking for deprecated parameters: Adds pages to Category:Pages containing cite templates with deprecated parameters when they contain the parameters
|month=
,|coauthor=
, and|coauthors=
- Extract common code from checkisbn() and issn() into new function is_valid_isxn(): Checkdigit calculation code for ISSN and for ISBN-10 is esentially the same so created a single function to do that
- Migrate cite thesis: discussion
- ISBN 13 checked for 978 and 979 prefixes: discussion
- Migrate cite techreport: discussion
- Date validation: discussion – by far the largest, this change checks dates for format compliance with MOS:DATE, checks date validity (no June 31, etc), allows year disambiguation in CITEREF identifiers when referenced authors have multiple works published in the same year without the need to use both
|date=
and|year=
, and does not corrupt the COinS metadata.
—Trappist the monk (talk) 23:40, 4 November 2013 (UTC)
- Done.
AWB on Mac OS X?
I need help using AWB on Mac OS X 10.8 Mountain Lion, the operating system currently installed on my computer. Is it compatible with the OS X operating system? Epicgenius(give him tirade • check out damage) 02:10, 5 November 2013 (UTC)
- Short answer is no. But you can run AWB on the Mac if you have MS Windows, either with Bootcamp or parallels desktop. -- Ohc ¡digame!¿que pasa? 03:13, 13 November 2013 (UTC)
Automatic edit summary
Is the edit summary, "clean up using AWB" something that is automatically generated? If so, I found it to be somewhat disingenuous when I saw it recently. Rather than clean up, an editor had added Persondata. While that was definitely the right thing to do, and a good use of AWB, it's my opinion that the edit summary should have been clearer about what was going on. Ardric47 (talk) 01:21, 17 November 2013 (UTC)
- Ardric47, that was not an automatic edit summary. Edit summaries are entered by the editor. The only thing AWB tacks on is "using AWB" to show the edit was done using a tool. (AWB being the tool, the editor may or may not be a tool) Everything before "using AWB" is entered by editor. If a user is using a beta version of AWB, the "version" number is also given... "using AWB (9643)". You will need to contact the editor about the edit summary. Bgwhite (talk) 02:57, 17 November 2013 (UTC)
- Okay, thank you! Ardric47 (talk) 04:29, 17 November 2013 (UTC)
Checking template parameter against article title?
Is there a way to check if a specific template parameter is identical to the article's title in a RegEx (or any other way for that matter)? I'm going to try to replace instances of {{{diversity_link}}}
in Taxobox which just link back to the article to prevent it from breaking (see Template talk:Taxobox#Diversity link) after putting in a fix. I can see it's possible to do the opposite (i.e. add the article title to the replacement text) by matching the title, and apparently there used to be a bug which must have been doing essentially the same thing... but are there any magic words or equivalents for use within search strings, or does anyone know another way to do this? ‑‑xensyriaT 12:00, 1 December 2013 (UTC)
- Yes, find & replace supports keywords, see Wikipedia:AutoWikiBrowser/Find_and_replace Rjwilmsi 10:24, 4 December 2013 (UTC)
- Thanks; I should have spotted that! ‑‑xensyriaT 07:48, 5 December 2013 (UTC)
Update to the live CS1 module week of 2013-12-08
Toward the end of this week I propose to update Module:Citation/CS1 to match Module:Citation/CS1/sandbox (diff), Module:Citation/CS1/Configuration to match Module:Citation/CS1/Configuration/sandbox (diff) and Module:Citation/CS1/Whitelist to match Module:Citation/CS1/Whitelist/sandbox (diff). This update is, for the most part, bug fixes and minor enhancements:
- Fix Script Error bug that occured when |doi_brokendate= did not contain a year value;
- Fix doi() so that dois with invalid doi_brokendate categorize to "Pages with inactive DOIs" and not to "Pages with DOIs inactive since";
- Change deprecated_parameter() to emit a single error message; (discussion}
- Fix bug in checkisbn() that stripped-out non-isbn characters before validation so that ISBNs were declared good as long as the stripped (not displayed) version of the isbn passed the remaining tests; (discussion)
- Year and PublicationDate promotion to Date consolidation; (discussion)
- Change validate() and the whitelist to recognize deprecated parameters; (discussion)
- Change pmc/url handling; (discussion)
- Modify |encyclopedia, |title and |article parameter handling for cite encyclopedia; (discussion)
—Trappist the monk (talk) 15:18, 8 December 2013 (UTC)
- Done.
How can i insert a list of words into Normal settings
I am having a spreadsheet list which consists more than 800words in column-A. All the listed words are to be replaced with another 800 words in column-B. How can i insert the spreadsheet list into the option of Find & replace's Normal settings.--தகவலுழவன் (talk) 11:05, 10 December 2013 (UTC)
- I advise you to use an external text editor, like Notepad++, and use the F&R of this text editor. Gives an example of formatting your list otherwise, it may help to understand the problem. Automatik (talk) 23:07, 12 December 2013 (UTC)
- This is the sample list with few words. I have to replace nearly 1000 words in the uploading data. Using find & replace method, one by one is tedious work. So, i want to insert the list in AWB (options-->find & replace-->Normal settings) How can i ? --தகவலுழவன் (talk) 01:25, 14 December 2013 (UTC)
You can use an external text editor to prepare from each pair of words
ABC {{ABC}}
something like that
<Replacement><Find>ABC</Find> <Replace>{{ABC}}</Replace><Comment /><IsRegex>false</IsRegex><Enabled>true</Enabled><Minor>false</Minor><BeforeOrAfter>false</BeforeOrAfter><RegularExpressionOptions>IgnoreCase</RegularExpressionOptions></Replacement>
A simpler code like the below one should work too (these two parameters are essential, to switch on replacement and to ignore case sensitive):
<Replacement><Find>ABC</Find> <Replace>{{ABC}}</Replace><Enabled>true</Enabled><RegularExpressionOptions>IgnoreCase</RegularExpressionOptions></Replacement>
Then save it in proper section (between <Replacements>...</Replacements>
) of AWB setting file (.xml) and load it as a settings in AWB.
But maybe easier would be to write simple module (Tools --> Make module) with Regex.Replace and use it instead of F&R function like that:
public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip) { Skip = false; Summary = ""; ArticleText=Regex.Replace(ArticleText, @"ABC", "{{ABC}}"); ArticleText=Regex.Replace(ArticleText, @"(ABC|KLM|XYZ)", "{{$1}}"); /* you can combine words if a result is similar */ /* etc. */ return ArticleText; }
-- Blackfish (talk) 02:46, 14 December 2013 (UTC) I learned. thank you verymuch indeed.--தகவலுழவன் (talk) 05:38, 16 December 2013 (UTC)
"The download you have chosen is no longer available..."
I found a minor error in the installation istructions.
At...
...under (2) Download, there is a link to...
...with the text...
- "AutoWikiBrowser requires Microsoft Windows 2000/XP or newer. It also requires Version 2 of the .NET Framework (users of Windows 2000 and Windows XP must download .NET Framework; it is included in Windows Vista and newer)."
When you go to that link, it says...
- "Microsoft .NET Framework Version 2.0 Redistributable Package (x86)
- The download you have chosen is no longer available. Please download Microsoft .NET Framework 3.5 Service Pack 1 instead."
...which then redirects you to...
If, like me, you prefer to keep a local copy of Microsoft downloads in case it says *cough* "the download you have chosen is no longer available", the full package is at...
The download is 231 MB.
According to [ http://msdn.microsoft.com/en-us/library/bb822049.aspx ], software that requires .net 2.0 works fine on .net 3.5, and indeed it seems to be working fine for me, so it looks like the only change needed is to edit the instructions to point to .net 3.5. --Guy Macon (talk) 07:34, 13 December 2013 (UTC)
- Guy Macon be bold and update the instructions. GoingBatty has also a long tradition in updating similar stuff and maybe can help :) -- Magioladitis (talk) 17:40, 29 December 2013 (UTC)
- Done. --Guy Macon (talk) 18:03, 29 December 2013 (UTC)
Reordering references
Can anyone explain this: that is, why does AWB insist on inverting the placement of refs #1 and #2? Most of the time the re-ordering works, but this time no. I found the problem when I did it the first time, and now it has happened for someone else. -- Ohc ¡digame! 01:55, 18 December 2013 (UTC)
- @Ohconfucius: I believe there was a recent fix for this - check the bugs page or the recent archives. GoingBatty (talk) 02:53, 18 December 2013 (UTC)
- It was a bug and was fixed yesterday. Bgwhite (talk) 02:57, 18 December 2013 (UTC)
- Thanks. -- Ohc ¡digame! 03:08, 18 December 2013 (UTC)
- It was a bug and was fixed yesterday. Bgwhite (talk) 02:57, 18 December 2013 (UTC)
Names of templates in other languages
AWB detects the "in use" state of the page, if the page transcludes a template {{inuse}}. There are some other AWB features (such as Stub detection) dependent on a specific template. The name of such a template, however, is different from language to language.
- When I use AWB in huwiki, how can I change the name of the English template to the name of the corresponding Hungarian template?
Karmela (talk) 22:59, 18 December 2013 (UTC)
- Currently you can't. If you tell us the templates equivalent to {{in use}} for your language we'll add them to AWB. Rjwilmsi 09:10, 19 December 2013 (UTC)
In HuWiki it is {{Építés alatt}} or {{építés alatt}}. Ato 01 (talk) 14:25, 20 December 2013 (UTC)
rev 9914 make InUse code customisable per language. -- Magioladitis (talk) 14:50, 3 February 2014 (UTC)
Need help with regexp for detecting/adding parameter to template
Ok, so I'm looking to make a run that adds a standard parameter to all the calls of a template, but don't have even close to the knowledge of regular expressions, nor AWB to figure it out on my own. Obviously, I can easily make my list to run through all the articles that transclude the template, but I don't know how to figure out how to restrict a search for the parameter name to just the template, nor how to add that parameter to the end if it isn't there. So for an example, I want to find out if parameter whee
is defined in calls of template {{ugh}}
, and if it isn't add it with a default value;
so it would make {{ugh | doh = Homer Simpson | carumba = Bart }}
→ {{ugh | doh = Homer Simpson | carumba = Bart | whee = Maggie }}
but not change {{ugh | whee = Homer Simpson | carumba = Bart }}
. What kind of rules should I set up? VanIsaacWS Vexcontribs 11:48, 21 December 2013 (UTC)
- I believe:
- Find:
\{\{ugh ?\| ?doh(.*?)\}\}
- Replace: {{Ugh|doh$1|whee=Maggie}}
- Find:
- As seen in this link should do it for you to do exactly what you asked. You will see in this example it won't catch if parameters aren't in the exact correct order or if
|doh=
isn't the first parameter. Technical 13 (talk) 14:33, 21 December 2013 (UTC)- @Technical 13: Wouldn't your find regex also match
{{ugh | doh = Homer Simpson | carumba = Bart | whee = Maggie }}
and add a second|whee=Maggie
? GoingBatty (talk) 15:42, 21 December 2013 (UTC)- GB, yes, which is why I emphasized exactly. Technical 13 (talk) 18:06, 21 December 2013 (UTC)
- @Technical 13: Ah, we have different definitions of "exactly what you asked." It appears you're looking at Vanisaac's examples, where I was looking at the requirement to "add that parameter to the end if it isn't there." I hope someone else can provide the answer to the latter, as now I'm curious too! GoingBatty (talk) 18:32, 21 December 2013 (UTC)
- GB, you mean something like this? Technical 13 (talk) 19:00, 21 December 2013 (UTC)
- @Technical 13: That's much closer, as it ignores the examples that already contain
|whee=
. But what would the proper replace statement be?{{Ugh$1|whee=Maggie}}
doesn't bring back all of the original parameters. GoingBatty (talk) 19:09, 21 December 2013 (UTC)
- Yeah, the
doh
doesn't matter. It may or may not be there, I only wantwhee
to be added where it's not ever defined. So{{ugh | doh = Homer Simpson | carumba = Bart | whee = Maggie }}
should be left unchanged as well. VanIsaacWS Vexcontribs 20:52, 21 December 2013 (UTC)- So I'm not sure about this, but would
- Find:
\{\{ugh?[^(whee)]?\}\}
- Replace: {{Ugh $1 |whee=Maggie}}
- Find:
- work right, or would it skip over an instance of
whee
and match some other parameter as [^(whee)], or does [^(whee)] match anything that's not an e, h, w, or parenthesis? VanIsaacWS Vexcontribs 21:10, 21 December 2013 (UTC)- Would not work... Using just your code for the word "whee"
[^(whee)]
gives you this. Technical 13 (talk) 21:58, 21 December 2013 (UTC)
- Would not work... Using just your code for the word "whee"
- So I'm not sure about this, but would
- @Technical 13: Ah, we have different definitions of "exactly what you asked." It appears you're looking at Vanisaac's examples, where I was looking at the requirement to "add that parameter to the end if it isn't there." I hope someone else can provide the answer to the latter, as now I'm curious too! GoingBatty (talk) 18:32, 21 December 2013 (UTC)
- GB, yes, which is why I emphasized exactly. Technical 13 (talk) 18:06, 21 December 2013 (UTC)
- @Technical 13: Wouldn't your find regex also match
- That's where you have to be clever.
{{subst:#if:$1|$1}}
{{subst:#if:$4|$4}}
... Technical 13 (talk) 20:14, 21 December 2013 (UTC)
- The requester should be advised that per Help:Substitution#Limitation, "Substitution is not available inside
<ref>...</ref>
tags." (something I just discovered this week) GoingBatty (talk) 20:42, 21 December 2013 (UTC)
- The requester should be advised that per Help:Substitution#Limitation, "Substitution is not available inside
- GB thanks for pointing that out.... There's a work-around for tgat which allows substitution. I'll expand when at a computer. Technical 13 (talk) 21:09, 21 December 2013 (UTC)
- Okay... Have a moment at a computer. GB, the work around for that is to subst: the #tag:ref... For example:
{{subst:#tag:ref|Stuff that you put in here {{subst:uc:can be substituted}}|name="name goes here"}}
- Results in:
<ref name="name goes here">Stuff that you put in here CAN BE SUBSTITUTED</ref>
- GB, feel free to add that to the documentation you linked saying it couldn't be done. Technical 13 (talk) 21:58, 21 December 2013 (UTC)
- Thanks - I have some more questions on this, but I'll take it to your talk page, as I've probably taken a tangent from the original question here. Thanks! GoingBatty (talk) 22:33, 21 December 2013 (UTC)
Add template if not already on talk page
I need help for apply Wikipedia:AutoWikiBrowser/Custom Modules#Add template if not already on talk page. How can I made it to insert the template to talk pages that have not already created? Xaris333 (talk) 07:11, 27 December 2013 (UTC)
- Xaris333 set skip options to skip if page exists. -- Magioladitis (talk) 07:37, 27 December 2013 (UTC)
- @Xaris333: Not sure which template you want to add, but please be aware that Template:Talk_header#Usage states "In accordance with Wikipedia:Talk page guidelines, this template should not be added to otherwise empty talk pages." 07:43, 27 December 2013 (UTC)
Help with an expression related to the {{convert}} template
After a recent B-class article review where a reviewer pointed out that the standard use of the {{convert}} template was inserting non-US spelling into a US-spelling article, I learned that the {{convert}} template has a |sp=us
parm that may be added to enforce US spelling of, say, metres→meters and kilometres→kilometers. I'd like to do some searching for articles in the Spaceflight WikiProject, many of which I have added the {{convert}} template to in recent years, and attempt to do some clean up in this area.
Can anyone suggest how I might set up an AWB search to find articles that use the convert template AND have a unit in it that defaults to non-US spelling (like metre, kilometre, etc. FULL LIST is given here). The convert template usually has extra characters in it so the "{{convert|
" text may be separated by some arbitrary number of characters from the "m
" or the "km
" designation of units inside the convert template. I'm not clear on how to write an expression that will capture these?
(Later on, it might be cool to do a broader search as well for designated US-spelling articles and see where the {{convert}} template is not set for US spelling of the units where it makes a difference, but that is way beyond what I'd like to do first.)
Cheers. N2e (talk) 12:13, 27 December 2013 (UTC)
- @N2e: Off the top of my head, here's my suggestion:
- Under the List menu, be sure you uncheck "Remove non main-space".
- Choose your source as "What transcludes page (all NS)".
- In the What embeds field, type "Template:WikiProject Spaceflight" and click Make list. You should now have a list of 7400+ talk pages.
- Under the List menu, choose "Convert from talk pages". You should now have a list of 7400+ articles.
- On the Options tab, click the Find and Replace box and click Normal settings.
- Set up a rule to find
({{convert\|[\d\.]+\|\w?[lLm]\d?\|(.*?))}}
and replace it with$1|sp=us}}
. This will take care of the units of measure with meters and liters. - Set up another rule to find
({{convert\|[\d\.]+\|(m\/s|km\/h)\|(.*?))}}
and replace it with$1|sp=us}}
. This will take care of the m/s and km/h. - Set up another rule to find
({{convert\|(.*?)\|sp=us)\|sp=us}}
and replace it with$1}}
. This will remove any duplicate additions of|sp=us
. - Set up another rule to find
({{convert\|(.*?)\|abbr=on)\|sp=us}}
and replace it with$1}}
. This will remove any additions of|sp=us
when abbreviations are on. - For each rule, click the Regex and Enabled boxes, and click OK.
- Click the Skip if no replacement box.
- Start processing, and check your work carefully.
- You should then get changes such as this edit. I'm sure someone else could look at these rules and combine them skillfully. Hope this helps! GoingBatty (talk) 15:00, 27 December 2013 (UTC)
- Thank you, GoingBatty. I'm glad you shared something to get me started on my journey of fixing these. When I have a bit of time in the next few days, I will try that out. I'll let you know how it goes for me when I try it out. In the meantime, as you alluded to, if someone else would care to suggest any other ways to combine the rules, that would be cool. Cheers, N2e (talk) 15:41, 28 December 2013 (UTC)
- I have tested your set of rules and AWB process; have done a couple of sets of test edits, reviewing them each, on a few tens of articles each time. I think your AWB rules work quite well for this purpose. Thanks again! N2e (talk) 04:09, 30 December 2013 (UTC)
replace
I would like to replace:
| status =
| status_system =
| status_ref =
by
| status = ##status##
| status_system = IUCN##cri##
| status_ref = <ref>{{IUCN|ID = ##ID##|taxon =##spe##| assessors = |year = |title = ##spe## | assessment_year = ##Year## | version =##cri##| accessdate = 2-1-2014}}</ref>
with data list in *.txt?
Or can I add more information from a list by using AWB. Thank in advace!--Cheers! (talk) 14:34, January 2, 2014 (UTC)
- I guess it would run using a C# or VB.NET module. But what I would do personnaly is to create a module in Lua where I put all the datas from the *.txt file, in a Lua table. Then, I create a function to access the data and I would use this function using
{{subst:#invoke:
in the replacement rules of AWB. Automatik (talk) 17:43, 5 January 2014 (UTC)- @Cheers!: You may also want to see if Wikipedia:CSVLoader will work for you. Good luck! GoingBatty (talk) 18:35, 5 January 2014 (UTC)
- Thanks, I will try!--Cheers! (talk) 06:34, 7 January 2014 (UTC)
- @Cheers!: You may also want to see if Wikipedia:CSVLoader will work for you. Good luck! GoingBatty (talk) 18:35, 5 January 2014 (UTC)
What version of regular expressions does AWB use?
Per the question at Wikipedia_talk:Bots/Requests_for_approval#Propose_revocation_of_approval_of_BattyBot_24, what version of regular expressions does AWB use? Thanks! GoingBatty (talk) 02:24, 3 January 2014 (UTC)
- AWB uses .NET Check http://msdn.microsoft.com/en-us/library/hs600312%28v=vs.90%29.aspx -- Magioladitis (talk) 15:47, 3 January 2014 (UTC)
Newbie help
I am a veteran editor of Wikipedia, but a newbie to AutoWikiBrowser. I've poked around with AWB for a couple of hours time now, and can't seem to figure out how to cleanly and easily do article assessments for a WikiProject on article Talk pages.
I did find out how to right click the list box in the lower left corner of the AWB screen and switch a list of articles to a list Talk pages.
What I want to do is to use AWB to help get a larger percentage of the approx. 7300 articles associated with spaceflight within the purview of WikiProject Spaceflight. To start with something simple, I'd like to find the Categories associated with all the myriad spaceflight articles, and get them properly assessed. {{WikiProject Spaceflight |class=Category ... }}
After a couple hours of mucking around in AWB, I've been unable to set up a search that would look at some subset of spaceflight-related "Categories", bring up their Talk pages, and cleanly go through and see which are already set as {{WikiProject Spaceflight |class=Category ... }}
, and which are not, while changing those that are not, where I have no idea how spaces or parm order—or |class=Category
or |class=Cat
or some other allowable variation—might have been used in the existing WikeProject templates on Talk pages.
Any help would be much appreciated in getting me more facile with this powerful tool. N2e (talk) 17:04, 13 December 2013 (UTC)
- Have a look at Category:Spaceflight articles by quality. You can make a list of articles in each sub-category (such as Category:Unassessed spaceflight articles) by using "Category" in the "Make list" box. Then use the List menu "Convert to talk page" option to get a list of talk pages that can be processed using serach and replace rules.Racklever (talk) 19:42, 13 December 2013 (UTC)
- Thanks, Racklever, that will be helpful as I do more work on assessing these articles. However, that is is not quite what I'm looking to do.
- I'm looking to, for example, not just find the existing 509 articles that have already been assessed as
|class=Category
, but would also like to somehow create a list of ALL of the categories that are subcategories (or included categories if that is the better word for it) underneath Category:Spaceflight, so that I might find out which of those subcats are assessed as being under the purview of WikiProject Spaceflight. I still have not been successful in creating that list of Categories. Thanks. N2e (talk) 21:59, 13 December 2013 (UTC)
Deprecated cauthors field does not have the same meaning as author2
Hi, everyone,
I see an editor using AWB has kindly updated templates on an article I watch. One set of tags he updated changed "coauthor" fields to "author2" fields, but those fields have never had the same meaning in the CS1 templates. On the CS1 talk page I have pointed out that there is a use case for the "coauthor" field and that perhaps this field should not be deprecated, as it currently is. I have a lot of bibliographic references for articles I work on for which the "coauthor" field is useful. Whom should I talk to about the structure of the approved fields for bibliographic templates, so it's clear which fields are useful for what? -- WeijiBaikeBianji (talk, how I edit) 16:40, 6 December 2013 (UTC)
- The renaming of
|coauthors=
to|author2=
is not a function built in to AWB, must have been done by the editor using custom rules. Therefore it's not a matter for AWB, it's one to agree on the CS1 templates discussion pages. Related to this, Josh Parris posted about this edit, suggesting that in that instance|coauthors=
could simply have been removed as the parameter wasn't in use in the citation. Again though, the renaming is not done by default AWB functionality so is a matter for the CS1 talk pages. Rjwilmsi 19:20, 6 December 2013 (UTC)
- Thank you for your reply. I'll take up the issue in the appropriate place you suggested. -- WeijiBaikeBianji (talk, how I edit) 00:08, 7 December 2013 (UTC)
- I came here to ask about this. I have undone the last edit by GoingBatty (talk · contribs) [ping!] at Wikipedia:AutoWikiBrowser/Rename template parameters. "coauthors = Fred Smith, Mary Jones and George Bloggs" is now deprecated, but changing that to "author2 = Fred Smith, Mary Jones and George Bloggs" only creates a new error, harder to detect and fix. The correct fix is to split this into six separate parameters. -- John of Reading (talk) 11:00, 7 December 2013 (UTC)
- I'd better ping TAnthony (talk · contribs) as well. -- John of Reading (talk) 11:37, 7 December 2013 (UTC)
- I made the change based on Wikipedia talk:AutoWikiBrowser/Bugs#Deprecated template parameters better removed if blank. While my change would be OK for one coauthor, I agree that it wouldn't be OK fore more than one coauthor. GoingBatty (talk) 18:38, 7 December 2013 (UTC)
- @John of Reading: - Thinking about this further, how about we update WP:AWB/RTP so that singular parameters such as
|coauthor=
are changed to|author2=
, but leave any plural parameters as|coauthors=
? Thanks! GoingBatty (talk) 15:11, 9 December 2013 (UTC)- Good idea, that looks much safer. -- John of Reading (talk) 15:22, 9 December 2013 (UTC)
- @John of Reading: - Thinking about this further, how about we update WP:AWB/RTP so that singular parameters such as
- I made the change based on Wikipedia talk:AutoWikiBrowser/Bugs#Deprecated template parameters better removed if blank. While my change would be OK for one coauthor, I agree that it wouldn't be OK fore more than one coauthor. GoingBatty (talk) 18:38, 7 December 2013 (UTC)
- Only a good idea if there isn't an already existing
|author2-last=
,|author-last2=
,|last2=
,|surname2=
,|Author2=
,|author2=
, or|authors2=
; all aliases. Replacing|coauthor=
with|author2=
when there is an already existing|author2=
will hide one of the|author2=
parameters from Module:Citation/CS1 – there won't be an error message, but neither will CS1 render both the original|author2=
and the new|author2=
as was intended. Remember also that|coauthor=
and|coauthors=
are aliases of each other so there is no guarantee that the singular|coauthor=
contains only one coauthor and, similarly, that|coauthors=
always contains more than one coauthor.
- Only a good idea if there isn't an already existing
- It may be that this task is more than AWB is capable of handling properly, though, perhaps some clever use of the advanced search and replace functionality (which is so inadequately documented that I haven't got a clue how to use it – examples of it in use would be appreciated).
- —Trappist the monk (talk) 15:50, 9 December 2013 (UTC)
- @Trappist the monk: - Good point - I won't make changes to WP:AWB/RTP for
|coauthor=
. I do have some find and replace rules that work well for up to three coauthors, but require manual review of the results before saving:- Find:
\|\s*coauthors\s*=\s*([\w\s\.']+)\s+([\w-']+)[,;]\s*([\w\s\.']+)\s+([\w-']+)(?:\s+and|\s+&|[,;])\s+([\w\s\.']+)\s+([\w-']+)
→ Replace:|last2=$2 |first2=$1 |last3=$4 |first3=$3 |last4=$6 |first4=$5
(three coauthors) - Find:
\|\s*coauthors\s*=\s*([\w\s\.']+)\s+([\w-']+)(?:\s+and|\s+&|[,;])\s+([\w\s\.']+)\s+([\w-']+)
→ Replace:|last2=$2 |first2=$1 |last3=$4 |first3=$3
(two coauthors) - Find:
\|\s*coauthors?\s*=\s*([\w\s\.']+)\s+([\w-']+)
→ Replace:|last2=$2 |first2=$1
(one coauthor)
- Find:
- Be sure you check the Regex, After fixes, and Enabled boxes are checked.
- Since I have the normal F&R settings set to Add replacements to the edit summary, I use the advanced settings for those changes I don't want to appear in the edit summary. I presume you've already read Wikipedia:AutoWikiBrowser/Find and replace. If you could please provide a specific example of something you're trying to do with the advanced settings, hopefully someone here can help you out. Thanks! GoingBatty (talk) 18:54, 9 December 2013 (UTC)
- At the moment I'm not trying to do anything "advanced" and since I've just started using AWB, the things I have been doing have been adequately met by the normal find and replace. Not too long ago I read somewhere that the best way to convey new concepts to people is to illustrate by example first, then explain what was done in the example: look, I can make this text green and I did it by enclosing the text in the
{{green}}
template like this:{{green|make this text green}}
.
- At the moment I'm not trying to do anything "advanced" and since I've just started using AWB, the things I have been doing have been adequately met by the normal find and replace. Not too long ago I read somewhere that the best way to convey new concepts to people is to illustrate by example first, then explain what was done in the example: look, I can make this text green and I did it by enclosing the text in the
- @Trappist the monk: - Good point - I won't make changes to WP:AWB/RTP for
- —Trappist the monk (talk) 15:50, 9 December 2013 (UTC)
- —Trappist the monk (talk) 01:04, 10 December 2013 (UTC)
- @Trappist the monk: - That's a great way of training, and I'm happy to try to help if you could please specify the concepts you're interested in. Thanks! GoingBatty (talk) 02:02, 10 December 2013 (UTC)
- —Trappist the monk (talk) 01:04, 10 December 2013 (UTC)
Using AWB w/ Proxy - 407 Error
I'm trying use AWB with a proxy.pac. I can access the wiki via IE and Chrome with no issue. My understanding is that AWB pulls proxy settings from IE, so if IE works then so should AWB.
This however is not the case; I, like others receive the following 407 error:
- Network access error
- ---------------------------
- The remote server returned an error: (407) Proxy Authentication Required.
- ---------------------------
I've seen a few discussions (407 Error), (AWB Proxy) (ending circa 2011), a seemingly resolved bug report (407 Error - March 2012) and an open feature request (Proxy Authentication - Oct 2011).
My main question is what is the true status of this issue. Has it been fixed/implemented or not? If not, someone seemed to referencespeak to a possible workaround by hard-coding the authentication into the ApiEdit.cs class, but it was said one shouldn't do this.
All these conversations are a year old so does anyone know of any additional information or a "safe" workaround.
Or simply if currently it can not be done. If that's the case I would request it be added to the FAQs (until feature is added) due it being quite foundational to whether or not a person is able to utilize the software.
Thanks much,
--Almack64 (talk) 12:40, 5 November 2013 (UTC)
- Same problem here, plus I get a bug report.
- Ironically, it was working fine on XP, but does not work on Windows 7 Pro.
- Bug text:
Status | New | ||||||
---|---|---|---|---|---|---|---|
Description |
System.NullReferenceException: Object reference not set to an instance of an object. at AutoWikiBrowser.MainForm.SetProject(String code, ProjectEnum project, String customProject, String protocol) at AutoWikiBrowser.MainForm.LoadPrefs(UserPrefs p) at AutoWikiBrowser.MainForm.LoadPrefs() at AutoWikiBrowser.MainForm.MainForm_Load(Object sender, EventArgs e) | ||||||
To duplicate: | Unknown | ||||||
Site URL: | https://en.wiki.x.io | ||||||
Operating system | Microsoft Windows NT 6.1.7601 Service Pack 1 | ||||||
.NET FW Version | 2.0.50727.5456 | ||||||
AWB version | AutoWikiBrowser (5.5.2.1), WikiFunctions (5.5.2.1), revision 9730 (2013-11-24 17:48:02) | ||||||
Workaround | |||||||
Fixed in version |
@Grafikm fr: can you please check with version 5.5.2.2? -- Magioladitis (talk) 17:36, 29 December 2013 (UTC)
Various namespaces
Applying the rules to all subject namespaces (see the chart at Wikipedia:Namespace) would further help to prevent editors and readers from being wrongly influenced by incorrect usage. (Some subject pages in the "Wikipedia" namespace are actually used as talk pages, so care needs to be taken to avoid them.) Wikipedia:Database reports/Most-watched pages by namespace seems to be a good place to start.
—Wavelength (talk) 21:47, 16 November 2013 (UTC)
Fix rare url cases
Do you think is is worth to fix this as a general fix? -- Magioladitis (talk) 23:46, 4 December 2013 (UTC)
- I scanned the December database dump for
\bhtp\s*:
and found only 19 matches, so no. I fixed most of them; the URL in Kazhuhumalai riot 1895 is garbled, and the one in Thomas Corwin Mendenhall is on the spam blacklist. -- John of Reading (talk) 08:16, 5 December 2013 (UTC)
China special demand
Why AWB still not have the Proxy Settings, as pac, or I don't know the way? I find AWB has to use HTTPS, but HTTPS is blocked in China. So, if AWB's proxy is not available, it will be too difficult to use AWB for Chinese users, or even impossible to use. How we can do? 乌拉跨氪 (talk) 06:04, 16 December 2013 (UTC)
- Please see answer to "Is there any way to set AWB to not use https? (GFW blocks 443 port)" in the FAQ section above. — Ganeshk (talk) 12:35, 16 December 2013 (UTC)
- In terms of now program status, I can't open the preferences becouse of an network access error about "WikiFunctions.Parse.SiteMatrix". 乌拉跨氪 (talk) 14:08, 16 December 2013 (UTC)
What am I doing wrong?
In Citation Style 1, the parameters |day=
and |month=
are deprecated. I have a relatively simple script that replaces these parameters (when they are adjacent to each other and also adjacent to |year=
) with |date=
. In many cases editors have used |date=
instead of |day=
so the script also checks for combinations of |date=
with |month=
and |year=
. When these groupings of parameters are found, the script is supposed to take the values from the three individual parameters and arrange them in dmy format as the value of a new |date=
parameter at the end of the CS1 template.
For example, these two citations from 2012 Toyota/Save Mart 350:
{{cite web|last=White|first=Rea|title=Road course races challenge the specialsts|url=http://msn.foxsports.com/nascar/story/road-course-races-measure-competitive-ability-061710|publisher=Fox Sports|accessdate=June 18, 2012|date=18|month=June|year=2010}}
{{cite web|title=Passing is tough in Chute|url=http://chronicle.augusta.com/stories/1998/06/28/oth_232051.shtml|work=[[The Augusta Chronicle]]|accessdate=June 18, 2012|date=28|month=June|year=1998}}
should produce this:
{{cite web|last=White|first=Rea|title=Road course races challenge the specialsts|url=http://msn.foxsports.com/nascar/story/road-course-races-measure-competitive-ability-061710|publisher=Fox Sports|accessdate=June 18, 2012|date=18 June 2010}}
{{cite web|title=Passing is tough in Chute|url=http://chronicle.augusta.com/stories/1998/06/28/oth_232051.shtml|work=[[The Augusta Chronicle]]|accessdate=June 18, 2012|date=28 June 1998}}
which the Regex tester does using this normal find and replace rule set:
- Find rule:
({{[Cc]ite.*)\|\s*date\s*=\s*(\w*)\s*\|\s*month\s*=\s*(\w*)\s*\|\s*year\s*=\s*(\w*)(\|?[^}]*)
- Replace rule:
$1$5|date=$2 $3 $4
But, when AWB edited 2012 Toyota/Save Mart 350 it produced these conflicting results (the rest of the citations left out for clarity):
- first:
|date=18 |date=June 2010
- second:
|date=28 June 1998
So, what's going on here? Regex tester produces correct results but AWB in supervised trial doesn't. It isn't just this page, I've seen other pages do the same thing. It "feels" like AWB isn't starting at the top of the rule list as it should do – yeah, I know, feelings aren't reliable ...
Anyone out there who can see what it is that I'm doing wrong (there is a greater likelihood that I am the source of the problem here than it being something fundamentally wrong with AWB).
—Trappist the monk (talk) 19:20, 17 December 2013 (UTC)
- I tried this with
ONE$1x TWO$2x THREE$3x FOUR$4x FIVE$5x
as the "replace" string. This reveals that the $1 text is matching far more than you intended. You need to add a question mark near the beginning so that the ".*" is less greedy:
- Find:
({{[Cc]ite.*{{color|red|?}}\|\s*date\s*=\s*(\w*)\s*\|\s*month\s*=\s*(\w*)\s*\|\s*year\s*=\s*(\w*)(\|?[^}]*)
- Replace rule:
$1$5|date=$2 $3 $4
- There's an explanation of sorts here. -- John of Reading (talk) 20:13, 17 December 2013 (UTC)
- @Trappist the monk: - When working on User:BattyBot/CS1 errors-dates, I found that
.*?
was still too greedy, so I used[^}]+
instead. GoingBatty (talk) 20:24, 17 December 2013 (UTC)
- @Trappist the monk: - When working on User:BattyBot/CS1 errors-dates, I found that
Thank you both. The not so greedy .*?
seems to do the trick. The ONE$1x TWO$2x THREE$3x FOUR$4x FIVE$5x
is really handy; glad you suggested it. It caused me think that there might be a really useful enhancement to AWB. Imagine a test or debug mode (there just happens to be room for one more tab right next to Start) where you could test your regexes against real articles. Imagine further, that the left side of the main window, instead of showing the text as it is, showed the regex matches. Imagine that on the right side of the main window where it now shows prospective changes, you could see either all of the captures, neatly ordered, or the replacement, or maybe both. Such a tool might eliminate the need for regex tester which as I have learned here doesn't always tell the truth. In this mode, saving of files would be disabled but otherwise you could skip from page to page looking for problems in your code. I suppose that this has already been thought of and for reasonable and proper reason discarded but perhaps not. Developers?
in regex find
The literal string
is causing AWB to die when loading settings.
Specifically the error message is:
- Unexpected node type EntityReference. ReadElementString method can only be called on elements with simple or empty content. Line 150, position 97.
That location is the n following the ampersand in this portion of the regex find: (?:[-/–]|–)
If I change the regex to (?:[-/–]|.ndash;)
then the settings file will load and the code works as it should (except for the likely rare cases when the position normally occupied by the ampersand is something else.
If I change the regex to (?:[-/–]|&ndash;)
then the settings file also loads. This does not work in Regex Tester so I expect that it won't work in the wild.
So, my question is: How do I convince AWB that I want to match an ampersand followed by the letters n b s p
and finally a semicolon? — Preceding unsigned comment added by Trappist the monk (talk • contribs) 14:02, December 22, 2013 (UTC)
- @Trappist the monk: Using
(?:[-/–]| )
in the find field works for me. Could you please specify your entire find and replace parameters and the version of AWB you're using? Thanks! GoingBatty (talk) 15:37, 22 December 2013 (UTC)
AWB version 5.5.2.2
<Replacement>
<Find>({{[Cc]ite.*?)\|\s*year\s*=(\d{3,4})\s*\|\s*month\s*=\s*([A-Za-z]+\.*\s*(?:[-/–]| )\s*[A-Za-z]+\.*)(\|?[^}]*)</Find>
<Replace>$1|date=$3 $2$4</Replace>
<Comment>ym-m cite xxx</Comment>
<IsRegex>true</IsRegex>
<Enabled>true</Enabled>
<Minor>false</Minor>
<BeforeOrAfter>false</BeforeOrAfter>
<RegularExpressionOptions>IgnoreCase</RegularExpressionOptions>
</Replacement>
—Trappist the monk (talk) 16:25, 22 December 2013 (UTC)
- @Trappist the monk: I don't receive any errors when I load this into AWB 5.5.2.3 SVN 9803. Are you receiving an error on every page, or just certain pages? Could you please confirm if your error with "nbsp" or "ndash"? Thanks! GoingBatty (talk) 16:34, 22 December 2013 (UTC)
- Don't know where – came from.
- The problem isn't loading pages to be evaluated, the problem is loading the settings page. The settings I'm using is here: User:Trappist the monk/CS1 deprecated parameters (AWB).
- —Trappist the monk (talk) 16:49, 22 December 2013 (UTC)
- @Trappist the monk: I also receive an error when loading that file, even if I remove the rule you've identified above. GoingBatty (talk) 16:59, 22 December 2013 (UTC)
- @Trappist the monk: I deleted each of your rules that contained
and the settings file loaded fine. I then manually added the rule above in the Find and Replace window, and saved the settings file. I closed AWB and opened it, and then could load the new settings just fine. I then noticed that although the Find and Replace window shows
the settings file contains&nbsp;
. So if you replace
with&nbsp;
in your settings file I think it will load. GoingBatty (talk) 17:24, 22 December 2013 (UTC)- I have just come to the same conclusion by a slightly different path. I changed the four
s to.nbsp;
in Notepad++; saved the file, and then loaded the new settings file into AWB. In Find & Replace I edited the.nbsp;
back to
and saved the settings. Yep,
is translated to&nbsp;
.
- I have just come to the same conclusion by a slightly different path. I changed the four
- @Trappist the monk: I deleted each of your rules that contained
- @Trappist the monk: I also receive an error when loading that file, even if I remove the rule you've identified above. GoingBatty (talk) 16:59, 22 December 2013 (UTC)
- —Trappist the monk (talk) 16:49, 22 December 2013 (UTC)
- Is this a bug in AWB? If not, is there documentation that explains this? Where? Is
the only html entity that has this problem?
- Is this a bug in AWB? If not, is there documentation that explains this? Where? Is
- —Trappist the monk (talk) 17:40, 22 December 2013 (UTC)
- @Trappist the monk: Doing further testing, it seems that each instance of
&
is stored in the settings file as&
. It doesn't appear to be a bug, but the way AWB was designed. I don't see anything in the documentation that discusses viewing/editing the settings file outside AWB. Feel free to be bold and update the documentation as you see fit. GoingBatty (talk) 18:11, 22 December 2013 (UTC)
- @Trappist the monk: Doing further testing, it seems that each instance of
- —Trappist the monk (talk) 17:40, 22 December 2013 (UTC)
- Thanks for that. I don't mind doing the bold thing when I think I know what I'm doing. In this case, though I trust you and believe that you are correct, I don't know enough about the inner workings of AWB to write with confidence. Perhaps over time I will.
- As further proof that I don't know enough to contemplate tweaking the documentation, I haven't been able to describe this problem correctly. I working on a script that concatenates
|day=
or|date=
, and|month=
and|year=
into|date=
to eliminate|month=
which is deprecated. The issue that started all of this was this pair of parameters:|year=2006
|month=July–August
which contain:&ndash
. Argh!
- As further proof that I don't know enough to contemplate tweaking the documentation, I haven't been able to describe this problem correctly. I working on a script that concatenates
- Even when Editor GoingBatty inasmuch tells me that I've got it wrong, I get it wrong. I'm not always an idiot, just sometimes.
- —Trappist the monk (talk) 19:27, 22 December 2013 (UTC)
- @Trappist the monk: No worries - luckily it's the same issue either way. GoingBatty (talk) 19:42, 22 December 2013 (UTC)
- —Trappist the monk (talk) 19:27, 22 December 2013 (UTC)
Renaming files?
I am rather new to AWB and use it currently on a Wikia page. Is there a way to use AWB to rename pages or files (e.g., rename all files from Afoobar to Bfoobar)? I cannot find anything on how to do this. My apologies if this has been addressed already or is a simple oversight. Thank you. EvergreenFir (talk) 04:37, 27 December 2013 (UTC)
- @EvergreenFir: Per Wikipedia:AutoWikiBrowser/User_manual#Start, you have to be an admin in order to use AWB's move functionality. GoingBatty (talk) 04:44, 27 December 2013 (UTC)
- @GoingBatty: - Thank you for your reply! I am on the Wikia page I am using it on. I saw the "move" button on the start menu, but had to individually enter the name for each file. Was wondering if there was a way to do a mass move of sorts. I was changing all images starting with Short7 to Short8. EvergreenFir (talk) 04:50, 27 December 2013 (UTC)
Similar question for @GoingBatty: or anyone: anyway to get AWB to delete stuff in, say, a certain category automatically? I see the delete button on the Start panel, but not sure if I can make it do it without prompting. EvergreenFir (talk) 05:30, 29 December 2013 (UTC)
- @EvergreenFir: Sorry - I'm not an admin, so I've never used the Move or Delete buttons. Maybe Rjwilmsi or Magioladitis can provide more information. Happy holidays! GoingBatty (talk) 15:18, 29 December 2013 (UTC)
- @GoingBatty: Thank you!
- For what its worth I am also an admin on a couple of Wikia sites and the delete and move buttons don't even work for me there at all. I hadn't thought to ask for a change yet but I assumed it was Wikipedia specific functionality. Kumioko (talk) 15:39, 29 December 2013 (UTC)
- The move button worked for each individual file for me, but it was kinda a pain in the butt. EvergreenFir (talk) 21:40, 29 December 2013 (UTC)
- What's your status on the Wiki in question? Are you just an "admin" or are you a "founder"? That might be the difference. Kumioko (talk) 21:54, 29 December 2013 (UTC)
- I'm an admin/crat. Again, I can move things, but I can't set it in "bot" mode to do it. I have to do each individually. Wondering if there's a way to make it automated. EvergreenFir (talk) 00:05, 30 December 2013 (UTC)
- Oh ok, I'll play with it and see if I can get it to work on one of the wiki's I have admin rights on. Maybe in the meantime Magio or one of the other devs might have some advice or be able to help. Kumioko (talk) 00:12, 30 December 2013 (UTC)
- @Magioladitis:. Ok I see what I did wrong and I was able to test the functionality. I see what you mean about it being a pain. There are also some other things I notice that I think is suboptimal for a non Wikipedia site:
- Deletion messages assume the summary is for Wikipedia. Recommend just giving a couple generic ones for Wikia/Non Wikipedia or allow an easier way to modify the provided listing.
- It might be useful to also add a drop down for Reason group: (Vandalism, Housekeeping, Marked for deletion, etc.) before the detailed deletion message.
- The delete article list doesn't contain the newly created G13. Abandoned Articles for creation submissions so you might want to add that one for Wikipedia use.
- It might be useful to add a block/unblock capability too. Its fairly rare but there is sometimes a need to block a group of usernames or IP's for various reasons.
- I could probably craft an AWB module to do the deletion but it will take me a few days and I wouldn't want to post the code here in the clear. I hope this helps. Kumioko (talk) 01:10, 30 December 2013 (UTC)
- @Magioladitis:. Ok I see what I did wrong and I was able to test the functionality. I see what you mean about it being a pain. There are also some other things I notice that I think is suboptimal for a non Wikipedia site:
- Oh ok, I'll play with it and see if I can get it to work on one of the wiki's I have admin rights on. Maybe in the meantime Magio or one of the other devs might have some advice or be able to help. Kumioko (talk) 00:12, 30 December 2013 (UTC)
- I'm an admin/crat. Again, I can move things, but I can't set it in "bot" mode to do it. I have to do each individually. Wondering if there's a way to make it automated. EvergreenFir (talk) 00:05, 30 December 2013 (UTC)
- What's your status on the Wiki in question? Are you just an "admin" or are you a "founder"? That might be the difference. Kumioko (talk) 21:54, 29 December 2013 (UTC)
- The move button worked for each individual file for me, but it was kinda a pain in the butt. EvergreenFir (talk) 21:40, 29 December 2013 (UTC)
rev 9838 updated Criteria for Speedy Deletion to include G13 and not only. -- Magioladitis (talk) 17:49, 30 December 2013 (UTC)
CSVLoader works or no?
Can someone confirm to me that plugin CSV Loader for AWB, currently works fine, even without bot flag? For me - not working. --XXN (talk) 13:24, 28 December 2013 (UTC)
- @XXN: You may post at Wikipedia talk:CSVLoader with the details of what steps you're taking and what part isn't working. GoingBatty (talk) 20:54, 28 December 2013 (UTC)
What other variables are there?
%title% calls the name of the current page from the list. What other variables does AWB use? The Transhumanist 20:41, 2 February 2014 (UTC)
- Thank you. That chart there helps a lot. The Transhumanist 02:38, 3 February 2014 (UTC)
what is the variable for the current pagename?
In search/replace, I need to specify the title of the article.
What is the variable for this? The Transhumanist 20:20, 2 February 2014 (UTC)
- Never mind, found it in some script comments. It's %title%. The Transhumanist 20:37, 2 February 2014 (UTC)
Return of Unicode Private Use Area
Following up on Wikipedia talk:AutoWikiBrowser/Archive 25#Unicode Private Use Area, would someone be willing to walk me through how to find the issues on articles with this issue and fix them? Two examples are Photoredox catalysis and Phosphinooxazolines. Thanks! GoingBatty (talk) 03:08, 7 January 2014 (UTC)
- GoingBatty CHECKWIKI error 16 now catches pages with characters in PUA. -- Magioladitis (talk) 05:17, 23 January 2014 (UTC)
- Today's scan identified Wilhelm Rath with a PUA located at: {PUA} Publisher: Mellinger (1979) Langua". Batty, I'm willing to walk you through on a very high cliff. :) Bgwhite (talk) 05:41, 23 January 2014 (UTC)
- @Bgwhite: I also enjoy long walks from a short pier. :-) GoingBatty (talk) 06:42, 23 January 2014 (UTC)
- Today's scan identified Wilhelm Rath with a PUA located at: {PUA} Publisher: Mellinger (1979) Langua". Batty, I'm willing to walk you through on a very high cliff. :) Bgwhite (talk) 05:41, 23 January 2014 (UTC)
Help removing all links to a deleted page
This is probably something I'll be ashamed for asking, but I'm trying to remove links to a deleted standalone list article. I created the list based on "what links here" but don't see an easy way to go through them and remove all of the links. The links likely are all "See Also"s, but perhaps it's prudent to have a separate search/replace (presuming that's the best way) for isolated links like in "See Also" and another search/replace that just delinks instances of the link in the article text? I'm a regex noob, so this might be really easy... --— Rhododendrites talk | 16:21, 31 December 2013 (UTC)
- @Rhododendrites: Wich article is it? I have a script installed (I don't know what cod is for that script, sorry...) but I can unlink them for you...(if it still works). -(t) Josve05a (c) 16:27, 31 December 2013 (UTC)
- Comment: Red links in 'see also' sections need to be removed outright with the entire line, including the opening asterisk and the terminal line feed. -- Ohc ¡digame! 04:51, 3 January 2014 (UTC)
Save skipped pages
Hello to everyone (from it.w :-))! Do you know if there's a way to save the skipped pages list after a bot cycle? --Horcrux92 (talk) 12:57, 19 February 2014 (UTC)
- Horcrux92 go the the logs tab and save list. -- Magioladitis (talk) 14:33, 19 February 2014 (UTC)
- Logs tab? May you tell me the path? --Horcrux92 (talk) 14:36, 19 February 2014 (UTC)
- Horcrux92 check the image on the right. -- Magioladitis (talk) 14:51, 19 February 2014 (UTC)
- Uuuh, thank you so much. I think I have already used almost all AWB tools but I had never seen that box :-) --Horcrux92 (talk) 14:56, 19 February 2014 (UTC)
- Horcrux92 check the image on the right. -- Magioladitis (talk) 14:51, 19 February 2014 (UTC)
- Logs tab? May you tell me the path? --Horcrux92 (talk) 14:36, 19 February 2014 (UTC)
AWB will no longer connect
Using version 5.5.2.2
I last used AWB on January 3rd on my own wiki (http://absitomen.com/lexicon), I upgraded to 1.21.4 and added semantic mediawiki but other than that no changes. When I try to use AWB now, it will not connect. It gives an Error Connecting to Wiki and Error Description: The given key was not present in the dictionary.
Any help would be greatly appreciated.Latinlives (talk) 02:55, 23 January 2014 (UTC)
Latinlives it should be working by now. Is it not? -- Magioladitis (talk) 10:20, 4 March 2014 (UTC)
Magioladitis, I managed to make the mediawiki update work and AWB has been working since I did that. Latinlives (talk) 16:47, 17 March 2014 (UTC)
Is an automated mass file move possible?
I'm using AWB on Wikia (I'm an admin/crat on the page and the bot is registered, so no issues there) and I was wondering if there's a way to move all files or pages in a given list to a new title. For example, we have images that start with "Short8" and I want to move them all to "Short13" (e.g., Short8 foobar.jpg would become Short13 foobar.jpg). I know this can be done individually using the "Move" button on the "Start" panel. But can I get it to do it automatically? Is this possible?
I asked a similar question about mass deletion and didn't get a clear answer. Any help is appreciated. EvergreenFir (talk) 03:49, 23 January 2014 (UTC)
- EvergreenFir. It is not. -- Magioladitis (talk) 05:15, 23 January 2014 (UTC)
- @Magioladitis: Sad face. Thank you though. I looked into pywikibot, but it seems to require a bit of coding knowledge that's beyond my ken. EvergreenFir (talk) 06:28, 23 January 2014 (UTC)
- There are bots that can do mass moves. Check with the bot department. The Transhumanist 20:26, 2 February 2014 (UTC)
- @Magioladitis: Sad face. Thank you though. I looked into pywikibot, but it seems to require a bit of coding knowledge that's beyond my ken. EvergreenFir (talk) 06:28, 23 January 2014 (UTC)
How do I pull in articles from the Special lists to AWB
Does anyone know how to pull in the articles from the special lists to AWB? The only way I ave found to do it is to copy the list of articles to notepad and then remove the non article content. To clarify I am referring to the Special pages reports like Dead End pages, Wanted pages and the like. Reguyla (talk) 23:21, 25 January 2014 (UTC)
- It appears that making a list choosing the source Special page doesn't include these pages. I suggest you make a feature request with the list of special pages you would like added. (For dead end pages, I use the source Category All dead-end pages.) GoingBatty (talk) 16:50, 27 January 2014 (UTC)
- Thank you I will do that. Your also right that categories exist for some of these but not every wiki created categories for them and not all of them are cateforizable (such as wanted categories and templates). Reguyla (talk) 17:09, 27 January 2014 (UTC)
How does AWB make a list of redlinks?
One of the choices in the list maker is "Links on page (only redlinks)".
I'm writing a script in which I need to determine redlink status.
How does AWB determine what the redlinks are on a page?
I look forward to your reply. The Transhumanist 02:38, 3 February 2014 (UTC)
- Its one of the API calls in the Mediawiki software API. You can read about it here. I hope that helps. Kumioko 108.48.100.44 (talk) 03:29, 3 February 2014 (UTC)
- Thank you. Wow, there are a lot of calls. By the way, a search for "redlink" turned up nothing. Out of curiosity, which call is it? The Transhumanist 05:00, 3 February 2014 (UTC)
- I can't remember but try looking up missing or filter. I think its something like missing pages. I'll try and look it up later if you can't find it just let me know. 138.162.8.59 (talk) 14:42, 3 February 2014 (UTC)
- Not under missing or filter. Whatever it is, it is not obvious. Please look it up. Thank you. The Transhumanist 18:05, 4 February 2014 (UTC)
- I can't remember but try looking up missing or filter. I think its something like missing pages. I'll try and look it up later if you can't find it just let me know. 138.162.8.59 (talk) 14:42, 3 February 2014 (UTC)
- Thank you. Wow, there are a lot of calls. By the way, a search for "redlink" turned up nothing. Out of curiosity, which call is it? The Transhumanist 05:00, 3 February 2014 (UTC)
Removing a line without leaving a blank line
I've seen this answered before, people suggesting using "\r\n" to remove the new line. However, on Wikia with the AutoWikiBrowser, using "\r\n" doesn't work as far as I can tell. Plus, removing "\n" causes "\r" to be printed after every single letter, turning things like "|name = %%pagename%%" into "\r|\rn\ra\rm\re\r \r=\r \r%\r%\rp\ra\rg\re\rn\ra\rm\re\r%\r%\r".
I'm trying to wrap my head around how to use the "Advanced Settings" find and replace (making new "rules") but I can't figure it out. Basically, I'm trying to remove "|name = %%pagename%%" from articles that use a template that pulls the page name automatically (I only include the name parameter for the template documentation, but editors keep tossing in the name parameter into new articles) without having it leave a blank line. Any help would be greatly appreciated. 173.238.166.40 (talk) 01:22, 4 February 2014 (UTC)
- I would try with singleline checked. Karmela (talk) 00:03, 5 February 2014 (UTC)
- Try finding
\|\s*name\s*=\s*%%pagename%%\s*
with the replace value blank, and the Regex button checked. This works for me on Xolnar without SingleLine checked. 02:10, 5 February 2014 (UTC) — Preceding unsigned comment added by GoingBatty (talk • contribs)
Citations wrongly reordered
This automated system improperly reorders citations; in an article, citation A might appear, and then citation B; later in the article both A and B contributed to the content of a paragraph or so. But if B contributed most of it and A only some minor detail, the citation on that paragraph needs to be B, and then A.
This system re-orders them A and then B. There is no reason for this. A discussion above about re-ordering references, which seems to be the same issue, is marked "fixed". It isn't. It still does it. And it's very annoying. Afterbrunel (talk) 18:34, 6 February 2014 (UTC)
- It's also a violation of WP:CITEVAR - if an editor has established a style in which adjacent references are not always sorted in increasing order (for example, by intentionally placing them out of order), that style must be respected. This is not something that can be decided by the authors of AWB; it is an issue for WP:CITE.
- Users who run AWB manually should make sure that it is appropriate to rearrange references before saving AWB edits that rearrange them. Because bots cannot make that determination, they need to disable the reordering functionality. This bug has persisted in AWB for too long at this point, so I am likely to simply block bots that continue to violate WP:CITEVAR in this way, if their maintainers have been notified and have not fixed the problem by disabling the re-ordering code. — Carl (CBM · talk) 20:29, 6 February 2014 (UTC)
- As I mentioned on the bots talk page, why not just add {{bots|deny=AWB}} and call it a day. This isn't even a bug as you mention its a feature. It follows the Citevar so if you want it changed, change that, then AWB will have to change. Aside from that, this isn't an issue and to me if you were to use your admin tools to block it as you suggested on the bots talk page that would constitute abuse of the tools. No matter how good the bot or botop is it will never be 100%, there are always going to be exceptions and that's what this is, an exception. Rather than forumshop in the future may I suggest picking one location to have the discussion? 138.162.8.58 (talk) 20:30, 6 February 2014
- I'd used the {{bots|deny=AWB}} sparingly. It should be used when AWB does a serious problem or suggests a serious problem. From Template:bots, it says "Avoid using the template as a blunt instrument". I've seen it used because an editor was too lazy or didn't know what the root problem was. I've seen it used to keep an editor's view of how many blank spaces there should be. I'm not sure what to do in this situation. I have my personal feelings, but I'm not sure it is the right way.
- As I mentioned on the bots talk page, why not just add {{bots|deny=AWB}} and call it a day. This isn't even a bug as you mention its a feature. It follows the Citevar so if you want it changed, change that, then AWB will have to change. Aside from that, this isn't an issue and to me if you were to use your admin tools to block it as you suggested on the bots talk page that would constitute abuse of the tools. No matter how good the bot or botop is it will never be 100%, there are always going to be exceptions and that's what this is, an exception. Rather than forumshop in the future may I suggest picking one location to have the discussion? 138.162.8.58 (talk) 20:30, 6 February 2014
- CBM, please keep the threats to block or threats to retaliate out of the discussion. Saying you are going to block anyone who doesn't abide your view is not to doing the discussion any good.
- Personally, I don't see it violating WP:CITEVAR as it is not change the citation styles. It is also used as best practices at FA. I don't know this history behind this, Carl or anybody, do you know of discussions where this issue was decided? Bgwhite (talk) 22:16, 6 February 2014 (UTC)
- @Bgwhite: the complaint is exactly that it does change the citation style - the OP above intentionally put the citations in one style, and AWB changed them. I believe that the re-ordering code was randomly added by AWB maintainers without consideration of whether the manual of style actually supported it. And I want to be clear that I am not speaking about blocking editors here; it is bot accounts (which are not editors, nor even human) that I am speaking about. I want to emphasize that the AWB talk page is not the place where the manual of style is decided, and that bot operators who use AWB as the starting point for their bot are still responsible for configuring and editing AWB as necessary to meet the bot policies. If AWB does something which bots are not permitted to do, then bot operators must disable that feature of AWB. Stonewalling complaints by saying "that's just what AWB does" is not acceptable behavior from a bot operator. — Carl (CBM · talk) 22:26, 6 February 2014 (UTC)
- I do however note, that editors running AWB on their main account do the same type of edits - they also should turn it off after being notified. --Dirk Beetstra T C 11:41, 11 February 2014 (UTC)
- @Beetstra: The AWB user interface provides only one checkbox for the entire set of general fixes; they cannot be turned on and off separately. I assume that bot owners know how to download the source code and build their own version of the software. -- John of Reading (talk) 12:02, 11 February 2014 (UTC)
- That does not necessarily make it right and it is by no means an excuse. The more reason to disable it at all in AWB itself, ánd (for the time being, on a user account) be careful and not save it when that 'fix' is performed - you may be overriding an editorial choice. One should not be using automated tools, either on a bot account or on a personal account to perform actions which do not have consensus. --Dirk Beetstra T C 12:38, 11 February 2014 (UTC)
- Yes, I tend to turn off the general fixes when I see that I am about to re-order references in a well-developed article. -- John of Reading (talk) 13:23, 11 February 2014 (UTC)
- @John of Reading: I would bet many AWB bot owners, and surely many AWB manually users, would not know how to pick and choose which general fixes to use. I think the way to do it would be to uncheck the Apply general fixes box and load a custom module instead. @Magioladitis: Is this custom module up to date with all of the general fixes procedures? Thanks! GoingBatty (talk) 04:00, 16 February 2014 (UTC)
- That does not necessarily make it right and it is by no means an excuse. The more reason to disable it at all in AWB itself, ánd (for the time being, on a user account) be careful and not save it when that 'fix' is performed - you may be overriding an editorial choice. One should not be using automated tools, either on a bot account or on a personal account to perform actions which do not have consensus. --Dirk Beetstra T C 12:38, 11 February 2014 (UTC)
- @Beetstra: The AWB user interface provides only one checkbox for the entire set of general fixes; they cannot be turned on and off separately. I assume that bot owners know how to download the source code and build their own version of the software. -- John of Reading (talk) 12:02, 11 February 2014 (UTC)
- I do however note, that editors running AWB on their main account do the same type of edits - they also should turn it off after being notified. --Dirk Beetstra T C 11:41, 11 February 2014 (UTC)
- @Bgwhite: the complaint is exactly that it does change the citation style - the OP above intentionally put the citations in one style, and AWB changed them. I believe that the re-ordering code was randomly added by AWB maintainers without consideration of whether the manual of style actually supported it. And I want to be clear that I am not speaking about blocking editors here; it is bot accounts (which are not editors, nor even human) that I am speaking about. I want to emphasize that the AWB talk page is not the place where the manual of style is decided, and that bot operators who use AWB as the starting point for their bot are still responsible for configuring and editing AWB as necessary to meet the bot policies. If AWB does something which bots are not permitted to do, then bot operators must disable that feature of AWB. Stonewalling complaints by saying "that's just what AWB does" is not acceptable behavior from a bot operator. — Carl (CBM · talk) 22:26, 6 February 2014 (UTC)
- I was involved in a discussion about this several years ago. I thought the arguments against ordering references were unconvincing, and I never found a style guide that suggested placing important references first. I was pointed at what was purported to be an example of important-first referencing, but it was in a (to me) obscure and hard to get journal and I couldn't really get to the bottom of what was going on. I don't think threatening accounts with blocking is constructive. Mr Stephen (talk) 22:45, 6 February 2014 (UTC)
- @CBM: What would be the best way for editors who intentionally want references out of numerical order to note it in an article's comments so that future human editors (using AWB or not) would know that the order was intentional? I don't think I've ever seen anyone do this. Thanks! GoingBatty (talk) 04:11, 16 February 2014 (UTC)
- @CBM and GoingBatty: I've found two ways to stop the current software re-ordering a pair of references. One is to add an HTML comment between them; another is to use the {{r}} template. See the current revision of my sandbox (permanent link) -- John of Reading (talk) 07:45, 16 February 2014 (UTC)
- @CBM: What would be the best way for editors who intentionally want references out of numerical order to note it in an article's comments so that future human editors (using AWB or not) would know that the order was intentional? I don't think I've ever seen anyone do this. Thanks! GoingBatty (talk) 04:11, 16 February 2014 (UTC)
I do agree with Mr Stephen .. however: Can this please be turned off - a bot should not be doing this automatically. What order the references should have is an editorial choice, and edits like [Can this feature please be standard disabled in AWB - I have just undone this edit as, to me, this is practically a null-edit overriding what may very well have been an informed choice, as the problem that this] automatically override what may very well have been an informed choice of using the ordering (I agree, it most often is not). The problem is, that if it is a deliberate choice to order references in a certain order (as what Afterbrunel is alluding to, and what I feel might be the case in this edit, where the first source was way older, and probably 'closer' to the statement than the second which is of a much later date), then that is not to be automatically overridden.
Moreover, doing only this is practically a null-edit, edits like the one I just referenced should not be saved as they clutter watchlists. --Dirk Beetstra T C 11:38, 11 February 2014 (UTC)
- @Beetstra: - When you undid this edit to restore the reference ordering, you accidentally changed [[Lieutenant Governor of Nebraska|Lieutenant Governor]] to [[Lieutenant Governor of Nebraska|Lieutenant Governor]. Please be careful not to throw the baby out with the bathwater when reverting changes. Thanks! GoingBatty (talk) 04:00, 16 February 2014 (UTC)
- I was already informed of that - the good change was not really visible in the diff. Thanks for the head's up. --Dirk Beetstra T C 05:05, 16 February 2014 (UTC)
Why are some items removed from Wikipedia talk:AutoWikiBrowser/Feature requests rather than properly archived?
See this edit which "Removed more from list".
This made it very time consuming for me to locate an item, few orphan tag, which should be easily found on Wikipedia talk:AutoWikiBrowser/Feature requests/Request index. On that list few orphan tag points to Wikipedia talk:AutoWikiBrowser/Feature requests#few orphan tag, a section that was removed without being archived, so User:Legobot cannot automatically create a link to an archive in that report, leaving me to hunt down the link to it: special:permalink/553836193#few orphan tag. On the next edit after that version, that item was removed along with several others by User:Bgwhite. – Wbm1058 (talk) 15:29, 7 February 2014 (UTC)
Update to the live CS1 module week of 2014-02-09
In about a week's time I intend to update these files from their respective sandboxes:
- Module:Citation/CS1 (diff);
- Module:Citation/CS1/Configuration (diff);
- Module:Citation/CS1/Whitelist (diff)
The update makes these changes to Module:Citation/CS1:
- Fixes cite journal script error that occurred when the citation had a |pmc= without |title=; (see "Script_error")
- Migrate cite speech; (see Migrating cite speech)
- Kerning for title and chapter leading and trailing single or double quote marks for quoted titles; (see Quote within title parameter)
- Enhance month / season year date range to check for proper left to right time sequencing of month or seasons in the range; (see Month / season range order validation)
- Streamline date validation; Add day range validation; (see Legitimate date range examples to add to the date checking part of the CS1 module)
- Migrate cite podcast; (see Migrating cite podcast)
- Add simple PMID error checking; (see PMID error flagging)
- Refine DOI error check to catch trailing punctuation errors; (see doi subthread)
to Module:Citation/CS1/Configuration:
- Added Draft and Draft Talk namespaces to uncategorized namespaces. [Jonesey95]
- Add
|event=
and|eventurl
as aliases of|conference
and|conferenceurl=
in support of{{cite speech}}
; - Add
|host=
as alias of|authors
in support of{{cite podcast}}
; - Add simple PMID error checking;
- Reflect change made to live version by Editor Smith609; remove U+200E (left to right mark) from category names;
to Module:Citation/CS1/Configuration:
- Add
|event=
and|eventurl
as aliases of|conference
and|conferenceurl=
in support of{{cite speech}}
; - Add
|host=
as alias of|authors
in support of{{cite podcast}}
;
—Trappist the monk (talk) 12:55, 8 February 2014 (UTC)
- Done.
Other Wikis?
I have downloaded AWB to use on another wiki (This one) after entering the line www.uesp.net/wiki/
into Site → Project → Custom box, I try to input my log in details, using the correct account details (I double checked them before posting here) it gives the error message: "The username provided doesn't exist." The username I entered was KizBOT and this account exists according to the wiki and I can manually log in through the wiki to such an account. I can not find a relevant help doc as well relevant documentation is on Wikipedia and does not help those trying to make use of the program elsewhere. --KizC (talk) 15:56, 13 February 2014 (UTC)
Additional: Trying to login using the correct settings file (Default.xml) results in an additional error message: "Invalid URI: The hostname could not be parsed." Trying with just Kiz, an account that exists on both uesp (mine) and wikipedia (not mine) however gets the message: "The password provided is incorrect." - which means its reading Wikipedia's data rather than UESP's? Additionally, using KizC (which exists on wikipedia alone (mine)) gives me neither a password or username error, just the Invalid URI one. --KizC (talk) 16:09, 13 February 2014 (UTC)
Is there a way to prevent a regex match when a specific text string exists anywhere within a template?
I have a script that replaces |coauthor=
or |coauthors=
with several |authorn=
parameters within various Citation Style 1 templates. The script is here.
The script needs the ability to ignore |ref=harv
because replacing |coauthor=
with |authorn=
will break the CITEREF
link when {{sfn}}
or {{harv}}
(and family) templates are used with the CS1 template.
Examples:
The script should ignore this citation because it contains |ref=harv
:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}}
The script should change this citation:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
to:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |author2=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
because it does not contain |ref=harv
.
Can this be done? Regex seems to do well when you want to match something that exists; it doesn't do so well if you want to match something that doesn't exist. I've tried look-ahead and look-behind without success which could mean that they won't work for this application or that I just don't know how to properly use them. It doesn't seem that the advanced search is appropriate because the if tab apparently applies to the whole page which is insufficiently specific for this application. I don't know about doing this task as a module.
Ideas?
—Trappist the monk (talk) 16:16, 1 March 2014 (UTC)
- As you said, regular expressions are much better at finding the existence of things rather than non-existence. I generally use a solution to this type of problem which is generic to situations where your primary method of change is regex replacement. That method is to first match the more specific case and change it to something that will not match the general case then change the general case. After that replacement then change the specific case back to the way it was prior to the initial change.
- In this instance the contents of the page would look like the following (all done within one AWB change-set, but the regex replacements in AWB are done in sequential order):
- Initial page contents:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}}
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
- Contents after first regex replacement:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coau,BoGuSNonMaTcHiNgStRiNg,thor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}}
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
- Contents after primary desired change by regex replacement:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coau,BoGuSNonMaTcHiNgStRiNg,thor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}}
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |author2=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
- Contents after restoring original content of cases we do not want to change via the desired general regex replacement:
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}}
{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |author2=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}}
- The string ",BoGuSNonMaTcHiNgStRiNg," should be selected as one you know does not exist in your input data. This may require you to create a very long string. Better yet is to first search for the string you plan to use as a unique marker. If it is found either skip the page, use a different string, or let a human deal with it.
- As mentioned, this is a generic methodology which can be used in situations where your primary method of change is regex replacement. It can be used to solve issues where you have specific cases which are not to be changed – or changed in a different manner – where the specific case is difficult to exclude from a match with a more general case you do desire to change. It is not, necessarily, the easiest method to use if there are methods of differentiation available other than regular expressions.
- In this specific instance, it will probably be easier to use more than one regex pre-replacement action as it will likely be easier to match the cases where "
\|\s*ref\s*=\s*harv\s*[^}\|]
" occurs prior to "coauthors" separately from those where the "\|\s*ref\s*=\s*harv\s*[^}\|]
" occurs after "coauthors" — Makyen (talk) 22:09, 1 March 2014 (UTC)
- Wow, I did not know that that is possible. How is it actually implemented? Can you show me a script where your BoGuSNonMaTcHiNgStRiNg technique is used so I can more clearly understand how it works within AWB?
- I did get a version of look-behind to work when looking for
|ref=harv
at the end of the template where, it seems, most editors put it:(\s*\|[^}]*(?<!\s*\|\s*ref\s*=\s*harv\s*)}})
- I did get a version of look-behind to work when looking for
- —Trappist the monk (talk) 20:40, 2 March 2014 (UTC)
- An example I actually used in AWB (note: the regexes used below are non-optimum. If I had known I was going to use it as an example I would have put more effort into making it elegant instead of just functional 8-):
- —Trappist the monk (talk) 20:40, 2 March 2014 (UTC)
- All entries were only in the "Find & Replace" dialog. One Regex replacement per line; all within the same dialog. From the AWB user's perspective it is just one change to the page. From the program's perspective each Find & Replace entry is a separate action with the output of the prior action feeding the input to the next action. The goal of this change set was to harmonize the use of "×" and "x", as used for "by", in describing an array. The issue was that multiple formats were used throughout the article and within section headings. I had already dropped in anchors for the current names of the section headings and I did not want those to be changed because I knew there were links to various sections. Thus, to protect the anchors the first action was to change all matching occurrences within an {{anchor}} to something that would not match in the general replacement:
(\{\{[Aa]nchor[^}]*\b\d+\w? ?)×( ?\d+\w?\b)
→$1BoGuSxBoGuS$2
;protect anchors
- Then make the general change:
(\b\d+\w? ?)×( ?\d+\w?\b)
→$1x$2
;change n×n to nxn
- Then put the {{anchor}} templates back the way they were:
(\{\{[Aa]nchor[^}]*\b\d+\w? ?)BoGuSxBoGuS( ?\d+\w?\b)
→$1×$2
;unprotect anchors
- All entries were only in the "Find & Replace" dialog. One Regex replacement per line; all within the same dialog. From the AWB user's perspective it is just one change to the page. From the program's perspective each Find & Replace entry is a separate action with the output of the prior action feeding the input to the next action. The goal of this change set was to harmonize the use of "×" and "x", as used for "by", in describing an array. The issue was that multiple formats were used throughout the article and within section headings. I had already dropped in anchors for the current names of the section headings and I did not want those to be changed because I knew there were links to various sections. Thus, to protect the anchors the first action was to change all matching occurrences within an {{anchor}} to something that would not match in the general replacement:
- In the current situation, you could use something like (minimally tested):
(\{\{[Cc]ite[^}]*\|\s*ref\s*=\s*harv\s*\|[^}]*\|\s*)coauthor(\s*=[^}]*\}\})
→$1coBoGuSNonMaTcHiNgStRiNg1author$2
;protect {{cite...|ref=harf....|coauthor=...}}(\{\{[Cc]ite[^}]*\|\s*)coauthor(\s*=[^}]*\|\s*ref\s*=\s*harv\s*(\|[^}]*\}\}|\}\}))
→$1coBoGuSNonMaTcHiNgStRiNg1author$2
;protect {{cite...|coauthor=...|ref=harf....}}(\{\{[Cc]ite[^}]*\|\s*)coauthor(\s*=[^}]*\}\})
→$1author2$2
;change {{cite...|coauthor=...}} to {{cite...|author2=...}}coBoGuSNonMaTcHiNgStRiNg1author
→coauthor
;Put the coauthors not being changed back.
- In the current situation, you could use something like (minimally tested):
- I did not test the whole thing above against a page, but I tested each individual replacement. It should result in changing:
- extra coauthor text.{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}} extra coauthor text
- extra coauthor text.{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}} extra coauthor text
- extra coauthor text.{{cite book |title=Big Book of Facts |ref=harv |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}} extra coauthor text
- to:
- extra coauthor text.{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing |ref=harv}} extra coauthor text
- extra coauthor text.{{cite book |title=Big Book of Facts |last=Knowitall |first=Mister |author2=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}} extra coauthor text
- extra coauthor text.{{cite book |title=Big Book of Facts |ref=harv |last=Knowitall |first=Mister |coauthor=Squirrel, Rocket J. |publisher=Bullwinkle Industrial Publishing}} extra coauthor text
- — Makyen (talk) 01:39, 3 March 2014 (UTC)
- Excellent! This works. I did tweak them a bit so that a citation with
|ref=harv
and an empty|coauthor=
or|coauthors=
would not be modified so that the find rule could remove these empty parameters.
- Excellent! This works. I did tweak them a bit so that a citation with
- Thank you.
- —Trappist the monk (talk) 14:13, 3 March 2014 (UTC)
- It is pretty difficult to write a set of regexes that can handle all of the scenarios for this sort of task: what's required (and simplest to write when you know how) is a procedure in a custom module. There are a number of functions I've written within WikiFunctions in AWB for template manipulation. Rjwilmsi 09:42, 4 March 2014 (UTC)
- —Trappist the monk (talk) 14:13, 3 March 2014 (UTC)
- I suspect that you are correct. But, documentation or even examples of working custom modules that illustrate the basic how-to-use-custom-modules don't seem to exist. Do they? If so, where? Category:Pages containing cite templates with deprecated parameters has some 100,000 pages that need some sort of repair. Tools are needed to shrink the category's size. This script is my second tool and it is only getting the low hanging fruit.
- —Trappist the monk (talk) 13:47, 4 March 2014 (UTC)
- @Trappist the monk: Have you seen Wikipedia:AutoWikiBrowser/Custom Modules? GoingBatty (talk) 02:07, 5 March 2014 (UTC)
- @Rjwilmsi:As is usually the case, there are multiple ways to solve the problem of changing the parameter name as was desired. The specific question was about regexes. The methodology which I described is just one more tool to have available from which you can choose. It uses a few ideas which are good to know. For example: A)that when manipulating data you usually have the opportunity to use multiple steps. This allows breaking a problem down into smaller ones which are easier to solve. This is something we all forget to do, or don't think about doing sometimes. B)that every change you make to the data does not have get the data closer to the desired end product. C)that you don't have to keep the data looking perfect in every step of the process as long as you have a plan that lets you end up with data that is perfect. D)that under most situations if you are processing data, that data is yours to manipulate in the manner that makes it easiest for you to perform the task. If that means the data is not recognizable while you are processing it, that is not necessarily bad. What matters is where the data starts and where the data ends.
- @Trappist the monk: Have you seen Wikipedia:AutoWikiBrowser/Custom Modules? GoingBatty (talk) 02:07, 5 March 2014 (UTC)
- —Trappist the monk (talk) 13:47, 4 March 2014 (UTC)
- Custom modules, and the ability to pass data back and forth to another program, provide the ability to use whatever programming environment you desire to manipulate the page data. If there was already code available that parsed the wikitext and only called my function/method once for each template providing my function with an appropriate data structure containing parsed template parameters and then reassembled the template from the changed data structure I pass back to it, I might consider using it for the specific change which was requested. The choice would depend on multiple other factors. For example: Am I thinking that my changes might become more complex? How many pages am I expecting to manipulate? How much time is available which could be spent on coding vs. making changes? Are there other similar future problems which I expect to need to solve over which I can recoup the investment of coding a more general case solution? Are these changes attended, or unattended? Those are just a few of the things to consider when making a choice as to the methodology for solving the problem.
- Even given that I already have a good portion of basic template parameter parsing written and functional (but in JavaScript at the moment), there are a considerable number of problem spaces which I would solve in the manner described above by using the regex capabilities available in AWB. [NOTE: there is a full? wikitext parser available in Python, but I have not looked at it].
- For the question asked, and assuming a relative small number of pages, I probably would have solved it using regexes. For the problem now mentioned of 100k pages with a variety of different issues, I would certainly use one programming language or another. Given the integration of C# / .NET into AWB via Custom Modules, that is potentially the best method.
- Does anyone have a template parser already written as an AWB Custom Module? I know that when I was looking for such a parser a while ago, I did not find one. It is possible that I missed it.
- @GoingBatty:I have looked at the page Wikipedia:AutoWikiBrowser/Custom Modules multiple times in the past. The primary problem with it is that it does not actually say how to program an AWB Custom Module. How one does so has to be inferred from the examples provided. The examples imply that a function named
ProcessArticle
with specific arguments is called by AWB, but it does not actually say "this is how you do it", or "this is the support AWB is providing". In other words, there is no description of the API of how your code is called, or any hooks that are actually available which you might call. If I had actually had cause to program an AWB Custom Module, I would have added text to that page describing how it was done. However, I have not, yet, had a need to program a AWB Custom Module. Thus, I have not felt qualified to write a description of how to do it. — Makyen (talk) 03:47, 5 March 2014 (UTC)
- @GoingBatty:I have looked at the page Wikipedia:AutoWikiBrowser/Custom Modules multiple times in the past. The primary problem with it is that it does not actually say how to program an AWB Custom Module. How one does so has to be inferred from the examples provided. The examples imply that a function named
Customisation for the Chinese Wikipedia
The "autotagging" and "minor fixes" features are very useful in general, but because one or two of the rules will mess things up for the Chinese Wikipedia, I have to give it up entirely. Those include:
- Done Adding a space between </ref> and the next non-space character (there are no spaces in Chinese, even after the reference tag)
- Done Using the "date=" parameter rather than "time=" on maintenance tags
- Done Replacing [[分類:XXX]] with [[Category:XXX]]
Is there anyway I can customise these rules, either natively, or through a plugin? Is it possible to add a more customisable menu in any future updates? Yinweichen (talk) 17:24, 2 March 2014 (UTC)
Category namespace
Yinweichen for the last one: Does AWB replace the chinese word for "category" with the English one? Did you try the latest version? -- Magioladitis (talk) 18:29, 2 March 2014 (UTC)
- Yes to your question. (This is not really a problem, but the first two make the whole feature unusable.) I am using the latest version (5523). Is there such a menu, or a customisation file I can edit? One more problem: the bottom-right edit-box uses glyph width for the Latin alphabet, which makes Chinese characters clog and overlap together. Yinweichen (talk) 20:25, 2 March 2014 (UTC)
- Yinweichen In Chinese Wikipedia (zh.wiki) 分類 is a redirect for "Category". Check this for instance. The name used for category namespace in Chinise Wikipedia matches the English one. This is not the way the other wikipedias do it but still. -- Magioladitis (talk)
- Magioladitis I see. But as I said, that's the minor issue. What about the other two? Yinweichen (talk) 07:36, 3 March 2014 (UTC)
Dated templates
Yinweichen for the second one. Is "time=" used in all Chinese Wikipedias (zh, zh-classical, zh-min-nan, zh-yue)?
- According to this edit I see no time stamp added.
- Do you know which magic word is used? I tried 4-5 versions and none gives the wanted result.
- Moreover, checking the code of zh:Template:Uncategorized and zh:Template:Dead end I see they support both
|date=
and|time=
parameters. -- Magioladitis (talk) 08:35, 3 March 2014 (UTC)- Magioladitis I am not aware of the settings on the other zh variants. I presume they generally follow the zh Wikipedia. The trouble with timestamps is that time= supports formats "2014-03-03T21:54:14+00:00" and "2014-03-03", whereas date= only supports the Chinese year+month format "2014年3月". For new tags, the date= parameter is wrong. When fixing existing tags, the AWB tool does not recognise the time= parameter that's there, and adds the wrongly formatted date= parameter. Yinweichen (talk) 21:59, 3 March 2014 (UTC)
- Added in rev 9963 -- Magioladitis (talk) 09:42, 4 March 2014 (UTC)
- It works but there is something I need to check because I had to reparse to get the correct one. Otherwise it will show weird things. -- Magioladitis (talk) 09:53, 4 March 2014 (UTC)
- rev 9968 completes the addition and fixes various related problems. -- Magioladitis (talk) 12:37, 5 March 2014 (UTC)
- Magioladitis For {{unreferenced}}, AWB uses "time=", yet gives the Chinese date format, which should only be used for "date=". The documentation recommends the format: time={{subst:#time:c}} for most maintenance templates. Also, I've noticed that AWB tends to replace 2014-03-08T18:48:09+00:00 with 2014-03-08t18:48:09+00:00 (with a lower-case "t"). This seems to be a redundant feature. Yinweichen (talk) 18:49, 8 March 2014 (UTC)
- Yinweichen You did not mention time={{subst:#time:c}} before when I asked you about the magic work used. I'll try to fix it. -- Magioladitis (talk) 23:08, 8 March 2014 (UTC)
- Magioladitis For {{unreferenced}}, AWB uses "time=", yet gives the Chinese date format, which should only be used for "date=". The documentation recommends the format: time={{subst:#time:c}} for most maintenance templates. Also, I've noticed that AWB tends to replace 2014-03-08T18:48:09+00:00 with 2014-03-08t18:48:09+00:00 (with a lower-case "t"). This seems to be a redundant feature. Yinweichen (talk) 18:49, 8 March 2014 (UTC)
- Added in rev 9963 -- Magioladitis (talk) 09:42, 4 March 2014 (UTC)
- Magioladitis I am not aware of the settings on the other zh variants. I presume they generally follow the zh Wikipedia. The trouble with timestamps is that time= supports formats "2014-03-03T21:54:14+00:00" and "2014-03-03", whereas date= only supports the Chinese year+month format "2014年3月". For new tags, the date= parameter is wrong. When fixing existing tags, the AWB tool does not recognise the time= parameter that's there, and adds the wrongly formatted date= parameter. Yinweichen (talk) 21:59, 3 March 2014 (UTC)
rev 9980 should fix both lowercase problem and correct Chinese date format. Please confirm. -- Magioladitis (talk) 18:06, 9 March 2014 (UTC)
Language-specific rules for reference tags
This is the third issue: spaces are added after </ref>. The convention for Chinese Wikipedia is not to put a space before/after the reference tags. Yinweichen (talk) 20:53, 4 March 2014 (UTC)
- Yinweichen rev 9969 removes any space after closing ref. -- Magioladitis (talk) 22:30, 5 March 2014 (UTC)
- Magioladitis Please also remove any space after an empty ref, like <ref ...... />.Yinweichen (talk) 22:14, 8 March 2014 (UTC)
Yinweichen rev 10071 also removes any space after an empty ref. Please check. -- Magioladitis (talk) 07:41, 3 April 2014 (UTC)
Language-specific rules for external links
Also please remove spacing around external links, as the text inside and outside of the link should be directly connected Yinweichen (talk) 22:14, 8 March 2014 (UTC)
- Yinweichen does AWB add any spaces? -- Magioladitis (talk) 18:08, 9 March 2014 (UTC)
- Some examples where AWB tries to add a space before/after/around external links with text inside: zh:Aikatsu!偶像活動!, zh:中國時報, zh:中華民國國語, etc.Yinweichen (talk) 19:31, 10 March 2014 (UTC)
- Yinweichen rev 10072. Please check and confirm. -- Magioladitis (talk) 08:17, 3 April 2014 (UTC)
- Some examples where AWB tries to add a space before/after/around external links with text inside: zh:Aikatsu!偶像活動!, zh:中國時報, zh:中華民國國語, etc.Yinweichen (talk) 19:31, 10 March 2014 (UTC)
Character width in edit box
The bottom-right edit-box uses glyph width for the Latin alphabet, which makes the wider Chinese characters clog and overlap together. Yinweichen (talk) 04:11, 6 March 2014 (UTC)
- I think this is related to Wikipedia_talk:AutoWikiBrowser/Bugs#Fullwidth_characters_in_edit_box_are_not_really_fullwidth. -- Magioladitis (talk) 09:25, 6 March 2014 (UTC)
- It seems to be a long-standing problem. I'm looking forward to a fix in the near future. Yinweichen (talk) 16:58, 6 March 2014 (UTC)
Uncattemplate
User:Rjwilmsi when setting variables in Wikiregexes is there a way to force "uncattemplate" set to default if not set instead of having to add it in every case? -- Magioladitis (talk) 09:03, 3 March 2014 (UTC)
- @Magioladitis: That's already done, within the default section of the switch, WikiRegexes line ~228. Rjwilmsi 09:27, 4 March 2014 (UTC)
- User:Rjwilmsi if algorithm gets into a lang case then it will break and the default case will never be caught. -- Magioladitis (talk) 09:44, 4 March 2014 (UTC)
Other issues
Yinweichen I need you help to remove all red-links from zh:维基百科:AutoWikiBrowser/Template redirects. They make cause serious problems. -- Magioladitis (talk) 10:06, 4 March 2014 (UTC)
- Magioladitis Is there where AWB gets its tagging rules from? I will do my best to remove the bad links if necessary. Yinweichen (talk) 20:53, 4 March 2014 (UTC)
- Yinweichen the date/time issue will be fixed in the next release. I already added the new piece of code. You can always compile your own version of AWB and use the new changes immediately. For the purpose of "Template redirects" please read the instructions given in the page itself. -- Magioladitis (talk) 07:42, 5 March 2014 (UTC)
- I just finished the clean up. -- Magioladitis (talk) 11:37, 5 March 2014 (UTC)
- Thank you so much. Yinweichen (talk) 16:32, 5 March 2014 (UTC)
- I just finished the clean up. -- Magioladitis (talk) 11:37, 5 March 2014 (UTC)
- Yinweichen the date/time issue will be fixed in the next release. I already added the new piece of code. You can always compile your own version of AWB and use the new changes immediately. For the purpose of "Template redirects" please read the instructions given in the page itself. -- Magioladitis (talk) 07:42, 5 March 2014 (UTC)
Genfixes for Draft namespace
Which genfixes should be implemented for the Draft namespace? I suggest that any genfixes that work for mainspace be implemented for Draftspace, but would be interested in other people's opinions. Thanks! GoingBatty (talk) 02:36, 21 December 2013 (UTC)
Saving preferences
Hi,
When I save preference by clicking on the "Save settings" option of the "File" menu, I've some text which is saved with all my regex rules. This text is within <remove_></remove_> tags and contains a giant list of words. This makes it difficult to load preferences. Do you know where is from all this text whithin <remove_> tags? How avoid it? Thanks by advance for your answers, Automatik (talk) 02:47, 27 December 2013 (UTC)
- I added some test words to my settings file and loaded it, but was unable to see what effect they had. I suggest you open the settings file using a text editor such as Notepad++ and carefully remove the list of words, leaving only the <remove_></remove_> tags. Keep a backup! -- John of Reading (talk) 08:16, 27 December 2013 (UTC)
- That's what I did, but it is tedious to do every time. Automatik (talk) 18:30, 28 December 2013 (UTC)
Orphan tags should be moved to the talk namespace following RfC
Following the outcome of this RfC, orphan tags need to be moved to the talk namespace. Ramaksoud2000 (Talk to me) 04:33, 20 December 2013 (UTC)
- Related to this, I have proposed that the "suggestions may be available" link be changed so that it prompts the Find link tool to look for links to the article (instead of links to the talk page). I've updated Template:Orphan/sandbox for people to review. Thanks! GoingBatty (talk) 05:30, 21 December 2013 (UTC)
This is consensus only for the English Wikipedia. I suggest that AWB discontinuous orphan tagging for the English Wikipedia. -- Magioladitis (talk) 06:46, 21 December 2013 (UTC)
- Agreed! I also think that we should stop orphan-tagging with AWB. -(t) Josve05a (c) 13:37, 21 December 2013 (UTC)
- @Magioladitis: Would this also mean that we would stop orphan-untagging with AWB, or change AWB so that orphan-untagging could also happen on talk pages, or something else? GoingBatty (talk) 15:36, 21 December 2013 (UTC)
- @GoingBatty: we should stop. AWB does not provide a mechanism to do changes in talk pages when something happens on the main page. This is costly. -- Magioladitis (talk) 16:03, 21 December 2013 (UTC)
- @Magioladitis: OK, then I would request that you please don't remove the orphan-untagging from articlespace functionality until all the templates have been moved to talkspace. Thanks! GoingBatty (talk) 16:07, 21 December 2013 (UTC)
- @GoingBatty: to be honest, if I had participated to the discussion I would oppose the move. Tags on the talk for something happening to the article is a disaster. Everytime, we had something similar to the past it resulted to out-dated un-maintained tags. In the past we also had categories as "Place of birth unknown" in the talk page and then we switched them to the article. It is impossible to ask for an editor who finds that a page is orphan to go to the talk page and add the tag there. I think it was only a twist from those who want to see the template deleted. Moreover, the big problem is not the template but the 5% of Wikipedia articles that are not connected to any other page. We should encourage connectivity between pages instead of ignoring it. Image that this 5% is without disambiguation pages, SIA, etc. -- Magioladitis (talk) 16:35, 21 December 2013 (UTC)
- Orphan tagging is being removed from Twinkle too. Without Twinkle and AWB users tagging articles as orphans, I wonder how many will actually get tagged. GoingBatty (talk) 16:47, 21 December 2013 (UTC)
- @GoingBatty: to be honest, if I had participated to the discussion I would oppose the move. Tags on the talk for something happening to the article is a disaster. Everytime, we had something similar to the past it resulted to out-dated un-maintained tags. In the past we also had categories as "Place of birth unknown" in the talk page and then we switched them to the article. It is impossible to ask for an editor who finds that a page is orphan to go to the talk page and add the tag there. I think it was only a twist from those who want to see the template deleted. Moreover, the big problem is not the template but the 5% of Wikipedia articles that are not connected to any other page. We should encourage connectivity between pages instead of ignoring it. Image that this 5% is without disambiguation pages, SIA, etc. -- Magioladitis (talk) 16:35, 21 December 2013 (UTC)
- @Magioladitis: OK, then I would request that you please don't remove the orphan-untagging from articlespace functionality until all the templates have been moved to talkspace. Thanks! GoingBatty (talk) 16:07, 21 December 2013 (UTC)
- But does it really matter whether they get tagged or not? (OK, perhaps that puts me in or near the abovementioned group of "those who want the template deleted") There's just one crucial case: if an article at "Foo (disambiguator)" doesn't have a link from "Foo" (directly or via a chain", then we have a problem. That's a special case - and the article won't necessarily be an orphan as it may have other links - but to my mind is much more important than whether other articles have appropriate links to this one. Yesterday Red or Dead (novel) was not linked from Red or Dead. I think that's important, much more so than orphans!
- That said, I've have been happy to see the orphan tag left on the main article page but producing a hidden category rather than a visible banner, just as {{coord missing}} does. The reader really doesn't need to know that there aren't any incoming links, and the de-orphaning enthusiast editor could find them through the category. Job done. Unfortunately that was a minority view. PamD 17:19, 21 December 2013 (UTC)
- User:PamD to be honest I am disappointed that I did not participate in the discussion. Your proposal is better than the solution reached. -- Magioladitis (talk) 23:40, 21 December 2013 (UTC)
- Apparently there was a fair number of editors that did not get an opportunity to participate in the discussion. I'm still of the opinion that fragmenting the tags by putting some on one page and some on another is counter productive and a waste of everyone's time especially considering the amount of time it will take to fix all of the scripts and tools that place tags on pages and read those tags for various reasons. Technical 13 (talk) 01:56, 22 December 2013 (UTC)
- Yes, I did not get to voice my opinion, but I came to the exact same conclusion as PamD did upon reading the RFC. I did not know it was ongoing, otherwise I'd have voiced my opinion. If the solution retains all the functionality and doesn't involve setting a bad precedent, by all means, both parties win if it is a hidden category. Honestly, the people who are complaining about the problem are not the ones who will be involved in fixing it. I consider myself to be pretty on the ball about these things, but its obvious that the conclusion reached is based on several misconceptions. You know the whole WP:RANDY issue? This is sorta like that, not only is the end result demonstrably worse than a much more elegant and simple solution, but the solution reached by at least two of us (independently) has worked for a larger number of pages without upsetting anyone. This is a WP:COMMONSENSE thing, that RFC should hold no weight other than "no big orphan tags that muck up the page". So what if the better solution came a little bit late to the voting process - the end result of the RFC is still the same. Let's just be bold and do it this way... its the obvious better solution. ChrisGualtieri (talk) 05:21, 22 December 2013 (UTC)
I know it is a bit crazy but the reason I did not participate is that I was pretty sure this RfC will fail. The main argument has already failed many times: Wikipedia:Perennial_proposals#Move_maintenance_tags_to_talk_pages. Distinguish editors from readers is completely out of the idea I have for Wikipedia. For me every viewer is a potential editor. No articles are complete. Major or minor, issues should be fixed and articles should improve every day. -- Magioladitis (talk) 19:48, 22 December 2013 (UTC)
- To deal with the currently existing RfC result, some AWB users may want to move the tags. To facilitate this process, I'd suggest taking another look at a feature I requested four years ago to either perform a namespace-insensitive sort (a user could take a list of articles with Orphan tags, copy, convert to talk pages, paste original list, then sort so that each talk page immediately follows the corresponding article) or to take a list of articles and directly add each talk page to the list immediately after its article. MANdARAX • XAЯAbИAM 23:00, 22 December 2013 (UTC)
- Mandarax I will deal with the list as follows: I'll load pages from the tracking categories by month, I'll add the tag in the talk page and then I'll reload the list to remove it from the article. Since now is holidays I don't expect User:ReedyReedy or Rjwilmsi to do large scale programming for the next short period. -- Magioladitis (talk) 08:48, 23 December 2013 (UTC)
- This is still a terrible idea. I'll open an RFC for the alternate solution. With the better option there that doesn't break a perennial, it should be smooth sailing. ChrisGualtieri (talk) 05:56, 28 December 2013 (UTC)
- Mandarax I will deal with the list as follows: I'll load pages from the tracking categories by month, I'll add the tag in the talk page and then I'll reload the list to remove it from the article. Since now is holidays I don't expect User:ReedyReedy or Rjwilmsi to do large scale programming for the next short period. -- Magioladitis (talk) 08:48, 23 December 2013 (UTC)
- This is no longer necessary per the WP:VPR#Alternate idea? discussion. Thank you. Technical 13 (talk) 13:55, 2 January 2014 (UTC)
articletext
I have been passing the articletext to file for external processing. I attempted passing the article text as a parameter, but I could not get it to work that way. Any suggestions. Snowman (talk) 09:59, 14 January 2014 (UTC)
How can I identify the changes that apply at Wikia
Through trial and error I have found that some general fixes do not apply to Wikia and some are specific to Wikia. I have read through the instructions, manual and the archives to see if such a list exists but cannot find it. Does anyone have a list of what works at Wikia and what doesn't? Reguyla (talk) 23:23, 25 January 2014 (UTC)
Error in Database Scanner?
Hello, I am trying to generate a long list of all articles not containing a word and it doesn't work. I have the backup file: rowiki-20140209-pages-articles.xml - 1.3 GB.
- If I try to find all articles containing "zuma", I get a list of 1687 articls, so it works
- If I try to find all articles containing "a", I get a list of 32.704 articles - that's too short. In total, Romanian Wikipedia has 241.360, most of them should contain the letter "a".
- If I try to find all articles NOT containing "DEFAULTSORT", I get a list of 31.955 articles - and there should be at least 150.000 articles not containing "DEFAULTSORT"
How can I make it work? Thanks. — Ark25 (talk) 10:58, 3 March 2014 (UTC)
- @Ark25: On the database scanner's "Searching" tab there is a numeric field "Limit results to", which defaults to 30,000. I don't know exactly how that limit works - the one time I ran into it, I ended up with a list slightly over 30,000. Did you increase that limit before beginning the scan? -- John of Reading (talk) 13:53, 3 March 2014 (UTC)
- I didn't know about that option, sorry. It works now, thank you! — Ark25 (talk) 07:18, 4 March 2014 (UTC)
- @Magioladitis: Perhaps we should change the database scanner to show "n results [30,000]" if the search limit is set, so that it's clearer a limit is in place? Rjwilmsi 09:37, 4 March 2014 (UTC)
- I didn't know about that option, sorry. It works now, thank you! — Ark25 (talk) 07:18, 4 March 2014 (UTC)
@Reedy: I wonder if this happens to editors with apihighlimit too or not. -- Magioladitis (talk) 10:18, 4 March 2014 (UTC)
Smart Quote replacement?
Hello! I'm an AWB n00b. Day 3. Please be gentle. Is there any way to easily replace smartquotes “ ” ‘ ’ with their straight quote equivalents, per MOS:QUOTEMARKS? A straight find and replace is a little hairy because occasionally smartquotes matter in URLs, (curly / straight) and potentially other places I haven't yet figured out. Thanks, Cyphoidbomb (talk) 19:36, 4 March 2014 (UTC) Wait, is that what the checkboxes for "ignore external/interwikilinks, images, nowiki, math and and ignore templates, refs, link targets and headings" are for? Cyphoidbomb (talk) 20:12, 4 March 2014 (UTC)
- Search and replace. I think, but I'm no expert, that curly quotes are not allowed in URLs. Mr Stephen (talk) 20:44, 4 March 2014 (UTC)
Feature idea
Main options are in there already.
I could use this feature. Say, in AWB I have made a page list to be edited. I can filter it in some ways already. Could there be features that says & does:
- "turn all pagenames into their Talk page"
- "turn all pagenames into their Subject page"
- "Make the list to contain all subjectpages and all talkpages of the {PAGENAME}}" (this may ~double the number of pages then).
I could use it to sweep WikiProject pages (as their talkpages are listed in the categories). -DePiep (talk) 08:25, 5 March 2014 (UTC)
- DePiep the first one is already done. -- Magioladitis (talk) 08:32, 5 March 2014 (UTC)
- (e/c) For the first two, right click in the list and select "Convert to talk pages" or "Convert from talk pages". For the third, I suggest you experiment with copying the list, then converting it, then pasting in the original list. -- John of Reading (talk) 08:35, 5 March 2014 (UTC)
- Yep, found it (I only looked at the filter, not the menu). Thanks. -DePiep (talk) 08:39, 5 March 2014 (UTC)
Is there a way to flag text/phrases for evaluation?
Hi, I'm curious if there's a way to flag text/phrases for evaluation. For example, per WP:EUPHEMISM, articles shouldn't contain "passed away" when we mean "dead". But a recurring find/replace can't be used, because sometimes "passed away" appears in quotations or in citations, and so on. Is there a way to configure AWB to highlight a phrase so that I could then evaluate if if it needs to be changed manually? Thanks, Cyphoidbomb (talk) 17:09, 5 March 2014 (UTC)
- Isn't this how all AWB edits work? (Except for those made through bot accounts) If you configure AWB to find "passed away" and replace it with "died", then the software will show you the diff of each edit you are about to make. It's up to you to evaluate the proposed edit and either click "Skip" or "Save". -- John of Reading (talk) 17:34, 5 March 2014 (UTC)
- John of Reading Howdy! I'm new to AWB, but your point is noted. Seems to me though, that if the default is to find/replace, and if it requires me to UN-select before saving, there is a greater potential for damage if I don't happen to catch the change. In contrast, if the software highlighted key phrases, a manual change would require some active concentration. And to pre-empt any warnings, obviously I know that active concentration should be in place while using AWB--I just mean that some form of word/phrase flagging would be convenient--find without replace. Cyphoidbomb (talk) 18:24, 5 March 2014 (UTC)
- @Cyphoidbomb: OK, this is possible but I think you'll find this is more work overall. At the bottom right of the "Start" tab there are some "Find" controls, and on the "Options" menu an option to "Highlight Find matches". With those you could arrange for the words "passed away" to be highlighted in yellow in each article, leaving you to make the edit manually each time. You would also need to untick all the "No changes are made" checkboxes on the "Skip" tab. -- John of Reading (talk) 22:07, 5 March 2014 (UTC)
- Awesome, I'll give it a shot, thank you! I appreciate your patience. I just don't want to mess up too badly while I learn the program. :) Cyphoidbomb (talk) 17:15, 6 March 2014 (UTC)
- @Cyphoidbomb: OK, this is possible but I think you'll find this is more work overall. At the bottom right of the "Start" tab there are some "Find" controls, and on the "Options" menu an option to "Highlight Find matches". With those you could arrange for the words "passed away" to be highlighted in yellow in each article, leaving you to make the edit manually each time. You would also need to untick all the "No changes are made" checkboxes on the "Skip" tab. -- John of Reading (talk) 22:07, 5 March 2014 (UTC)
- John of Reading Howdy! I'm new to AWB, but your point is noted. Seems to me though, that if the default is to find/replace, and if it requires me to UN-select before saving, there is a greater potential for damage if I don't happen to catch the change. In contrast, if the software highlighted key phrases, a manual change would require some active concentration. And to pre-empt any warnings, obviously I know that active concentration should be in place while using AWB--I just mean that some form of word/phrase flagging would be convenient--find without replace. Cyphoidbomb (talk) 18:24, 5 March 2014 (UTC)
2 questions
Hello!
- Is there any way to resize the Multi-wikilinks box? I find it too narrow to be of any significant use.
- I've set up some find/replace rules for various things, for example I (with some exceptions) typically replace "passed away" to "died". AWB includes this change in the edit summary, but I would like to append "per WP:EUPHEMISM" so that other editors can understand my rationale. Is there any way to do this? I generally like to nod to the policy/guidelines/MOS in my summaries. Thanks y'all, Cyphoidbomb (talk) 19:46, 19 March 2014 (UTC)
- Cyphoidbomb, for #2, at the top of AWB, goto Options -> Default Edit Summaries. Add your summary and then save your settings so the summary will appear the next time you start up AWB. Any summaries you save will now show up in the "Default Edit Summary" box in the start tab. When using Find/Replace, AWB will append to the end of your edit summary with what was replaced. Bgwhite (talk) 21:18, 19 March 2014 (UTC)
- I believe the question was intended to ask if there was a way to add additional predefined text when a specific F&R rule was used. Such text being in addition to the text automatically added showing the replacement. It was so a link could be provided to the specific WP guideline which detailed that such change should be made. As it is, Cyphoidbomb would have to manually the edit summary, or manually select a predefined complete edit summary. I assume there are multiple rules being used at once. To have an edit summary which described all the edits Cyphoidbomb would have to define an edit summary for each possible combination of edits. This would rapidly get out of hand with only a few F&R rules.
- @Cyphoidbomb: I am not aware of any way to do #2. Perhaps you should file a feature request. As to #1, I do not see a way to resize that section of the user interface. Perhaps this should be another feature request. — Makyen (talk) 21:54, 19 March 2014 (UTC)
- Ah, I think you've all answered aspects of my question, thank you. I think I'll go the feature request route. Much obliged, thank you! Cyphoidbomb (talk) 21:58, 19 March 2014 (UTC)
- Cyphoidbomb, for #2, at the top of AWB, goto Options -> Default Edit Summaries. Add your summary and then save your settings so the summary will appear the next time you start up AWB. Any summaries you save will now show up in the "Default Edit Summary" box in the start tab. When using Find/Replace, AWB will append to the end of your edit summary with what was replaced. Bgwhite (talk) 21:18, 19 March 2014 (UTC)
Changing the contents of templates Inside templates
I have an AWB script that uses "Advanced settings" and the option type "Inside templates {{...}}" in there I am looking for templates that contain "cite web" I want to replace all instances of a space with a "£" (an example, not for use in article space but for this test). That I can manage and it works fine for most cases. However in some instances {{cite web}} is within another template eg an {{Infobox}} and that is proving difficult.
This is causing problems for me because I do not want to format the content of the {{Infobox}}
but I do want to format the content of {{cite web}}
within the Infobox, so a simple string in the "if box" of the advance setting of cite web is of course picked up as a string in the {{Infobox}} and the script formats all of it, so the simple solution will not work.
It seems to me that the regular expression for start of line ^ (hat) does not work as start of template string indicator so ^cite web is not an option (I may be mistaken about this -- if so then the solution is simple).
I have tried another trick: to place cite web in an "if box" of a rule and then use a sub rule with an "if not" <ref or similar (The idea being that a {{cite web}}
template will not contain a ref tag but if {{cite web}}
is placed within another template then that template will probably contain a reference tag just before the {{cite web}}
starts).
That does not work as I thought it might. Indeed I can get some very funny results when testing this. If an identical {{cite web}}
template with identical fields exist inside and outside the {{Infobox}}
then the it changes it as expected. But if as little as one byte varies between the two instances of {{cite web}}
it does not work.
The simple solution would be if "Inside templates {{...}}" had a start of string ability but as far as I can tell it does not. So can someone please suggest a simple solution.
P.S. an example article in article space that I wish to run AWB over is Old Chappaqua Historic District (which contains two {{cite web}}
templates inside an {{Infobox nrhp}}
template).
-- PBS (talk) 10:22, 13 March 2014 (UTC)
- Anyone have any ideas? -- PBS (talk) 10:10, 24 March 2014 (UTC)
- I think Advanced settings is buggy at the moment so I can't help on that :( . -- Magioladitis (talk) 10:36, 24 March 2014 (UTC)
Yobot and "See also"
Yobot keeps on changing "Related topics" to "See also"...sorry, Related topics isn't wrong and no policy discourages the use of that section title, no matter how many times Yobot persists to change it. Just because MOS:SEEALSO says "The most common title for this section is "See also", doesn't mean it is the only title and Yobot should not be changing a perfectly acceptable section title referred to elsewhere in the MOS to demand an artificial uniformity. Nothing in ANY policy or guideline says "See also" is the only "approved name". FYI, if you go back in time, the MOS:SEEALSO section used to be named "See also" and "Related topics" sections, and I direct you to this page: [1]. --ColonelHenry (talk) 21:41, 24 March 2014 (UTC)
- "See also" is the only one mentioned on WP:ORDER and MOS:SEEALSO. As WP:MOS states for a reason for MOS, "Consistency in language, style, and formatting promotes clarity and cohesion." Readers expect the "See Also" section because 99.9% of all pages only use "See also". Using only "See also" brings consistency of style and formatting. To go against MOS and common style, there must be a good reason to do so. Just because you like "Related topics" is not a good reason. Using the term readers expect is the common sense format, not something readers don't expect. Bgwhite (talk) 22:17, 24 March 2014 (UTC)
- I prefer the "See also" too per WP:KISS. Of course if there is a See also section and another section should be added, Related topics is a good name for that. -- Magioladitis (talk) 23:16, 24 March 2014 (UTC)
- Can I have some statistics that 99.9% of pages use "See also"? Especially since one policy I mentioned above used to include "related topics" in the relevant section name and another active MOS guideline doesn't mention "See also" when discussing "Related topics" sections -- and since "See also" is an awkward construction to non-English speakers and in some regional English variants. Or, Bgwhite, is this just another logical fallacy appealing to a false assertion in the spirit of 500% of statistics are exaggerated.--ColonelHenry (talk) 14:39, 25 March 2014 (UTC)
Proposed new feature request status
Since there are a bunch of feature requests that have no replies, I am proposing some way to differentiate between new feature requests that have never been replied to or looked at and feature requests that have not received a response in terms of technical feasibility but have some discussion. This would come with a modification of the feature request template to make requests with a "new" status more eye-catching, and the addition of a new status, "checked" (or whatever) to signify that this request has been discussed. If this were added, it would make it much easier to identify requests that have been hanging around for a while with no comments or discussion. Thoughts? APerson (talk!) 02:28, 26 March 2014 (UTC)
Automating sort keys "by year"
I placed this as a bot request, but, for the moment, I was wondering whether AWB can help me.
The specific bot request I made was to do things such as:
For example, would it be appropriate for a bot to change the sort key of Category:Manufacturing companies established in 1897 in Category:Manufacturing companies by year of establishment to "1897".
I can select the categories in Category:Manufacturing companies by year of establishment, but is there a function to automatically add/change the sort key? — Arthur Rubin (talk) 18:18, 23 March 2014 (UTC)
- You may want to post at Wikipedia:AutoWikiBrowser/Tasks, which is specifically for requesting that tasks be done with the use of AWB. APerson (talk!) 02:32, 26 March 2014 (UTC)
Update to the live CS1 module week of 2014-03-23
In about a week's time I intend to update these files from their respective sandboxes:
- Module:Citation/CS1 (diff);
- Module:Citation/CS1/Configuration (diff);
- Module:Citation/CS1/Whitelist (diff)
The update makes these changes to Module:Citation/CS1:
- Add PMC error checking; (discussion)
- Fixed a circa year date validation bug; (discussion)
- Add url in |authorlink parameter error checking; (discuassion and discussion)
- Expand DOI error checking; (discussion)
- Fix longstanding bug that broke citation terminal punctuation if the value assigned to |postscript= is multicharacter (like html entities); Moved citation template's default assignments for |separator=, |postscript, and ref=harv from the invoking template into the module; Added support for |postscript=none; (discussion)
- Limit acceptable years in dates to current year+1; (discussion)
- Expand date validation; all allowable date formats should now be supported; (discussion)
- Migrate cite interview; (discussion)
- Move date validation code into a separate page Module:Citation/CS1/Date validation;
- Extract page numbers from external wikilinks in any of the |page=, |pages=, or |at= parameters for use in COinS; discussion)
- Add lccn error detection; (discussion)
- Migrate cite AV media notes; (discussion)
- Migrate cite DVD notes; (discussion)
to Module:Citation/CS1/Configuration:
- PMC error checking;
- url in |authorlink parameter error checking;
- Move |postscript= and |separator= default initialization into Module:Citation/CS1/sandbox;
- Add subject and subject link for cite interview migration;
- Add artist, albumlink, albumtype, notestitle, publisherid for cite AV media notes migration;
- Add lccn error detection;
- Delete albumtype; merge deprecated parameters albumlink, artist, director, notestitle, publisherid, titleyear as aliases of other parameters; remove these parameters after 1 October 2014;
to Module:Citation/CS1/Whitelist:
- Add subject and subjectlink for cite interview migration;
- Add artist, albumlink, albumtype, notestitle, publisherid for cite AV media notes;
- Invalidate albumtype; deprecate artist, albumlink, director, notestitle, publisherid, titleyear; these last to be invalidated after 1 October 2014;
—Trappist the monk (talk) 11:55, 25 March 2014 (UTC)
Corrected item 5 for Module:Citation/CS1 to read: Added support for |postscript=none;
—Trappist the monk (talk) 12:55, 25 March 2014 (UTC)
- Done.
Bot reversal possible?
I want to self-reverse a 600 AWB edit series. Is there a specialised bot or do I go to WP:BOTREQUEST? (third option is: going manual). -DePiep (talk) 09:47, 1 April 2014 (UTC)
- I am not aware of any such bot. However, if you have rollback and they are the latest edits you can at least open the contributions page and have a single click per each action. Rjwilmsi 12:57, 1 April 2014 (UTC)
- @DePiep: Try talking to a friendly admin about their "nuke contribs" option. -- John of Reading (talk) 16:28, 1 April 2014 (UTC)
- LOL, no special:nuke permission for me. I'll resort to botrequest or biological arms: a mouse & some fingers. thx you both. -DePiep (talk) 16:51, 1 April 2014 (UTC)
Replace all content?
I'm using Autowikibrowser on another wiki and want to know if there is a way to replace all the content on a page with a template - I'm replacing text on multiple categories with a template and would like to know if this task can be automated. NemesisAT (talk) 20:47, 1 April 2014 (UTC)
- NemesisAT use regex to replace "." with the template. -- Magioladitis (talk) 21:10, 1 April 2014 (UTC)
- Thank you! NemesisAT (talk) 21:29, 1 April 2014 (UTC)
Help to replace
This discussion was started on 3 pages. See WP:MULTI.
The discussion has been consolidated to Wikipedia talk:AutoWikiBrowser/Find and replace#Help to replace |
---|
Hello. I want to remove a template. The templates has different names in it. For example:
I want to remove {{ft| and }} to have only TEAM1 TEAM2 TEAM3 I can easily remove with find and replace the {{ft| but I can't do anything with the }}. Any suggestions? Xaris333 (talk) 16:51, 12 April 2014 (UTC)
|
Does this violate the 'no useless edits' rule?
[2] simply placed the existing project banners on an otherwise-empty talk page in a shell. --NE2 18:53, 14 April 2014 (UTC)
- Ping Josve05a. (t) Josve05a (c) 19:21, 14 April 2014 (UTC)
- Thanks Josve05a for pinging me! (t) Josve05a (c) 19:21, 14 April 2014 (UTC)
- I think adding the shell is considered to be something acceptable and it is done by a bot anyway. -- Magioladitis (talk) 19:40, 14 April 2014 (UTC)
- No violation. It actually makes your talk page attractive, if you have got multiple projects added to it. OccultZone (Talk) 20:03, 14 April 2014 (UTC)
- Adding the template follows the documentation at Template:WikiProjectBannerShell. GoingBatty (talk) 03:35, 16 April 2014 (UTC)
- No violation. It actually makes your talk page attractive, if you have got multiple projects added to it. OccultZone (Talk) 20:03, 14 April 2014 (UTC)
- I think adding the shell is considered to be something acceptable and it is done by a bot anyway. -- Magioladitis (talk) 19:40, 14 April 2014 (UTC)
- Thanks Josve05a for pinging me! (t) Josve05a (c) 19:21, 14 April 2014 (UTC)
Cite book date - Year
I started this discussion at User talk:Bgwhite#AWB: cite book, where a number of people chimed in, but it seems to be not user-related but purely AWB related, so better to have it here.
According to Template:Cite book, there is no rule to automatically change the parameter "date" to "year" when only the year is given (there may be a reason to do so on individual article basis). However, this is a standard AWB change. Note that the "year" parameter isn't even present in the standard "cite" tool in the editing toolbox, so it seems strange that a parameter you can't choose on the one hand, should be the obligatory one for AWB on the other hand.
I would suggest changing AWB so that it no longer makes this change, but perhaps there are convincing arguments to the contrary... Fram (talk) 12:48, 22 April 2014 (UTC)
- The Citation Style 1 templates that are supported by the various editors (
{{cite web}}
,{{cite news}}
,{{cite book}}
,{{cite journal}}
) are rendered into proper citations by Module:Citation/CS1. Before that tool was developed, CS1 templates were rendered by{{citation/core}}
. There were certain limitations in{{citation/core}}
that required separate|year=
and|date=
parameters when used with{{sfn}}
and the{{harv}}
family shortform citation templates. The restriction was necessary particularly when disambiguating the year when an author published multiple works in the same year. With Module:Citation/CS1 those limitations no longer apply. Except for the six, soon to be five, CS1 citations that still use{{citation/core}}
,|year=
is no longer required.
- I think that, as a general fix, changing
|date=
to|year=
, even when it contains only a year value, is unnecessary.
- —Trappist the monk (talk) 13:25, 22 April 2014 (UTC)
- Sources? If it is a year, it should be year. If there is a date, it must include date, month, year. I don't see anything wrong with that, I really appreciated such type of AWB setting. OccultZone (Talk) 15:57, 22 April 2014 (UTC)
- Previously, month and year were recorded separately. Now they are recorded together in a single date parameter, and the "month" and "day" parameters are deprecated. In future "date" will hold either a full or partial date. There's a table listing the acceptable formats. -- 79.67.241.210 (talk) 16:10, 22 April 2014 (UTC)
- Sources? If it is a year, it should be year. If there is a date, it must include date, month, year. I don't see anything wrong with that, I really appreciated such type of AWB setting. OccultZone (Talk) 15:57, 22 April 2014 (UTC)
- Did you mean this table: CS1 compliance with Wikipedia's Manual of Style?
- Sources for what? When is a year not a date? Would you have a separate parameter for month and year or season and year combinations? All are dates.
- In the cases where the citation is handled by Module:Citation/CS1 and where
|date=
is empty, CS1 concatenates the individual parameters|day=
,|month=
, (yes, those two are still out there) and|year=
into an internal variable calledDate
. When|date=
is not empty, its value is assigned to the variableDate
so when there is only one of|date=
or|year=
both are treated identically. FromDate
CS1 makes theCITEREF
anchor used by{{sfn}}
and the like.Date
is also the source for the date included in the citation's COinS metadata.
- In the cases where the citation is handled by Module:Citation/CS1 and where
- Because of the limitations I mentioned in the previous post, citations with both
|date=
and|year=
still exist. When a CS1 citation contains both, if|ref=harv
then CS1 uses|year=
to make theCITEREF
anchor. It does this for compatibility because in the old{{citation/core}}
days, year disambiguation could not use the value in|date=
.
- Because of the limitations I mentioned in the previous post, citations with both
- But, all of this is not really relevant to the point of this discussion. The question is: Should AWB general fixes change
|date=
to|year=
? To which my answer is: no. It is ok to continue to use|year=
if you'd like; it is still an active and valid CS1 parameter. I think that ultimately,|year=
should go away because like|day=
and|month=
it will have outlived its usefulness. But that is a topic for another day.
- But, all of this is not really relevant to the point of this discussion. The question is: Should AWB general fixes change
- —Trappist the monk (talk) 16:32, 22 April 2014 (UTC)
- rev 10083 Following Lua conversion of citation templates, no longer necessary to rename date parameter to year for Harv support when date is just a year value Rjwilmsi 17:32, 23 April 2014 (UTC)
- —Trappist the monk (talk) 16:32, 22 April 2014 (UTC)
category check
Is there some way to do the following: 1) Check on whether a category I am about add to an article exists or not so if it does not exist, I can go create the category first or correct my edit; or 2) Check whether a category already in an article exists or not so if it does not exist, I can go create it when warranted. Thanks. Hmains (talk) 23:17, 25 April 2014 (UTC)
Load previous version of an article?
Is it possible to load a previous version of an article into AWB for debugging purposes? Thanks! GoingBatty (talk) 13:26, 27 April 2014 (UTC)
- GoingBatty, Only way I know how is to copy the previous version into your sandbox. Bgwhite (talk) 05:31, 28 April 2014 (UTC)
Wrong correction of <h6> to ;...
Some days ago I edited the section "List of allowed URL characters" of the article Uniform resource locator where I changed ;...
to <h6>...</h6>
(see my edit). Afterwards User:Bgwhite reverted my edit with the reason to convert HTML to Wikicode. But ;Something
does not generate <h6>Something<h6>
, it generates the HTML:
<dl><dt>Something</dt><dl>
The tag dl represents a definition list and dt is the term which should be defined. So ;...
is not the same as <h6>...</h6>
! From Wikipedia:Accessibility:
Do not make pseudo-headings using bold or semicolon markup. Screen readers and other machines can only use correctly formatted headings...
I guess the mentioned rule #26 in Wikipedia:AWB has to be altered to avoid wrong transformations of HTML to Wikicode. Greetings Stephan Kulla (talk) 00:09, 28 April 2014 (UTC)
- Why not just use WP headings for a subsection, like "=== Unreserved ===" and avoid both the pseudo-headings and HTML? Chris the speller yack 02:43, 28 April 2014 (UTC)
- Stephan Kulla. You are confusing many things. AWB and WP:CHECKWIKI are different projects. Don't associate the two together.
<h6>
*is* html that should be avoided. It was converted to wikicode, thus the edit summary is correct. Editors should not have to know html and wikicode to edit pages. Also,<h6>
is a section header. You had a level 2 heading followed by a level 6 heading. This is strictly forbidden in WP:ACCESSIBILITY#Headings. Bgwhite (talk) 05:30, 28 April 2014 (UTC)
Does AWB do cleanup of repetitive citations?
What is the proper tool to learn to use to clean up articles which repeat citations, such as the current version of Lester Breslow? In that article a few citations are generated repeatedly whereas the references ought to be named. Is it a function of AWB to condense these to one? If not AWB, is there any tool which does this? Thanks. Blue Rasberry (talk) 13:49, 28 April 2014 (UTC)
- Yes, AWB can do this. I've made an edit. -- John of Reading (talk) 15:00, 28 April 2014 (UTC)
- Specifically, see AWB's general fixes for Duplicate Named References and Duplicate Unnamed References. GoingBatty (talk) 16:54, 28 April 2014 (UTC)
- @J. Johnson: As long as we're already talking about this, I think you mentioned on my bot's talk page that you had a concern about this functionality. Care to elaborate? GoingBatty (talk) 16:58, 28 April 2014 (UTC)
Development
Why is it developed on SourceForge through SVN, and not via Bugzilla/Git/Gerrit? --Ricordisamoa 22:38, 30 April 2014 (UTC)
- Ricordisamoa mainly for legacy reasons. -- Magioladitis (talk) 22:43, 30 April 2014 (UTC)
- Are you saying it's legacy software? Or that its developers wouldn't succeed in migrating it? --Ricordisamoa 01:15, 1 May 2014 (UTC)
- Ricordisamoa mainly for legacy reasons. -- Magioladitis (talk) 22:43, 30 April 2014 (UTC)
Wikidata
Could it be possible to use AWB to fill Wikidata items with the Wikipedia labels? Also, are there plans to enable AWB for Wikidata? Jane (talk) 11:04, 3 May 2014 (UTC)
Request to expand #4 of AWB rules and include a behavioural guidelines
User:OccultZone Another editor is making many minor/insignificant edits using AWB. I tried talking to him at User_talk:OccultZone#.23_4. A couple of weeks ago, I wrote an essay "AWB spammer" then had it deleted because it became too much aggressive. Please consider adding AWB behavioural guidelines. Tito☸Dutta 08:18, 10 May 2014 (UTC) removed name to highlight the suggestion. Tito☸Dutta 08:21, 10 May 2014 (UTC)
- Hi, as a semi-new-ish user of AWB, I don't understand what the beef is here and I know that I'd personally benefit from understanding the background (i.e. the presumably discussion-based rationale) that led to the rule. (I really wish that policy/guideline/MOS pages actually linked to the discussions that led to the rules...) Though I'm not an AWB power-user, when I do use it, sometimes one of my find/replace filters will only find minimal problems on a page, say, to change smart quotes to straight quotes per the MOS. I would probably consider that both minor and insignificant, but it does improve the consistency of the project. Should I not do that? Is that a misuse of the tool? Are there specific examples that you're asking to include in this proposed expansion of the behavioral guidelines? Cyphoidbomb (talk) 08:31, 10 May 2014 (UTC)
- Hi Cyphoidbomb, the aim should be to help the encyclopedia. If "I" am making thousands of edits just to increase my edit count, it is not acceptable. I have checked some of your, AWB edits. You are doing fine.
I mean edit like this, and if someone keeps on making many such edits, that becomes annoying. --Tito☸Dutta 08:42, 10 May 2014 (UTC)
- I know that usually happens when too many edits are made. I understand that they should be avoided too. But I am not certain about the rules that you want. Like what it should be? A minimal change still happens to be a change. There should be something like "You cannot make edit if its less than 5 bytes" or something like they do on forums? That is what I thought right after checking your post here. Although like I said, I would like to hear what type of rule you want. OccultZone (Talk) 08:46, 10 May 2014 (UTC)
- Not rule, behavioural guidelines, starting with "you are recommended not to. . ." :) Tito☸Dutta 08:56, 10 May 2014 (UTC)
- It really is irritating when my watchlist keeps coming up with edits like this one. There's clearly scope for misinterpreting what counts as an inconsequential edit. Cyphoidbomb mentioned changing curly quotes to straight quotes: that's a good edit because it has a constructive effect on the rendered page, so that what the reader sees is more MoS-compliant than it was before.
- One thing we need IMO under "you are recommended not to" are examples of inconsequential edits: things like changing underscores in pagenames to spaces, moving a tag when that positional change has no effect on what the reader sees, "fixing" working redirects, removing odd bits of whitespace. With a reminder that however many inconsequential changes AWB suggests for a page, we're recommended not to do them unless at the same time we make a significant edit that does have a constructive effect on the rendered page. cheers, Struway2 (talk) 10:01, 10 May 2014 (UTC)
- To me it is very clear that #4 includes the above example edits. It says: "An edit that has no noticeable effect on the rendered page is generally considered an insignificant edit. If in doubt, or if other editors object to edits on the basis of this rule, seek consensus at an appropriate venue before making further edits."
- A. Changing the underscores to spaces has no noticeable effect on the page and thus is clearly an insignificant edit. B. An editor objected on the basis of that rule. It is then required of the editor desiring to make such edits to stop making them and "seek consensus at an appropriate venue before making further edits."
- While more explanation for #4 might be desired, the current issue is that the rule is clearly not being followed both in that it should have been known prior to the edits that they fell under the description of inconsequential and that the process required when an editor objects was not being followed.
- If what was desired for the project was to just have AWB general fixes applied to articles in mass then that is what bots are for. — Makyen (talk) 11:02, 10 May 2014 (UTC)
- I agree. He replied here in this thread at 8:46, then he made this edit, one whitespace removal, one link to a dab page. I don't know why he removed portals here. anyway, whatever the reason is, edit summary is incomplete. This is not the best type of edits, where one adds persondata (actually AWB automatically generates it, so, no work here), but does not fill "short description" as it takes few seconds to do it manually. --Tito☸Dutta 11:29, 10 May 2014 (UTC)
- "Portal" shouldn't be used, but "portalbar", and it should be in footer of see also, not before the "see also". OccultZone (Talk) 11:38, 10 May 2014 (UTC)
- OccultZone you did not move the portal but deleted it. It was an AWB bug that is now fixed and bots would not do that bug. -- Magioladitis (talk) 12:01, 10 May 2014 (UTC)
- "Portal" shouldn't be used, but "portalbar", and it should be in footer of see also, not before the "see also". OccultZone (Talk) 11:38, 10 May 2014 (UTC)
- I know that usually happens when too many edits are made. I understand that they should be avoided too. But I am not certain about the rules that you want. Like what it should be? A minimal change still happens to be a change. There should be something like "You cannot make edit if its less than 5 bytes" or something like they do on forums? That is what I thought right after checking your post here. Although like I said, I would like to hear what type of rule you want. OccultZone (Talk) 08:46, 10 May 2014 (UTC)
- Hi Cyphoidbomb, the aim should be to help the encyclopedia. If "I" am making thousands of edits just to increase my edit count, it is not acceptable. I have checked some of your, AWB edits. You are doing fine.
Haven't denied that. But yes, I knew that it hasn't been composed properly. OccultZone (Talk) 12:05, 10 May 2014 (UTC)
- OccultZone OK the problem is the following: Many of us make a lot of edits but a) you should always go back and fix your mistakes before moving especially when you get warning from bots like Bracketbot b) you should not save when you see an obvious bug c) you should always report bug in software d) you should show evidence that you check your edits e) you should interact with other editors. -- Magioladitis (talk) 12:08, 10 May 2014 (UTC)
- Surely. :=) OccultZone (Talk) 12:11, 10 May 2014 (UTC)
New snapshot on sourceforge
I've uploaded a new snapshot to sourceforge here, rev 10102. It is a release build. The official AWB 5.5.2.4 release will be made in the next couple of week. Thanks Rjwilmsi 10:47, 8 May 2014 (UTC)
- The new handling after a double click in the diff window, where you now stay in the same place rather than returning to the top, is wonderful! Thanks for all of the hard work that the AWB team puts in – I see that you reached the milestone of ten thousand revisions about seven weeks ago. MANdARAX • XAЯAbИAM 05:36, 11 May 2014 (UTC)
Filter
I can't for the life of me figure out how to filter pages from the list without running individual "Apply" operations on single words. For example, if I want to filter out all titles containing "sandbox" and all titles containing "noticeboard", I have to do two filter operations. Is there any way to filter the list based on excluding any of several words? I've tried "sandbox OR noticeboard", etc., to no avail. A little more documentation on the "Filter" feature would be appreciated. Thanks!—D'Ranged 1 talk 00:10, 18 May 2014 (UTC)
- On the "List Filter" popup at the bottom center of the "Title" grouping box there is a checkbox that says "Regular expression". If you check that you can use regular expressions in the "Remove titles containing" and "Keep titles containing" fields. The short version of regular expressions for what you want is that OR is indicated by a "|" (pipe) character. — Makyen (talk) 03:37, 18 May 2014 (UTC)
- You could try adapting the example in the collapsed box here, as some of those exclusions might be relevant for whatever you are doing. -- John of Reading (talk) 06:41, 18 May 2014 (UTC)
- Thank you both so much! Very helpful; much appreciated.—D'Ranged 1 talk 09:39, 18 May 2014 (UTC)
- You could try adapting the example in the collapsed box here, as some of those exclusions might be relevant for whatever you are doing. -- John of Reading (talk) 06:41, 18 May 2014 (UTC)
Rules of use
This section currently has five points. I suggest we remove the sentence 'The Wikipedia tenet "be bold" is not ... lacking demonstrable consensus' from the last point, since it is already mentioned at point 3, and merge 'If challenged, the onus ... make on a large scale.' with point 3. Jayakumar RG (talk) 12:34, 17 May 2014 (UTC)
- Agreed with the above. 3rd point has been repeated twice anyway. OccultZone (Talk) 13:08, 17 May 2014 (UTC)
- It's logical. I'll do it now. — Martin (MSGJ · talk) 11:44, 21 May 2014 (UTC)
When to use Typos/Template redirects vs. just changing pages
[NOTE: I have moved this discussion from Wikipedia talk:AutoWikiBrowser/Template redirects#When to add here or change in small number of pages due to getting no response there.]
Recently there have been 297 entries added to Wikipedia:AutoWikiBrowser/Template redirects increasing the number of rules by more than 50%. This groups of entries appears to be a wholesale change made in the template naming scheme by a project. I only checked one of the new entries, but it appeared to have a very low transclusion count. The one new template redirect rule I checked was {{AllenOH-geo-stub}}. It has a total of 8 transclusions (now 7), only 2 of which are in mainspace.
To me this brings up the question of: When should we add entries to AWB Typos or AWB Template redirects vs. just changing a low number of pages?
Both of these features cause AWB to search for the changes listed on every page edited by anyone using General Fixes (I assume only when General Fixes are selected). These changes are attempted as long as the rule is listed in the appropriate page. In other words, basically forever, unless someone cleans the list. It appears to me that these rules should be used primarily for typos or template redirects where we expect editors to continuously and repeatedly enter the wrong word or the template that is redirected. The facility, as I understand it, is to help with ongoing issues which should be addressed when they are encountered.
For entries like the one I checked on above, it appears to me that the appropriate thing to do would be to bite the bullet once; run through the changes once on the low number of pages affected and be done with it. Perhaps even then remove the redirect from the old naming scheme so that it is not used?
I know that we are generally not to make changes which do not affect what is displayed by the article. A run just to bulk-change a list of redirects would certainly not make any visible change to the displayed pages. However, it seams to me to be the lesser of two negative impacts: 1. a set of template changes on a limited number of pages marked as a minor change with a edit summary that states that the template was renamed, or 2. everyone using AWB always looking for all of these changes on the off chance that one of these small number of easily identified articles is being edited.
Is there policy on this issue? What do others think?
While this particular set of additions happened to be what got me to check and ask the question, I do not intend to single out this set of changes. There was also a somewhat related discussion in this discussion on the Typos page.— Makyen (talk) 08:59, 21 May 2014 (UTC)
- @Makyen: I don't believe there are official policies or guidelines as to when it is appropriate to add entries to the typos or template redirect lists, but I'm happy to share my opinion.
- For typos, I'll agree with Chris the speller that there should be a significant number of typos to be corrected and no false positives.
- I update the template redirect list in those cases when AWB is set up to make a visible change with a template and I want AWB to do the same with each of the redirects as well. For example:
- When I am fixing dates in {{cite news}}, I also want the dates fixed in {{cit news}}
- When using the Wikipedia:AutoWikiBrowser/Dated templates functionality for {{Units attention}}, I also want the date added for {{Unit-attn}}
- Since AWB has functionality to move some maintenance templates (e.g. {{notability}}) to the top of the article and include them in {{multiple issues}}, I have updated the list to include redirects so AWB will move them too (e.g. {{Chemical-importance}}
- When someone is making a wholesale change in the template naming scheme, I hope they will consider whether the redirect can be deleted after the name change, and then removed from WP:AWB/TR. Hope this helps! GoingBatty (talk) 13:14, 21 May 2014 (UTC)
I disagree with the addition of all these stub templates and redirects too. For maintance templates the feature helps in general fixes. The same holds for infobox redirects that do not follow the "Infobox..." convention. Since AWB works fine with any "...-stub" template there is no reason to bypass the redirect. -- Magioladitis (talk) 13:22, 21 May 2014 (UTC)
3rd party user scripts
Is it possible to combine such user script (shown under See also) to interpose (if there are automatically)? I thought so, since one is so signed in. That would be great or did I ignore something!? -- πϵρήλιο 15:54, 12 May 2014 (UTC)
- @Perhelion:, I am not getting you. Please explain. OccultZone (Talk) 04:38, 13 May 2014 (UTC)
- Ok, short said, I use some simple (automatic) "cleanup" js-user-scripts (as they shown under "See also" here), they don't work with AWB together. Is there a possibility, you know? Greetings -- πϵρήλιο 14:08, 13 May 2014 (UTC)
- No, because both are distinct. OccultZone (Talk) 14:20, 14 May 2014 (UTC)
- OccultZone provides the option to run external process through AWB. -- Magioladitis (talk) 16:54, 21 May 2014 (UTC)
- No, because both are distinct. OccultZone (Talk) 14:20, 14 May 2014 (UTC)
- Ok, short said, I use some simple (automatic) "cleanup" js-user-scripts (as they shown under "See also" here), they don't work with AWB together. Is there a possibility, you know? Greetings -- πϵρήλιο 14:08, 13 May 2014 (UTC)
Perhelion did you try running external program inside AWB? -- Magioladitis (talk) 14:34, 14 May 2014 (UTC)
- Not really, but it would be nice to have, (if it could be in a sort of a support feature to made it compatible like wikEd has such feature.) But I think it must be in such a way as plugin!? -- πϵρήλιο 00:28, 15 May 2014 (UTC)
- Perhelion try pressing Ctrl+E to enable external processing and see what happens. -- Magioladitis (talk) 03:04, 15 May 2014 (UTC)
RFC: Citation Style 1 parameter naming convention
Just wanted to make people aware of the discussion at Help talk:Citation Style 1/Archive 5#RFC: Citation Style 1 parameter naming convention. If this change takes place, there will be several changes needed for AWB, including:
- Update Wikipedia:AutoWikiBrowser/Rename template parameters#Citation templates so unnecessary changes are not made
- Update the list of valid citeWebParameters in Parsers.cs for the "Invalid citation parameter" alert.
Anything else? GoingBatty (talk) 15:52, 26 May 2014 (UTC)
"New search" vs. AWB – I don't think we're ready
Background: The powers that be have been working on a new back end for Special:Search. The current search is "lsearchd" (that's a lower-case "L"), and the new search is "CirrusSearch". They seem fairly close to rolling out the new back end, since "CirrusSearch was enabled as the primary search method on all Wikipedias with less than 100,000 pages on May 30" per Village Pump (tech). You may use CirrusSearch by checking the "New search" box under the "Beta" menu. If this is checked, AWB will also use that back end when making a list of articles using the source "Wiki search(text)". If you want to use the new search on your usual browser on occasion without affecting AWB, just append "&srbackend=CirrusSearch" to the URL.
More background: The search index for lsearchd is not being updated (since May 29), and we can not expect it to be updated, per this bug on Bugzilla. So, if you search for "buisness" every week and fix them, you will not find any new ones, only the ones you already fixed before May 29.
Good news: If you use CirrusSearch, its index is updated in real time (lagging no more than a few seconds at most times), whereas you had to wait up to 24 hours for the lsearchd index to be updated. CirrusSearch also has some new features, such as a fuzzy search, where you can specify how close together the words in your search argument have to be. searching for "dropped ordinance"~1 will find "the plane dropped its ordinance", but "dropped ordinance"~0 will not find intervening words.
Bad news: CirrusSearch ignores hyphens. A search for "wholly-owned" works just like a search for "wholly owned", so its use for finding and fixing mishyphenation is very limited. I commented on the talk page for the new CirrusSearch. Or maybe I'm the only person fixing hyphens, I dunno.
What next? It might be good for AWB to provide a way to specify which search to use for source "Wiki search(text)", but there might not be much time to roll that out. Their target was "early 2014". The asteroid is on its way, so get your things in order. Chris the speller yack 17:47, 3 June 2014 (UTC)
Profiling > 1000 ms
- World Jiu-Jitsu Championship
- FixSyntax: 4741
- A lot of unclosed tags. Fixed
- FixSyntax: 4741
- British Pharmacological Society
- Auto-tagger:1445
- Re-tried and Auto-tagger 602
- Auto-tagger:1445
- Josef Jan Hanuš
- FixSyntax: 5092
- Redone and FixSyntax: 1. Weird
- FixSyntax: 5092
- National Front Coalition (Egypt)
- Skip checks: 1525
- Nik Kozub
- Skip checks: 1217
- Omate TrueSmart
- FixSyntax: 4850
- Plan XVII
- Auto-tagger:1726
AWB at outsider project wikiskripta.eu (wikilectures.eu)
Hi,
I would like to employ AWB at wikis for medical specialists and students wikiskripta.eu and wikilectures.eu, but me and my colleagus cant get it running the regular way. Our bot API works just fine and our version is 1.22. The error AWB is giving is:
Error connecting to wiki
An error occured while connecting to the server or loading project information from it. Please ensure that your internet connection works and such combination of project/language exist. Enter the URL in the format "en.wildpedia.org/wr (including path where index.php and api.php reside).
Error description: Neočekavana deklarace XML. Deklarace XML musf být prvním uzlem v dokumentu. Před ní nejsou povoleny žadné prazdné znaky. Radek 2, pozice 3
Can you help us make AWB running on our project? Thanks. --Hypothalamus (talk) 15:57, 9 June 2014 (UTC)
Reordering of references
I sometimes wish AWB didn't change the order of references. I can see at WP:AutoWikiBrowser/General fixes#ReorderReferences (ReorderReferences) why it does it but is it really a good idea? Suppose two named references have been previously used and are numbered 1 and 2. Then there is a sentence making two rather distinct claims referenced by 2 and 1 in that order. I think it is better to have (and keep) the references in that order. It is unimportant that the references are in ascending numerical order. It would be good if AWB could be changed but, if not, is there a way I can stop it doing this in significant cases? Another question – in the documentation I see this feature is fully compatible with "the 'named references at end' formatting option". Is this another way of referring to what is described at Help:List-defined references? Thincat (talk) 09:01, 11 June 2014 (UTC)
- (Partial answer) If you stick an HTML comment between two references, AWB will not swap them. And yes, I think "named references at end" is referring to list-defined references. -- John of Reading (talk) 09:58, 11 June 2014 (UTC)
- Thank you for the hint (which I might try in other circumstances!). I'll edit the documentation. Thincat (talk) 10:32, 11 June 2014 (UTC)
Am I missing something?
Is there a reason AWB's not combining the duplicate refs on Versailles house? --NE2 02:31, 5 June 2014 (UTC)
- It's because none of the references have names - see the fourth bullet at Wikipedia:AutoWikiBrowser/General fixes#Duplicate Unnamed References (DuplicateUnnamedReferences). -- John of Reading (talk) 06:42, 5 June 2014 (UTC)
- I added a name to the first instance of a ref and AWB cobined all the refs. --Racklever (talk) 07:19, 5 June 2014 (UTC)
- Perfect. -- Magioladitis (talk) 11:06, 11 June 2014 (UTC)
- I added a name to the first instance of a ref and AWB cobined all the refs. --Racklever (talk) 07:19, 5 June 2014 (UTC)
Removing section headings
Twice now at Corrour Lodge AWB has removed a section heading.[3][4] I think this change was not beneficial. I think it may be to do with the section heading being the same as the article name because the same happened at another article where there was more justification though I still think it was not a good edit. Now, I guess I can fool AWB but why is the heading being removed and is it a good thing to be doing? Thincat (talk) 09:41, 11 June 2014 (UTC)
- @Thincat: Yes I made the first one, and the other one. You cannot have section with the same title as your article. We use different words for describing the entity. For example, if it is a person, most common section would be "biography". OccultZone (Talk) 09:46, 11 June 2014 (UTC)
- @OccultZone: well, I think there are occasions when the same heading is justified but if you are right, why don't you replace the heading with one you approve of rather than simply remove it? What should the section heading be in this case? Thincat (talk) 09:53, 11 June 2014 (UTC)
- You saw any other article having subsection title similar to article title? I suggest you can add "Reconstruction", on Corrour_Lodge#Corrour_Lodge or "Re-Innovation" because that is what you are finally talking about. OccultZone (Talk) 09:59, 11 June 2014 (UTC)
- I rather agree a changed heading would be editorially sensible. However, the way to achieve this is not by removing the heading completely. Thincat (talk) 10:28, 11 June 2014 (UTC)
- You saw any other article having subsection title similar to article title? I suggest you can add "Reconstruction", on Corrour_Lodge#Corrour_Lodge or "Re-Innovation" because that is what you are finally talking about. OccultZone (Talk) 09:59, 11 June 2014 (UTC)
- @OccultZone: well, I think there are occasions when the same heading is justified but if you are right, why don't you replace the heading with one you approve of rather than simply remove it? What should the section heading be in this case? Thincat (talk) 09:53, 11 June 2014 (UTC)
- @Thincat: I *think* this code was written to catch the case where a new article starts with a redundant copy of the name of the article, but as currently implemented it does too much. It's caught me out a few times, and I've had to go back and re-insert a heading; doubtless there are other cases where I have accidentally damaged an article and not noticed. I would prefer to see this as an "Alert" rather than an automatic edit, so that the editor using AWB can decide whether to make a change. -- John of Reading (talk) 10:10, 11 June 2014 (UTC)
- Yes, I can see that generally a section heading would best not be the same as the article title (and if at or near the top could well be removed). In other situations it would be far better to change the heading than to remove it. Care is needed removing (or even changing) section headings because sometimes they are in use as anchors. Thincat (talk) 10:22, 11 June 2014 (UTC)
- The code has improved during the times. You are right on this page. AWB should not have removed the header in the Corrour Lodge case. -- Magioladitis (talk) 10:38, 11 June 2014 (UTC)
- @Magioladitis: but bigger question was that why there is even a need to name subsection after the page title? It has to be different. I had closely observed those 3 edits. OccultZone (Talk) 10:41, 11 June 2014 (UTC)
- You only made two of them! Thincat (talk) 10:56, 11 June 2014 (UTC)
- Yes
21 edit on Corrour Lodge, but other one on R. Durtnell & Sons. [5] Like you had noted above. OccultZone (Talk) 11:14, 11 June 2014 (UTC)- ... better stop digging.[6] This isn't putting due diligence in the best possible light. Thincat (talk) 12:05, 11 June 2014 (UTC)
- Yes
- You only made two of them! Thincat (talk) 10:56, 11 June 2014 (UTC)
- @Magioladitis: but bigger question was that why there is even a need to name subsection after the page title? It has to be different. I had closely observed those 3 edits. OccultZone (Talk) 10:41, 11 June 2014 (UTC)
- The code has improved during the times. You are right on this page. AWB should not have removed the header in the Corrour Lodge case. -- Magioladitis (talk) 10:38, 11 June 2014 (UTC)
- Yes, I can see that generally a section heading would best not be the same as the article title (and if at or near the top could well be removed). In other situations it would be far better to change the heading than to remove it. Care is needed removing (or even changing) section headings because sometimes they are in use as anchors. Thincat (talk) 10:22, 11 June 2014 (UTC)
No problem Thincat, thanks for explaining. I've just corrected it :-) OccultZone (Talk) 14:33, 11 June 2014 (UTC)
- I have now changed (hopefully improved) the heading. I have also removed the {{bots|deny=AWB}} tag Magioladitis so helpfully put there because (despite my interventions here) I do think AWB can sometimes make useful edits. However, I shall slide the tag up my sleeve for future use! Thincat (talk) 10:56, 11 June 2014 (UTC)
Thanks everyone for the cooperation! -- Magioladitis (talk) 11:03, 11 June 2014 (UTC)
oldafdfull TPL order under gen fixes
I was running a batch today and genfixes was moving {{oldafdfull}} after the WikiProject banners, but I thought oldafdfull qualified as an "article history" template per WP:TPL? I'm having trouble reproducing this now, but I wanted to at least make sure my logic was right czar ♔ 13:23, 12 June 2014 (UTC)
- @Czar: Afd should not come before the wikiprojects. But when someone has added them before the wikiprojects, they shouldn't be notified for that. I had questioned before and they blamed on the script. It is a non-controversial edit. OccultZone (Talk • Contributions • Log) 13:32, 12 June 2014 (UTC)
- (edit conflict) @OccultZone, hm, thanks. Where would oldafdfull fit in Wikipedia:TPL#Lead_.28bannerspace.29, then? I thought it would be #8 (article history), which is before #9 WikiProject banners czar ♔ 13:44, 12 June 2014 (UTC)
@Czar: in which page did this happen? Can you please provide an example? AWB does not recognise all redirects of all talk page banners/tags. -- Magioladitis (talk) 13:34, 12 June 2014 (UTC)
- @Magioladitis, as mentioned, I went back over my edits when writing this post and I couldn't reproduce it, though it happened to me twice. Edit: okay, I got it. Try Talk:Global StarCraft II League with genfixes on—it moves oldafdfull to the bottom. czar ♔ 13:44, 12 June 2014 (UTC)
- @Czar: rev 10244 fixes it. -- Magioladitis (talk) 13:47, 12 June 2014 (UTC)
- Excellent. Thanks! czar ♔ 13:53, 12 June 2014 (UTC)
- @Czar: rev 10244 fixes it. -- Magioladitis (talk) 13:47, 12 June 2014 (UTC)
Feature suggestion: Make list based on Regex list
Hi all, I think it would be really great if the "Make list" will have an option to search pages based on a set of Regex expressions defined in a page, such as User:AlexNewArtBot/Romania, or defined in the interface. This could be of great help when making lists of articles which should be tagged with a certain project tag, e.g. {{WikiProject Romania}} in this case. Any thoughts? --Codrin.B (talk) 08:42, 19 June 2014 (UTC)
- I make my list with AWB. I can add+assess article at the same time too(no AWB here). If you are used to with AWB, you will know that it can be also used for things other than editing articles. OccultZone (Talk • Contributions • Log) 15:30, 19 June 2014 (UTC)
- Use the built in database scanner (you will of course have to download the 10GB db file which expands to about 45GB). — {{U|Technical 13}} (e • t • c) 15:50, 19 June 2014 (UTC)
Plugin: Send AWB to back?
I've been working on a plugin to use MS Word's spellchecker, and I've got it working apart from one thing: AWB blocks the spellchecker window AND becomes unresponsive until the spellcheck is complete. My work-around atm is to alt-shift-tab to bring the spellchecker window forward. So, is there some way of telling AWB to send itself to the back? Or minimize? -- Niightblade (talk) 09:36, 23 June 2014 (UTC)
Width of the list box
Hello AWB experts! I am just starting out with AWB, and this seems obvious, but I can't seem to find a way to widen the list box. Since I want to work with pages in "Wikipedia talk:Articles for creation/", all I see is the first letter of each page title. What should I do? —Anne Delong (talk) 17:13, 30 June 2014 (UTC)
- With the mouse, hover over a page name, and the full name will pop up. This is only good for one page at a time; you can't see 17 pages at a glance. Chris the speller yack 19:35, 30 June 2014 (UTC)
- @Anne Delong: If you want to edit some specific articles, you can load the list after pasting the category's name above the "make list" button. Left side of AWB window. OccultZone (Talk • Contributions • Log) 10:33, 1 July 2014 (UTC)
- Yes, I have done that, but since all of the pages in the category begin with the same 38 letters, I can't look through the titles other than in the very inefficient way mentioned by Chris the speller. Since there are thousands of pages in the category, it looks as though AWB may not be the right tool for working with these pages. In the future, when the AfC pages are all in the Draft namespace instead of at "Wikipedia talk:Articles for creation", I will try again. I have been having some success, though, in using AWB to fix up some the thousands of bad links created when the Canadian Encyclopedia decided to change all of its URLs. —Anne Delong (talk) 10:58, 1 July 2014 (UTC)
- Yes you cannot enlarge the list bar. OccultZone (Talk • Contributions • Log) 11:16, 1 July 2014 (UTC)
- Yes, I have done that, but since all of the pages in the category begin with the same 38 letters, I can't look through the titles other than in the very inefficient way mentioned by Chris the speller. Since there are thousands of pages in the category, it looks as though AWB may not be the right tool for working with these pages. In the future, when the AfC pages are all in the Draft namespace instead of at "Wikipedia talk:Articles for creation", I will try again. I have been having some success, though, in using AWB to fix up some the thousands of bad links created when the Canadian Encyclopedia decided to change all of its URLs. —Anne Delong (talk) 10:58, 1 July 2014 (UTC)
- @Anne Delong: If you want to edit some specific articles, you can load the list after pasting the category's name above the "make list" button. Left side of AWB window. OccultZone (Talk • Contributions • Log) 10:33, 1 July 2014 (UTC)
Optional upgrades that are not optional
Every so often AWB is upgraded. When this is done, the old version is flagged so that you can no longer use it until you run the updater. So why is the upgrade always labeled as an optional upgrade? Either it should be listed as a required upgrade or else the software changed so that old versions can continue to run. —RRabbit42 (talk) 16:34, 21 June 2014 (UTC)
- My laptop is also finding it hard to update AWB. OccultZone (Talk • Contributions • Log) 16:48, 21 June 2014 (UTC)
- This isn't an issue of whether a computer can update the software. I'm addressing a misleading statement about updates. For your issue, you may need to completely uninstall the program and clean out the registry if you're running it under Windows. —RRabbit42 (talk) 14:29, 28 June 2014 (UTC)
- @RRabbit42: Well I mentioned the situation of my laptop, because it was different with my computer. Computer could work with the older version, but laptop couldn't. No idea though. As for your query, I would say that it should be listed as 'required update', because AWB probably won't work without the update. OccultZone (Talk • Contributions • Log) 11:24, 1 July 2014 (UTC)
- This isn't an issue of whether a computer can update the software. I'm addressing a misleading statement about updates. For your issue, you may need to completely uninstall the program and clean out the registry if you're running it under Windows. —RRabbit42 (talk) 14:29, 28 June 2014 (UTC)
Reference ordering
I was wondering why in a spot of multiple references are they sometimes recommended by AutoWikiBrowser to be reordered -- is this to keep the footnote numbers in numerical order, or for a different purpose? I skipped on these changes until I could find out the reason for this. Stevie is the man! Talk • Work 15:19, 1 July 2014 (UTC)
- I think Wikipedia:AutoWikiBrowser/General fixes#ReorderReferences (ReorderReferences) answers my question. It is indeed about keeping footnote numbers in order. Stevie is the man! Talk • Work 15:44, 1 July 2014 (UTC)
AutoWikiBrowser is written on C#. Why you do not support Mono natively?
Why only Windows is supported natively? I thought Wikipedia is free and open project. Why users of Wikipedia must use Windows? --Mvitaminus (talk) 09:56, 1 July 2014 (UTC)
- Mvitaminus we have half-implemented mono version. If you are a programmer, you can help us! -- Magioladitis (talk) 10:42, 1 July 2014 (UTC)
- Per FAQ, "AWB might also run under Mono. See here for a status report of AWB vs Mono v2.6." Toolserver has been shutdown, and today is 1st day. So you may have to wait. Like Magioladitis said, you are free to assist. OccultZone (Talk • Contributions • Log) 11:21, 1 July 2014 (UTC)
- I commented out the dead toolserver link in the FAQ. Thanks! GoingBatty (talk) 17:08, 1 July 2014 (UTC)
- Per FAQ, "AWB might also run under Mono. See here for a status report of AWB vs Mono v2.6." Toolserver has been shutdown, and today is 1st day. So you may have to wait. Like Magioladitis said, you are free to assist. OccultZone (Talk • Contributions • Log) 11:21, 1 July 2014 (UTC)
Mvitaminus we are still heavily depended on .NET. -- Magioladitis (talk) 13:35, 1 July 2014 (UTC)
Interwikit-help
Any person can use the AWB without permission in ta.wikimedia projects. This is because of the absence of approval mode. How can we set the permission/approval log--தகவலுழவன் (talk) 02:32, 3 July 2014 (UTC)
- தகவலுழவன் Create ta:Project:AutoWikiBrowser/CheckPage. -- Magioladitis (talk) 04:49, 3 July 2014 (UTC)
- Also read Wikipedia:AutoWikiBrowser/CheckPage_format. -- Magioladitis (talk) 04:53, 3 July 2014 (UTC)
- I read. Actually, I am a end user (not programmer). So, I am in need of some more guidance esp for ta.Wiktionary. How can i use this Boilerplate --தகவலுழவன் (talk) 01:58, 4 July 2014 (UTC)
- Also read Wikipedia:AutoWikiBrowser/CheckPage_format. -- Magioladitis (talk) 04:53, 3 July 2014 (UTC)
Volume/Issue
No. 144 Squadron RAF (edit | talk | history | protect | delete | links | watch | logs | views)
My changes from {{cite journal| ... volume=Vol. 17|issue=No. 11 ...}}
to {{cite journal| ... |volume= 17|issue= 11 ...}}
were reverted by Nigel Ish (talk · contribs) as "unexplained harmful changes to reference format". Looking at the results, I'm inclined to agree. I've looked at Template:Cite journal/doc and at Wikipedia:AutoWikiBrowser/General fixes, but don't see any explanation in either place. Where is the consensus for this general fix? -- John of Reading (talk) 05:13, 6 July 2014 (UTC)
- @John of Reading: Each example at Template:Cite journal/doc#Examples only uses digits in the volume and issue parameters. There seems to be a related discussion at Help talk:Citation Style 1/Archive_1#RfC: Use "Vol.", "pp.", etc. consistently between citation templates, instead of ambiguous formatting like "9 (4): 7", but I don't see a resolution there. You might want to ask at Help talk:Citation Style 1. GoingBatty (talk) 13:59, 6 July 2014 (UTC)
Templates with expired date parameter value
This is about a template on huwiki with a date parameter (format: yyyy-mm-dd). I would like to make a list of articles transcluding templates with expired date values. How can I do this?
Thanks
Usage stats
I just commented out the Usage stats link from {{AWB}} as it isn't working on the toolserver or tool labs.
Was this moved over when the toolserver was shut down? Thanks! GoingBatty (talk) 21:25, 5 July 2014 (UTC)
- GoingBatty, I remember Magioladitis saying the stats were moved over to WMFLabs. Code was changed in May I think. WMFLabs' webserver has been real flaky the past several weeks. It keeps going down and individual projects have to manual restart their own webserver instance. So, this might be the cause. Bgwhite (talk) 22:13, 5 July 2014 (UTC)
- @GoingBatty: If you just want to know the total AWB edits that you have made, There are a few. Although I never used the tool that was linked here. OccultZone (Talk • Contributions • Log) 00:43, 6 July 2014 (UTC)
@GoingBatty and Bgwhite: we completely moved WMFLabs in May. Reedy changed the last piece of code related to that. -- Magioladitis (talk) 00:45, 6 July 2014 (UTC)
- @Magioladitis:, what about the website to view the stats? Bgwhite (talk) 00:50, 6 July 2014 (UTC)
- https://tools.wmflabs.org/awb/stats/ Reedy (talk) 23:35, 7 July 2014 (UTC)
- Glad it's working now - I added the link back to {{AWB}}. GoingBatty (talk) 01:38, 8 July 2014 (UTC)
- https://tools.wmflabs.org/awb/stats/ Reedy (talk) 23:35, 7 July 2014 (UTC)
Typo rule trying to change the sort key of a category
I wonder if AWB should ever mess with sort keys for categories. In List of Georg-August University of Göttingen people, AWB wants to change the sort key from "Göttingen" to "Gottingen"; this screws up the sorting of the category page for "Lists of people by university or college in Germany". Aren't we always likely to do more harm than good trying to "fix" category sort keys? Chris the speller yack 19:41, 10 July 2014 (UTC)
- This has been logged for a while at Wikipedia talk:AutoWikiBrowser/Bugs#TypoFix undoes general fixes, causing a confusing edit summary. -- John of Reading (talk) 20:10, 10 July 2014 (UTC)
- Thanks for that, John. I filed that bug report a year ago and hadn't looked at it for many months. It's spooky that "Göttingen" in particular was added to that discussion just a few days before I posted here. I'll comment over there on the bug report. Chris the speller yack 03:03, 11 July 2014 (UTC)
Tagging
Hi, can AWB tag pages in a category with a WikiProject tag? Thanks, Matty.007 20:19, 11 July 2014 (UTC)
- @Matty.007: You can tag easily with AWB than any other software, once you know that which tag has to be used on which page. OccultZone (Talk • Contributions • Log) 01:22, 12 July 2014 (UTC)
Matty.007 you can request a bot to tag. Check User:Yobot#WikiProject_tagging. -- Magioladitis (talk) 06:32, 12 July 2014 (UTC)
- Looks quite heavy duty, I was wondering if I could do it by hand with AWB. OccultZone: sorry, please can you explain how to wikiproject tag with AWB? Thanks, Matty.007 10:44, 12 July 2014 (UTC)
- First make sure what page you have to edit, save the link to a list.
- Second know that which wikiproject should be added to the page.
- You can just copy-paste, AWB will directly open the talk page for you or convert the main page to talk page. You can also use the 'find and replace' option of AWB, which automatically places for your or any modules(scripts) that are provided for that purpose. OccultZone (Talk • Contributions • Log) 11:02, 12 July 2014 (UTC)
Bug - typo fixing in image links
With this edit AWB's typo fixer changed the image parameter in the infobox and so broke the image. While I realise that it is my responsibility and I should have checked better, would it be possible to fix this to prevent it happening again? Thanks, BethNaught (talk) 19:33, 12 July 2014 (UTC)
- BethNaught I think we already fixed this and you are using an older AWB version. -- Magioladitis (talk) 19:39, 12 July 2014 (UTC)
- Ok, I'll update soon. Thanks for the quick reply. BethNaught (talk) 19:42, 12 July 2014 (UTC)
Future of Persondata
Ok so I've been working on filling Persondata templates (it's a nice simple mindless task to chip away at), but I've noticed that the project page is pretty inactive, and there are oldish comments about Wikidata eventually replacing Persondata. However there are still new Persondata templates being added and there doesn't seem to be any real movement for converting to Wikidata. So basically there's this big dead rolling ball of Persondata without anyone behind the controls.
So I was wondering if you guys had any insight, since you know about using bots, and this is probably the main platform that adds Persondata. Do you have any plans, or have you had any discussions regarding converting to Wikidata?
Do you know anyone willing and able to take the reigns of the Persondata WikiProject and phase it out?
Thanks, —Msmarmalade (talk) 14:44, 9 July 2014 (UTC)
- Everyday I've been filling persondata, there are members who have filled thousands of pesondata. Thanks for informing about WikiProject. I will probably switch to persondata once I am done of these other maintenance tasks. OccultZone (Talk • Contributions • Log) 17:54, 9 July 2014 (UTC)
- @OccultZone: Msmarmalade, persondata will be phased out. It is only a matter of time. The German Wikipedia Chapter is in charge of Wikidata and they started persondata. So the timing is probably upto them. Bgwhite (talk) 04:36, 11 July 2014 (UTC)
- Good to know. OccultZone (Talk • Contributions • Log) 04:55, 11 July 2014 (UTC)
- @OccultZone: Msmarmalade, persondata will be phased out. It is only a matter of time. The German Wikipedia Chapter is in charge of Wikidata and they started persondata. So the timing is probably upto them. Bgwhite (talk) 04:36, 11 July 2014 (UTC)
After we pass to phase 2 of Wikidata, Persondata will most probably become obsolete and we 'll start removing it but I ve no idea when this is. Phase 1 is still incomplete. -- Magioladitis (talk) 12:52, 11 July 2014 (UTC)
- For now, those who are still adding persondata are helping. About wikidata, there's no fixed time, but hopefully it will be completed someday. OccultZone (Talk • Contributions • Log) 14:29, 11 July 2014 (UTC)
- @OccultZone: @Bgwhite: @Magioladitis: Thanks for clarifying that. Is it alright if I add a section saying as much to the Persondata and WikiProject pages? Something like:
Wikidata
Wikidata is a metadata system still in development. After Wikidata passes into the second stage, Persondata will likely become obsolete, and be removed. Until that time, users can continue adding Persondata. - —Msmarmalade (talk) 05:36, 13 July 2014 (UTC)
- I think Wikidata has passed the 2nd and 3rd stages. They had bots gather info from persondata and put it into Wikidata. I'm not sure after that. Bgwhite (talk) 06:04, 13 July 2014 (UTC)
- Bgwhite Wikipedia:Wikidata#Infoboxes_.28Phase_2.29. -- Magioladitis (talk) 08:23, 13 July 2014 (UTC)
- Magioladitis It is already completed. You can use Wikidata in Infoboxes. Like all Wikipedia productions, update-date info is hard to come by. Bgwhite (talk) 08:32, 13 July 2014 (UTC)
- Bgwhite Wikipedia:Wikidata#Infoboxes_.28Phase_2.29. -- Magioladitis (talk) 08:23, 13 July 2014 (UTC)
- @Msmarmalade: I hope Persondata would not become obsolete until all of the information was moved to Wikidata. Until there is an agreed upon plan to obsolete Persondata, I think it would be best NOT to add speculation to the official documentation. Thanks! GoingBatty (talk) 15:04, 13 July 2014 (UTC)
- @GoingBatty: That's fair enough, I mainly just want some brief explanation at least on the project page for people like me who wonder what's happening with wikidata. What about this wording instead?
Wikidata is a metadata system still in development. Eventually, information from Persondata will be moved to Wikidata, and Persondata may become obsolete. However, for now, users are still helping by adding Persondata and are encouraged to do so.
- —Msmarmalade (talk) 14:27, 14 July 2014 (UTC)
- @Msmarmalade: That's much better - thanks!
Any sense of whether the Persondata values be migrated to wikidata, or whether wikidata would be created from scratch?Thanks! GoingBatty (talk) 16:53, 14 July 2014 (UTC)- @GoingBatty: Cool, so can I go ahead now and add it to the Wikiproject Persondata page? I'm not sure what you're asking, could you please clarify? —Msmarmalade (talk) 11:04, 16 July 2014 (UTC)
- @Msmarmalade: It's fine with me if you add it to the Persondata page. My question wasn't necessary, since you wrote "information from Persondata will be moved to Wikidata". Thanks! GoingBatty (talk) 02:28, 17 July 2014 (UTC)
- @GoingBatty, OccultZone, Bgwhite, and Magioladitis: I've now added the afore mentioned paragraph to Wikipedia:Persondata and Wikipedia:WikiProject Persondata, but NOT to Template:Persondata. Please feel free to improve it, or add any further developments regarding wikidata—Msmarmalade (talk) 06:42, 17 July 2014 (UTC)
- @Msmarmalade: It's fine with me if you add it to the Persondata page. My question wasn't necessary, since you wrote "information from Persondata will be moved to Wikidata". Thanks! GoingBatty (talk) 02:28, 17 July 2014 (UTC)
- @GoingBatty: Cool, so can I go ahead now and add it to the Wikiproject Persondata page? I'm not sure what you're asking, could you please clarify? —Msmarmalade (talk) 11:04, 16 July 2014 (UTC)
- @Msmarmalade: That's much better - thanks!
- @GoingBatty: That's fair enough, I mainly just want some brief explanation at least on the project page for people like me who wonder what's happening with wikidata. What about this wording instead?
- I think Wikidata has passed the 2nd and 3rd stages. They had bots gather info from persondata and put it into Wikidata. I'm not sure after that. Bgwhite (talk) 06:04, 13 July 2014 (UTC)
- @OccultZone: @Bgwhite: @Magioladitis: Thanks for clarifying that. Is it alright if I add a section saying as much to the Persondata and WikiProject pages? Something like:
- See also User:Pigsonthewing/Persondata, which explains some of the problems with persondata. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:56, 16 July 2014 (UTC)
@GoingBatty and Msmarmalade: Instead of taking my normal passive stance, I decided to so something. See Wikipedia talk:Persondata#Overlinking in Persondata Bgwhite (talk) 04:19, 17 July 2014 (UTC)
Question - double redirect fixer
I apologize if this question was already answered (I couldn't find anything in the archives, and if it has, feel free to trout me), but I heard somewhere that there was a plugin for AWB that could fix double redirects. A Google search proved fruitless though, so I was wondering if anyone had the plugin, or a link to where I can obtain it.
Any help would be greatly appreciated. Thanks! --k6ka (talk | contribs) 14:14, 17 July 2014 (UTC)
- Xqbot fixes double redirects on the English language Wikipedia. Racklever (talk) 14:40, 17 July 2014 (UTC)
- Yes, but I need it for one of my other wikis on Wikia. I only really know how to use AWB. --k6ka (talk | contribs) 15:40, 17 July 2014 (UTC)
Unreferenced to Refimprove changes existing date to current date
When General Fixes changes the Unreferenced template to Refimprove, it removes the date that's there and replaces it with the current date. I checked the bug list and apparently this was fixed in 2012, so it either wasn't or its crept back in. I know dates on tags are used for categorisation purposes, but they're also used by people fixing the lack of refs, working their way through from oldest to newest. The tags are also used as value judgements in content discussions. If an IP user changed the date of a tag from April 2011 to August 2014 it may be classed as a disruptive or vandal edit. But we're allowed to get away with it because we use AWB. - X201 (talk) 09:11, 8 August 2014 (UTC)
- Would you please link to the diff of the incorrect edit so we can investigate? Rjwilmsi 10:32, 8 August 2014 (UTC)
I think this what we were asked to do. Change the date with the current date. This is because refimprove is a new tag on the page and the page has to be recategoried. -- Magioladitis (talk) 10:36, 8 August 2014 (UTC)
X201, Rjwilmsi please check Wikipedia_talk:AutoWikiBrowser/Feature_requests/Archive_6#Update_date_parameter_when_replacing_message_boxes. -- Magioladitis (talk) 10:39, 8 August 2014 (UTC)
- OK, thanks. - X201 (talk) 10:50, 8 August 2014 (UTC)
Reordering references.
I just reject a suggestion to reorder two references on Murder of Brian Stidham. Why is AWB suggesting this change in the first place?Phatom87 (talk • contribs) 23:45, 11 August 2014 (UTC)
- @Phatom87: One of AWB's general fixes is that AWB "Reorders consecutive named references such that they appear in numerical order". GoingBatty (talk) 02:14, 12 August 2014 (UTC)
disable keyboard shortuct
While classifying articles with AWB (C class, stub class). I often just click the link, go to the article. Grade it. come back to AWB, press control V (which pastes |class=). Then write the appropriate class. But sometimes, I accidentally write start right after I press control V, I accidently hold the control button which saves the page. Is there a way to disable this? Thanks, TheQ Editor (Talk) 16:52, 14 August 2014 (UTC)
- No, there's no option to disable the keyboard shortcuts. However, there are a couple of ways you could do it: one would be to make your own build of AWB with the keyboard shortcut disabled in the code. Another option would be to use the open source AutoHotKey utility and configure it to override certain keyboard shortcuts (e.g. do nothing) when AWB is active. Rjwilmsi 09:18, 15 August 2014 (UTC)
- AutoHotKey is a fantastic little program. To give you an example, User:Bgwhite/AutoHotkey contains they key bindings I use when working on talk pages. Bgwhite (talk) 17:22, 15 August 2014 (UTC)
"Reset to default settings" doesn't seem like the best wording
I was thinking of opening a bug for this, but I wanted to get feedback first. "Reset to default settings" in the File menu goes back to the application's original settings, rather the default settings I have set up. My default settings can be retrieved by closing the application and re-opening it, or by going to File, Recent settings, Default settings. This is confusing, at least to me. Perhaps "Reset to default settings" should be reworded to "Reset to original settings". Thoughts? Stevie is the man! Talk • Work 11:23, 20 August 2014 (UTC)
Have .net 4, asks me for .net 2 and downloads .net 3.5? Should I?
I am using Windows XP at the moment. When I check add/remove programs it says I have .net Framework 4 Client Profile and Framework Extended. Isn't that .net 4? Well AWB said I needed .net 2 and gave me a link to a cloudnet group [7] which automatically downloaded to me, but it said, your app is requesting .net 2, but .net 3.5 is best. So I downloaded it, but I am a bit iffy to go installing anything confusing without someone experienced saying go ahead... I searched the archives but the same terms are swamped by Wine discussion, or this just hasn't come up... I have looked at every hit for ".net" in the bugs section... it's not there... What should I do, or, will it just not work on this older computer? ~ R.T.G 00:30, 24 August 2014 (UTC)
- I just wonder, if I go ahead and install the 3.5 package, will it potentially damage the .net 4 currently installed? ~ R.T.G 15:55, 24 August 2014 (UTC)
test if page exists in a custom module.
Hi,
I'm developing a custom module for template maintenance on French Wikipédia.
I was wondering if there is an easy way to determine if another page exists or not, using some WikiFunctions or anything else ?
Zebulon84 (talk) 15:54, 23 August 2014 (UTC)
- I made a function using MediWiki API and it seams to work :
Function isExistingPage(pageTitle As String) As Boolean
Dim querry As String = WikiFunctions.Variables.URLLong & "api.php?action=query&format=json&titles=" & pageTitle
Dim result As String = New System.Net.WebClient().DownloadString(querry)
Return Regex.IsMatch(result, "pageid")
End Function
- It's not very quick, so it should not be used a thousand times per page, but that's OK for my needs.
- Zebulon84 (talk) 18:12, 24 August 2014 (UTC)
Update to the live CS1 module week of 2014-08-24
After the end of this week I propose to update:
- Module:Citation/CS1 to match Module:Citation/CS1/sandbox (diff)
- Module:Citation/CS1/Configuration to match Module:Citation/CS1/Configuration/sandbox (diff)
- Module:Citation/CS1/Whitelist to match Module:Citation/CS1/Whitelist/sandbox (diff)
- Module:Citation/CS1/Date validation to match Module:Citation/CS1/Date validation/sandbox (diff)
This update changes the things: in Module:Citation/CS1:
- Normalize LCCN values before validation (discussion)
Identify and categorize citations withUndone. See discussion|firstn=
/|lastn=
mismatch (discussion)- arXiv validation (discussion)
- change
|CitationClass=
tests to require unspaced class names for{{cite DVD notes}}
and{{cite AV media notes}}
(discussion) - fix bug in
|vanc=
handling (discussion) - instances of four consecutive spaces converted to tabs
in Module:Citation/CS1/Configuration:
- Identify and categorize citations with
|firstn=
/|lastn=
mismatch - Add hyphenated parameter name aliases (discussion)
- instances of four consecutive spaces converted to tabs
- override
<code>...</code>
css formatting for error messages (discussion)
in Module:Citation/CS1/Configuration:
- Add hyphenated parameter name aliases
in Module:Citation/CS1/Date validation:
- Add support for "Winter YYYY–YY" (discussion)
- Add support for whole date range validation (dmy - dmy and mdy - mdy formats) (discussion and discussion 2)
—Trappist the monk (talk) 14:02, 17 August 2014 (UTC)
Done.
—Trappist the monk (talk) 11:56, 24 August 2014 (UTC)
- Is this module used by AWB without doing an upgrade? Stevie is the man! Talk • Work 13:04, 24 August 2014 (UTC)
- @Stevietheman: Trappist the monk is not referring to an AWB custom module. Trappist is referring to the code that displays CS1 citations in Wikipedia, so there is no need to upgrade AWB to see these changes. GoingBatty (talk) 16:29, 24 August 2014 (UTC)
- Ahhh, thanks. I thought that since it was posted here, it was AWB-related. :) Stevie is the man! Talk • Work 16:32, 24 August 2014 (UTC)
- @Stevietheman: Changes Trappist makes to the CS1 module may require additional changes to AWB. For example, the addition of hyphenated parameter name aliases may require a change to the AWB code that checks for valid citation parameters and/or removal of entries from WP:AWB/RTP. GoingBatty (talk) 17:26, 24 August 2014 (UTC)
- OK, got it. Stevie is the man! Talk • Work 17:28, 24 August 2014 (UTC)
- Didn't see any changes needed to WP:AWB/RTP. I submitted Wikipedia_talk:AutoWikiBrowser/Bugs#Request_to_update_list_of_valid_cite_web_parameters this bug report to update the list of valid citation parameters. GoingBatty (talk) 18:19, 24 August 2014 (UTC)
- I post notice of change here because there is a banner at the top of the
{{cite web}}
documentation page that asks that I do so.
- I post notice of change here because there is a banner at the top of the
- Didn't see any changes needed to WP:AWB/RTP. I submitted Wikipedia_talk:AutoWikiBrowser/Bugs#Request_to_update_list_of_valid_cite_web_parameters this bug report to update the list of valid citation parameters. GoingBatty (talk) 18:19, 24 August 2014 (UTC)
- OK, got it. Stevie is the man! Talk • Work 17:28, 24 August 2014 (UTC)
- @Stevietheman: Changes Trappist makes to the CS1 module may require additional changes to AWB. For example, the addition of hyphenated parameter name aliases may require a change to the AWB code that checks for valid citation parameters and/or removal of entries from WP:AWB/RTP. GoingBatty (talk) 17:26, 24 August 2014 (UTC)
- Ahhh, thanks. I thought that since it was posted here, it was AWB-related. :) Stevie is the man! Talk • Work 16:32, 24 August 2014 (UTC)
- @Stevietheman: Trappist the monk is not referring to an AWB custom module. Trappist is referring to the code that displays CS1 citations in Wikipedia, so there is no need to upgrade AWB to see these changes. GoingBatty (talk) 16:29, 24 August 2014 (UTC)
The "Before You Post" section says to download .net versions which are unavailable
So please update with the relevant information when you have the time, thanks, ~ R.T.G 00:07, 25 August 2014 (UTC)
International issues - Icelandic dates
Anyone know if AWB is being used for Icelandic Wikipedia (is.wiki.x.io)? Haven't started using/learning it for that or the English one.. yet. I just noticed that it can delink months/dates with AWB. I see that a lot there - they didn't get the memo.. (delinking should be ok - no rule there explicitly says you should link or not, and I'll try get it to say don't).
Only legal date format in Iceland(ic Wikipedia) is DMY in this format: 1. janúar 2014. Note the first period and then lower case. [After the year, nothing except comma or period as other normal/English-like rules would dictate.] The months are (we used ISO8859-1/Latin1 if it matters):
janúar, febrúar, mars, apríl, maí, júní, júlí, ágúst, september, október, nóvember, desember.
Note: We abolised the z, but some still write marz for mars (or it could be found in quotes). We do not have c officially but ok to use sometimes but is incorrect for december (but could be a "typo".. for desember). Any other (unimplemented?) country specific stuff I could think of? 15:28, 22 August 2014 (UTC)
Comp.arch you can help customisation of AWB in Icelandic by providing me translations of the edit summary in Icelandic, giving me information of the names of the tags used, etc. -- Magioladitis (talk) 06:06, 23 August 2014 (UTC)
- Yes, I probably could.. "Edit summary", you mean what would end up in them? Is there a list I can find that I would look at? I'm not using AWB, maybe I should install and it will be clear. Didn't take a look at the SVN. Most Icelanders would be ok with using/understanding English help/manual if there is one (if there is a lot to translate), but the actual functionality (or anything else) regarding Icelandic issues isn't in AWB I assume and would need changes in code? comp.arch (talk) 13:37, 25 August 2014 (UTC)
Select all in Database scanner
Hi,
How select all the pages of a list of the Database scanner (to paste the selection)? Select all manually can be very tedious. Thanks. Automatik (talk) 21:43, 25 August 2014 (UTC)
- @Automatik: Click on the top line to select it, and then either press Ctrl-Shift-End, or use the scrollbar to go to the bottom of the list and then Shift-click on the last line. -- John of Reading (talk) 06:20, 26 August 2014 (UTC)
- Ctrl-Shift-End is perfect. Thank you John of Reading :) Automatik (talk) 23:26, 26 August 2014 (UTC)
FYI: Template:Cleanup-bare URLs nominated for deletion
The talk page of Template:Cleanup-bare URLs says that the AWB maintainers and users would appreciate knowing if anyone proposes changing or deleting that template. Jodosma (talk) recently proposed deleting it, so you might want to stop by the discussion. — Control.valve (talk) 20:41, 28 August 2014 (UTC)
- FYI, the result of the discussion was Snow keep. GoingBatty (talk) 18:58, 1 September 2014 (UTC)
Use Make Module with Database Scanner
Is it possible to use the Make Module option with the Database Scanner? I've got a custom module that dumps the contents of a template field to a file for later analysis, prior to a clean-up run in the future. The module needs to run on 19,000+ articles, there's no time pressure on the age of the data, so running via the database scanner would be better than chucking the load onto the WP servers. Does anyone know if this is possible? or have an alternative suggestion? Thanks.- X201 (talk) 15:19, 1 September 2014 (UTC)
- No, though if you're able to write a medium/high complexity custom module you should be able to compile a custom version of AWB from SVN to replace the logic of one of the default scanner options. Rjwilmsi 09:46, 2 September 2014 (UTC)
Inactive editors
The following editors have not edited for 2 years. I will remove AWB access in 3 days. Anyone of these editors of course can re-apply to get rights back. Thanks, Magioladitis (talk) 17:37, 1 September 2014 (UTC)
- I presume by "not edited" you mean "not used AWB"? - RichT|C|E-Mail 17:47, 1 September 2014 (UTC)
- Rich_Smith I mean not edited at all. No edits on the last 2 years. -- Magioladitis (talk) 17:49, 1 September 2014 (UTC)
- in which case, I need to be removed from the list, I changed my username from methecooldude which may be leading to confusion (Contribs) - RichT|C|E-Mail 17:56, 1 September 2014 (UTC)
- Rich_Smith I replaced the old username with the new one. Now you'll be able to use AWB again. -- Magioladitis (talk) 18:06, 1 September 2014 (UTC)
- in which case, I need to be removed from the list, I changed my username from methecooldude which may be leading to confusion (Contribs) - RichT|C|E-Mail 17:56, 1 September 2014 (UTC)
- Rich_Smith I mean not edited at all. No edits on the last 2 years. -- Magioladitis (talk) 17:49, 1 September 2014 (UTC)
Clean up completed. -- Magioladitis (talk) 10:17, 4 September 2014 (UTC)
Duplicate a find+replace rule
In my current task I am often needing to create a new find+replace rule that is a modified copy of the one just above or below it. Currently to duplicate a rule I am inserting a new blank row, copy+pasting the "find", copy+pasting the "replace", and ticking some of the checkboxes. I can do this quite quickly - I've had lots of practice - but am I missing a neat way to do this? -- John of Reading (talk) 20:15, 7 September 2014 (UTC)
- In Advanced settings, all you have to do to accomplish this is Right click, Copy, Right click, Paste (using related Ctrl keys also is supposed to work). Stevie is the man! Talk • Work 00:14, 8 September 2014 (UTC)
- You would not be out of line to make a feature request for an additional option on the right-click menu – in addition to "Insert row" and "Delete row", let's have "Duplicate row". Chris the speller yack 14:16, 8 September 2014 (UTC)
Auto Wiki Browser
I've seen other users using this tool, and I really want to know how to use it myself. I might just have to thoroughly read the instructions in the article. Unless someone could give me some simple instructions. -- C.Syde (talk | contribs) 22:39, 24 September 2014 (UTC)
- @C.Syde65: You might want to read Wikipedia:AutoWikiBrowser#(3) Get started before diving in to the full user manual. Happy editing!
Something 2.0.2.0?
When I started AWB minutes ago, I received some update request named "Something 2.0.2.0". I clicked OK, but by now I cancan not relate it to AWB. First: the warning was early (way too) in the AWB-startup process, and second because my actual AWB (start screen) says version "5.5.5.0". What did I click OK for? Is this OK? -DePiep (talk) 21:18, 26 September 2014 (UTC)
- My AWBUpdater.exe is version 2.0.2.1, so possibly the message was about an update to the updater. -- John of Reading (talk) 21:50, 26 September 2014 (UTC)
- Corrected, not trivial:
cancan not. - Thanx. Since you recognise it, I know what to trust. -DePiep (talk) 21:57, 26 September 2014 (UTC)
- Corrected, not trivial:
Do changes to corresponding list
Is there a possibility to do unequal changes (but very similar) to a table like list of articles? → User: Perhelion 08:54, 17 September 2014 (UTC)
- Someone has done done this on bot-request, I mean with VFC. → User: Perhelion 09:16, 26 September 2014 (UTC)
- Try subst-ing a page with {{#switch:. Should also work on AWB. --Zhuyifei1999 (talk) 08:27, 27 September 2014 (UTC)
Reflinks rewrite
Just as a note that I've added my Reflinks rewrite to {{Cleanup-bare URLs}}. This does not affect the inner workings of the template. Zhaofeng Li [talk... contribs...] 09:35, 30 September 2014 (UTC)
Error message
I am trying to perform my first edit with AWB. However, the message, "API reports this user is blocked from editing" appears when I click "start". I was approved to use AWB on July 9, 2014. What do I need to do to fix this issue? Thanks. Mitchumch (talk) 11:07, 28 September 2014 (UTC)
- @Mitchumch: Where were you trying to do the edit? Here on the English Wikipedia or somewhere else? Thanks! GoingBatty (talk) 13:24, 28 September 2014 (UTC)
- @GoingBatty: Thank you for responding. English Wikipedia. Mitchumch (talk) 13:56, 28 September 2014 (UTC)
@Mitchumch: which version of AWB do you have? -- Magioladitis (talk) 14:42, 28 September 2014 (UTC)
- @Magioladitis: I have version 5.5.5.0 Mitchumch (talk) 15:41, 28 September 2014 (UTC)
- @Mitchumch: which page are you trying to edit? -- Magioladitis (talk) 17:04, 28 September 2014 (UTC)
- @Magioladitis: I am trying to edit the article Movements for civil rights. Specifically, I am trying to replace Category:Civil rights movements with Category:Movements for civil rights. Mitchumch (talk) 22:43, 28 September 2014 (UTC)
- @Mitchumch: Can you edit other pages? Try editing List of listed buildings in Arbroath, Angus for instance. -- Magioladitis (talk) 23:16, 28 September 2014 (UTC)
- @Mitchumch: Please note that Movements for civil rights is semi-protected. Are you able to edit the article in your browser without AWB? GoingBatty (talk) 01:24, 29 September 2014 (UTC)
- @GoingBatty: Yes. Please see edit history of article for my edits. Mitchumch (talk) 01:28, 29 September 2014 (UTC)
- @GoingBatty: @Magioladitis: I'm now able to perform edits using AWB. How? I do not know. Nonetheless, I appreciate both of your efforts to help me. Mitchumch (talk) 10:36, 30 September 2014 (UTC)
- @GoingBatty: Yes. Please see edit history of article for my edits. Mitchumch (talk) 01:28, 29 September 2014 (UTC)
- @Mitchumch: which page are you trying to edit? -- Magioladitis (talk) 17:04, 28 September 2014 (UTC)
Mitchumch no problem. I suspect an IP range block that affected you. -- Magioladitis (talk) 10:44, 30 September 2014 (UTC)
Update to the live CS1 module weekend of 11–12 October 2014
Over the 11–12 October 2014 weekend I propose to update:
- Module:Citation/CS1 to match Module:Citation/CS1/sandbox (diff)
- Module:Citation/CS1/Configuration to match Module:Citation/CS1/Configuration/sandbox (diff)
- Module:Citation/CS1/Whitelist to match Module:Citation/CS1/Whitelist/sandbox (diff)
- Module:Citation/CS1/Date validation to match Module:Citation/CS1/Date validation/sandbox (diff)
This update changes these things:
in Module:Citation/CS1:
- Bug fix in
get_coins_pages()
; (discussion) - Bug fix in
extractnames()
; (discussion) - Change
lccn()
to require lower case alpha characters; (discussion) - Change
openlibrary()
to emit error message when OL identifier contains leading alpha characters; (discussion) - Change
|language=
support (discussion):- get ISO639-1 language name from Wikimedia;
- Add support for right-to-left languages using new parameter
|script-title=
; (discussion) and (discussion) - Categorize pages when
|language=language name
;
- Change
listpeople()
so that we don't link to the current page through|authorlinkn=
or|editorlinkn=
; (discussion) - Add code to strip wikimarkup (italics and bold) from titles and chapters when adding those to COinS metadata; (discussion)
- Add Australia, Brazil, Mexico to list of countries supported by
|asn-tld=
; (discussion) - Undo peculiar title and chapter format swap when
|work=
or any of its aliases set; (discussion) - Categories:
- Add support for maintenance categories; discussion
- Change
amazon()
to add maintenance category when|asin=
value is an isbn; discussion - Add support for properties categories; (discussion)
in Module:Citation/CS1/Configuration:
- Updated JFM and ZBL prefixes; (discussion)
- deleted ISO639-1 table; (discussion)
- Changed error categories for doi and ol errors (discussion)
- Make date errors visible; (discussion)
in Module:Citation/CS1/Whitelist:
- add new parameter
|script-title=
(discussion) and (discussion)
in Module:Citation/CS1/Date validation:
- Add support for valid date formats Summer yyyy–yy and Summer yyyy–yyyy; (discussion)
There is enough here that there is a deal of documentaion to be done. I think that I'll begin that and not bother to hide it prior to the live update – it's just easier that way.