Template:DefTable: Difference between revisions
From PWI Wiki
Jump to navigationJump to search
PWpedia>Sangodoc Further testing |
PWpedia>Sangodoc Padding fixes |
||
| Line 1: | Line 1: | ||
style="background:#171513" border="1" cellpadding="4 | style="background:#171513; padding: 2px 2px;" border="1" cellpadding="4"<noinclude> | ||
| Line 20: | Line 20: | ||
Which produces the following table: | Which produces the following table: | ||
{| {{DefTable}} | {| {{DefTable}} | ||
|+ '''Example Table''' | |+ '''Example Table''' | ||
|- | |- | ||
Revision as of 16:04, 3 November 2012
style="background:#171513; padding: 2px 2px;" border="1" cellpadding="4"
This is a default table header (deftable) for use in standard tables to provide a uniform look and to make it easier to update all/most tables simultaneously should the wiki's style (CSS) be updated again. This can be used as in the following example:
{| {{DefTable}}
|+ '''Example Table'''
|-
! Column
! Headers
|-
! Row 1
| Example A
|-
! Row 2
| Example B
|}
Which produces the following table:
| Column | Headers |
|---|---|
| Row 1 | Example A |
| Row 2 | Example B |