Difference between revisions of "Template:Invoke"
Jump to navigation
Jump to search
imported>Ans (+{{doc}}) |
imported>Ans ({{#invoke:Invoke}}) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#invoke: | + | <includeonly>{{#invoke:Invoke}}</includeonly><noinclude>{{Improve documentation|date=May 2019}}{{Doc}}</noinclude> |
Revision as of 06:39, 12 November 2019
| This template's documentation is missing, inadequate, or does not accurately describe its functionality and/or the parameters in its code. Please help to expand and improve it. (May 2019) |
| This template uses Lua: |
This template can be used to debug template parameters.
Usage
- {{Invoke|module name|function name|arguments ...}}
Example
- {{Invoke|math|random}} --> Script error: You must specify a function to call.
- {{Invoke|math|min|9|7|8}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject| arg1 |unnamed parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject|4= arg1 |5=named parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject| <newline>arg1<newline> |unnamed parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject|4= <newline>arg1<newline> |5=named parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject|<newline> arg1 <newline>|unnamed parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject|4=<newline> arg1 <newline>|5=named parameter}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.dumpObject|<>}} {{Invoke|LuaCall|call|mw.logObject|<>}} {{Invoke|LuaCall|call|mw.text.nowiki|<>}} --> Script error: You must specify a function to call. Script error: You must specify a function to call. Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref text</ref>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<code>code text</code>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<syntaxhighlight lang=php>source text</syntaxhighlight>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|{{ping|User1}}}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|[[User:User1]]}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref then <nowiki>nowiki</nowiki></ref>}} --> Script error: You must specify a function to call.
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> Script error: You must specify a function to call.
- {{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}}}} --> Script error: You must specify a function to call.
- {{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>}} --> Script error: You must specify a function to call.
| The above documentation is transcluded from Template:Invoke/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |