Template:Nowiki template demo/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} {{lua|Module:Template test case}} {{Commons Import}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikid..."
 
 
(2 intermediate revisions by the same user not shown)
Line 51:
! Parameter !! Description
|-
| <code>code</code> or <code>1</code> || The template code, inside {{tag|nowiki}} tags. You must use the magic word "__TEMPLATENAME__" instead of the template name. For example: <code><nowiki>| code = &lt;nowiki&gt;{{__TEMPLATENAME__|first|second|foo=bar}}&lt;/nowiki&gt;</nowiki></code>. <p>Note: due to the way nowiki tags work, the template treats the [[Wikipedia:HTML entities|HTML entities]] &amp;lt;, &amp;gt; and &amp;quot; as if they were the literal characters &lt;, &gt; and &quot; when used with this parameter.</p>
|-
| <code>format</code> || The format to display the test cases in. This can be "default", "inline", "columns" or "rows". The inline format is for templates that can be displayed entirely on one line. If used with templates that display on multiple lines it may produce unexpected results. The "columns" and "rows" formats are intended for displaying multiple templates in a table, so they are not of much use here. See the [[Template:Test case nowiki/doc|test case nowiki documentation]] for more information about them.
Line 110:
The template has the following known technical limitations:
* An error will be generated if processing the entire page takes more than 10 seconds. This is an intentional limit in the [[mw:Extension:Scribunto|Scribunto]] extension that runs [[Module:Template test case]], on which this template is based. If a test cases page takes more than 10 seconds to load, you may need to split it up into different pages.
* The template converts the [[Wikipedia:HTML entities|HTML entities]] &amp;lt;, &amp;gt; and &amp;quot; inside template invocations to the literal characters &lt;, &gt; and &quot;. This is due to the way nowiki tags work.
 
== See also ==
For more detail see wikipedia page [[wikipedia:Template:Nowiki template demo]]
Similar templates:
* [[Template:Demo]] and [[Template:Demo-inline]] which use [[Module:Demo]]
* [[Template:Automarkup]] which uses [[Module:Automarkup]]
 
Templates invoking [[Module:Template test case]]:
* [[Template:Test case]] – a generalised test case template
* [[Template:Testcase rows]] – for a table of test cases arranged in rows
* [[Template:Testcase table]] – for a table of test cases arranged in columns
* [[Template:Inline test case]] – for test cases with small invocations and small output
* [[Template:Collapsible test case]] – for test cases collapsed by default if the results are the same
 
<includeonly>{{Sandbox other||