Difference between revisions of "Template:Standard table/Documentation"
From PCGamingWiki, the wiki about fixing PC games
m (added mention of collapsed=no) |
|||
Line 8: | Line 8: | ||
{{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} | {{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} | ||
}} | }} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ;Prevent collapsed by default | ||
+ | Add the {{code|collapsed=no}} parameter to the syntax: | ||
+ | |||
+ | <pre><nowiki> | ||
+ | {{Standard table|Header Text 1|Header Text 2|content= | ||
+ | {{Standard table/row|Text in 1st row, 1st column|Text in 1st row, 2nd column}} | ||
+ | {{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} | ||
+ | |collapsed=no}} | ||
</nowiki></pre> | </nowiki></pre> |
Revision as of 17:59, 8 September 2019
- Description
This is the standard table template. It uses the following syntax:
- Syntax
{{Standard table|Header Text 1|Header Text 2|content= {{Standard table/row|Text in 1st row, 1st column|Text in 1st row, 2nd column}} {{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} }}
- Prevent collapsed by default
Add the {{{1}}}
parameter to the syntax:
{{Standard table|Header Text 1|Header Text 2|content= {{Standard table/row|Text in 1st row, 1st column|Text in 1st row, 2nd column}} {{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} |collapsed=no}}