Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Invoke

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
This is a template. For the #invokeparser function seeWP:Lua.
This template usesLua:
Edit-copy green with red question markThis template'sdocumentation is missing, inadequate, or does not accurately describe its functionality or theparameters in its code. Please helpadd, expand, or 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.29463236885827
  • {{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|&lt;&gt;}} {{Invoke|Lua call|call|mw.logObject|&lt;&gt;}} {{Invoke|Lua call|call|mw.text.nowiki|&lt;&gt;}} --> "<>" &lt;&gt;
  • {{Invoke|Lua call|call|mw.text.nowiki|<pre>pre text</pre>}} --> '"`UNIQ--pre-00000007-QINU`"'
  • {{Invoke|Lua call|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> '"`UNIQ--nowiki-00000008-QINU`"'
  • {{Invoke|Lua call|call|mw.text.nowiki|<ref>ref text</ref>}} --> '"`UNIQ--ref-00000009-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-0000000A-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-0000000D-QINU`"'
  • {{Invoke|Lua call|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> '"`UNIQ--pre-0000000E-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>
  1. ^ref text
  2. ^ref then nowiki
The abovedocumentation istranscluded fromTemplate:Invoke/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Invoke&oldid=1303279224"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp