Wikifunctions:Main Page
外觀
歡迎!
Wikifunctions is a Wikimedia project for everyone to collaboratively create and maintain a library of code functions to support the Wikimedia projects and beyond, in the world's natural and programming languages.
A "function" is a sequence of programming instructions that makes a calculation based on data you provide. Functions can answer questions, such as how many days have passed between two dates, or the distance between two cities.
We are currently primarily focused on functions related to Wikidata Lexemes. The Lexicographical data from Wikidata and functions to process it are essential for the goal of an Abstract Wikipedia. A tutorial on how Wikifunctions can be used with Wikidata right now is available.
可供嘗試的函式
- 是回文 (Z10096): 测试字符串正着和反着读是否相同(Unicode字符编码支持见Z10053)
- 存在子字串 (Z10070): Check if a substring exists within another string. Case-sensitive. For a case-insensitivity support see: Z22812
- 年龄 (Z20756): returns the difference between two dates on the Gregorian calendar in years
- how many days between two days in the year (Z20733): number of days (non-inclusive) between two days of the year
- is Gregorian year leap year? (Z20181): returns True if the specified year in the Gregorian calendar (the one currently used in most parts of the world) has 366 days (February 29th added), and False if the year has 365 days
- Bayes' theorem conditional probability P(A|B) (Z20000): The probability of A occurring given that B is known to have occurred. Given by Bayes' theorem: P(A|B) = P(A)*P(B|A)/P(B)
- minimum of natural number list (Z19509): returns the smallest element from a list of natural numbers; if the list is empty, returns 0.
- simple tense of verb (Z19514): returns simple tense of inputted verb
了解與貢獻
- 了解維基函式庫
- 貢獻維基函式庫
- 取得維基函式庫的協助
- 有疑問? Ask at the Project chat or our Telegram/IRC channel!
- 回報技術問題
- 狀態頁面列出了目前已知的主要問題
最新消息
- Volunteer's Corners
- The next Volunteers' Corner will be at 17:30 UTC on 2026-06-08 on Google Meet at meet.google.com/xuy-njxh-rkw.
- The most recent Volunteer's Corner is available on Commons
- 維基函式庫的近期狀態更新
- 2026-06-05: The illustrated encyclopaedia
- 2026-05-30: Looking back and forward
- 2026-05-23: Annual plan 2026-2027
- 2026-05-15: A higher meaning
- 2026-05-08: References from Wikidata are now available
