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:TableSlim/Documentation: Difference between revisions

(Created page with "<includeonly>Category:Table Template</includeonly> {{Template|TableSlim}} is intended for use alongside other {{Category|Table Template}}s. It sets up a table with different formatting from {{Template|TableTop}}. ==Usage== It accepts one {{parameter|optional|string}}: * {{code|sortable}} (default {{code|false}}) — if set to {{code|true}}, it applies the {{code|sortable}} style to the table. ==Return==")
 
No edit summary
Line 5: Line 5:
* {{code|sortable}} (default {{code|false}}) &mdash; if set to {{code|true}}, it applies the {{code|sortable}} style to the table.
* {{code|sortable}} (default {{code|false}}) &mdash; if set to {{code|true}}, it applies the {{code|sortable}} style to the table.
==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>}}. For example, {{code|<nowiki>{{TableSlim|A|B|C}}</nowiki>}} produces the header in: {{Return|{{Table:Sample|slim}}}}

Revision as of 15:48, 24 January 2023

Template:TableSlim is intended for use alongside other Table Templates. It sets up a table with different formatting from Template:TableTop.

Usage

It accepts one optional string parameter:

  • sortable (default false) — if set to true, it applies the sortable style to the table.

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 />. For example, {{TableSlim|A|B|C}} produces the header in:

Template:TableTop Sample
ABC
A1B1C1
A2B2C2