Template:Shortcut

Agreed bot tasks

Uncontroversial or agreed-upon tasks should be listed here:

Routine bot tasks

Actual commands are in bold.

Most are currently performed by ChriswaterguyBot, but may be performed by any bot. Use appropriate care.

  • fix double-redirects: python redirect.py double (brovse the outputs for anything odd, and manually fix anything that needs fixing.)
  • delete broken redirects: python redirect.py broken (Requires adminship. Be extra careful)
  • fix format of redirects to categories:
    • python replace.py -xml:currentdump.xml -nocase "#REDIRECT [[Category:" "#REDIRECT [[:Category:"
    • python replace.py -xml:currentdump.xml -nocase "#REDIRECT[[Category:" "#REDIRECT [[:Category:"
  • add "|{{PAGENAME}}" to category tags, for pages not in the main or category namespaces.

Occasional

  • Correcting capitalization of headers, e.g. See Also to See also:
    • python replace.py -xml:currentdump.xml "== See Also" "== See also"
    • python replace.py -xml:currentdump.xml "==See Also" "== See also"
    • python replace.py -xml:currentdump.xml "== External Links" "== External links"
    • python replace.py -xml:currentdump.xml "==External Links" "== External links"

Suggested bot tasks

  • place these templates on every topic page, if not there already:
  • Look for text strings in articles which are the same as topic and location category names. The first occurrence of this string in each article should generally be wikilinked. (I suggest a policy of using simple links, which will then be redirected, e.g. [[Cambodia]], not [[:Category:Cambodia|Cambodia]]. This makes it less confusing for newbies wanting to learn from the editing. It also makes updating simpler if a category name is ever changed. --Chriswaterguy · talk 19:26, 28 February 2007 (PST))
  • As above, but look for text strings, to help identify pages for categorization. E.g. Look for articles about cohousing, and add [[Category:Cohousing]] (or replace [[Category:Intentional communities]] with [[Category:Cohousing]], as appropriate - this is better but requires more thought & work for each category.)
  • common spelling errors
    • Adapt a bot from Wikipedia?
    • Be sensitive to variations in spelling - some people don't like it if their spellings are "corrected" from American to British forms, or vice-versa. - (Can we use a dictionary that accepts both/all regional spellings?)
  • replace [[User:Singkong2005|Singkong2005]] (now known as [[User:Chriswaterguy| Chriswaterguy]]) with [[User:Singkong2005|Singkong2005]] (now known as [[User:Chriswaterguy| Chriswaterguy]]) ''<small>a.k.a. [[User:Chriswaterguy| Chriswaterguy]]''
  • Tagging pages with apparent non-compliant capitalization
    • Maintain a list (possibly a category) of checked non-compliers.
  • Change header ==Footnotes and references== to ==Notes==. (==References== is a different kind of section - see WP links at the bottom of {{notes}}.)
  • Move the following categories, changing tags in all articles in the category. (Note to bot owner(s): Perhaps it's easier to let the list build up, or else just do it at regular intervals):
  • Fix improperly closed ref tags, which cause the bottom part of pages not to display. Is it possible to detect when a <ref> is followed by another <ref>, rather than by a </ref>, or by neither? (Maybe Wikipedia:User:SmackBot does this - it fixes certain ref errors.)
  • Bots could help with one aspect of our topic/category dilemma:
    • If we go with topic categories, having category redirects will often be essential (due to old links from various places on the internet). However, we don't want people to put anything in these categories. The desired long term solution is that MediaWiki displays these in a way to indicate that they are not appropriate categories (like redlinks) while still allowing the pages to function as redirects.
    • A medium term solution to the redirect issue is that we allow category redirects, using a special template. This would include a regular redirect tag, as well as an explanatory note for those who view it directly. A bot is run as a routine bot task at least once a week on every page displaying this template. It detects whether there are pages in the category, and goes to those pages and fixes the category tag to display the target category. (It will output a log file of changes, so these moves can be checked by a human.) This fixes the single main problem with category redirects.
  • Check if page title is a Wikipedia page title and add the {{Wikipedia}} template automatically. - (Note: This would have the downside of linking to a lot of Wikipedia disambiguation pages, or to pages which are wrong for our purposes. - We might want to make the bot write to a listing of "Pages tagged by Wikipedia bot", so that a human could check its recent work and disambiguate or correct links as desired.)
  • Replace {{Wikipedia}} with {{Wikipedia|page name}} - to prevent the target changing when a page or text is moved. However, the subst: doesn't work in {{wikipedia|subst:{{PAGENAME}}}} so 2 or more replacement steps are needed.
    • This might work:
      1. {{Wikipedia}} --> WikipediaTemplateTag|{{subst:PAGENAME}}WikipediaTemplateEndTag Note that outside mainspace this has to be modified to {{subst:NAMESPACE}}:{{subst:PAGENAME}}
      2. WikipediaTemplateTag --> {{Wikipedia
      3. WikipediaTemplateEndTag --> }}
    • Then {{Wikipedia}} can be deleted & {{Wikipedia p}} can be moved to {{Wikipedia}}
    • Replace [[Category:Foo]] with [[Category:Foo|{{PAGENAME}}]] in namespaces other than mainspace.

Simple search and replace

Replace:

  • [[laptop: with [[OLPC:

Useful bots

Other bots we could use:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.