Template:STDT/doc

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
This is the documentation subpage of Template:STDT. It contains usage information that is not part of the underlying template.
{| {{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.