Wikia

Memory Alpha

Help:Table markup

Discuss0
36,765pages on
this wiki
Revision as of 14:51, October 21, 2008 by Renegade54 (Talk | contribs)

Help icon  Contents → Table markup

This page is a basic guide for creating tables using wiki markup.

Table

The table itself is defined by:

  {| params
  |}

Instead of params, you can put any parameters you choose that would normally go into a HTML table. A common example used in many Memory Alpha tables is class="grey".

Note: You must include the space between {| and params, or the first parameter gets ignored.

Caption

The caption is generated by:

  |+ caption

The caption must go on its own line to be recognized by the wiki parser engine.

Row

A row of cells is started like this:

  |- params

The code must be on its own line, and serves the same purpose as the <tr> tags.

Header

A header cell is created like this:

  ! heading

Each cell must go on its own line. This takes the place of the <th> tag. If you want to assign parameters to your cell, they will go like this:

  ! params | content

Make sure to have a space between the pipe and the parameters!

Cell

Normal table cells (<td>) are created like this:

  | content

These are similar to header cells, except they use the pipe character instead of an exclamation point. Again, each cell must go on its own line. If you want to assign parameters to a cell, they go between two pipes:

  | params | content

Example

The following example combines all of the previous examples:


      {| class="grey"
      |+ Caption Here
      |-
      ! Header 1
      ! Header 2
      ! Header 3
      |-
      | Row 1, Col 1
      | Row 1, Col 2
      | Row 1, Col 3
      |-
      | Row 2, Col 1
      | Row 2, Col 2
      | Row 2, Col 3
      |-
      | colspan="2" | Row 3, Cols 1-2
      | Row 3, Col 3
      |}

And here is the table in its processed form:


Caption Here
Header 1 Header 2 Header 3
Row 1, Col 1 Row 1, Col 2 Row 1, Col 3
Row 2, Col 1 Row 2, Col 2 Row 2, Col 3
Row 3, Cols 1-2 Row 3, Col 3


See also

Around Wikia's network

Random Wiki
http://en.memory-alpha.org/wiki/Help:Table_markup?oldid=895333
en.memory-alpha.org
crawl=CC-MAIN-2014-10
73622
application/http; msgtype=response
sha1:WXB3SWYKQZZOQZSAGLV6KPXEBX5QYZ6S
<urn:uuid:5aa18147-5c11-4ea2-9af9-463618c73af4>
2014-03-10T05:34:50Z
199.27.76.194
sha1:EOKY25NBGNDQC2SIAGEGEFQP56H24XSD
<urn:uuid:380d9745-6867-406b-943a-06533bcce7c4>
http://en.memory-alpha.org/wiki/Help:Table_markup?oldid=895333
response
<urn:uuid:4d572929-0e65-4f4a-ac9b-5c79d362de4d>
robots: classic
hostname: ip-10-183-142-35.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-10
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for March 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf