Tuesday, August 10, 2010

Nested Tables in Mediawiki

I like the wiki concept because it keeps history, it is fast to edit, and it controls the version.  A spreadsheet being edited by 10 different people inevitably leads to version conflicts and bad data.  Mediawiki is hard for the average end user to edit, but for an infrastructure team it does the job.

The team was using a spreadsheet to track the contents of blade chassis.  I converted it to Mediawiki with the help of Nested Tables.  I kept it simple but did add some HTML Color for the backgrounds to make it visually pleasing.
  
Code:

= Environment =
{|
|
{| style="color:black; background-color:#FAF8CC;" border="2" cellpadding="5" cellspacing="0"
|+ align="top" style="color:red;" |'''chassis'''
|-
|1
|server1
|-
|2
|server2
|-
|3
|server3
|}
|
{| style="color:black; background-color:#FAF8CC;" border="2" cellpadding="5" cellspacing="0"
|+ align="top" style="color:red;" |'''chassis'''
|-
|1
|server1
|-
|2
|server2
|-
|3
|server3
|}
|}

Result:

No comments:

Post a Comment