FANDOM


Lua-logo-nolabel

Lua Infoboxes are actually two-part infoboxes with the standard Template: part that mostly just invokes the Module: part where the Lua resides.

Since Lua is a full scripting language (although may not be completely supported on FANDOM wikis), it allows for much more sophisticated infobox functionality, primarily in the areas of dynamically generating parts and increased flexibility.

Usage

There are two ways to use Lua infoboxes. One can either use the infobox builder parser function, or one can use a set of modules developed by Fandom.

  • InfoboxBuilder - the main module that parses the data and creates an infobox
  • Module:HF - stores high frequency functions used for infoboxes
  • View - create the look and feel (style) of the infobox

Benefits

  • "Lua InfoboxBuilder greatly simplifies the creation of infoboxes"[1]
  • Full fledged programming language, no curly brackets needed
  • Can be extended using other modules
  • Infinite parameters

References

  1. w:c:dev:Lua_templating/InfoboxBuilder Infobox builder

See also

At dev.wikia.com

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.