Template:Collection table: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 24: Line 24:
{{!}} {{{12|}}}|}}{{#if: {{{13|}}}|<nowiki></nowiki>
{{!}} {{{12|}}}|}}{{#if: {{{13|}}}|<nowiki></nowiki>
{{!}} {{{14|}}}|}}
{{!}} {{{14|}}}|}}
}}
}}<noinclude>
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:
<pre><nowiki>{{collection table
| type={{{type|table}}}
| suppresscategory={{{suppresscategory|}}}
| allowselflink={{{allowselflink}}}
| content={{{1|}}}
| postfix=Panel Attribute
| category=Panel Attributes
| Attribute name | {{{attribute|}}}&lt;!--
--&gt;| Unit | {{{unit|}}}&lt;!--
--&gt;| Description | {{{description|}}}&lt;!--
--&gt;}}</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).
The remainder of the attributes come in pairs: The name in the header, and the parameter used in the rows.
 
</noinclude>

Revision as of 13:24, 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.