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
(tweet tweet)
Line 1: Line 1:
i hate doing anything manually that i could potentially automate, so i have some hypotheses about autowikibrowser that i'm testing on these subpages. this page is written for my own reference
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.


==resources==
==toot oriole==
[[File:Lilkinzorioleavatar.png]]
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser


# download the program per their instructions: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser#(2)_Download
https://regex101.com/
# '''options''' > '''preferences''' > '''site''' > <nowiki>set project as custom and website page as http://webkinzpictureguide.shoutwiki.com/w/ </nowiki> according to: http://www.shoutwiki.com/wiki/Help:AutoWikiBrowser#Linking_to_your_wiki
# '''file''' > '''log in/profiles''' > log in with your normal credentials
# left side: make list source: select anything, then search in textbox to load your desired pages up
# middle: toggle settings in any of the four tabs, per the below instructions or your own settings
# '''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==
==hypothesis successful==
===== task: replace a whole wkn external url (long, ugly) with just a number (short, less ugly) 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


https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser - autowikibrowser's documentation
advanced find & replace, regex on


http://www.shoutwiki.com/wiki/Help:AutoWikiBrowser - shoutwiki's documentation
find: <code><nowiki>([^[])https://webkinznewz.ganzworld.com/(.+?)(''|)</ref></nowiki></code>


https://regex101.com/ - formats and explains regex to human eyes
replace: <code><nowiki>$1[https://webkinznewz.ganzworld.com/$2]$3</ref></nowiki></code>


==hypothesis successful==
===== task: remove reftags from numbered external links =====
the following are tasks i've successfully configured with awb. duplicate these instructions to do the same.
example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Wheels_%26_Games&curid=31338&diff=58169&oldid=58161


=== task: replace a whole wkn external url with a number according to vanilla wiki formatting ===
advanced find & replace, regex on
example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Wheels_%26_Games&curid=31338&diff=58161&oldid=58160


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


=== task: remove reftags from numbered external links ===
replace: <code><nowiki>[http$1]</nowiki></code>
example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Wheels_%26_Games&curid=31338&diff=58169&oldid=58161


# '''options''' tab > '''find and replace''' checked > '''advanced settings'''
===== task: remove #comment from wkn external links =====
# '''new rule''' > '''regular expression''' checked
# in '''find''' textbox, write <code><nowiki><ref>\[http(.+)\]</ref></nowiki></code>
# in '''replace''' textbox, write <code><nowiki>[http$1]</nowiki></code>

=== 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
example: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=(Item_Guide)_Webkinz_Newz&curid=29752&diff=58181&oldid=58157


# '''options''' tab > '''find and replace''' checked > '''advanced settings'''
advanced find & replace, regex on
# '''new rule''' > '''regular expression''' checked
# in '''find''' textbox, write <code><nowiki>https://webkinznewz.ganzworld.com/(.+)#comments</nowiki></code>
# in '''replace''' textbox, write <code><nowiki>https://webkinznewz.ganzworld.com/$1</nowiki></code>


=== task: add rotated views in gallery to file page ===
find: <code><nowiki>https://webkinznewz.ganzworld.com/(.+)#comments</nowiki></code>


this is a two-step process to add rotated views to every file in [[:category: rotatable]]
replace: <code><nowiki>https://webkinznewz.ganzworld.com/$1</nowiki></code>
# make list '''source''': category, '''category''': rotatable > '''make list'''

# '''more''' tab > append/prepend text '''enabled''' checked, '''append''' selected
===== task: add rotated views in gallery to file page =====
# write the following in the textbox <code><nowiki>

first step: load list [[:category: rotatable]], append text enabled
<code><nowiki>
==Rotated Views==
==Rotated Views==
<gallery>
<gallery>
Line 46: Line 60:
</gallery></nowiki></code>
</gallery></nowiki></code>


repeat step 1, then do the following
second step: advanced find & replace, regex on
# '''options''' tab > '''find and replace''' checked > '''advanced settings'''
# '''new rule''' > '''regular expression''' checked
# in '''find''' textbox, write <code><nowiki>File:(.+).png(nw|sw|se|ne).png</nowiki></code>
# in '''replace''' textbox, write<code><nowiki>$1$2.png</nowiki></code>


==testing in progress==
find: <code><nowiki>File:(.+).png(nw|sw|se|ne).png</nowiki></code>


the below items are in progress, use at your own risk
replace:<code><nowiki>$1$2.png</nowiki></code>

==testing in progress==


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

Revision as of 21:09, 21 October 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.

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/ according to: http://www.shoutwiki.com/wiki/Help:AutoWikiBrowser#Linking_to_your_wiki
  3. file > log in/profiles > log in with your normal credentials
  4. left side: make list source: select anything, then search in textbox to load your desired pages up
  5. middle: toggle settings in any of the four tabs, per the below instructions or your own settings
  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

hypothesis successful

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, write$1$2.png

testing in progress

the below items are in progress, use at your own risk

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

User:Gifted9/autowikibrowser testing/pic to item

difference between pic and item: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=User%3AGifted9%2Fautowikibrowser_testing&type=revision&diff=57855&oldid=57854

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}