Difference between revisions of "Template:Invoke/doc"
Jump to navigation
Jump to search
imported>Ans (→Example: .) |
imported>Ans (→Example: +) |
||
| Line 24: | Line 24: | ||
arg1 | arg1 | ||
|5=named parameter}} | |5=named parameter}} | ||
| − | * {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.dumpObject|<> | + | * {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.dumpObject|&lt;&gt;}} {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|&lt;&gt;}} --> {{{{BASEPAGENAME}}|LuaCall|call|mw.dumpObject|<>}} {{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<>}} |
* {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> {{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} | * {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> {{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} | ||
* {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> {{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} | * {<!---->{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> {{{{BASEPAGENAME}}|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} | ||
Revision as of 07:27, 15 November 2019
| 40px | This is a documentation subpage for Template:Invoke. It contains usage information, categories and other content that is not part of the original template page. |
This template can be used to debug template parameters.
Usage
- {{Invoke|module name|function name|arguments ...}}
Example
- {{Invoke|math|random}} --> 0.3113411335793
- {{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.text.nowiki|<>}} --> "<>" <>
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> '"`UNIQ--pre-00000000-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> '"`UNIQ--nowiki-00000001-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref text</ref>}} --> '"`UNIQ--ref-00000002-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<code>code text</code>}} --> <code>code text</code>
- {{Invoke|LuaCall|call|mw.text.nowiki|<source lang=php>source text</source>}} --> '"`UNIQ--source-00000003-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|{{ping|User1}}}} --> [[:Template:Ping]]
- {{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-00000006-QINU`"'
- {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> '"`UNIQ--pre-00000007-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=source}}}} --> <pre>pre text</pre><nowiki>nowiki text</nowiki><ref>ref text</ref><code>code text</code><source lang=php>source text</source>
- {{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|<}}source lang=php>source text</source>}} --> <pre>pre text</pre><nowiki>nowiki text</nowiki><ref>ref text</ref><code>code text</code><source lang=php>source text</source>