jenkins-bot submitted this change.

View Change


Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[families] Add wikifunctions_family.py

Bug: T343573
Change-Id: I5bb438aac4e707595fc9d75a5b6fa7eeda20ee6c
---
M pywikibot/family.py
M docs/api_ref/pywikibot.families.rst
A pywikibot/families/wikifunctions_family.py
3 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/docs/api_ref/pywikibot.families.rst b/docs/api_ref/pywikibot.families.rst
index 183ea6d..5dcafe4 100644
--- a/docs/api_ref/pywikibot.families.rst
+++ b/docs/api_ref/pywikibot.families.rst
@@ -83,6 +83,12 @@
.. automodule:: families.wikidata_family
:synopsis: Family module for Wikidata

+:mod:`families.wikifunctions\_family` --- Wikifunctions
+=======================================================
+
+.. automodule:: families.wikifunctions_family
+ :synopsis: Family module for Wikifunctions
+
:mod:`families.wikihow\_family` --- Wikihow
===========================================

diff --git a/pywikibot/families/wikifunctions_family.py b/pywikibot/families/wikifunctions_family.py
new file mode 100644
index 0000000..0810392
--- /dev/null
+++ b/pywikibot/families/wikifunctions_family.py
@@ -0,0 +1,18 @@
+"""Family module for Wikifunction.
+
+.. versionadded:: 8.4
+"""
+#
+# (C) Pywikibot team, 2023
+#
+# Distributed under the terms of the MIT license.
+#
+from pywikibot import family
+
+
+class Family(family.SingleSiteFamily, family.WikimediaFamily):
+
+ """Family class for Wikifunctions."""
+
+ name = 'wikifunctions'
+ domain = 'www.wikifunctions.org'
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 9660c83..198b649 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -871,9 +871,10 @@
]

other_content_families = [
- 'wikidata',
- 'mediawiki',
'lingualibre',
+ 'mediawiki',
+ 'wikidata',
+ 'wikifunctions',
]

content_families = set(

To view, visit change 945927. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5bb438aac4e707595fc9d75a5b6fa7eeda20ee6c
Gerrit-Change-Number: 945927
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Euku <euku@arcor.de>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged