More actions
This is the documentation page for Module:Template invocation
Module:Template invocation/doc
This module provides functions for making MediaWiki template invocations.
From Wikipedia, see:
This module is a dependency of Module:Unsubst, see the documentation there.
Usage
local mTemplateInvocation = require('Module:Template invocation') -- This function produces the name to be used in a template invocation. mTemplateInvocation.name(title) -- This function creates a MediaWiki template invocation. mTemplateInvocation.invocation(name, args, format) -- Example mTemplateInvocation.invocation('foo', {'bar', 'baz', abc = 'def'}) -- would produce {{foo|bar|baz|abc=def}}