Difference between revisions of "Template:Parameter"
From ComputerCraft Wiki
KnightMiner (Talk | contribs) (Created page with "<includeonly><code style=""><nowiki>{{{</nowiki>{{{1}}}{{ #if:{{{2|}}} |{{!}}{{{2}}} }}<nowiki>}}}</nowiki></code></includeonly><noinclude> {{/doc}}") |
KnightMiner (Talk | contribs) m (you apparently need HTMLTidy for nested code tags to work...) |
||
Line 1: | Line 1: | ||
− | <includeonly><code | + | <includeonly>{{ |
− | #if:{{{2|}}} | + | #if: {{{plain|}}} |
− | |{{!}}{{{2}}} | + | | |
− | }}<nowiki>}}}</nowiki></code></includeonly><noinclude> | + | | <code> |
+ | }}<nowiki>{{{</nowiki>{{{1}}}{{ | ||
+ | #if: {{{2|}}} | ||
+ | | {{!}}{{{2}}} | ||
+ | }}<nowiki>}}}</nowiki>{{ | ||
+ | #if: {{{plain|}}} | ||
+ | | | ||
+ | | </code> | ||
+ | }}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} |
Revision as of 05:10, 9 December 2015
This template outputs the name of a parameter within code tags, without the parameter being affected by page transclusion. This template can also be called using the shortcut {{p}}
Usage
{{p|parameter name|optional parameter default}}
Examples
{{p|1}}
- produces
{{{1}}}
{{p|parameter|default}}
- produces
{{{parameter|default}}}
See also
-
{{Template link}}