Шаблон:Invoke/doc

Материал из Altermed Wiki
Версия от 03:17, 26 июня 2023; Aqui (обсуждение | вклад) (Новая страница: «{{Docpage}} {{OnLua|LuaCall}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Википедия:Вик...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

{{#invoke:Message box|fmbox}} {{#invoke:Message box|ombox}}

Этот шаблон можно использовать для отладки параметров шаблона.

Использование[править код]

  • {{Invoke|module name|function name|arguments ...}}

Пример[править код]

  • {{Invoke|math|random}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|math|min|9|7|8}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject| arg1 |unnamed parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject|4= arg1 |5=named parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject| <newline>arg1<newline> |unnamed parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject|4= <newline>arg1<newline> |5=named parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject|<newline> arg1 <newline>|unnamed parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject|4=<newline> arg1 <newline>|5=named parameter}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.dumpObject|&lt;&gt;}} {{Invoke|LuaCall|call|mw.logObject|&lt;&gt;}} {{Invoke|LuaCall|call|mw.text.nowiki|&lt;&gt;}} --> {{#invoke:LuaCall|invoke}} {{#invoke:LuaCall|invoke}} {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre text</pre>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<nowiki>nowiki text</nowiki>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref text</ref>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<code>code text</code>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<syntaxhighlight lang=php>source text</syntaxhighlight>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|{{ping|User1}}}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|[[User:User1]]}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<ref>ref then <nowiki>nowiki</nowiki></ref>}} --> {{#invoke:LuaCall|invoke}}
  • {{Invoke|LuaCall|call|mw.text.nowiki|<pre>pre then <nowiki>nowiki</nowiki></pre>}} --> {{#invoke:LuaCall|invoke}}
  • {{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}}}} --> {{#invoke:LuaCall|invoke}}
  • {{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>}} --> {{#invoke:LuaCall|invoke}}