Template:Prototype TOC/doc
Jump to navigation
Jump to search
- Generates the full table of contents for a prototype page based on the prototype properties set up through Semantic MediaWiki.
- The first and only parameter is used to set the lua prototype type name for the prototype page that this TOC is on.
- This prototype type is displayed above the table. The first section of the TOC shows all mandatory properties, then all optional properties and finally all inherited properties, sectioned by prototype, are displayed.
Source code:
__NOTOC__ <table class="prototype-toc"> <tr><td class="caption" colspan="3">{{FULLPAGENAME}} — <code>[[Has prototype type::{{{1}}}]]</code></td></tr> {{Prototype_TOC/section|{{FULLPAGENAME}}|optional=false}} {{Prototype_TOC/section|{{FULLPAGENAME}}|optional=true}} {{#ask: [[Has parent ::+]][[{{FULLPAGENAME}}]] |?Has parent |format=plainlist |mainlabel=- |template=Prototype TOC/parent |link=none }} </table>
This template depends on the following subtemplates: