The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Help:Lua is a short introduction to the Lua modules behind some templates.

What Lua does here

Some templates need calculations or logic that wikitext alone cannot express: counting, sorting, formatting dates, building tables from parameters. Those templates call a module, a page in the Module: namespace written in the Lua programming language, through {{#invoke:Module name|function}}.

For editors

You use a Lua-backed template exactly like any other template; the complexity is hidden. If a page shows a script error, the problem is in the module or in the parameters passed to it: report it on the template's talk page with a link to the broken page, rather than trying to fix the article.

See also