Template:Invoke/doc
| This is a documentation subpage for Template:Invoke. It may contain usage information, categories and other content that is not part of the original template page. |
| 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 add, expand, or improve it. (March 2024) |
This template can be used to debug template parameters.
Usage
- {{Invoke|module name|function name|arguments ...}}
Example
- {{Invoke|math|random}} --> 0.80274897292384
- {{Invoke|math|min|9|7|8}} --> 7
- {{Invoke|Lua call|call|mw.dumpObject| arg1 |unnamed parameter}} --> " arg1 "
- {{Invoke|Lua call|call|mw.dumpObject|4= arg1 |5=named parameter}} --> "arg1"
- {{Invoke|Lua call|call|mw.dumpObject| <newline>arg1<newline> |unnamed parameter}} --> " \
arg1\
"
- {{Invoke|Lua call|call|mw.dumpObject|4= <newline>arg1<newline> |5=named parameter}} --> "arg1"
- {{Invoke|Lua call|call|mw.dumpObject|<newline> arg1 <newline>|unnamed parameter}} --> "\
arg1 \
"
- {{Invoke|Lua call|call|mw.dumpObject|4=<newline> arg1 <newline>|5=named parameter}} --> "arg1"
- {{Invoke|Lua call|call|mw.dumpObject|<>}} {{Invoke|Lua call|call|mw.logObject|<>}} {{Invoke|Lua call|call|mw.text.nowiki|<>}} --> "<>" <>
- {{Invoke|Lua call|call|mw.text.nowiki|<pre>pre text</pre>}} --> '"`UNIQ--pre-00000008-QINU`"'
- {{Invoke|Lua call|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> '"`UNIQ--nowiki-00000009-QINU`"'
- {{Invoke|Lua call|call|mw.text.nowiki|<ref>ref text</ref>}} --> '"`UNIQ--ref-0000000A-QINU`"'
- {{Invoke|Lua call|call|mw.text.nowiki|<code>code text</code>}} --> <code>code text</code>
- {{Invoke|Lua call|call|mw.text.nowiki|<syntaxhighlight lang=php>source text</syntaxhighlight>}} --> '"`UNIQ--syntaxhighlight-0000000B-QINU`"'
- {{Invoke|Lua call|call|mw.text.nowiki|{{ping|User1}}}} --> <span class="template-ping">@[[User:User1|User1]]:</span>
- {{Invoke|Lua call|call|mw.text.nowiki|[[User:User1]]}} --> [[User:User1]]
- {{Invoke|Lua call|call|mw.text.nowiki|<ref>ref then <nowiki>nowiki</nowiki></ref>}} --> '"`UNIQ--ref-0000000E-QINU`"'
- {{Invoke|Lua call|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> '"`UNIQ--pre-0000000F-QINU`"'
- {{Invoke|Lua call|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|Lua call|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>
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.