User:Gifted9/autowikibrowser: Difference between revisions

The most up-to-date image and information guide on Webkinz Classic items, events, and more!
Content added Content deleted
No edit summary
No edit summary
Line 190: Line 190:


===task: update collection page format===
===task: update collection page format===
this is a two-step process to update the picguide-formatted collection pages to the new table format
find & replace advanced, 4 rules, regex on for all


example: [http://webkinzpictureguide.shoutwiki.com/w/index.php?title=Vehicles_Collection&diff=60236&oldid=59518| step 1], [http://webkinzpictureguide.shoutwiki.com/w/index.php?title=Vehicles_Collection&diff=60237&oldid=60236| step 2]
<code><nowiki>
{{WPG


# '''options''' tab > '''find and replace''' checked > '''advanced settings'''
\n{|class="pinktable sortable" width="60%"
# 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

{| class="wikitable" width=60%
|-
! rule number !! find textbox !! replace textbox
|-
| 1 || <code><nowiki>{{WPG</nowiki></code> || <syntaxhighlight lang="python">\n{|class="pinktable sortable" width="60%"
|- align="left"
|- align="left"
!Name
!Name
Line 201: Line 207:
!Tradeable
!Tradeable
|-
|-
</syntaxhighlight>

|-
{{!}}\[\[File:(.+).png\]\]<br>(?:''')(.+)(?:''')<br>(.+)
| 2 || <code><nowiki>{{!}}\[\[File:(.+).png\]\]<br>(?:''')(.+)(?:''')<br>(.+)</nowiki></code> || <syntaxhighlight lang="python">

-
-
|[[File:$1.png]]
|[[File:$1.png]]
<br>$2
<br>$2
|$3
|$3
|x</syntaxhighlight>
|x

\n}}\n

\n|-
!
!
!
|-
|-
| 3 || <code><nowiki>|{{!}}\n}}\n</nowiki></code> || <code><nowiki>|-</nowiki></code>
|}
|-

|4 || <code><nowiki>{{!}}\[\[File:(.+).png\]\]<br>(?:'''|)(.+)(?:'''|)</nowiki></code> || <syntaxhighlight lang="python">
-
-
|[[File:$1.png]]
|[[File:$1.png]]
<br>$2
<br>$2
|x
|x
|Yes
|x
</syntaxhighlight>

|}
{{!}}\[\[File:(.+).png\]\]<br>(?:'''|)(.+)(?:'''|)


</nowiki></code>


# 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==
==new requests==

Revision as of 16:49, 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

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. 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: step 1, step 2

  1. options tab > find and replace checked > advanced settings
  2. 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
  1. 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
  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 to 3 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

new requests

i am ready to receive The Inquiries