Wikipedia:AutoWikiBrowser/Settings

{{AWB}}

{{process header

| title = AutoWikiBrowser

| section = (Scripts)

| previous = ← ../

| next =

| shortcut =

| notes = This is a repository of settings and scripts which perform specific tasks using the AutoWikiBrowser.

}}

Scripts and settings

class="wikitable" style="width:100%;"

! Script name !! Functions !! Notes !! Authors

{{/entry

| name = List as

| functions = Adds a listas parameter to {{Tlx|WikiProject Biography}}. Also incorporates Magioladitis' talk page tidier and other clean-up.

| notes = Newly cut code. Will fail with certain types of malformed banner. May well have other bugs. Use at your own risk.

| authors = Rich Farmbrough

}}

{{/entry

|name= Bracket reference conversion

|functions= It converts bracket references (such as [http://www.reference.com]) to Cite.php and {{tl|cite web}}.

|notes= none

|authors= Bookofjude

}}

{{/entry

|name= WP:GUS Userbox fixing

|functions= Migrating UBs incompletely moved under WP:GUS

|notes= Check with me before using, it might need updating

|authors= Phil | Talk

}}

{{/entry

|name= de-linking be-bold

|functions= fixing links to be bold which should go to be bold

|notes= this is the first pass, catching only vanilla links; piped stuff will come later

|authors= Phil | Talk

}}

{{/entry

|name= migrate babel-x

|functions= migrating {{Babel-X}} to {{Babel}} and fixing old syntax

|notes=

|authors= Phil | Talk

}}

{{/entry

|name= ISBN-hyph

|functions= Tidying up and hyphenating ISBN numbers

|notes= Pretty robust, I believe. Labels some invalid ISBNs. Be careful with 13 digit ISBNs and trailing hyphens. Now obsolete due to AWB version.

|authors= Rich Farmbrough

}}

{{/entry

|name= ISSN

|functions= Tidying up and checksumming ISSN numbers

|notes= Pretty robust, I believe. Labels some invalid ISSNs. Implements arithmetic in regular expressions. Now obsolete due to AWB version.

|authors= Rich Farmbrough

}}

{{/entry

|name= Birth and death

|functions= Converting to {{tl|birth date}} etc. templates

|notes= Most entries should be already done by humans or by User:SmackBot. You can of course request a run against any specific list/category.

|authors= Rich Farmbrough

}}

{{/entry

|name = Lifetime

|functions = Replaces {{tl|Lifetime}} with the components it generates.

|notes = Templates are of course moving targets. However this one should be subst only before any major changes occur .

|authors = Rich Farmbrough

}}

{{/entry

| name =Full date unlinking

|functions = Unlinks dates with day month year, including ISO, dmy, mdy, ordinals etc. most ranges, lists etc.

|notes = As usual, no guarantees. Attempts to replicate in a short time what User:Full-date unlinking bot learned in months. But it might help spread the load. Note also that it does not unlink lone years, centuries, days, months, day-month or month year combos - most of which it is generally valid to unlink.

|authors = Rich Farmbrough

}}

{{/entry

| name =/Removing caps in headers

|functions = Fixes up 623 different common capitalised headers

|notes = As usual, no guarantees. Some of the 623 are picked by me, and hence subject to human error, probably over half are picked by the AI and subject to bot error.

|authors = Rich Farmbrough

}}

{{/entry

| name =/Listas diacritics

|functions = removes all known to me diacritics and replaces them with the equivalent Latin

|notes = As usual, no guarantees, but seems pretty bomb-proof. Someone might pick at the dipthongs

|authors = Rich Farmbrough

}}

{{/entry

| name =/NASTRO

|functions = redirects planetoid stubs per WP:NASTRO

|notes = As usual, no guarantees, but seems pretty bomb-proof. One off job with some 3k instances left to do when the group culture decided that it was worth sacrificing.

|authors = Rich Farmbrough

}}

{{/entry

| name =/image requested people

|functions = Replaces image requested categories on the talk pages of US people categorized by state with a more specific category.

|notes = Not used in anger, since I am not allowed... But seems OK. Created for User:Dthomsen8.

  • IMPORTANT - script is set up for Texas, two "advanced" rules and the list-maker category need to by changed depending on the state

|authors = Rich Farmbrough

}}

{{/entry

| name =/Meta2en

|functions = Quick hack to make a page moved form en: to Meta link to the right places. Certainly needs work and careful supervision.

|notes = Script does not know about all the things it should: namespaces, and interwiki links.

|authors = Rich Farmbrough

}}

{{/entry

| name = Dab cleanup

| functions = Various cleanups to standardize dab pages with WP:MOSDAB

| notes = Some complicated regex and a lot of rules, so watch carefully. Improvements welcome!

| authors = Swpb

}}

Settings

Sample regular expressions

;Replace multiple spacing after full stop with single spacing

Match:\. +([A-Za-z\[])

Replace:. $1

Note: This may replace double-spaces inside

 tags, so you need to be careful, or skip pages containing 
 tags using Special Replace (under Find and Replace Advanced settings).

;Remove trailing spaces

Match: +\n

Replace:\n

=XHTML compliance=

;
and


to
and

Match: <[/]?(br|hr)([^{/}<>]*?)>

Replace: <$1$2 />

;HTML Attribute quoting

Match: (<\w+)\s*(\w+) *= *(['"]([^"']*?)['"]|([#-9A-Za-z]+))([^{}<>]*>)

Replace: $1 $2="$4$5"$6

=Conditions=

;Between X and Y bytes of wikitext

:Single line conditional regex: ^.{0,900}$ where 0 is the minimum and 900 is the maximum

;Crude word count

: Single line conditional regex: ^\W*(\w+\W+){13,29}\w*$ where 13 is the minimum and 29 is the maximum