8,856
editsAd placeholder
Help:Style manual: Difference between revisions
Jump to navigation
Jump to search
→Tables
(→Tables) |
|||
Line 573: | Line 573: | ||
== Tables == | == Tables == | ||
Tables can be useful, but must always be carefully implemented in order to ensure accessibility and usability across a wide variety of devices. | |||
This section is about tables used in the bodies of articles, and not about tables implemented as infoboxes or navboxes, which follow separate guidelines. | |||
=== Table formatting === | |||
Table must be formatted correctly on the wiki. | |||
=== Headers === | ==== Headers ==== | ||
As with section headers, always use sentence case in table headers. | As with section headers, always use sentence case in table headers. | ||
Line 596: | Line 597: | ||
|- | |- | ||
| Not header | | Not header | ||
|} | |||
==== Style ==== | |||
Colours used in tables should always be defined via classes implemented through CSS, as opposed to via style parameters | |||
=== Table usage === | |||
Tables on BG3Wiki are used to present complex information and data of tabular nature. Tables are also used on cargo pages and selectively on project and help pages. | |||
Tables are should generally only be used when the information cannot otherwise be prevented in the form of a list. | |||
Tables should {{em|not}} be used simply for visual reasons, such as for layout or presentation. | |||
==== Examples of correct table usage ==== | |||
{| class="wikitable" | |||
! Character !! Race !! Class | |||
|- | |||
! Astarion | |||
| High-elf || Rogue | |||
|- | |||
! Karlach | |||
| Tiefling || Barbadian | |||
|- | |||
! Gale | |||
| Human || Wizard | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+ Odds of landing on a target number when rolling a d20. | |||
! Target !! Ordinary chance !! Advantage !! Disadvantage | |||
|- | |||
! 1 | |||
| 5% || 0.25% || 9.75% | |||
|- | |||
! 10 | |||
| 5% || 5.25% || 4.75% | |||
|- | |||
! 20 | |||
| 5% || 9.75% || 0.25% | |||
|- | |||
|} | |||
{| class="wikitable" | |||
! Item !! Description !! Location | |||
|- | |||
! Longsword | |||
| Can cast a spell. || Found in this location. | |||
|- | |||
! Greatsword | |||
| Can cast two spells. || Found in this location. | |||
|- | |||
! Dagger | |||
| Cannot cast spells. || Found in this location. | |||
|- | |||
|} | |||
==== Examples of incorrect table usage ==== | |||
{| class="wikitable" | |||
! Act !! Expected level | |||
|- | |||
! Act One | |||
| 1-4 | |||
|- | |||
! Act Two | |||
| 5-8 | |||
|- | |||
! Act Three | |||
| 9-12 | |||
|- | |||
|} | |||
{| class="wikitable" | |||
! Action !! Description | |||
|- | |||
! Attack | |||
| Used to attack a target. | |||
|- | |||
! Hide | |||
| Used to hide from sight. | |||
|- | |||
! Jump | |||
| Used to jump to a location. | |||
|- | |||
|} | |||
{| class="wikitable" | |||
! Item !! Location | |||
|- | |||
| Longsword | |||
| Found in this location. | |||
|- | |||
| Greatsword | |||
| Found in this location. | |||
|- | |||
| Dagger | |||
| Found in this location. | |||
|- | |||
|} | |} | ||