Template:Prototype TOC/section/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Used by Template:Prototype TOC to display one section of the prototype table of contents. Parameters: * First parameter: Name of the prototype page * Named parameter "opt...") |
(custom-section-title) |
||
Line 5: | Line 5: | ||
* Named parameter "optional": true or false or not set. When true/false shows only optional/mandatory properties. If not set it shows all properties. | * Named parameter "optional": true or false or not set. When true/false shows only optional/mandatory properties. If not set it shows all properties. | ||
* Named parameter "section-title": If set to true (or at all), show a "Inherited from [[{{{1}}}]]" title above the section. | * Named parameter "section-title": If set to true (or at all), show a "Inherited from [[{{{1}}}]]" title above the section. | ||
* Named parameter "custom-section-title": If set at all, and "section-title" is set to true, the custom title will be shown instead of "Inherited from [[{{{1}}}]]". | |||
Source code: | Source code: | ||
Line 17: | Line 18: | ||
|sort=Prototype property optional,Prototype property name | |sort=Prototype property optional,Prototype property name | ||
|link=none | |link=none | ||
|intro= {{#if: {{{section-title|}}} | <tr><td colspan="3" class="prototype-toc-section-title">Inherited from [[{{{1}}}]]</td></tr> | }} | |limit={{{#querylimit|100}}}<!-- Default would be 50 --> | ||
|intro= {{#if: {{{section-title|}}} | <tr><td colspan="3" class="prototype-toc-section-title"> {{#if: {{{custom-section-title|}}} | {{{custom-section-title}}} | Inherited from [[{{{1}}}]] }} </td></tr> | }} | |||
}}</nowiki></pre> | }}</nowiki></pre> |
Revision as of 18:20, 8 August 2019
Used by Template:Prototype TOC to display one section of the prototype table of contents.
Parameters:
- First parameter: Name of the prototype page
- Named parameter "optional": true or false or not set. When true/false shows only optional/mandatory properties. If not set it shows all properties.
- Named parameter "section-title": If set to true (or at all), show a "Inherited from [[{{{1}}}]]" title above the section.
- Named parameter "custom-section-title": If set at all, and "section-title" is set to true, the custom title will be shown instead of "Inherited from [[{{{1}}}]]".
Source code:
{{#ask: [[Prototype property pagename::{{{1}}}]] [[Prototype property optional::{{{optional|+}}}]] |?Prototype property name |?Prototype property type |?Prototype property optional |format=plainlist |template=Prototype TOC/item |sort=Prototype property optional,Prototype property name |link=none |limit={{{#querylimit|100}}}<!-- Default would be 50 --> |intro= {{#if: {{{section-title|}}} | <tr><td colspan="3" class="prototype-toc-section-title"> {{#if: {{{custom-section-title|}}} | {{{custom-section-title}}} | Inherited from [[{{{1}}}]] }} </td></tr> | }} }}