Template:Param: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Droll added doc page |
meta>Technical 13 Add a parameter so that if nested=yes, don't bother with <code></code> so that it doesn't break it. |
||
| Line 1: | Line 1: | ||
<code>{{{{{{1<noinclude>|foo</noinclude>}}}{{#ifeq:{{{2}}}|{{{2|}}} ||}}{{{2|}}}}}}</code><noinclude> | {{#ifeq:{{Yesno|{{{nested|no}}}}}|yes||<code>}}{{{{{{1<noinclude>|foo</noinclude>}}}{{#ifeq:{{{2}}}|{{{2|}}} ||}}{{{2|}}}}}}{{#ifeq:{{Yesno|{{{nested|no}}}}}|yes||</code>}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- | <!-- | ||
Revision as of 20:41, 15 February 2014
{{{foo}}}
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|tag=kbd}}→{{{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|nested=yes}}}}→|foo={{{bar}}}{{para|foo}}{{param|bar}}→|foo={{{bar}}}{{para|foo|{{var|bar}}}}→|foo=bar
See also
- {{para}}