Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:TableTop/Documentation: Difference between revisions

(Created page with "<includeonly>Category:Table Template</includeonly> {{Template|TableTop}} is used in conjunction with other {{Category|Table Template}}s in the creation of properly formatted tables. ==Usage== It accepts one {{Parameter|mandatory|string}} and up to six additional {{Parameter|optional|string}}s. All seven are used as entries in the table. It supports one {{Parameter|optional|named}}: * {{Code|sortable}} — if set to {{code|true}} it adds the {{code|sortable}} opt...")
 
No edit summary
Line 4: Line 4:
It accepts one {{Parameter|mandatory|string}} and up to six additional {{Parameter|optional|string}}s. All seven are used as entries in the table.
It accepts one {{Parameter|mandatory|string}} and up to six additional {{Parameter|optional|string}}s. All seven are used as entries in the table.


It supports one {{Parameter|optional|named}}:
It supports two {{Parameter|optional|named}}s:
* {{Code|sortable}} &mdash; if set to {{code|true}} it adds the {{code|sortable}} option to the {{Code|<nowiki><table /></nowiki>}} class.
* {{Code|sortable}} &mdash; if set to {{code|true}} it adds the {{code|sortable}} option to the {{Code|<nowiki><table /></nowiki>}} class.
* {{Code|float}} (default: {{Code|right}}) &mdash; controls which side of the content the table appears on.
==Return==
==Return==
The table starts with {{Code|<nowiki><table class="wikitable"></nowiki>}}, then the supplied parameters are used to construct a {{Code|<nowiki><th /></nowiki>}} with each parameter wrapped in a {{Code|<nowiki><td /></nowiki>}}.
The table starts with {{Code|<nowiki><table class="wikitable"></nowiki>}}, then the supplied parameters are used to construct a {{Code|<nowiki><th /></nowiki>}} with each parameter wrapped in a {{Code|<nowiki><td /></nowiki>}}.

Revision as of 21:15, 24 October 2022

Template:TableTop is used in conjunction with other Table Templates in the creation of properly formatted tables.

Usage

It accepts one mandatory string parameter and up to six additional optional string parameters. All seven are used as entries in the table.

It supports two optional named parameters:

  • sortable — if set to true it adds the sortable option to the <table /> class.
  • float (default: right) — controls which side of the content the table appears on.

Return

The table starts with <table class="wikitable">, then the supplied parameters are used to construct a <th /> with each parameter wrapped in a <td />.