Wikipedia talk:AutoWikiBrowser
- Home
Introduction and rules - User manual
How to use AWB - Discussion
Discuss AWB, report errors, and request features - User tasks
Request or help with AWB-able tasks - Technical
Technical documentation
This is the discussion page for the AutoWikiBrowser (AWB) project. It is also the place to discuss using the AWB program (for help, questions, or general inquiries about AWB). Specific guidelines on where to make particular reports or requests are provided in the § Before you post section below. Before asking a question, please refer to the read the § Frequently asked questions below.
Index 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
This page has archives. Sections older than 30 days may be automatically archived by Lowercase sigmabot III. |
Before you post
[edit]Do you want to ... | Please use | ||||
---|---|---|---|---|---|
Report a bug or request a feature in AWB? | Check reported bugs on Phabricator before filing a new bug report. You do not need to create another account there; just log in with your global Wikimedia account. See this MediaWiki wiki page on how to report bugs and request features on Phabricator.
| ||||
Report an incorrectly fixed typo? | Wikipedia talk:AutoWikiBrowser/Typos | ||||
Request approval to use AWB? | Wikipedia:Requests for permissions/AutoWikiBrowser | ||||
Ask a question about AWB or ask for help? | This page |
Frequently asked questions
[edit]
Frequently asked questions
|
---|
//Detect IE5.5+ if (navigator.appVersion.indexOf("MSIE")==-1) { // Previous contents go here .... }
|
Discussion
[edit]Adding WikiProject banners
[edit]Hi, is WP:Kingbotk still used for this? It doesn't seem the bot is active and I can't see a way to do edit WikiProject banner shells on vanilla AWB Kowal2701 (talk) 08:44, 27 August 2024 (UTC)
- I'm about to begin tagging articles for WP:WikiProject Anthropology/Oral tradition taskforce. I've gotten AWB to work however I'm stuck regarding KingbotK (TL;DR the KingbotK plugin fails to load). I've followed the instructions and have downloaded it and moved it into the same file as AutoWikiBrowser.exe.config. When I load AWB and click the 'Plugins' tab I get two options: 'Load...' and 'Manager...' Load takes me to the file and I click on 'Kingbotk AWB Plugin.dll'. Nothing changes, and when I click Manager it tells me it failed to load with no further information or options. Kowal2701 (talk) 11:25, 2 September 2024 (UTC)
- Any help would be greatly appreciated Kowal2701 (talk) 15:33, 6 September 2024 (UTC)
- Probably because of the "don't trust downloaded dlls" feature that's now pretty much default in Windows. Especially if you had to go through a "yes, really run this" procedure the first time you launched AWB. Anyway, find the DLL itself under the Plugins directory, right-click, Properties. If you see "This file came from another computer..." and an Unblock checkbox, click it and hit OK. I wish we didn't have to do this, but MS has decided to save you from yourself. David Brooks (talk) 17:09, 7 September 2024 (UTC)
- @DavidBrooks thank you so much! Please have a great day Kowal2701 (talk) 17:48, 7 September 2024 (UTC)
- @DavidBrooks sorry to bother you, but do you know how to go about tagging articles for a taskforce? It doesn't seem like the generic template on Kingbotk supports taskforces unless I'm mistaken Kowal2701 (talk) 17:36, 4 October 2024 (UTC)
- @Kowal2701: Not my area of expertise, sorry. David Brooks (talk) 18:24, 5 October 2024 (UTC)
- no worries, thank you for replying Kowal2701 (talk) 18:25, 5 October 2024 (UTC)
- @Kowal2701: Not my area of expertise, sorry. David Brooks (talk) 18:24, 5 October 2024 (UTC)
- Probably because of the "don't trust downloaded dlls" feature that's now pretty much default in Windows. Especially if you had to go through a "yes, really run this" procedure the first time you launched AWB. Anyway, find the DLL itself under the Plugins directory, right-click, Properties. If you see "This file came from another computer..." and an Unblock checkbox, click it and hit OK. I wish we didn't have to do this, but MS has decided to save you from yourself. David Brooks (talk) 17:09, 7 September 2024 (UTC)
- Any help would be greatly appreciated Kowal2701 (talk) 15:33, 6 September 2024 (UTC)
Unauthorized Access Exception error
[edit]Prompted by the discussion above, I just updated AWB. Windows 11 prompted me to run it as administrator, which I did.
Then when I tried to run the programme, I got an "UnauthorizedAccessException" error, with the exmplanation "Access to the path 'C:\Program Files (x86)\AutoWikiBrowser\AWBUpdater.exe' is denied."
Before I open a Phabricator ticket, is this a known issue/ easily fixed? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:20, 9 August 2024 (UTC)
- Try look Search -> Local Security Policies -> Software Restrictions Policies -> Additional Rules; and check if exists any "path" type rules that prevent execution of certain files or access to certain folders. IndyJr (talk) 17:18, 11 August 2024 (UTC)
- @IndyJr: Thank you. I presume you mean search in settings in Windows 11? There is no result - other than a web search - for "Local Security Policies". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:36, 11 August 2024 (UTC)
- Yes, Win11. But I've the Pro version, perhaps these settings doesn't exists in the Home version. IndyJr (talk) 18:10, 11 August 2024 (UTC)
- @IndyJr: Thank you. I presume you mean search in settings in Windows 11? There is no result - other than a web search - for "Local Security Policies". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:36, 11 August 2024 (UTC)
Restored from the archive; the issue persists. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:05, 11 September 2024 (UTC)
- I'm curious why it is trying to find the updater in Program Files (x86). Is that where you put the install? Anyway, it's possible you have the same problem as explored above. Find the folder with the AWBUpdater.exe file, right-click on the file, Properties. If the dialog offers you an Unblock checkbox, check it and OK. Does that help? If so, you should probably do the same with all the exe's and DLLs in the release. David Brooks (talk) 21:02, 12 September 2024 (UTC)
- Yes, it is installed in 'Program Files (x86)'. I did as you suggest and there was no "unblock" option. The file was read-only, so I removed that, but it made no difference. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:14, 13 September 2024 (UTC)
Question regarding certain replacements
[edit]Hi, I want to make this type of replacements inside a template, is it possible by AWB:
{{TEMPLATE|123|XYZ}}
->{{TEMPLATE|page=123|text=XYZ}}
(i.e. shift unnamed parameters into named ones){{TEMPLATE|2=XYZ|1=123}}
->{{TEMPLATE|123|XYZ}}
(i.e. organize ordering of unnamed parameters)
Thanks, —Svārtava (t/u) • 09:49, 12 September 2024 (UTC)
- If your use cases will always appear in the orders you describe, then sure, using regex:
({{TEMPLATE\s*\|\s*)([^|]*)\|([^}]*)}}
→$1page=$2|text=$3}}
({{TEMPLATE\s*\|\s*)2=([^|]*)\|1=([^}]*)}}
→$1$3|$2}}
- That being said, if a template takes both named and unnamed parameters (e.g. {{{1|{{{page|}}}}}}) then AWB should not be used to do this, as it is a cosmetic and unnecessary change and would be contrary to our rules of use. On the other hand, if a template is being replaced or otherwise updated then it is probably okay. I'd like to more details mainly so I could make sure I'm giving you the best advice for the edits you're seeking to make. Primefac (talk) 10:30, 12 September 2024 (UTC)
- Thanks a lot for the reply, those were very helpful (I needed to some template updating/standardizations on Wiktionary, for which I asked). I dealt with cases not always appearing in the order I described by adding the alternate sequence in another row. The use of variables as you showed will also be very useful in future. —Svārtava (t/u) • 10:02, 15 September 2024 (UTC)
ARM64 build
[edit]I recently purchased a Surface Pro running on an ARM64 processor, and rebuilt AWB to run natively. It certainly seems zippier than the standard x86 build running under emulation, especially on startup. If you are interested, I threw a release up at https://github.com/DavidWBrooks/UnofficialAWB/releases/latest. No plugins; let me know if that's a problem. Also it targets .NET Framework 4.8 instead of 4.5, but that shouldn't be an issue. David Brooks (talk) 17:49, 21 September 2024 (UTC)
Defer only template redirect substitution?
[edit]Hey—I've become self-conscious of the template redirect substitution and personally find it unduly disruptive to always perform when using AWB. Is there a way to disable only template redirect substitution while keeping every other fix enabled? Remsense ‥ 论 20:09, 24 September 2024 (UTC)
- @Remsense: I don't know the answer. But one difficulty is that some other parts of the AWB code assume that certain template redirects have been replaced - see Special:Diff/755659122 and Wikipedia talk:AutoWikiBrowser/Template redirects/Archive 1#Emptied. -- John of Reading (talk) 07:32, 25 September 2024 (UTC)
- Hum, thank you for making me aware of this stumbling block. Remsense ‥ 论 07:55, 25 September 2024 (UTC)
Why is AWB PC only
[edit]Will there ever be mobile support? (such as a link in the sidebar or the three dots icon when visiting an article) Electrou (formerly Susbush) (talk) 13:52, 5 October 2024 (UTC)
- You're free to take the code and port it to mobile systems if you want. Headbomb {t · c · p · b} 14:05, 5 October 2024 (UTC)
- Even I'm on mobile, but how will I get the code for it (I want to create a port to mobile) Electrou (formerly Susbush) (talk) 15:52, 5 October 2024 (UTC)
- It's linked above. The codebase is in C#, so I don't know what toolchains there presently are for that. Remsense ‥ 论 16:21, 5 October 2024 (UTC)
- Where is the link? I don't see it. Electrou (formerly Susbush) (talk) 16:32, 5 October 2024 (UTC)
- Wikipedia:AutoWikiBrowser/Technical. Remsense ‥ 论 16:33, 5 October 2024 (UTC)
- That's just for computer Electrou (formerly Susbush) (talk) 16:39, 5 October 2024 (UTC)
- Correct. It's the source code for a C# app written for Windows. Remsense ‥ 论 16:46, 5 October 2024 (UTC)
- The app is based on Windows Forms, which was very much designed around Windows itself (its successor, WPF, was/is more mobile and cross-platform friendly). It uses a lot of other Windows-specific API. Also, its UI has a lot of "chrome" (interacting elements) and would require a complete re-think to fit onto a small screen. You might get a clue from the Windows Portability Analyzer, but it's over 10 years old and won't even install on my system. If I were seriously tasked with doing this, I might start with the official Wikipedia mobile app and think through what AWB features I might like to wrap around it. No, not volunteering! David Brooks (talk) 18:50, 5 October 2024 (UTC)
- Correct. It's the source code for a C# app written for Windows. Remsense ‥ 论 16:46, 5 October 2024 (UTC)
- That's just for computer Electrou (formerly Susbush) (talk) 16:39, 5 October 2024 (UTC)
- Wikipedia:AutoWikiBrowser/Technical. Remsense ‥ 论 16:33, 5 October 2024 (UTC)
- Where is the link? I don't see it. Electrou (formerly Susbush) (talk) 16:32, 5 October 2024 (UTC)
- It's linked above. The codebase is in C#, so I don't know what toolchains there presently are for that. Remsense ‥ 论 16:21, 5 October 2024 (UTC)
- Even I'm on mobile, but how will I get the code for it (I want to create a port to mobile) Electrou (formerly Susbush) (talk) 15:52, 5 October 2024 (UTC)
- @Electrou, you can always try JWB in the desktop mode on mobiles. It has less functionality then AWB, but can be good enough for your tasks. IKhitron (talk) 14:03, 8 October 2024 (UTC)
Tagging for taskforces
[edit]Does anyone know how to go about tagging pages for taskforces using WP:AWB? It doesn't seem like the generic template on Kingbotk supports taskforces unless I'm mistaken. Kowal2701 (talk) 18:30, 5 October 2024 (UTC)
- I assume you mean something like adding
|eclipses=yes
to {{astronomy}}? If so, I feel like just adding the taskforce to the template call directly would be easiest. I generally do a find/replace adding in the extra parameter. Primefac (talk) 13:36, 6 October 2024 (UTC)- That's really clever, thank you! Kowal2701 (talk) 13:51, 6 October 2024 (UTC)