Hacker News new | ask | show | jobs
by 20after4 1055 days ago
WikiFunctions, I believe, has a larger purpose in the context of Wikimedia wikis, and that is they are building a library of functions that can be called directly from wikitext and the code will be evaluated automatically when the page is rendered.

I think the idea is to provide an easy way to embed dynamic content into the text of a Wikipedia article. This should provide a nice compliment to the way WikiData is used to dynamically insert data into articles.

Note: I worked for the Wikimedia foundation in the past, however, I wasn't involved with WikiFunctions. I just have some vague memories of internal product planning discussions about the feature.

1 comments

The ability to invoke functions from wikitext and interpolate the result into the rendered page has been a feature of Wikipedia for over 17 years[1]. The ability to write custom functions in Lua was rolled out a decade ago[2].

  [1]: https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/message/2MMGKQV5EDDXR27RLQVCZ6TCYIXK2R24/
  [2]: https://en.wikipedia.org/wiki/Wikipedia:Lua