Appearance
Welcome!
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.
Functions to try out
- has substring (Z10070): Check if a substring exists within another string
- is a palindrome (Z10096): test if a string is the same when read forward and backward (see Z10553 for one with Unicode grapheme support)
- age (Z20756): Age in years
- how many days between two days in the Roman year (Z20733): dans une année romaine, détermine le nombre de jours entre deux jours définis ; l'année peut être bissextile
- 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, return 0.
- Simple tense of verb (Z19514): Returns simple tense of inputted verb.
Learn and contribute
- Learn about Wikifunctions
- Contribute to Wikifunctions
- Get help with Wikifunctions
- Questions? Ask at the Project chat or our Telegram/IRC channel!
- Report a technical problem
- Status page lists major known issues and problems
News
- Volunteer's Corners
- The next Volunteers' Corner will be at 18:30 UTC on 2024-01-13 on Google Meet at meet.google.com/xuy-njxh-rkw.
- The most recent Volunteer's Corner is available on Commons
- Recent status updates about Wikifunctions
- 2024-12-19: Function of the Week: age; Intros for year articles; New Type: Floating-point number
- 2024-12-12: Sketching a path to Abstract Wikipedia; Team offsite in Lisbon; New Type: Gregorian calendar date
- 2024-11-27: WordGraph release; New Special page: list functions by tests; new type for day of the year
- 2024-11-21: New special page for missing labels, new type for Gregorian years, and much more
- 2024-11-13: New Type: Rational number
Wikifunctions is part of the non-profit, multilingual, free-content Wikimedia family.
- Wikipedia
Encyclopedia - Wikidata
Knowledge base - Wikimedia Commons
Media repository - Wiktionary
Dictionary and thesaurus - Wikibooks
Textbooks and manuals - Wikinews
News - Wikiquote
Collection of quotations - Wikisource
Library - Wikiversity
Learning resources - Wikivoyage
Travel guides - Wikispecies
Directory of species - Incubator
New language versions - Meta-Wiki
Project coordination - MediaWiki
MediaWiki development - Wikimania
Event coordination