User:Gifted9/autowikibrowser: Difference between revisions

no edit summary
No edit summary
Line 539:
* cut and paste all excel text back into destination wpg page, and save
* in awb, pull up the page and apply the following regular find & replace rule, regex on: find <code> ¶</code> replace <code><nowiki> /n</nowiki></code>
 
==task: replace all instances of "ganz estore" to "estore"==
# at the bottom left, make list '''source''': special page > '''make list''' > on the popup, '''source:''' all pages > ok
# delete all pages except the ones with "ganz estore" in the title
# on options tab, ensure "apply general fixes" is selected, and on skip tab, ensure none of the checkboxes are selected
# on
- move pages to same but minus "ganz," no redirect
- if no (item guide) or (picture guide) prefix, add {{lowercase}} template
- sweep all 1300 pages, any instance of "ganz estore" is replaced with "estore"
- clear cache and manually review cat:pages with broken file links for any missed instances
 
==task: convert plaintext table to wpg standard==
i construct tables by collecting data in all-lowercase in excel and rely on this to bring it up to mainspace standard
 
* convert your excel spreadsheet to a wikitable using excel2wiki[https://excel2wiki.toolforge.org/index.php], and paste this onto a new page
* in awb, '''options''' tab > '''find and replace''' checked > '''advanced settings''' > click '''new rule''' to create the rules per the below table, ensure '''regular expression''' is checked for all of them
* edit 1: enable both rules, run and save, click '''+''' to reload the same page
* edit 2: run the find and replace rule in [[user:gifted9/autowikibrowser#task: capitalize every word]]
* manually fix formatting errors or incorrect filenames
 
{| class="wikitable"
|-
! rule number !! find !! replace !! apply no. of times
|-
| 1 || <syntaxhighlight lang="python"><nowiki>\|-
\| (.+) \|\|</syntaxhighlight></code> || <syntaxhighlight lang="python"><nowiki>|-
| [[File:$1.png]]<br>$1 ||</syntaxhighlight></code> || 1
|-
| 2 || <code>\[\[File:(.+) (.+)\.png\]\]</code> || <code>[[File:$1$2.png]]</code> || 10
|-
|}
 
==task: capitalize every word==
* in awb, '''options''' tab > '''find and replace''' checked > '''advanced settings''' > click '''new rule''', name it "capitalize every word," and leave it blank
* create 26 subrules under this rule, where subrule 1 has find: " a" and replace: " A", subrule 2 has find: " b" and replace: " B", etc until the entire alphabet is covered. this is the most blunt way to capitalize, and will surely produce false positives and negatives that you will need to manually adjust. ensure the page you need edited has only the parts that require every word capitalized - you can use a talk or user page as a holding pen for this
* ensure all subrules are enabled, and the use the "enabled" checkmark on the parent rule as the master control for all of them
 
=pending=
Line 580 ⟶ 616:
 
growing garden seeds > growing seeds mystery box
 
==task: replace all instances of "ganz estore" to "estore"==
50 pages need namechange. skeleton task outline
- move pages to same but minus "ganz," no redirect
- if no (item guide) or (picture guide) prefix, add {{lowercase}} template
- sweep all 1300 pages, any instance of "ganz estore" is replaced with "estore"
- clear cache and manually review cat:pages with broken file links for any missed instances
 
==task: convert plaintext table to wpg standard==
i construct tables by collecting data in all-lowercase in excel and rely on this to bring it up to mainspace standard
 
* convert your excel spreadsheet to a wikitable using excel2wiki[https://excel2wiki.toolforge.org/index.php], and paste this onto a new page
* in awb, '''options''' tab > '''find and replace''' checked > '''advanced settings''' > click '''new rule''' to create the rules per the below table, ensure '''regular expression''' is checked for all of them
* edit 1: enable both rules, run and save, click '''+''' to reload the same page
* edit 2: run the find and replace rule in [[user:gifted9/autowikibrowser#task: capitalize every word]]
* manually fix formatting errors or incorrect filenames
 
{| class="wikitable"
|-
! rule number !! find !! replace !! apply no. of times
|-
| 1 || <syntaxhighlight lang="python"><nowiki>\|-
\| (.+) \|\|</syntaxhighlight></code> || <syntaxhighlight lang="python"><nowiki>|-
| [[File:$1.png]]<br>$1 ||</syntaxhighlight></code> || 1
|-
| 2 || <code>\[\[File:(.+) (.+)\.png\]\]</code> || <code>[[File:$1$2.png]]</code> || 10
|-
|}
 
==task: capitalize every word==
* in awb, '''options''' tab > '''find and replace''' checked > '''advanced settings''' > click '''new rule''', name it "capitalize every word," and leave it blank
* create 26 subrules under this rule, where subrule 1 has find: " a" and replace: " A", subrule 2 has find: " b" and replace: " B", etc until the entire alphabet is covered. this is the most blunt way to capitalize, and will surely produce false positives and negatives that you will need to manually adjust. ensure the page you need edited has only the parts that require every word capitalized - you can use a talk or user page as a holding pen for this
* ensure all subrules are enabled, and the use the "enabled" checkmark on the parent rule as the master control for all of them
 
==task: standardize wpg and wig connective tissue==