Template:STF: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
<templatestyles src="STF/styles.css" />class="{{{1|normal}}} table"<noinclude> | <includeonly><templatestyles src="STF/styles.css" />class="{{{1|normal}}} table"</includeonly><noinclude> | ||
{{page warning}} | {{page warning}} | ||
== Description == | == Description == | ||
Revision as of 17:28, 2 October 2024
Warning:
Description
The Standardized Table Format is used to give tables across the wiki a similar format.
Usage
{{STF}}
{{STF|<type>}}
Parameters
- unnamed parameter 1
- Optional. The table class to apply. This determines the color of the headers, rows, and cells.
- Any class name
- archer
- cleric
- knight
- paladin
- summoner
- warrior
- wizard
- Any item rarity
- normal (default)
- magic
- rare
- soul
- unique
- Other choices to match the color profile of the infobox
- crafting
- location
- npc
- quest
- See #Color examples below for examples of the above options.
- Style choices:
- collapsible — table is expanded by default and can be collapsed
- expandable — table is collapsed by default and can be expanded
- sortable — rows can be sorted
- text-left — left-aligned text
- text-center — center-aligned text
- text-right — right-aligned text
- Any class name
Examples
Basic use
{| {{STF}}
! Heading 1 !! Heading 2 !! Heading 3
|-
! Subheading 1
| 1.1 || 1.2
|-
! Subheading 2
| 2.1 || 2.2
|}
| Heading 1 | Heading 2 | Heading 3 |
|---|---|---|
| Subheading 1 | 1.1 | 1.2 |
| Subheading 2 | 2.1 | 2.2 |
Specific use
{| {{STF|sortable location align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
! Subheading 1
| 1.1 || 1.2
|-
! Subheading 2
| 2.1 || 2.2
|}
| Heading 1 | Heading 2 | Heading 3 |
|---|---|---|
| Subheading 1 | 1.1 | 1.2 |
| Subheading 2 | 2.1 | 2.2 |
Color examples
| Classes | |
|---|---|
| archer | Class colors |
| cleric | |
| knight | |
| paladin | |
| summoner | |
| warrior | |
| wizard | |
| Item rarities | |
| normal | Rarity colors |
| magic | |
| rare | |
| soul | |
| unique | |
| Other uses | |
| crafting | crafting, sheets, materials |
| location | province, region, area, city, landmark |
| npc | npc, monsters |
| quest | quests |