Template:Prototype TOC/section/variant: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Fixed that nothing was shown when a prototype didnt have extra properties) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ask: | <includeonly><tr><td colspan="3" class="prototype-toc-section-title" style="padding-top: 3em;">[[{{{1}}}]] <code>{{#show: {{{1}}} |?Has prototype type}}</code> {{#ask: [[{{{1}}}]] [[Has parent::+]] |?Has parent= |intro=extends |mainlabel=-}} </td></tr>{{#ask: | ||
[[Prototype property pagename::{{{1}}}]] | [[Prototype property pagename::{{{1}}}]] | ||
|?Prototype property name | |?Prototype property name | ||
Line 9: | Line 9: | ||
|link=none | |link=none | ||
|limit=300 | |limit=300 | ||
| | |default=<tr><td colspan="3" class="prototype-toc-item-name">No new properties</td></tr> | ||
}}</includeonly><noinclude>{{doc}}[[Category:Prototype documentation templates]]</noinclude> | }}</includeonly><noinclude>{{doc}}[[Category:Prototype documentation templates]]</noinclude> |
Revision as of 16:56, 4 April 2020
[View] [Edit] [Page history]
DocumentationUsed on Prototype_overview. Displays all properties of the given prototype. Higher limit and different caption compared to Template:Prototype TOC/section. Caption is "PrototypePage prototype-type
extends PrototypeBase".
If a prototype has no properties, displays "No new properties".
Parameters:
- First parameter: Name of the prototype page
Source code:
<tr><td colspan="3" class="prototype-toc-section-title" style="padding-top: 3em;">[[{{{1}}}]] <code>{{#show: {{{1}}} |?Has prototype type}}</code> {{#ask: [[{{{1}}}]] [[Has parent::+]] |?Has parent= |intro=extends |mainlabel=-}} </td></tr>{{#ask: [[Prototype property pagename::{{{1}}}]] |?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=400 |default=<tr><td colspan="3" class="prototype-toc-item-name">No new properties</td></tr> }}List of all templates