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 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. anything below here is hodgepodge and miscellany
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==
<br>https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser
<Br>difference between pic and item: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=User%3AGifted9%2Fautowikibrowser_testing&type=revision&diff=57855&oldid=57854
<Br>difference between item and pic: http://webkinzpictureguide.shoutwiki.com/w/index.php?title=User%3AGifted9%2Fautowikibrowser_testing&type=revision&diff=57857&oldid=57856
<br>https://regex101.com/


https://regex101.com/
<br>[[User:Gifted9/autowikibrowser testing/item to pic]] - can i create a picture guide page from its item guide page?

<br>[[User:Gifted9/autowikibrowser testing/pic to item]] - can i create an item guide skeleton from its picture guide page?
==hypothesis successful==
<br>[[User:Gifted9/autowikibrowser testing/singleref to multiref]] - can i replace all single references to one place with a multireference?
===== task: replace a whole wkn external url (long, ugly) with just a number (short, less ugly) according to vanilla wiki formatting =====
<br>"

<nowiki>\<ref\>This item was available on the \[\[\(Picture_Guide\)_(Mobile_Wheel_of_Wow|Community_Codes|Balloon_Darts)_Archive\#(.+?)\]\]\<\/ref\>{1}
advanced find & replace, regex on
\<ref\>This item was available on the \[\[\(Picture_Guide\)_(Mobile_Wheel_of_Wow|Community_Codes|Balloon_Darts)_Archive\#(.+?)\]\]\<\/ref\>{2,}

<ref name="(.+?)"\/>This item was available on the [[(Picture_Guide)_($1$2$3)_(.+?)]]</ref>{1}
find: <code><nowiki>([^[])https://webkinznewz.ganzworld.com/(.+?)(''|)</ref></nowiki></code>
<ref name="$2"/>{2}</nowiki>

replace: <code><nowiki>$1[https://webkinznewz.ganzworld.com/$2]$3</ref></nowiki></code>

==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]]

find: <code><nowiki>\<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,}</nowiki></code>

replace: <code><nowiki><ref name="(.+?)"\/>This item was available on the [[(Picture_Guide)_($1$2$3)_(.+?)]]</ref>{1}
<ref name="$2"/>{2}</nowiki></code>

Revision as of 14:43, 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

advanced find & replace, regex on

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

replace: $1[https://webkinznewz.ganzworld.com/$2]$3</ref>

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

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}