Difference between revisions of "Template:Cmdrow"

From MCEWiki
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
|-
+
{{cmdrow single
| style="font-family: monospace" | {{{id}}}
+
| shortspan={{#if: {{{short|}}}|1|{{#if: {{{params6|}}}|2|1}}}}
| {{#if: {{{short|}}}| 0x{{{addr}}}| 0x{{{addr}}}
+
| longspan={{#if: {{{params6|}}}|{{#expr: {{{span|1}}} * 2}}|{{{span|1}}}}}
{{!}} rowspan="{{{span|1}}}" {{!}} {{{type}}}
+
| paramspan={{{paramspan|{{{span|1}}}}}}
{{!}} rowspan="{{{span|1}}}" {{!}} {{{params|—}}}
+
| id={{{id}}}
{{!}} rowspan="{{{span|1}}}" {{!}} {{{reply|—}}}
+
| card={{{card}}}
{{!}} rowspan="{{{span|1}}}" {{!}} {{{desc}}}
+
| addr={{{addr}}}
{{!}} rowspan="{{{span|1}}}" {{!}} {{#if: {{{fwrev|}}}|≥{{{fwrev}}}|all}}
+
| type={{#if: {{{short|}}}||{{{type|rb,wb}}}}}
}}<noinclude>
+
| params={{#if: {{{short|}}}|{{#if: {{{params6|}}}|{{{params6|}}}<sup>*</sup>}}|{{{params|&mdash;}}}}}
 +
| desc={{#if: {{{short|}}}||{{{desc}}}}}
 +
| fwrev={{#if: {{{short|}}}|{{#if: {{{params6|}}}|&ge;{{{fwrev6|6.0.0}}}}}|{{#if: {{{fwrev|}}}|&ge;{{{fwrev}}}|all}}}}
 +
}}{{#if: {{{short|}}}||{{#if: {{{params6|}}}|{{cmdrow single
 +
| 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|data=DATA|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|data=DATA|desc=DESC}}
 
 
 
{{cmdrow|id=ID|addr=ADDR|type=TYPE|data=DATA|desc=DESC}}
 
 
 
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|desc=DESC}}
 
 
 
{{cmdrow|id=ID|addr=ADDR|type=TYPE|params=PARAMS|reply=REPLY|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