Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Template invocation/doc

From Net 7 Portal Wiki

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}}