User:Gifted9/autowikibrowser: Difference between revisions

The most up-to-date image and information guide on Webkinz Classic items, events, and more!
(No difference)

Revision as of 18:23, 21 October 2021

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

resources

https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser

https://regex101.com/

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

advanced find & replace, regex on

find: ([^[])https://webkinznewz.ganzworld.com/(.+?)(''|)</ref>

replace: $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

advanced find & replace, regex on

find: <ref>\[http(.+)\]</ref>

replace: [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

advanced find & replace, regex on

find: https://webkinznewz.ganzworld.com/(.+)#comments

replace: https://webkinznewz.ganzworld.com/$1

task: add rotated views in gallery to file page

first step: load category: rotatable, append text enabled ==Rotated Views== <gallery> %%title%%nw.png %%title%%sw.png %%title%%se.png %%title%%ne.png </gallery>

second step: advanced find & replace, regex on

find: File:(.+).png(nw|sw|se|ne).png

replace:$1$2.png

testing in progress

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}