ソースを参照

A list of regexes for templates that always go above the banner.

tags/v0.1^2
Ben Kurtovic 12年前
コミット
e81284af91
1個のファイルの変更28行の追加2行の削除
  1. +28
    -2
      earwigbot/tasks/wikiproject_tagger.py

+ 28
- 2
earwigbot/tasks/wikiproject_tagger.py ファイルの表示

@@ -20,14 +20,40 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import re

from earwigbot.tasks import Task

class WikiProjectTagger(Task):
"""A task to tag talk pages with WikiProject Banners."""
"""A task to tag talk pages with WikiProject banners.

Usage:
earwigbot -t wikiproject_tagger PATH [--category CAT]
"""
name = "wikiproject_tagger"

# Regexes for template names that should always go above the banner:
TOP_TEMPS = [
"skip[ _]?to ?(toc|talk|toctalk)",
"community ?article ?probation",
"censor(-nudity)?",
"controvers(ial2?|y)"
"blp(o| ?others?)?",
"(user ?)?talk ?(header|page|page ?header)",
"(not ?(a ?)?)?forum",
"tv(episode|series)talk",
"recurring ?themes",
"faq",
"(round ?in ?)?circ(les|ular)",
"ar(ti|it)cle ?(history|milestones)",
"failed ?ga",
"old ?prod( ?full)?",
"(old|previous) ?afd",
"((wikiproject|wp) ?)?bio(graph(y|ies))?"
]

def setup(self):
pass

def run(self, **kwargs):
pass
print kwargs

読み込み中…
キャンセル
保存