Wikifunctions:Main Page
外观
欢迎!
Wikifunctions是一个维基媒体项目,供所有人一同协作创建和维护一个代码函数库,使用世界上的各種自然语言和编程语言支持维基媒体项目及其他更多领域。
“函数”是一個程序指令的序列,可以基于所提供的数据进行相应计算。函数可以回答各种问题,例如两个日期之间相隔的天数、或者两个城市之间的距离。
我們目前主要專注於與維基數據詞條相關的函式。維基數據的詞條資料以及處理這些資料的函式,對於實現抽象維基百科的目標至關重要。Wikifunctions目前如何與維基數據一起使用的教學可供使用。
可供尝试的函数
- 从日期获得星期几 (Z13163): 输入年月日,获得相应是星期几
- 反转字符串 (Z10012): 反轉字串的字元順序(參閱Z10548的統一碼字素支援)
- 年龄 (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
了解与贡献
- 了解Wikifunctions
- Contribute to Wikifunctions
- 获取Wikifunctions的帮助
- 有疑问? 在互助客栈或我们的Telegram/IRC频道提问!
- 报告技术问题
- 状态页面列出了目前已知的主要问题
最新消息
- 志愿者角
- 下期志愿者角将于17:30 UTC on 2026-07-06在Google Meet的meet.google.com/xuy-njxh-rkw开始。
- 最近的志愿者角现已发布于 Commons。
- Recent status updates about Wikifunctions
- 2026-06-12: Improved loading and display of Test results
- 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
