Template:Collection table: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
{{#if: {{{content|}}}| | {{#if: {{{content|}}}| | ||
{{{content|}}}|}} | {{{content|}}}|}} | ||
{{!}}} | {{!}}}<noinclude><!--End of table--></noinclude> | ||
|<nowiki></nowiki> | |<nowiki></nowiki><noinclude><!--Start of row--></noinclude> | ||
{{#if: {{{1|}}}|<nowiki></nowiki> | |||
{{!}}- | {{!}}- | ||
{{!}} {{{2|}}}|}}{{#if: {{{3|}}}|<nowiki></nowiki> | {{!}} {{{2|}}}|}}{{#if: {{{3|}}}|<nowiki></nowiki> | ||
{{!}} {{{4|}}}|}}{{#if: {{{5|}}}|<nowiki></nowiki> | {{!}} {{{4|}}}|}}{{#if: {{{5|}}}|<nowiki></nowiki> | ||
Line 25: | Line 25: | ||
{{!}} {{{14|}}}|}} | {{!}} {{{14|}}}|}} | ||
}}<noinclude> | }}<noinclude> | ||
Parameters | ; Parameters | ||
* type: table: | * type: table: | ||
** suppresscategory: | ** suppresscategory: | ||
Line 37: | Line 37: | ||
** named parameters as defined by the table structure | ** named parameters as defined by the table structure | ||
Usage | ; Usage | ||
Create an intermediate category with the following approximate structure: | Create an intermediate category with the following approximate structure: | ||
<pre><nowiki>{{collection table | <pre><nowiki>{{collection table | ||
Line 49: | Line 49: | ||
-->| Unit | {{{unit|}}}<!-- | -->| Unit | {{{unit|}}}<!-- | ||
-->| Description | {{{description|}}}<!-- | -->| Description | {{{description|}}}<!-- | ||
-->}}</nowiki><pre> | -->}}</nowiki></pre> | ||
Set the category to the category the individual entries need to be collected under (plural). Set the postfix to the clarifying term in the parenthesis in the title (singular). | Set the category to the category the individual entries need to be collected under (plural). Set the postfix to the clarifying term in the parenthesis in the title (singular). |
Revision as of 13:28, 29 June 2020
- Parameters
- type: table:
- suppresscategory:
- allowselflink:
- content
- postfix
- category
- 1...n
- type: row:
- named parameters as defined by the table structure
- Usage
Create an intermediate category with the following approximate structure:
{{collection table | type={{{type|table}}} | suppresscategory={{{suppresscategory|}}} | allowselflink={{{allowselflink}}} | content={{{1|}}} | postfix=Panel Attribute | category=Panel Attributes | Attribute name | {{{attribute|}}}<!-- -->| Unit | {{{unit|}}}<!-- -->| Description | {{{description|}}}<!-- -->}}
Set the category to the category the individual entries need to be collected under (plural). Set the postfix to the clarifying term in the parenthesis in the title (singular). The remainder of the attributes come in pairs: The name in the header, and the parameter used in the rows.