Template:Collection table: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 30: | Line 30: | ||
; Parameters | ; Parameters | ||
* type: table: | * type: table: | ||
** suppresscategory: | ** suppresscategory: If this has a value, no category tag is added. | ||
** allowselflink: | ** allowselflink: If this does not have a value, a class is added to the table preventing a link to the same article from becoming bold. | ||
** content: | ** content: The rows for the table. | ||
** postfix: | * attribute: If it has a value, treats the first provided value as an attribute name (i.e. fully capitalized). | ||
** category: | ** postfix: If provided, a postfix is added as a clarifying term in parenthesis in the link title | ||
** category: The category to add the article to (if not suppressed). | |||
** 1...n | ** 1...n | ||
Line 57: | Line 58: | ||
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). | ||
The remainder of the attributes come in pairs: The name in the header, and the parameter used in the rows. | The remainder of the attributes come in pairs: The name in the header, and the parameter used in the rows. | ||
The first value is always a link to a specific article. | |||
Category is automatically included on the page that template is used on (unless supressed) if a category is configured. The first value in the table is automaticallly postfixed if a postfix is configured. | Category is automatically included on the page that template is used on (unless supressed) if a category is configured. The first value in the table is automaticallly postfixed if a postfix is configured. | ||
The following parameters must be used by the final template: | |||
</noinclude> | </noinclude> |
Revision as of 14:20, 29 June 2020
- Parameters
- type: table:
- suppresscategory: If this has a value, no category tag is added.
- allowselflink: If this does not have a value, a class is added to the table preventing a link to the same article from becoming bold.
- content: The rows for the table.
- attribute: If it has a value, treats the first provided value as an attribute name (i.e. fully capitalized).
- postfix: If provided, a postfix is added as a clarifying term in parenthesis in the link title
- category: The category to add the article to (if not suppressed).
- 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|<noinclude>template</noinclude>}}} | allowselflink={{{allowselflink}}} | content={{{1|}}} | attribute=true | 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.
The first value is always a link to a specific article.
Category is automatically included on the page that template is used on (unless supressed) if a category is configured. The first value in the table is automaticallly postfixed if a postfix is configured.
The following parameters must be used by the final template: