Difference between revisions of "Template:Parameter"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "<includeonly><code style=""><nowiki>{{{</nowiki>{{{1}}}{{ #if:{{{2|}}} |{{!}}{{{2}}} }}<nowiki>}}}</nowiki></code></includeonly><noinclude> {{/doc}}")
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><code style=""><nowiki>{{{</nowiki>{{{1}}}{{
+
<includeonly>{{
#if:{{{2|}}}
+
#if: {{{plain|}}}
|{{!}}{{{2}}}
+
|
}}<nowiki>}}}</nowiki></code></includeonly><noinclude>
+
| <code>
{{/doc}}
+
}}&#123;&#123;&#123;{{{1}}}{{
 +
#if: {{{2|}}}
 +
| &#124;{{{2}}}
 +
}}&#125;&#125;&#125;{{
 +
#if: {{{plain|}}}
 +
|
 +
| </code>
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:46, 2 August 2020

[ view | edit | history ] Documentation

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