Template:Invoke
Appearance
This template uses Lua: |
This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. (March 2024) |
This template can be used to debug template parameters.
Usage
[edit]- {{Invoke|module name|function name|arguments ...}}
Example
[edit]- {{Invoke|math|random}} --> 0.95767011305209
- {{Invoke|math|min|9|7|8}} --> 7
- {{Invoke|LuaCall|call|mw.dumpObject| arg1 |unnamed parameter}} --> " arg1 "
- {{Invoke|LuaCall|call|mw.dumpObject|4= arg1 |5=named parameter}} --> "arg1"
- {{Invoke|LuaCall|call|mw.dumpObject| <newline>arg1<newline> |unnamed parameter}} --> " \
arg1\
"
- {{Invoke|LuaCall|call|mw.dumpObject|4= <newline>arg1<newline> |5=named parameter}} --> "arg1"
- {{Invoke|LuaCall|call|mw.dumpObject|<newline> arg1 <newline>|unnamed parameter}} --> "\
arg1 \
"
- {{Invoke|LuaCall|call|mw.dumpObject|4=<newline> arg1 <newline>|5=named parameter}} --> "arg1"
- {{Invoke|LuaCall|call|mw.dumpObject|<>}} {{Invoke|LuaCall|call|mw.logObject|<>}} {{Invoke|LuaCall|call|mw.text.nowiki|<>}} --> "<>" <>
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> '"`UNIQ--pre-00000006-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> '"`UNIQ--nowiki-00000007-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref text</ref>}} --> '"`UNIQ--ref-00000008-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<code>code text</code>}} --> <code>code text</code>
- {{Invoke|LuaCall|call|mw.text.nowiki|<syntaxhighlight lang=php>source text</syntaxhighlight>}} --> '"`UNIQ--syntaxhighlight-00000009-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|{{ping|User1}}}} --> <span class="template-ping">@[[User:User1|User1]]:</span>
- {{Invoke|LuaCall|call|mw.text.nowiki|[[User:User1]]}} --> [[User:User1]]
- {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref then <nowiki>nowiki</nowiki></ref>}} --> '"`UNIQ--ref-0000000C-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> '"`UNIQ--pre-0000000D-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|{{replace|<tag>tag text</tag>|tag|pre}}{{replace|<tag>tag text</tag>|tag|nowiki}}{{replace|<tag>tag text</tag>|tag|ref}}{{replace|<tag>tag text</tag>|tag|code}}{{replace|1=<tag lang=php>tag text</tag>|2=tag|3=syntaxhighlight}}}} --> <pre>pre text</pre><nowiki>nowiki text</nowiki><ref>ref text</ref><code>code text</code><syntaxhighlight lang=php>syntaxhighlight text</syntaxhighlight>
- {{Invoke|LuaCall|call|mw.text.nowiki|4={{1x|<}}pre>pre text</pre>{{1x|<}}nowiki>nowiki text</nowiki>{{1x|<}}ref>ref text</ref>{{1x|<}}code>code text</code>{{1x|<}}syntaxhighlight lang=php>source text</syntaxhighlight>}} --> <pre>pre text</pre><nowiki>nowiki text</nowiki><ref>ref text</ref><code>code text</code><syntaxhighlight lang=php>source text</syntaxhighlight>
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Invoke in articles based on its TemplateData.
TemplateData for Invoke
Invokes a Lua module
Parameter | Description | Type | Status | |
---|---|---|---|---|
Module name | 1 | no description | Unknown | optional |
Function name | 2 | no description | Unknown | optional |
This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |