FANDOM


Some table formats have been pre-defined as classes on NWNWiki. These are provided to relieve contributers of the burden of manually crafting the look of each table individually. These can also serve to provide a more uniform look across the wiki.

When using these formats, recall that a header cell is obtained by using an exclamation point (!) instead of a pipe character (|) to begin the cell's entry.

Base formatters Edit

There are several classes defined for tables that provide the basic formatting for the uniform look across NWNWiki. These are "wikitable", "centertable", and "compacttable".

The table format for use with things like bulleted lists is "wikitable". This format places the table towards the left of the page, but indented one level. To get this format, a table should begin with

{|class="wikitable"

This produces a table that looks like the following:

header 1 header 2 header 3
data 11 data 12 data 13
data 21 data 22 data 33
data 31 data 32 data 33

The table format for use in most other cases is "centertable", which centers the table on the page. To get this format, a table should begin with

{|class="centertable"

This produces a table that looks like the following:

header 1 header 2 header 3
data 11 data 12 data 13
data 21 data 22 data 33
data 31 data 32 data 33

The third basic format is for tables with a lot of content. The "compacttable" format centers the table on the page and reduces the cell padding. To get this format, a table should begin with

{|class="compacttable"

This produces a table that looks like the following:

header 1 header 2 header 3
data 11 data 12 data 13
data 21 data 22 data 33
data 31 data 32 data 33

Extra formatters Edit

Table headers can be aligned to the top of their cells by adding the class "headertop" to a table. Aligning non-header cells to the top can be obtained by adding the class "tabletop". A table that has both a header row and a header column may look better with the "subheaders" class added to the base formatter.

For example, to use all the extra formatters with the "wikitable" base, use

{|class="wikitable tabletop centertop subheaders"

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.