Ad placeholder

Template:Template demo: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Updated documentation)
mNo edit summary
Line 19: Line 19:
This template is designed to easily demo template usage and is intended for use within template documentation pages. It lets you display a set of template examples with the markup and rendered output displayed side-by-side.
This template is designed to easily demo template usage and is intended for use within template documentation pages. It lets you display a set of template examples with the markup and rendered output displayed side-by-side.


This template has two styles: a two-column table (<code>style = table</code>) and a list (<code>style = list</code>). The table is appropriate table is appropriate for shorter, inline templates. For larger templates, the list style may be preferred.
This template has two styles: a two-column table (<code>style = table</code>) and a list (<code>style = list</code>). The table is appropriate for shorter, inline templates. For larger templates, the list style may be preferred.


As with [https://en.wikipedia.org/wiki/Template:Demo Template:Demo on Wikipedia], the arguments to this template {{em|must}} be wrapped in <code><nowiki><nowiki>...</nowiki</nowiki><nowiki>></nowiki></code> tags or the parameters with be expanded before being passed to this template.
As with [https://en.wikipedia.org/wiki/Template:Demo Template:Demo on Wikipedia], the arguments to this template {{em|must}} be wrapped in <code><nowiki><nowiki>...</nowiki</nowiki><nowiki>></nowiki></code> tags or the parameters with be expanded before being passed to this template.
Line 50: Line 50:
Select this style with <code>style = list</code>. This should be used to demo templates too large to fit within a table.
Select this style with <code>style = list</code>. This should be used to demo templates too large to fit within a table.
<!-- Can't recursively use this template to demo itself. Sad --->
<!-- Can't recursively use this template to demo itself. Sad --->
==== Input ====
<pre>
<pre>
{{Template demo
{{Template demo

Navigation menu