Template:STF
Description
The Standardized Table Format is used to give tables across the wiki a similar format.
Usage
{{STF}}
{{STF|<type>}}
Include |}
after the last row to close off the table.
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 |}
class=" table" ! 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 |}
class="sortable location align-right table" ! Heading 1 !! Heading 2 !! Heading 3 |- ! Subheading 1 | 1.1 || 1.2 |- ! Subheading 2 | 2.1 || 2.2 |}
Color examples
class=" table" ! colspan="2" | Classes |- class="archer" ! archer | Class colors |- class="cleric" ! cleric | |- class="knight" ! knight | |- class="paladin" ! paladin | |- class="summoner" ! summoner | |- class="warrior" ! warrior | |- class="wizard" ! wizard |
|- class="heading" ! colspan="2" | Item rarities |- class="normal" ! normal | Rarity colors |- class="magic" ! magic | |- class="rare" ! rare | |- class="soul" ! soul | |- class="unique" ! unique |
|- class="heading" ! colspan="2" | Other uses |- class="crafting" ! crafting | crafting, sheets, materials |- class="location" ! location | province, region, area, city, landmark |- class="npc" ! npc | npc, monsters |- class="quest" ! quest | quests |}