Template:Param/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Technical 13 display using nested... |
meta>Sardanaphalus →Usage: removed <code>s so distinction between input and output made clearer, subheading |
||
| Line 4: | Line 4: | ||
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code. | This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code. | ||
=== Usage === | ===Usage=== | ||
:<nowiki>{{param|foo}}</nowiki> → {{param|foo}} | |||
:<nowiki>{{param|foo|bar}}</nowiki> → {{param|foo|bar}} | |||
:<nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki> → {{param|foo|{{param|bar|nested=yes}}}} | |||
:<nowiki>{{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}}</nowiki> → {{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}} | |||
====Examples involving {{tl|para}}==== | |||
:<nowiki>{{para|foo|{{param|bar}}}}</nowiki> → {{para|foo|{{param|bar}}}} | |||
:<nowiki>{{para|foo}}{{param|bar}}</nowiki> → {{para|foo}}{{param|bar}} | |||
:<nowiki>{{para|foo|<var>bar</var>}}</nowiki> → {{para|foo|<var>bar</var>}} | |||
: | |||
: | |||
: | |||
=== See also === | === See also === | ||
Revision as of 09:57, 22 April 2014
| This is a documentation subpage for Template:Param. It may contain usage information, categories and other content that is not part of the original template page. |
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.
Usage
- {{param|foo}} →
{{{foo}}} - {{param|foo|bar}} →
{{{foo|bar}}} - {{param|foo|{{param|bar|nested=yes}}}} →
{{{foo|{{{bar}}}}}} - {{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}} →
{{{foo|{{{bar|{{{baz|derp}}}}}}}}}
Examples involving {{para}}
- {{para|foo|{{param|bar}}}} →
|foo={{{bar}}} - {{para|foo}}{{param|bar}} →
|foo={{{bar}}} - {{para|foo|<var>bar</var>}} →
|foo=bar
See also
- {{para}}