Module:Template invocation/doc: Difference between revisions

Content deleted Content added
Created page with "This is a meta-module for producing MediaWiki template invocations. == Usage == First load the module: <syntaxhighlight lang="lua"> local mTemplateInvocation = require('Mod..."
 
No edit summary
 
Line 30:
* '''name''' - the name of the template (string, required). This should be exactly as it will appear in the invocation, e.g. for [[Template:Example]] use "Example". To generate the template name from a page name you can use the [[#Name|name]] function.
* '''args''' - the arguments to use in the invocation (table, required). Table keys and values must be either strings or numbers.
* '''format''' - the format of the invocation (string, optional). The default is a normal invocation with unescaped curly braces, pipes, and equals signs. If this parameter is the string "nowiki", then the curly braces, pipes and equals signs are replaced with the appropriate [[Wikipedia:HTML entities]].
 
'''Example'''