Difference between revisions of "Template:Standard table/Documentation"
From PCGamingWiki, the wiki about fixing PC games
m (nowiki) |
m (expanded documents) |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
− | This is the standard table template. | + | This is the standard table template that mirrors the default 2-column style used of the main PCGW tables on game pages. |
+ | |||
+ | ;Row styles | ||
+ | * {{T|Standard table/row}} - Default row template used for values in the left column and description in the right column (think a list of console parameters and their use) | ||
+ | * {{T|Standard table/rowalt}} - Alternate row template used for label in the left column and value in the right column (think a table of config file locations) | ||
;Syntax | ;Syntax | ||
Line 17: | Line 21: | ||
{{Standard table/row|Text in 1st row, 1st column|Text in 1st row, 2nd column}} | {{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}} | {{Standard table/row|Text in 2nd row, 1st column|Text in 2nd row, 2nd column}} | ||
+ | |collapsed=no}} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ;Example of e.g. console parameter list | ||
+ | {{Standard table| Parameter | Description |content= | ||
+ | {{Standard table/row| sv_cheats 1 | Enable cheats }} | ||
+ | {{Standard table/row| pepperonipizza | Grant yourself 1000 food }} | ||
+ | |collapsed=no}} | ||
+ | <pre><nowiki> | ||
+ | {{Standard table| Parameter | Description |content= | ||
+ | {{Standard table/row| sv_cheats 1 | Enable cheats }} | ||
+ | {{Standard table/row| pepperonipizza | Grant yourself 1000 food }} | ||
+ | |collapsed=no}} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ;Example of e.g. a list of paths | ||
+ | {{Standard table| Edition | Location |content= | ||
+ | {{Standard table/rowalt| '''Base''' | {{p|game}} }} | ||
+ | {{Standard table/rowalt| '''Bonuses''' | {{p|game}}\bonus }} | ||
+ | |collapsed=no}} | ||
+ | <pre><nowiki> | ||
+ | {{Standard table| Edition | Location |content= | ||
+ | {{Standard table/rowalt| '''Base''' | {{p|game}} }} | ||
+ | {{Standard table/rowalt| '''Bonuses''' | {{p|game}}\bonus }} | ||
|collapsed=no}} | |collapsed=no}} | ||
</nowiki></pre> | </nowiki></pre> |
Revision as of 17:09, 17 March 2020
- Description
This is the standard table template that mirrors the default 2-column style used of the main PCGW tables on game pages.
- Row styles
- {{Standard table/row}} - Default row template used for values in the left column and description in the right column (think a list of console parameters and their use)
- {{Standard table/rowalt}} - Alternate row template used for label in the left column and value in the right column (think a table of config file locations)
- 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 collapsed=no
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}}
- Example of e.g. console parameter list
Parameter | Description |
---|---|
sv_cheats 1 | Enable cheats |
pepperonipizza | Grant yourself 1000 food |
{{Standard table| Parameter | Description |content= {{Standard table/row| sv_cheats 1 | Enable cheats }} {{Standard table/row| pepperonipizza | Grant yourself 1000 food }} |collapsed=no}}
- Example of e.g. a list of paths
Edition | Location |
---|---|
Base | <path-to-game> |
Bonuses | <path-to-game>\bonus |
{{Standard table| Edition | Location |content= {{Standard table/rowalt| '''Base''' | {{p|game}} }} {{Standard table/rowalt| '''Bonuses''' | {{p|game}}\bonus }} |collapsed=no}}