-
Notifications
You must be signed in to change notification settings - Fork 3
/
hb_templates.py
executable file
·14 lines (12 loc) · 1.02 KB
/
hb_templates.py
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env python
class Template:
"""invite templates"""
def __init__(self):
self.profile_templates = {
'th invite templates' : u"{{{{subst:Wikipedia:Teahouse/HostBot_Invitation|personal=The Teahouse is a friendly space where new editors can ask questions about contributing to Wikipedia and get help from experienced editors like {{{{noping|{inviter:s}}}}} ([[User_talk:{inviter:s}|talk]]). |bot={{{{noping|HostBot}}}}|timestamp=~~~~~}}}}",
'test invite templates' : u"{{{{subst:User:HostBot/Invitation|personal=The Teahouse is a friendly space where new editors can ask questions about contributing to Wikipedia and get help from experienced editors like {{{{noping|{inviter:s}}}}} ([[User_talk:{inviter:s}|talk]]). |bot={{{{noping|HostBot}}}}|timestamp=~~~~~}}}}", #only use when hostbot_settings urls set to testwiki
'tm invite template' : "{{{{subst:Training_modules_invitation|signed=~~~~}}}}",
}
def getTemplate(self, member):
tmplt = self.profile_templates[member]
return tmplt