Difference between revisions of "Template:Param"

From MCEWiki
(Created page with "}}}_{{{2}}}|<tt>{{{2}}}</tt>")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[MCE commands#{{{1|}}}_{{{2}}}|<tt>{{{2}}}</tt>]]
+
[[MCE commands#{{{1|}}}_{{{2}}}|<tt>{{{3|{{{2}}}}}}</tt>]]<noinclude>
 +
==Documentation==
 +
Use this template like this:
 +
  &#123;&#123;param|CARD|PARAM}}
 +
to produce a link to the [[MCE commands]] list pointing to parameter PARAM in card section CARD.  CARD should be one of: sys, cc, rc, bc, ac or empty, for the "general card commands".  If you want a different name for the link, give a third parameter:
 +
  &#123;&#123;param|CARD|PARAM|NAME}}
 +
 
 +
=== Examples ===
 +
{| class="wikitable"
 +
! code !! result
 +
|-
 +
| &#123;&#123;param&#124;sys&#124;num_rows}} || {{param|sys|num_rows}}
 +
|-
 +
| &#123;&#123;param&#124;&#124;fw_rev}} || {{param||fw_rev}}
 +
|-
 +
| &#123;&#123;param&#124;rc&#124;adc_offset0&#124;adc_offset&#39;&#39;#&#39;&#39;}}
 +
| {{param|rc|adc_offset0|adc_offset''#''}}
 +
|}
 +
</noinclude>

Latest revision as of 19:59, 9 September 2014

[[MCE commands#_{{{2}}}|{{{2}}}]]

Documentation

Use this template like this:

 {{param|CARD|PARAM}}

to produce a link to the MCE commands list pointing to parameter PARAM in card section CARD. CARD should be one of: sys, cc, rc, bc, ac or empty, for the "general card commands". If you want a different name for the link, give a third parameter:

 {{param|CARD|PARAM|NAME}}

Examples

code result
{{param|sys|num_rows}} num_rows
{{param||fw_rev}} fw_rev
{{param|rc|adc_offset0|adc_offset''#''}} adc_offset#