Template:Prototype TOC/section/variant/doc: Difference between revisions
< Template:Prototype TOC | section | variant
Jump to navigation
Jump to search
(Created page with "Used on Prototype_overview. Displays all properties of the given prototype. Higher limit and different caption compared to Template:Prototype TOC/section. Caption is "...") |
m (update source) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Used on [[Prototype_overview]]. Displays all properties of the given prototype. Higher limit and different caption compared to [[Template:Prototype TOC/section]]. Caption is "PrototypePage <code>prototype-type</code> extends PrototypeBase". | Used on [[Prototype_overview]]. Displays all properties of the given prototype. Higher limit and different caption compared to [[Template:Prototype TOC/section]]. Caption is "PrototypePage <code>prototype-type</code> extends PrototypeBase". | ||
If a prototype has no properties, displays "No new properties". | |||
Parameters: | Parameters: | ||
Line 5: | Line 7: | ||
Source code: | Source code: | ||
<pre><nowiki>{{#ask: | <pre><nowiki><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 14: | Line 16: | ||
|sort=Prototype property optional,Prototype property name | |sort=Prototype property optional,Prototype property name | ||
|link=none | |link=none | ||
|limit= | |limit=400 | ||
| | |default=<tr><td colspan="3" class="prototype-toc-item-name">No new properties</td></tr> | ||
}}</nowiki></pre> | }} | ||
</nowiki></pre> |
Latest revision as of 20:50, 11 December 2020
Used 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> }}