Difference between revisions of "Template:IPC/RequestHeader"
Jump to navigation
Jump to search
(Created page with "|- | {{#var:ipc_offset}}{{#vardefine:ipc_offset|{{#expr: {{#var:ipc_offset}} + 1}}}} | Header code [{{{1}}}]") |
m (Transclude documentation) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |- | + | <noinclude> |
− | | {{#var:ipc_offset}}{{#vardefine:ipc_offset|{{#expr: {{#var:ipc_offset}} + 1}}}} | + | {{IPC/Request|ipc_offset_prefix=n + }} |
− | | Header | + | </noinclude>|- |
+ | | {{#var:ipc_offset_prefix}}{{#var:ipc_offset}}{{#vardefine:ipc_offset|{{#expr: {{#var:ipc_offset}} + 1}}}} | ||
+ | | | ||
+ | {| class="wikitable" border="1" style="margin:0.2em 0" | ||
+ | |- | ||
+ | ! Header | ||
+ | | {{{1}}}<span style="opacity:0.8">{{ | ||
+ | #vardefine:headerlow|{{#expr:{{{3}}}+({{{2}}}*64)}}}}{{ | ||
+ | #vardefine:looppow|12}}{{#while: | ||
+ | | {{#ifexpr: {{#var:looppow}} >= 0 | true }} | ||
+ | | {{#switch: {{#expr:trunc({{#var:headerlow}}/(2^{{#var:looppow}})) mod 16}} | ||
+ | | 0 = 0 | ||
+ | | 1 = 1 | ||
+ | | 2 = 2 | ||
+ | | 3 = 3 | ||
+ | | 4 = 4 | ||
+ | | 5 = 5 | ||
+ | | 6 = 6 | ||
+ | | 7 = 7 | ||
+ | | 8 = 8 | ||
+ | | 9 = 9 | ||
+ | | 10 = A | ||
+ | | 11 = B | ||
+ | | 12 = C | ||
+ | | 13 = D | ||
+ | | 14 = E | ||
+ | | 15 = F | ||
+ | | #default = ? | ||
+ | }}{{#vardefine:looppow|{{#expr:{{#var:looppow}}-4}}}} | ||
+ | }}</span> | ||
+ | ! <abbr title="Command ID">Cmd</abbr> | ||
+ | | {{{1}}} | ||
+ | ! <abbr title="Number of raw parameter words">Param</abbr> | ||
+ | | {{{2}}} | ||
+ | ! <abbr title="Number of words in the translate section of the message">Xlat</abbr> | ||
+ | | {{{3}}} | ||
+ | |}<noinclude> | ||
+ | {{IPC/RequestEnd}} | ||
+ | {{Documentation}} | ||
+ | [[Category:IPC message contents templates]] | ||
+ | </noinclude> |