Module:Format/doc
Appearance
| This is a documentation subpage for Module:Format. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
| This module depends on the following other modules: |
| Description | This module provides a powerful formatting engine for template links, module links, wikilinks, external links, etc. |
|---|---|
| Status | Alpha |
| Updated | June 30, 2026 (27 days ago) |
| Dependencies | Module: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:
argsArguments (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:
argsArguments (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:
argsArguments (table) - Returns: Wikitext for the external link (string)
- Usage:
{{#invoke:Format|exlink|URL|display}} format.tag( args )(function)- Generates a tag code
- Parameter:
argsArguments (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