Difference between revisions of "Template:Instruction"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border: solid 2px black; border-collapse: collapse; width: 250px; height: 250px;"
+
{| style="float: left; margin-right: 8px; margin-bottom: 8px; border: solid 1px #eee; background-color: #fafafa; border-collapse: collapse; width: 250px; height: 220px;"
| rowspan="2" style="text-align: center; vertical-align: middle; width: 50%; border: solid 1px black;" |'''<big>{{{op_name}}}</big>'''
+
| title="Instruction mnemonic" {{#ifeq:{{{op_size|}}}|3|rowspan="3"|rowspan="2"}} style="text-align: center; vertical-align: middle; width: 70%; height:115px; border: solid 1px #eee; background-color: #f5f5f5; font-size: 1.2em;" |'''<big>{{{op_name}}}</big>'''
|style="text-align: right;"|size:
+
| title="Size of instruction in bytes" style="text-align: right;" |size:
|style="text-align: right;"|{{{op_size}}}
+
| title="Size of instruction in bytes" style="text-align: center; width: 30px;" |{{{op_size}}}
|-style="border: solid 1px black"
+
{{#ifeq:{{{op_size|}}}|3
|style="text-align: right;"|args:
+
|{{!}}-
|style="text-align: right;"|{{{op_args}}}
+
{{!}} colspan="2" style="text-align: center;" {{!}} ''immediate''
|-style="border: solid 1px black"
+
|}}
|style="text-align: center;" colspan="3" |opcode: '''{{{op_code}}}'''
+
|- style="border: solid 1px #eee; height: 69px;"
|-style="border: solid 1px black"
+
| title="Number of arguments popped from stack" style="text-align: right;" |args:
|style="text-align: center;" colspan="3" |''{{{op_desc}}}''
+
| title="Number of arguments popped from stack" style="text-align: center; width: 30px;" |{{{op_args}}}
 +
|- style="border: solid 1px #eee"
 +
| title="Instruction code" colspan="3" style="text-align: center; background-color: #f5f5f5;" |'''<big>{{{op_code}}}</big>'''
 +
|- style="border: solid 1px #eee"
 +
| colspan="3" style="text-align: center;" |''{{{op_desc}}}''
 
|}
 
|}
 +
<noinclude>
 +
<div style="clear: both;"></div>
 
<templatedata>
 
<templatedata>
 
{
 
{
"description": "Instruction template",
+
"description": "Instruction template",
"params": {
+
"params": {
        "op_name": {
+
"op_name": {
            "label": "Instruction name",
+
"label": "Instruction name",
            "type": "string",
+
"type": "string",
            "required": true
+
"required": true,
        },
+
"aliases": [
        "op_size": {
+
"1"
            "label": "Instruction size",
+
]
            "type": "number",
+
},
            "required": true
+
"op_size": {
        },
+
"label": "Instruction size",
        "op_args": {
+
"type": "number",
            "label": "Number of arguments",
+
"required": true,
            "type": "number",
+
"aliases": [
            "required": true
+
"3"
        },
+
],
        "op_code": {
+
"autovalue": "1"
            "label": "Instruction value",
+
},
            "type": "number",
+
"op_args": {
            "required": true
+
"label": "Number of arguments",
        },
+
"type": "number",
        "op_desc": {
+
"required": true,
            "label": "Short description",
+
"aliases": [
            "type": "string"
+
"4"
        }
+
],
    }
+
"autovalue": "0"
 +
},
 +
"op_code": {
 +
"label": "Instruction code",
 +
"type": "number",
 +
"required": true,
 +
"aliases": [
 +
"2"
 +
]
 +
},
 +
"op_desc": {
 +
"label": "Short description",
 +
"type": "string",
 +
"aliases": [
 +
"5"
 +
],
 +
"suggested": true,
 +
"autovalue": "&nbsp;"
 +
}
 +
},
 +
"paramOrder": [
 +
"op_name",
 +
"op_code",
 +
"op_size",
 +
"op_args",
 +
"op_desc"
 +
],
 +
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
</noinclude>
 +
[[Category:Instructions]]

Latest revision as of 07:54, 17 July 2019

{{{op_name}}} size: {{{op_size}}}
args: {{{op_args}}}
{{{op_code}}}
{{{op_desc}}}

Instruction template

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Instruction nameop_name 1

no description

Stringrequired
Instruction codeop_code 2

no description

Numberrequired
Instruction sizeop_size 3

no description

Auto value
1
Numberrequired
Number of argumentsop_args 4

no description

Auto value
0
Numberrequired
Short descriptionop_desc 5

no description

Auto value
&nbsp;
Stringsuggested