Template:Invoke/doc

From The Goon Show Depository

This template can be used to debug template parameters.

Usage

  • Script error: No such module "module name".

Example

  • 0.10645349561537 --> 0.40443705367131
  • 7 --> 7
  • " arg1 " --> " arg1 "
  • "arg1" --> "arg1"
  • " <newline>arg1<newline> " --> " \

arg1\

 "
  • "<newline>arg1<newline>" --> "arg1"
  • "<newline> arg1 <newline>" --> "\
 arg1  \

"

  • "<newline> arg1 <newline>" --> "arg1"
  • "&lt;&gt;" &amp;lt;&amp;gt; --> "<>" &lt;&gt;
  • &lt;pre>pre text&lt;/pre> --> '"`UNIQ--pre-00000003-QINU`"'
  • &lt;nowiki>nowiki text&lt;/nowiki> --> '"`UNIQ--nowiki-00000004-QINU`"'
  • &lt;ref>ref text&lt;/ref> --> '"`UNIQ--ref-00000005-QINU`"'
  • &lt;code>code text&lt;/code> --> <code>code text</code>
  • Lua error in mw.text.lua at line 129: bad argument #1 to 'gsub' (string expected, got nil). --> '"`UNIQ--syntaxhighlight-00000006-QINU`"'
  • [[:Template:Ping]] --> [[:Template:Ping]]
  • '"`UNIQ--nowiki-00000008-QINU`"'User:User1]] --> [[User:User1]]
  • &lt;ref>ref then &lt;nowiki>nowiki&lt;/nowiki>&lt;/ref> --> '"`UNIQ--ref-00000009-QINU`"'
  • &lt;pre>pre then &lt;nowiki>nowiki&lt;/nowiki>&lt;/pre> --> '"`UNIQ--pre-0000000A-QINU`"'
  • '"`UNIQ--nowiki-0000000B-QINU`"' --> <pre>pre text</pre><nowiki>nowiki text</nowiki><ref>ref text</ref><code>code text</code><syntaxhighlight lang=php>syntaxhighlight text</syntaxhighlight>
  • <pre>pre text&lt;/pre><nowiki>nowiki text&lt;/nowiki><ref>ref text&lt;/ref><code>code text&lt;/code><syntaxhighlight lang=php>source text&lt;/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