Template:RCO TOC entry common area: Difference between revisions
Jump to navigation
Jump to search
(Test, trying to add an optional setting to hide the xml attribute) |
(It works) |
||
Line 4: | Line 4: | ||
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
</noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01}}} / <abbr title="Padding, always 0x00 0x00">00 00</abbr> || rowspan="2" | {{#tag:syntaxhighlight|<{{{3|Element}}} {{#if:{{{6|}}}| | </noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01}}} / <abbr title="Padding, always 0x00 0x00">00 00</abbr> || rowspan="2" | {{#tag:syntaxhighlight|<{{{3|Element}}} {{#if:{{{6|}}}||name="label"}}/>|lang=xml|enclose=none}} || First byte = type, second byte = id, last 2 bytes = padding | ||
|- | |- | ||
| 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Label offset relative to the start of the '''label_string_table''' (<abbr title="0xFFFFFFFF means the label doesn't exist for this entry">optional</abbr>) | | 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Label offset relative to the start of the '''label_string_table''' (<abbr title="0xFFFFFFFF means the label doesn't exist for this entry">optional</abbr>) | ||
Line 28: | Line 28: | ||
**This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields | **This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields | ||
**The field 3 is intended to display code with syntax higlight as example: <nowiki><syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight></nowiki> | **The field 3 is intended to display code with syntax higlight as example: <nowiki><syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight></nowiki> | ||
**As example the code <nowiki>{{RCO TOC entry common area|1|2|MainTree|4|5}}</nowiki> when called from inside a table will result: | **As example the code <nowiki>{{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}}</nowiki> when called from inside a table will result: | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|- | |- | ||
Line 35: | Line 35: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|1|2|MainTree|4|5}} | | {{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}} | ||
|} | |} | ||
Revision as of 05:26, 23 April 2023
- Example
- This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields
- The field 3 is intended to display code with syntax higlight as example: <syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight>
- As example the code {{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}} when called from inside a table will result: