Wikidata:WikidataCon 2017/Notes/Advanced Lua tutorial

From Wikidata
Jump to navigation Jump to search

Title: Advanced Lua tutorial

Speaker(s)[edit]

  • Name or username: Tpt
  • Contact (email, Twitter, etc.): @Tpt93 thomas@pellissier-tanon.fr
Useful links

Abstract[edit]

The goal of this tutorial is to present some advanced features of the Lua programming language and of the libraries provided by MediaWiki. Between other things, object oriented programming, JSON support, interaction with wiki and Wikibase content will be presented.

Collaborative notes of the session[edit]

Use "mw.ustring" instead of "string" when working with strings in Lua to get Unicode support (string only work in ASCII).

Utility functions (MediaWiki):

   * mw.addWarning
   * mw.loadData

Microdata (see page 45 in slides)

...