Template:DefTable: Difference between revisions

From PWI Wiki
Jump to navigationJump to search
PWpedia>Sangodoc
Testing new template
 
PWpedia>Sangodoc
Further testing
Line 1: Line 1:
style="background:#171513" border="1" cellpadding="5"
style="background:#171513" border="1" cellpadding="4" cellspacing="1"<noinclude>
<noinclude>
 
 
----
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:
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}}
  {<nowiki>| {{DefTable}}</nowiki>
  |+
  |+ <nowiki>'''Example Table'''</nowiki>
|-
  ! Column
  ! Column
  ! Headers
  ! Headers
  |+
  |-
  | Row 1
  ! Row 1
  | Example
  | Example A
  |+
  |-
  | Row 2
  ! Row 2
  | Example
  | Example B
  |}
  |}


Which produces the following table:
Which produces the following table:


{| {{DefTable}}
{| {{DefTable}} cellspacing="1"
|+
|+ '''Example Table'''
|-
! Column
! Column
! Headers
! Headers
|+
|-
| Row 1
! Row 1
| Example
| Example A
|+
|-
| Row 2
! Row 2
| Example
| Example B
|}
|}
</noinclude>

Revision as of 15:47, 3 November 2012

style="background:#171513" border="1" cellpadding="4" cellspacing="1"



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:

Example Table
Column Headers
Row 1 Example A
Row 2 Example B