Difference between revisions of "Template:Cmdrow"

From MCEWiki
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{cmdrow single
 
{{cmdrow single
| shortspan={{#if: {{{params6|}}}|2|1}}
+
| shortspan={{#if: {{{short|}}}|1|{{#if: {{{params6|}}}|2|1}}}}
 
| longspan={{#if: {{{params6|}}}|{{#expr: {{{span|1}}} * 2}}|{{{span|1}}}}}
 
| longspan={{#if: {{{params6|}}}|{{#expr: {{{span|1}}} * 2}}|{{{span|1}}}}}
 +
| paramspan={{{paramspan|{{{span|1}}}}}}
 
| id={{{id}}}
 
| id={{{id}}}
 
| card={{{card}}}
 
| card={{{card}}}
 
| addr={{{addr}}}
 
| addr={{{addr}}}
 
| type={{#if: {{{short|}}}||{{{type|rb,wb}}}}}
 
| type={{#if: {{{short|}}}||{{{type|rb,wb}}}}}
| params={{#if: {{{short|}}}||{{{params|—}}}}}
+
| params={{#if: {{{short|}}}|{{#if: {{{params6|}}}|{{{params6|}}}<sup>*</sup>}}|{{{params|&mdash;}}}}}
 
| desc={{#if: {{{short|}}}||{{{desc}}}}}
 
| desc={{#if: {{{short|}}}||{{{desc}}}}}
| fwrev={{#if: {{{short|}}}||{{#if: {{{fwrev|}}}|&ge;{{{fwrev}}}|all}}}}
+
| fwrev={{#if: {{{short|}}}|{{#if: {{{params6|}}}|&ge;{{{fwrev6|6.0.0}}}}}|{{#if: {{{fwrev|}}}|&ge;{{{fwrev}}}|all}}}}
}}
+
}}{{#if: {{{short|}}}||{{#if: {{{params6|}}}|{{cmdrow single
<noinclude>
+
| shortspan=1
 +
| longspan={{{span|1}}}
 +
| singlespan=1
 +
| params={{{params6}}}<sup>*</sup>
 +
| fwrev=&ge;{{{fwrev6|6.0.0}}}
 +
}}}}}}<noinclude>
 
== ==
 
== ==
 
Tests:
 
Tests:
{| class="wikitable"
+
{{cmdrow header}}
{{cmdrow|id=ID|addr=ADDR|type=TYPE|desc=DESC|fwrev=FWREV}}
+
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|params6=PARAMS6|desc=DESC}}
 
+
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|params6=PARAMS6|desc=DESC|fwrev6=FWREV6}}
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|desc=DESC}}
 
 
 
 
{{cmdrow|span=2|id=ID|addr=ADDR|type=TYPE|data=DATA|desc=DESC}}
 
{{cmdrow|span=2|id=ID|addr=ADDR|type=TYPE|data=DATA|desc=DESC}}
 
 
{{cmdrow|short=1|id=ID|addr=ADDR}}
 
{{cmdrow|short=1|id=ID|addr=ADDR}}
|}
+
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|desc=DESC}}
 +
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|desc=DESC}}
 +
{{cmdrow|span=2|singlespan=1|id=ID|addr=ADDR|type=TYPE|data=DATA|desc=DESC}}
 +
{{cmdrow|short=1|id=ID|params6=PARAMS6|addr=ADDR}}
 +
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|desc=DESC}}
 +
{{cmdrow footer}}

Latest revision as of 19:38, 5 April 2016

{{{id}}}0x{{{addr}}}rb,wb—{{{desc}}}all

Tests:

IDAddr.TypeDataDescriptionFW Rev.
ID0xADDRTYPEPARAMSDESCall
PARAMS6*≥6.0.0
ID0xADDRTYPEPARAMSDESCall
PARAMS6*≥FWREV6
ID0xADDRTYPEDESCall
ID0xADDR
ID0xADDRTYPEPARAMSDESCall
ID0xADDRTYPEPARAMSDESCall
ID0xADDRTYPEDESCall
ID0xADDRPARAMS6*≥6.0.0
ID0xADDRTYPEPARAMSDESCall