Template:Nowiki template demo/doc

This template shows a template invocation together with a demonstration of that template's output. The template arguments are passed in once, inside  tags, and are used to generate both the template invocation and the template output. The demonstration can be displayed in various different formats.

This template is identical to test case nowiki with the showtemplate2 and showheader parameters both set to "no". To see the full range of options available, please see the test case nowiki documentation.

Usage
Basic syntax

Common syntax

The following options will work with all different test case formats.

Some test case formats accept additional parameters as well. See their sections for documentation.

Parameters
You can use yes with any format to collapse it. You can set a custom title for collapsible test cases with the title parameter.

Default

 * Usage


 * Output

Default, collapsible

 * Usage


 * Output

Inline
using Template:3x 
 * Usage


 * Output

Note: As this format starts with a bullet, a newline will always be inserted at the start of the template output due to bug 14974.

Inline with nowiki output
using Template:URL 
 * Usage


 * Output

Technical limitations
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 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 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.