User:Gifted9/autowikibrowser

Revision as of 18:24, 10 November 2021 by Gifted9 (talk | contribs) (task: scavenge wi page)

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://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Find_and_replace find and replace keywords, including %%title%%

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: beautify external urls

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, prepend 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 scratch

example: category: Wacky Zingoz & Zangoz, Wacky Zingoz & Zangoz Collection & Category: Bunk Bed, Bunk Bed Collection

process 1: add category to applicable files
this only works for collection items that have a searchable keyword in the file name, such as "bunkbed" or "vanity." if the common factor is visual-only, you will need to manually add files to a category by browsing through picture guide or the visual master list.
alternatively, see these two pages that each contain half of the visual master list as plaintext transclusions: user:gifted9/autowikibrowser/all items & user:gifted9/autowikibrowser/all items2. it's useless to autowikibrowser, but may be useful for searching in browser
  1. make list source: special page > make list > on the popup, source: all pages > namespace: file > ok (do not search source: all pages - it only brings up mainspace pages)
  2. this will only load the alphabetical first 25,000 files, to somewhere in the "surfi*" range. to load the majority of the remaining files, select user contribs and write the usernames of major file uploaders (see #appendix a edits in file namespace per user)
  3. filter > subject: file > under title, keep titles containing: enabled > write the keyword in the textbox > apply
  4. manually remove any files you can see do not belong to the collection
  5. more tab > categories dropdown: add category > write the keyword in the textbox
  6. run the program and save
  7. if you are either thorough or masochistic, you can manually comb through special:allpages in the file namespace and use your browser's search function for missed files, and add the category manually. if you are neither of those things, skip this step
process 2: prepare collection page
  1. return to wpg and create a new blank page as a destination for the collection page
  2. return to awb. make list source: category, category: your category > 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. save the page
process 3: fill out table skeleton
  1. return to awb > options tab > find and replace checked > advanced settings
  2. new rule > regular expression checked
  3. in find File:(.+).png
  4. in replace textbox, write
    |-
    |[[File:$1.png]]
    <br>$1
    |x
    |x
    |-
    
  5. more tab > append/prepend text enabled checked, prepend selected
  6. write the following in the textbox
    {| class="greentable" width="70%"
    |- align="left"
    !Item
    !Availability
    !Tradeable
    
  7. start tab > start
  8. in the bottom right pane, scroll all the way down and copy & paste the following:
    |-
    !
    !
    !
    |}
    {{Collector Pages}}
    [[Category:Collector Page]]
    
process 4: fill out table muscles and skin
  1. the names will be in Itemfullname format, you will need to manually correct them to Item Full Name format. unless you have a custom webkinz dictionary to reference, this is not automatable
  2. you will need to manually correct any formatting errors and fill in availability and tradeability in each of the "x" placeholders. you may be able to automate certain simple substitutions or repeat errors
  3. once finished, remove the {{under construction}} template at the top of the page

appendix a: edits in file namespace per user

50,743 total files. it should add up to more than 100% as it's any edit to a file namespace page, not just uploads. data taken 2021-11-05

contribs in file namespace username notes
557 gifted9 mostly adding categories or rotations
5135 choircutie x
2168 boper911 x
11231 loopy x
7405 DisneyPrincess x
914 Rose Quartz x
940 littleleaf32 x
1573 bepsy x
73 migrubbs mostly pets and theme previews
86 tulaash mostly mp3s
27 imthinking101 mostly characters
307 mcorrcow1160 mostly icons, stationery, quizzy's archives
33 draven x

task: create collection page from all in category

variation for the Rotatable Collection

  1. new rule > regular expression checked
  2. in find File:(.+).png
  3. in replace textbox, write
    |-
    |[[File:$1.png]]
    <br>$1
    |[[File:$1nw.png]][[File:$1sw.png]][[File:$1se.png]][[File:$1ne.png]]
    
  4. more tab > append/prepend text enabled checked, prepend selected
  5. write the following in the textbox
    {{Under Construction}}
    {| class="greentable" width="70%"
    |- align="left"
    !Item
    !Rotations
    
  6. start tab > start
  7. in the bottom right pane, scroll all the way down and copy & paste the following:
    |-
    !
    !
    |}
    

task: create an item guide page skeleton from its picture guide page

example: User:Gifted9/autowikibrowser testing/pic to item, diff

  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(3|4|6|)
\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

pages that need a skeleton:

(Item Guide) Ganz eStore Promo Gift With Purchase

task: create pet item guide skeleton from its picture guide page

appendix c: a variation for the (Item Guide) All Pets page, from (Picture Guide) All Pets

this requires a minimum of four edits

  • preparation: copy & paste picture guide pages in correct subsection of item guide page
  • edit 1: enable rules 1 to 5, disable all else, and run
  • edit 2: enable rules 6 and 7, disable all else, and run
  • edit 3: manually fill in availability and month released
  • edit 4: enable rule 8, disable all else, and run

example: user:gifted9/autowikibrowser/pet to item

  1. options tab > find and replace checked > advanced settings
  2. click new rule seven times to create seven rules, then enter the following information into each rule
rule number find textbox replace textbox regular expression checked
1 {{WPG4
{|class="bluetable sortable" width="100%"
|-align="left"
!Pet Name
!PSI
!PSF
!Pet Type
!Release Date
no
2 {{Picture Guide}} {{Item Guide}} no
3 [[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
4
\|{{!}}\[\[File:(?:.+)avatar.png\]\]<br>(.+)
\|{{!}}\[\[File:(?:.+)giftbox.png\]\]<br>(?:.+)
\|{{!}}\[\[File:(?:.+).png\]\]<br>(.+)
\|{{!}}\[\[File:(?:.+).png\]\]<br>(.+)
\n|-
|$1
|$2
|$3
|x
|%%subpagename%%
yes
5 \n}}\n
\n|-
!
!
!
!
!
|-
|}
yes
6
\|(.+), (Lil Kinz|Small Signature|Signature|Endangered|[[Promo Kinz]])
\|(.+)
\|(.+)
\|x
|$1
|$3
|$4
|$2
yes
7 \(item guide\) (20[0-9][0-9]) pets $1 yes
8
\|-
!
!
!
!
!
\|-
\|}(\n|)
===(.+)===(\n|)
{\|class="bluetable sortable" width="100%"
\|-align="left"
!Pet Name
!PSI
!PSF
!Pet Type
!Release Date
leave blank yes

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, Bed Collection, Border Buildings Collection

  1. options tab > find and replace checked > advanced settings
  2. click new rule five times to create five 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
5
\|-
!
!
!
\|}

==(.+)==
(.+|)

{|class="pinktable sortable" width="60%"
\|- align="left"
!Name
!Availability
!Tradeable
leave blank
  1. ensure enabled is selected for rules 1 to 3 and deselected for rules 4 and 5, then exit from the popup, start tab > start, have the program run, then save
  2. on the bottom left panel, click + to reload the same page
  3. in find and replace > advanced settings, ensure enabled is deselected for rules 1, 2, 3, and 5 and selected for rule 4, then exit from the popup, start tab > start, have the program run, then save
  4. you will need to manually correct formatting errors and fill in availability in each of the "x" placeholders
  5. return to awb. in find and replace > advanced settings, ensure enabled is deselected for rules 1 to 4 and selected for rule 5, then exit from the popup, start tab > start, have the program run, then save

pages that still need reformatting:

Cottages Collection

Flooring Collection

Food Collection

Lamp Collection

Plants Collection

Storage Collection

Windows Collection

task: scavenge wi page

this process is significantly more modular than the rest, since webkinz insider's filenaming standards were not as stringent and the source code may not be available

examples: Pink Furniture Collection, Purple Furniture Collection, Red Furniture Collection

copy & paste wi page onto destination wpg page find: <code>(.+)\.png(?: |)</code> replace: nothing find: <code>\n\n</code> replace: <code>\n</code> apply no of times: 10 or so? find: <code>(.+)</code> replace: <code>|{{!}}[[File:{{lc:$1}}.png]]<br>$1</code> find: <code>File:{{lc:(.+) (.+)}}.png</code> replace: <code>File:{{lc:$1$2}}.png</code> apply no of times: 10 or so? find: <code>File:\{\{lc:(.+)[.'](.+)\}\}.png</code> replace: <code>File:{{lc:$1$2}}.png</code> add == to end of section titles find: <code>(.+)==</code> replace: <code>}} ==$1== {{WPG</code>

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: standardize collection page availability for sort optimization

find: |$2, $1

replace: \|(.+^>)(Adventure Park Quest|Winterfest|Berry Fest|Collection |Deluxe (?:Monthly Challenge|Challenge|Day|Clothing)|Challenge[^s]|Exclusive|Growing Garden Seeds|Holiday Gift (?:Bag)|Media Promotion|Wacky Zingoz Celebration|(?:Super )Mystery Bag|Pet Specific Item|PSI|Mystery Stocking|Trading Card(?:s|)|Trophy|WShop|Jumbleberry (?:Fields)|Fall Fest|(?:Ms. Birdy's )Christmas Countdown|Player Appreciation Day|Floaty Event|)

common errors in reg f&r

psi / pet specific item

trading card / trading cards

mystery bag / super mystery bag

wshop/estore case

jumbleberry / jumbleberry fields

challenges > challenge

pet of the month / pet of the month exclusive

growing garden seeds > growing seeds mystery box

new requests

i am ready to receive The Inquiries