Difference between revisions of "Template:Standard table"
From PCGamingWiki, the wiki about fixing PC games
m |
m (removed ") |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="container-pcgwikitable"><table class="page-normaltable pcgwikitable mw-collapsible mw-collapsed"> | + | <includeonly><div class="container-pcgwikitable"><table class="page-normaltable pcgwikitable table-standard {{#ifeq: {{{collapsed|yes}}} | no ||mw-collapsible mw-collapsed}}" {{#if: {{{style|}}} | style={{{style}}} }}> |
− | <tr> | + | <tr class="table-standard-head-row"> |
− | <th style="width:220px;">{{{ | + | <th style="width:220px;" class="table-standard-head-first-column">{{{1|}}}</th> |
− | <th style="width:600px;">{{{ | + | <th style="width:600px;" class="table-standard-head-second-column">{{{2|Description}}}</th> |
</tr> | </tr> | ||
− | {{{content|{{{ | + | {{{content|{{{3}}}}}} |
− | </table></div><noinclude>{{Documentation}}</noinclude> | + | </table></div></includeonly><noinclude> |
+ | {{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}} | ||
+ | }} | ||
+ | {{Documentation}}</noinclude> |
Latest revision as of 12:13, 21 October 2020
Header Text 1 | Header Text 2 |
---|---|
Text in 1st row, 1st column | Text in 1st row, 2nd column |
Text in 2nd row, 1st column | Text in 2nd row, 2nd column |
Documentation for the above template (sometimes hidden from view).
- 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 (monospace) 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 (monospace). Matches the save/config path tables of the game pages.
- {{Standard table/rowalt2}} - General-purpose row with no monospace column at all. Matches the regular table designs of the game pages.
- 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 a general-purpose list
Feature | Notes |
---|---|
Anti-aliasing | Great support |
Framerate limiter | Caps out at 1000 FPS |
{{Standard table| Parameter | Description |content= {{Standard table/rowalt2| '''Anti-aliasing''' | Great support }} {{Standard table/rowalt2| '''Framerate limiter''' | Caps out at 1000 FPS }} |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}}
Visit Template:Standard table/Documentation to edit this text. (How does this work?)