Template:STDT

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Documentation for Template:STDT [view] [edit] [history] [purge] (How does this work?)
{| {{STDT|type}}
| ...
|}

The Standard Table Design Template is used to give tables across the wiki a similar design, fitting the topic of the main article. It also enables various helper classes to be used within tables to aid in complex layouts.

This template is used on the same line as the opening syntax of a normal wikitext table. The template expands to a class attribute that applies to the table, and CSS is used to add styles based on that class.

Parameters

type (unnamed parameter) 1
Additional CSS classes to be applied to the table itself.

Available CSS classes

CSS classes are used to customize the display of the table. These classes will only work with tables using {{STDT}}; other tables may not respect them.

Tables were previously customized with the style attribute instead of with helper classes. To ensure a consistent visual language across the wiki, and especially to avoid issues with dark themes, style should be used extremely sparingly, and should never specify hardcoded CSS colors.

Themes

There are several additional classes which can be passed to this template's parameter in order to change the visual style of the table based on topic. These classes apply to the table itself:

  • Any class title
  • Any job name
  • Other choices match the coloring scheme of the topic's navigation bars:
    • npc
    • pve
    • equip, item
    • mech1, mech2 (for mechanics)
    • lore
    • location
    • promo
    • buff, debuff

Layout helpers

Some additional classes can be used on individual rows or cells of a table:

line-top
line-bottom
line-left
line-right
Used to add a border on the specified edge of a cell or row.

Examples

Basic use

{| {{STDT}}
! 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

{| {{STDT|sortable pve 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
{| {{STDT|dps-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|healer-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|tanker-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|crafting-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|gathering-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|pet-role align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|npc align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|pve align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|equip align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|item align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|skin align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|mech1 align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|mech2 align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|lore align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|location align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|promo align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|buff align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|debuff align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3
{| {{STDT|crafting align-right}}
! Heading 1 !! Heading 2 !! Heading 3
|-
| 1.1 || | 1.2 || 1.3
|-
| 2.1 || | 2.2 || 1.3
|}
Heading 1 Heading 2 Heading 3
1.1 1.2 1.3
2.1 2.2 1.3