User:Gifted9/autowikibrowser

Revision as of 06:36, 3 November 2021 by Gifted9 (talk | contribs)

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

  File:Lilkinzorioleavatar.png

  1. download the program per their instructions: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser#(2)_Download
  2. options > preferences > site > set project as custom and website page as http://webkinzpictureguide.shoutwiki.com/w/
  3. file > log in/profiles > log in with your normal credentials
  4. 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
  5. middle: toggle settings in any of the four tabs, per instructions in the #success subheading
  6. 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

example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Wheels_%26_Games&curid=31338&diff=58161&oldid=58160

  1. options tab > find and replace checked > advanced settings
  2. new rule > regular expression checked
  3. in find textbox, write ([^[])https://webkinznewz.ganzworld.com/(.+?)(''|)</ref>
  4. in replace textbox, write $1[https://webkinznewz.ganzworld.com/$2]$3</ref>

task: remove reftags from numbered external links

example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Wheels_%26_Games&curid=31338&diff=58169&oldid=58161

  1. options tab > find and replace checked > advanced settings
  2. new rule > regular expression checked
  3. in find textbox, write <ref>\[http(.+)\]</ref>
  4. in replace textbox, write [http$1]

task: remove #comment from wkn external links

example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Webkinz_Newz&curid=29752&diff=58181&oldid=58157

  1. options tab > find and replace checked > advanced settings
  2. new rule > regular expression checked
  3. in find textbox, write https://webkinznewz.ganzworld.com/(.+)#comments
  4. 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

  1. make list source: category, category: rotatable > make list
  2. more tab > append/prepend text enabled checked, append selected
  3. 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

  1. options tab > find and replace checked > advanced settings
  2. new rule > regular expression checked
  3. in find textbox, write File:(.+).png(nw|sw|se|ne).png
  4. in replace textbox, writeFile:$1$2.png

task: create collection page from all in category

example: Rotatable Collection

  1. in wpg, create a new blank page as a destination for the collection page
  2. make list source: category, category: rotatable > make list
  3. select one of the list, ctrl-a to highlight all, ctrl-c to copy
  4. on the collection page in wpg, ctrl-v to paste
  5. return to awb > options tab > find and replace checked > advanced settings
  6. new rule > regular expression checked
  7. in find File:(.+).png
  8. in replace textbox, write
    |-
    |[[File:$1.png]]
    <br>$1
    |[[File:$1nw.png]][[File:$1sw.png]][[File:$1se.png]][[File:$1ne.png]]
    
  9. more tab > append/prepend text enabled checked, append selected
  10. write the following in the textbox
    {| class="greentable" width="70%"
    |- align="left"
    !Item
    !Rotations
    
  11. start tab > start
  12. in the bottom right pane, scroll all the way down and copy & paste the following:
    |-
    !
    !
    |}
    
  13. 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

  1. options tab > find and replace checked > advanced settings
  2. 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 and the notes are for my eyes, use at your own risk

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

find & replace advanced, 3 rules, regex on for all

{{WPG

\n{|class="pinktable sortable" width="60%" |- align="left" !Name !Availability !Tradeable

|\[\[File:(.+).png\]\]
(.+)
(.+)

- |File:$1.png
$2 |$3 |x

\n}}\n

\n|- ! ! ! |- |}


new requests

i am ready to receive The Inquiries