Difference between revisions of "User:Strcat"

From ArchWiki
Jump to: navigation, search
Line 51: Line 51:
 
*<nowiki><tt>text</tt></nowiki> -> <nowiki>{{Codeline|text}}</nowiki> - per [[ArchWiki:Requests#&lt;tt&gt; is deprecated in HTML 5]]
 
*<nowiki><tt>text</tt></nowiki> -> <nowiki>{{Codeline|text}}</nowiki> - per [[ArchWiki:Requests#&lt;tt&gt; is deprecated in HTML 5]]
 
*use language tag in category names - per [[Talk:Table of Contents#ToC restructuring]] (this is the first step towards i18n standardization for categories)
 
*use language tag in category names - per [[Talk:Table of Contents#ToC restructuring]] (this is the first step towards i18n standardization for categories)
 +
 +
wrapper for category.py:
 +
{{File|use_language_tag.sh|#!/bin/sh
 +
#
 +
# usage: ./use_language_tag.sh "category name" "language tag to add"
 +
#
 +
 +
python2 category.py move -from:"$1" -to:"$1 ($2)" -summary:'use language tag in category names'}}

Revision as of 19:13, 7 September 2011

thestinger's cute little bot. Still needs a bot tag but I'm just making edits we would have done by hand anyway.

About this bot

Right now I'm using pywikipediabot/pywikibot, and so far just the scripts that are included (the newer pywikibot has a nicer API but doesn't include all the nice scripts) because they cover almost everything (replace.py lets you use regex).

pywikipediabot/pywikibot archwiki family file: Template:File

patch to fix the marker not being removed with the category_attop setting (for pywikipediabot, don't know if pywikibot has the same problem since I'm not using it for categories) [I should probably report this upstream, but I'm not sure if the ArchWiki causes the problem]: Template:File

Current tasks

wrapper for category.py: Template:File