Edge Rewrite
Jump to content

Module:Format/doc

From Wikipedia, the free encyclopedia
Format
DescriptionThis module provides a powerful formatting engine for template links, module links, wikilinks, external links, etc.
Status
Alpha
UpdatedJune 30, 2026 (27 days ago)
DependenciesModule:Yesno

This module provides a powerful formatting engine for template links, module links, wikilinks, external links, etc.

Documentation

Package items

format.templateLink( args ) (function)
Generates a template link code
Parameter: args Arguments (table)
Returns: Wikitext for the template link (string)
Usage: {{#invoke:Format|templateLink|template or parser function name'|...subsequent template args...}}
format.wikilink( args ) (function)
Generates a wikilink code
Parameter: args Arguments (table)
Returns: Wikitext for the wikilink (string)
Usage: {{#invoke:Format|wikilink|page name|link display|...other link arguments...}}
format.exlink( args ) (function)
Generates an external link code
Parameter: args Arguments (table)
Returns: Wikitext for the external link (string)
Usage: {{#invoke:Format|exlink|URL|display}}
format.tag( args ) (function)
Generates a tag code
Parameter: args Arguments (table)
Returns: Wikitext for tag link (string)
Usage: {{#invoke:Format|tag|tagName|tagContent|...tag arguments...}}

Other items

(table)
Metatable in case linker is not explicitly defined.

See also

Module:Template link with magic


Documentation above is auto generated