Every page in an HTML disassembly is built from a single full-page template and several subtemplates defined by [Template:*] sections in the ref file.
A template may contain ‘replacement fields’ - identifiers enclosed by braces ({ and }) - that are replaced by appropriate content (typically derived from the skool file or a ref file section) when the template is formatted. The following ‘universal’ identifiers are available in every template:
The parameters in the SkoolKit dictionary are:
The parameters in a dictionary are accessed using the [param] notation; for example, wherever {Game[Copyright]} appears in a template, it is replaced by the value of the Copyright parameter in the [Game] section when the template is formatted.
In addition to the universal identifiers, the following page-level identifiers are available in every full-page template:
The Asm template is the full-page template that is used to build disassembly pages.
It contains the following identifiers (in addition to the universal and page-level identifiers):
The parameters in the prev_entry, entry and next_entry dictionaries are:
To see the default Asm template, run the following command:
$ skool2html.py -r Template:Asm
The GameIndex template is the full-page template that is used to build the disassembly index page.
It contains the following identifier (in addition to the universal and page-level identifiers):
To see the default GameIndex template, run the following command:
$ skool2html.py -r Template:GameIndex
The MemoryMap template is the full-page template that is used to build memory map pages and the ‘Game status buffer’ page.
It contains the following identifiers (in addition to the universal and page-level identifiers):
To see the default MemoryMap template, run the following command:
$ skool2html.py -r Template:MemoryMap
The Page template is the full-page template that is used to build custom pages defined by [Page:*] and [PageContent:*] sections.
It contains the following identifier (in addition to the universal and page-level identifiers):
To see the default Page template, run the following command:
$ skool2html.py -r Template:Page
The Reference template is the full-page template that is used to build the ‘Bugs’, ‘Trivia’, ‘Pokes’, ‘Glossary’, ‘Graphic glitches’ and ‘Changelog’ pages.
It contains the following identifiers (in addition to the universal and page-level identifiers):
To see the default Reference template, run the following command:
$ skool2html.py -r Template:Reference
The anchor template is the subtemplate used to format a page anchor (by default, a <span> element with an id attribute).
It contains the following identifier (in addition to the universal identifiers):
To see the default anchor template, run the following command:
$ skool2html.py -r Template:anchor
The asm_comment template is the subtemplate used by the Asm full-page template to format block start comments, mid-block comments and block end comments.
It contains the following identifiers (in addition to the universal identifiers):
To see the default asm_comment template, run the following command:
$ skool2html.py -r Template:asm_comment
The asm_instruction template is the subtemplate used by the Asm full-page template to format an instruction (including its label, address, operation and comment).
It contains the following identifiers (in addition to the universal identifiers):
To see the default asm_instruction template, run the following command:
$ skool2html.py -r Template:asm_instruction
The asm_register template is the subtemplate used by the Asm full-page template to format each row in a table of input register values or output register values.
It contains the following identifiers (in addition to the universal identifiers):
To see the default asm_register template, run the following command:
$ skool2html.py -r Template:asm_register
The changelog_entry is the subtemplate used by the Reference full-page template to format each entry on the ‘Changelog’ page.
It contains the following identifiers (in addition to the universal identifiers):
To see the default changelog_entry template, run the following command:
$ skool2html.py -r Template:changelog_entry
The changelog_item_list template is the subtemplate used by the changelog_entry subtemplate to format a list of changelog items, and also by the changelog_item or list_item subtemplate to format a list of subitems or subsubitems etc.
It contains the following identifiers (in addition to the universal identifiers):
To see the default changelog_item_list template, run the following command:
$ skool2html.py -r Template:changelog_item_list
The contents_list_item template is the subtemplate used by the Reference full-page template to format each item in the contents list on the ‘Bugs’, ‘Trivia’, ‘Pokes’, ‘Glossary’, ‘Graphic glitches’ and ‘Changelog’ pages.
It contains the following identifiers (in addition to the universal identifiers):
To see the default contents_list_item template, run the following command:
$ skool2html.py -r Template:contents_list_item
The img template is the subtemplate used to format <img> elements.
It contains the following identifiers (in addition to the universal identifiers):
To see the default img template, run the following command:
$ skool2html.py -r Template:img
The index_section template is the subtemplate used by the GameIndex full-page template to format each group of links on the disassembly index page.
It contains the following identifiers (in addition to the universal identifiers):
To see the default index_section template, run the following command:
$ skool2html.py -r Template:index_section$
The index_section_item template is the subtemplate used by the index_section subtemplate to format each link in a link group on the disassembly index page.
It contains the following identifiers (in addition to the universal identifiers):
To see the default index_section_item template, run the following command:
$ skool2html.py -r Template:index_section_item
The javascript template is the subtemplate used by the full-page templates to format each <script> element in the head of a page.
It contains the following identifier (in addition to the universal identifiers):
To see the default javascript template, run the following command:
$ skool2html.py -r Template:javascript
The link template is the subtemplate used to format the hyperlinks created by the #BUG, #FACT, #POKE, #LINK and #R macros, and the hyperlinks in instruction operands on disassembly pages.
It contains the following identifiers (in addition to the universal identifiers):
To see the default link template, run the following command:
$ skool2html.py -r Template:link
The list template is used by the #LIST macro to format a list.
It contains the following identifiers (in addition to the universal identifiers):
To see the default list template, run the following command:
$ skool2html.py -r Template:list$
New in version 4.2.
The list_item template is the subtemplate used by the list template to format each item in the list, and also by the changelog_item_list subtemplate to format each item in a changelog item list.
It contains the following identifier (in addition to the universal identifiers):
To see the default list_item template, run the following command:
$ skool2html.py -r Template:list_item
New in version 4.2.
The map_entry template is the subtemplate used by the MemoryMap full-page template to format each entry on the memory map pages and the ‘Game status buffer’ page.
It contains the following identifiers (in addition to the universal identifiers):
The parameters in the entry dictionary are:
To see the default map_entry template, run the following command:
$ skool2html.py -r Template:map_entry
The paragraph template is the subtemplate used to format each paragraph in the following items:
It contains the following identifier (in addition to the universal identifiers):
To see the default paragraph template, run the following command:
$ skool2html.py -r Template:paragraph
The reference_entry template is the subtemplate used by the Reference full-page template to format each entry on the ‘Bugs’, ‘Trivia’, ‘Pokes’, ‘Glossary’ and ‘Graphic glitches’ pages.
It contains the following identifiers (in addition to the universal identifiers):
To see the default reference_entry template, run the following command:
$ skool2html.py -r Template:reference_entry
The reg template is the subtemplate used by the #REG macro to format a register name.
It contains the following identifier (in addition to the universal identifiers):
To see the default reg template, run the following command:
$ skool2html.py -r Template:reg
The stylesheet template is the subtemplate used by the full-page templates to format each <link> element for a CSS file in the head of a page.
It contains the following identifier (in addition to the universal identifiers):
To see the default stylesheet template, run the following command:
$ skool2html.py -r Template:stylesheet
The table template is used by the #TABLE macro to format a table.
It contains the following identifiers (in addition to the universal identifiers):
To see the default table template, run the following command:
$ skool2html.py -r Template:table$
New in version 4.2.
The table_cell template is the subtemplate used by the table_row template to format each non-header cell in the table row.
It contains the following identifiers (in addition to the universal identifiers):
To see the default table_cell template, run the following command:
$ skool2html.py -r Template:table_cell
New in version 4.2.
The table_header_cell template is the subtemplate used by the table_row template to format each header cell in the table row.
It contains the following identifiers (in addition to the universal identifiers):
To see the default table_header_cell template, run the following command:
$ skool2html.py -r Template:table_header_cell
New in version 4.2.
The table_row template is the subtemplate used by the table template to format each row in the table.
It contains the following identifier (in addition to the universal identifiers):
To see the default table_row template, run the following command:
$ skool2html.py -r Template:table_row
New in version 4.2.