User:Gifted9/autowikibrowser: Difference between revisions
(details) |
(details) |
(No difference)
|
Revision as of 17:33, 3 November 2021
i hate doing anything manually that i could potentially automate and you probably do too, so here are some instructions to use autowikibrowser on webkinz picture guide.
if you have requests, drop them below, in the #new requests section
toot oriole
- download the program per their instructions: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser#(2)_Download
- options > preferences > site > set project as custom and website page as http://webkinzpictureguide.shoutwiki.com/w/
- file > log in/profiles > log in with your normal credentials
- left side: load the pages you want to change here. i typically use my watchlist or wikisearch (text) for specific edits, or special pages to see the various pages in special:specialpages. ctrl-shift-a to keep the list alphabetized, ctrl-shift-u to remove duplicates
- middle: toggle settings in any of the four tabs, per instructions in the #success subheading
- start tab > start button will run awb and present the suggested changes. review in the top pane, and if satisfactory, click save
other places to rtfm
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser - autowikibrowser's documentation
http://www.shoutwiki.com/wiki/Help:AutoWikiBrowser - shoutwiki's documentation
https://regex101.com/ - formats and explains regex to human eyes
success
the following are tasks i've successfully configured with awb. duplicate these instructions to do the same.
task: replace a whole wkn external url with a number according to vanilla wiki formatting
- options tab > find and replace checked > advanced settings
- new rule > regular expression checked
- in find textbox, write
([^[])https://webkinznewz.ganzworld.com/(.+?)(''|)</ref>
- in replace textbox, write
$1[https://webkinznewz.ganzworld.com/$2]$3</ref>
task: remove reftags from numbered external links
- options tab > find and replace checked > advanced settings
- new rule > regular expression checked
- in find textbox, write
<ref>\[http(.+)\]</ref>
- in replace textbox, write
[http$1]
task: remove #comment from wkn external links
- options tab > find and replace checked > advanced settings
- new rule > regular expression checked
- in find textbox, write
https://webkinznewz.ganzworld.com/(.+)#comments
- in replace textbox, write
https://webkinznewz.ganzworld.com/$1
task: add rotated views in gallery to file page
this is a two-step process to add rotated views to every file in category: rotatable
- make list source: category, category: rotatable > make list
- more tab > append/prepend text enabled checked, append selected
- write the following in the textbox
==Rotated Views== <gallery> %%title%%nw.png %%title%%sw.png %%title%%se.png %%title%%ne.png </gallery>
repeat step 1, then do the following
- options tab > find and replace checked > advanced settings
- new rule > regular expression checked
- in find textbox, write
File:(.+).png(nw|sw|se|ne).png
- in replace textbox, write
File:$1$2.png
task: create collection page from all in category
example: Rotatable Collection
- in wpg, create a new blank page as a destination for the collection page
- make list source: category, category: rotatable > make list
- select one of the list, ctrl-a to highlight all, ctrl-c to copy
- on the collection page in wpg, ctrl-v to paste
- return to awb > options tab > find and replace checked > advanced settings
- new rule > regular expression checked
- in find
File:(.+).png
- in replace textbox, write
|- |[[File:$1.png]] <br>$1 |[[File:$1nw.png]][[File:$1sw.png]][[File:$1se.png]][[File:$1ne.png]]
- more tab > append/prepend text enabled checked, append selected
- write the following in the textbox
{| class="greentable" width="70%" |- align="left" !Item !Rotations
- start tab > start
- in the bottom right pane, scroll all the way down and copy & paste the following:
|- ! ! |}
- the names will be in Itemfullname format, you will need to manually correct them to Item Full Name format
task: create an item guide page skeleton from its picture guide page
example: User:Gifted9/autowikibrowser testing/pic to item
- options tab > find and replace checked > advanced settings
- click new rule six times to create six rules, then enter the following information into each rule
rule number | find textbox | replace textbox | regular expression checked |
---|---|---|---|
1 | {{WPG |
\n{|class="pinktable sortable" width="60%"
|- align="left"
!Name
!First Available
!Last Available
!Tradeable
|
yes |
2 | {{Picture Guide}} |
{{Item Guide}} |
no |
3 | {{!}}\[\[File:(?:.+).png\]\]<br>(.+) |
-
|$1
|x
|x
|x
|
yes |
4 | \n}}\n |
\n|-
!
!
!
!
|-
|}
|
yes |
5 | [[Webkinz Picture Guide | >> Click here to return to the Picture Guide's main page]]
|
[[Webkinz Item Guide | >> Click here to return to the Item Guide's main page]]
|
no |
6 | \[\[\(Item Guide\) (.+) \| >> Click here to view when these items were last available\]\]\n
|
[[(Picture Guide) $1 | >> Click here to view pictures of these items]]\n |
yes |
pending
the below items are in progress. notes likely look like hodgepodge and miscellany to eyes that are not mine, but more power to you if you can extract anything useful
task: create a picture guide page from its item guide page
difference between item and pic: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=User%3AGifted9%2Fautowikibrowser_testing&type=revision&diff=57857&oldid=57856
User:Gifted9/autowikibrowser testing/item to pic
task: replace all duplicate single references with a multireference
User:Gifted9/autowikibrowser testing/singleref to multiref
duplicate unnamed references and duplicate named references are vanilla features in general fixes https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/General_fixes#Duplicate_Named_References_(DuplicateNamedReferences)
"The article must already have at least one named reference (to avoid a 'change in citation style' in the article per WP:CITEVAR). This means at least one named ref in short format (<ref name=a/>) as a full named ref by itself does not cause any references to display as combined."
find: \<ref\>This item was available on the \[\[\(Picture_Guide\)_(Mobile_Wheel_of_Wow|Community_Codes|Balloon_Darts)_Archive\#(.+?)\]\]\<\/ref\>{1}
\<ref\>This item was available on the \[\[\(Picture_Guide\)_(Mobile_Wheel_of_Wow|Community_Codes|Balloon_Darts)_Archive\#(.+?)\]\]\<\/ref\>{2,}
replace: <ref name="(.+?)"\/>This item was available on the [[(Picture_Guide)_($1$2$3)_(.+?)]]</ref>{1}
<ref name="$2"/>{2}
task: automatically protect new pages in mainspace
Special:NewPages https://www.mediawiki.org/wiki/API:Protect https://webkinzpictureguide.shoutwiki.com/w/api.php?action=help&modules=protect
task: create collection page from scratch
destination: Wacky Zingoz & Zangoz Collection
special page > all files > namespace file loads first 25000, up to s. how can i make the nolimits plugin work. filter, regex on "wacky|zingoz|zangoz"
go to special:allpages, namespace file, starting at "wacky". save as complete html. do the same, starting at "zingoz"
open up htmls, copy and paste lists of files starting w wacky, zingoz, and zangoz directly into awb list
add cat Category:Wacky Zingoz & Zangoz. manually review and remove cats from nonapplicable pics
manual search will be required from s to z for files missed. i can't seem to search the file namespace for some reason, no documentation on awb. problem w shoutwiki?
also category:bunk Bed
task: update collection page format
this is a two-step process to update the picguide-formatted collection pages to the new table format
example: vehicle step 1, vehicle step 2, wallpaper step 1, wallpaper step 2
- options tab > find and replace checked > advanced settings
- click new rule four times to create four rules. ensure regular expression is checked for all of them, then enter the following information into each rule
rule number | find textbox | replace textbox |
---|---|---|
1 | {{WPG |
\n{|class="pinktable sortable" width="60%"
|- align="left"
!Name
!Availability
!Tradeable
|-
|
2 | {{!}}\[\[File:(.+).png\]\]<br>(?:''')(.+)(?:''')<br>(.+) |
-
|[[File:$1.png]]
<br>$2
|$3
|x
|
3 | (|\|{{!}})\n}} |
\n
!
!
!
|-
|}
|
4 | \|{{!}}\[\[File:(.+).png\]\]<br>(?:'''|)(.+)(?:'''|) |
|-
|[[File:$1.png]]
<br>$2
|x
|x
|
- ensure enabled is selected for rules 1 to 3 and deselected for rule 4, then exit from the popup, start tab > start, have the program run, then save
- on the bottom left panel, click + to reload the same page
- in find and replace > advanced settings, ensure enabled is deselected for rules 1 to 3 and selected for rule 4, then exit from the popup, start tab > start, have the program run, then save
- you will need to manually correct formatting errors and fill in availability in each of the "x" placeholders
new requests
i am ready to receive The Inquiries