This is a list of Global Lua modules with a short description of their usage. Learn how to use them in a short guide here.
Notes:
- Modules marked with File:Wikipedia-logo-v2@2x.png were ported from Wikipedia.
- Modules marked with File:GitHub icon 512x512.png were ported from GitHub.
Invocable modules
These 58 modules can be loaded with {{#invoke:}}
or a template containing such.
Name | Description | Category |
---|---|---|
Asof Docs · Source · Tests
|
Creates dated statements and categorizes page. | Utility |
Autochangecat Docs · Source · Tests
|
Automatically changes categories/templates after xx days. | Utility |
Autocalctable Docs · Source · Tests
|
Adds summation/average/min/max values of a column of a table imported from JSON/module/CSV page. Extensible to provide more stats. | Utility |
BlockMessages Docs · Source · Tests
|
Extends MessageBlock by generating block messages for offenses listed in a wiki's MediaWiki:Ipbreason-dropdown. | Utility |
Calculator Docs · Source · Tests
|
Easily add arithmetic operations to wiki pages. | Utility |
Cbox Docs · Source · Tests
|
Creates lua-based message boxes that has rounded corner and used for notices, adaptable to multiple wikis and styles. | Design |
Check Docs · Source · Tests
|
Performs some checks on parameters. | Utility |
Csv Docs · Source · Tests
|
Retrieves CSV data from a page and generates an HTML table. | Utility |
Docs · Source · Tests | Automatic module documentation generator using ExpLua documentation markup. | Documentation |
Docs · Source · Tests | Colors library for embedded color processing. | Utility |
Context-link Docs · Source · Tests
|
Creates templates for context-links that can take infinite arguments. | Converter |
Docs · Source · Tests | Converts different units (e.g. km to miles) | Converter |
Country Docs · Source · Tests
|
Retrieves ISO 3166-1 data related to a country. | Information |
Currency Docs · Source · Tests
|
Retrieves ISO 4217 data related to a currency. | Information |
Dialogue Docs · Source · Tests
|
Provides dialogue. | Utility |
Data Docs · Source · Tests
|
Allows wikitext to read values from data modules, e.g. mw.loadData() .
|
Utility |
Datecalc Docs · Source · Tests
|
Wrapper for Module:Date. | Utility |
Demo Docs · Source · Tests
|
Shows a demonstration of wikitext. | Utility |
Devmodule Docs · Source · Tests
|
Invokes global modules (hosted in dev.fandom.com) from any other wiki. | Utility |
Docbunto Docs · Source · Tests
|
Automatic module documentation generator using @tag -based documentation markup.
|
Documentation |
DynamicWelcome Docs · Source · Tests
|
Extends the functionality of the welcome tool. | Utility |
Existsmod Docs · Source · Tests
|
Checks if a module exists (inexpensive). | Utility |
Fallback Docs · Source · Tests
|
Allows easy translation or internalization of pages in Lua. | Utility |
Docs · Source · Tests | This module provides a library for formatting file wiki links. | Utility |
Feature page Docs · Source · Tests
|
Displays a random live article from a list or Lua table (e.g. Module:Top/data). | Utility |
Docs · Source · Tests | Formats numbers based on some supported locales | Design |
For Docs · Source · Tests
|
Creates simple disambiguations. | Design |
GalleryPreview Docs · Source · Tests
|
Creates a gallery preview of a gallery page. (e.g. Previewing "Article/Gallery" on "Article") | Utility |
Hash Docs · Source · Tests
|
Provides message digest implementations in lieu of mw.hash .
|
Utility |
Hatnote Docs · Source · Tests
|
Produces hatnote links and links to related articles. | Design |
HotlinkVignette Docs · Source · Tests
|
Provides a template-like method for hotlinking images using Vignette. | Utility |
I18n Docs · Source · Tests
|
Library for message datastores and handling. | Utility |
Japanese Docs · Source · Tests
|
Formats Japanese translation text. | Design |
Languages Docs · Source · Tests
|
Lua templating and link generation for language subpages. | Utility |
Links Docs · Source · Tests
|
Creates links and changes wikitext when it detects external links. | Utility |
LinkTemplate Docs · Source · Tests
|
Creates link templates. | Utility |
Docs · Source · Tests | Outputs various kinds of lists. | Utility |
Math-colors Docs · Source · Tests
|
An easy and portable way to create colored math expressions. | Utility |
Mbox Docs · Source · Tests
|
Creates lua-based message boxes used for notices, adaptable to multiple wikis and styles. | Design |
ModularCSS Docs · Source · Tests
|
Generates modular snippets of CSS code. | Utility |
Docs · Source · Tests | Creates a template for a box displaying multiple images in a single box, as if it were a single image. | Utility |
Namespace detect Docs · Source · Tests
|
Meta-template for namespace detection #switch .
|
Utility |
Navbox Docs · Source · Tests
|
Creates a lua based navbox. | Navbox |
NavboxBuilder Docs · Source · Tests
|
Powerful module to create navboxes. | Navbox |
Pagestat Docs · Source · Tests
|
Display basic information on the page. | Utility |
Pagestats Docs · Source · Tests
|
Shows some stats about a page, e.g. word, template, table count. | Utility |
Pageinfo Docs · Source · Tests
|
Gets information about a page, e.g. if it has a category or template | Utility |
PortableNavbox Docs · Source · Tests
|
Creates simple navigation boxes using portable infobox markup. | Utility |
Pretty-pre Docs · Source · Tests
|
Automatically adds a space before each line. Like the pre tag, but allows markup (e.g. bold or italics), transclusions, etc.
|
Utility |
Quote Docs · Source · Tests
|
Provides a quotation, or dialogue box. | Design |
Rslider Docs · Source · Tests
|
Creates a random slider with all the images or files used as parameters. | Utility |
Docs · Source · Tests | A utility module with for manipulating strings/texts. | Utility |
T Docs · Source · Tests
|
A feature-packed example generator for brace-based wikitext. | Documentation |
Tempnotice Docs · Source · Tests
|
Displays a notice or message for XX days. | Utility |
Transcript Docs · Source · Tests
|
Creates a transcript or dialog. | Design |
Timeline Docs · Source · Tests
|
Generates timelines from Lua configuration modules. | Design |
YearNav Docs · Source · Tests
|
Create a simple template allowing for pages with years in the titles to more simply link to each other. | Utility |
Meta-modules
These 24 modules can only be loaded with require()
or mw.loadData()
. See how to load Global modules first.
Name | Description | Category |
---|---|---|
Docs · Source · Tests | Provides easy processing of arguments passed to Scribunto from {{#invoke:}} .
|
Utility |
CheckTypeMulti Docs · Source · Tests
|
Like libraryUtil.checkType, but accepts multiple types. | Utility |
CLI Docs · Source · Tests
|
Command-line generator for development & debugging tools. | Debug |
Docs · Source · Tests | A date library that allows date parsing, and arithmetic. | Parser |
Debug Docs · Source · Tests
|
Helps debug Lua modules using console by creating a pseudo frame and other useful functions. | Debug |
Entrypoint Docs · Source · Tests
|
Provides a template entrypoint for Scribunto modules using {{#invoke:}} .
|
Utility |
Docs · Source · Tests | Human-readable representation of Lua tables. | Debug |
Docs · Source · Tests | JSON high-performance bidirectional conversion framework. | Utility |
Docs · Source · Tests | Lexer for Lua source code. | Parser |
Docs · Source · Tests | Reduces chances of errors by preventing nil global variables from being written to or read. | Debug |
Mgsub Docs · Source · Tests
|
Like mw.ustring.gsub() , but ^ and $ match the beginning and end of each line, respectively. Compare the "multiline" modifier for regular expressions.
|
Parser |
Docs · Source · Tests | Unit tests for Scribunto. | Debug |
Side box Docs · Source · Tests
|
A utility module with for creating side boxes. | Design |
Set Docs · Source · Tests
|
Library for creating and manipulating sets. | Utility |
Tablebuilder Docs · Source · Tests
|
A meta-module that allows creation of html tables. | Utility |
TableTools Docs · Source · Tests
|
Includes a number of functions for dealing with Lua tables. | Utility |
Testharness Docs · Source · Tests
|
Runs multiple unit tests using data from a table. | Debug |
Unindent Docs · Source · Tests
|
Resets the indentation level of mulitline strings. | Utility |
User error Docs · Source · Tests
|
A less intimidating version of the built-in error() function.
|
Debug |
Utility Docs · Source · Tests
|
General purpose module containing various helpful functions. | Utility |
Docs · Source · Tests | A unit test framework. | Debug |
Docs · Source · Tests | Parser for valid XML streams in Lua. | Parser |
Docs · Source · Tests | Function allowing for consistent treatment of boolean-like wikitext input. | Utility |
Docs · Source · Tests | Function to allow for loading of multiple modules at once. | Utility |