jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/635900 )
Change subject: Update OpenStreetMap family ......................................................................
Update OpenStreetMap family
Publish additional wiki-specific settings I have set to operate a bot on https://wiki.openstreetmap.org, the change appends the list of settings by some names of templates, categories, and pages.
Change-Id: I69737a08e1bc932db32806a4f3a01aad6d91d7ea --- M pywikibot/families/osm_family.py 1 file changed, 28 insertions(+), 0 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/families/osm_family.py b/pywikibot/families/osm_family.py index 107c595..7f25bb2 100644 --- a/pywikibot/families/osm_family.py +++ b/pywikibot/families/osm_family.py @@ -17,6 +17,34 @@ domain = 'wiki.openstreetmap.org' code = 'en'
+ # Templates that indicate a category redirect + # Redirects to these templates are automatically included + category_redirect_templates = { + 'en': ('Category redirect',), + } + + # A list of disambiguation template names in different languages + disambiguationTemplates = { # noqa: N815 + 'en': ('Disambig',), + } + + # A dict with the name of the category containing disambiguation + # pages for the various languages. Only one category per language, + # and without the namespace + disambcatname = { + 'en': 'Disambiguation', + } + + # Subpages for documentation + doc_subpages = { + 'en': ('/doc',), + } + + # Templates that indicate an edit should be avoided + edit_restricted_templates = { + 'en': ('In Bearbeitung',), + } + def protocol(self, code): """Return https as the protocol for this family.""" return 'https'
pywikibot-commits@lists.wikimedia.org