Difference between revisions of "User:116500496"
From Starfleet Commander
Jump to navigationJump to search (Created page with 'I am in you're wiki, cleaning up your syntax. I am really going through all of the tables and making them wiki tables instead of HTML tables.') |
|||
Line 2: | Line 2: | ||
I am really going through all of the tables and making them wiki tables instead of HTML tables. | I am really going through all of the tables and making them wiki tables instead of HTML tables. | ||
+ | |||
+ | ===Use of DTable Templates=== | ||
+ | Every DTable follows the pattern below: | ||
+ | |||
+ | {{DTableBegin}}<br> | ||
+ | {{DTableHeader}} | ''header''<br> | ||
+ | ...''n times''<br> | ||
+ | {{DTableRow}}<br> | ||
+ | | ''value list''<br> | ||
+ | {{DTableRowAlt}}<br> | ||
+ | | ''value list''<br> | ||
+ | ...''n times''<br> | ||
+ | |} | ||
+ | |||
+ | ====DTableBegin==== | ||
+ | All tables begin with a <nowiki>{{DTableBegin}}</nowiki> call. This has two optional parameters: style and caption. They do exactly what you think they do. The style will allow you to override only the table styles, not row- or cell-specific styles. This would be useful for changing the cell spacing or font size. Here's an example of a use: | ||
+ | |||
+ | {| cellspacing="0" cellpadding="8" style="border: 1px solid black;" | ||
+ | |- | ||
+ | | style="border-right: 1px solid black; border-bottom: 1px solid black;" | Default | ||
+ | | style="border-right: 1px solid black; border-bottom: 1px solid black;" | w/ caption | ||
+ | | style="border-bottom: 1px solid black;" | /w manual style | ||
+ | |- | ||
+ | | style="border-right: 1px solid black;" | | ||
+ | {{DTableBegin}}<br> | ||
+ | {{DTableHeader}} | a<br> | ||
+ | {{DTableHeader}} | b<br> | ||
+ | {{DTableRow}} | ||
+ | | c || d | ||
+ | {{DTableRowAlt}} | ||
+ | | e || f | ||
+ | |} | ||
+ | | style="border-right: 1px solid black;" | | ||
+ | {{DTableBegin | ||
+ | | caption= This is a caption}} | ||
+ | {{DTableHeader}} | a | ||
+ | {{DTableHeader}} | b | ||
+ | {{DTableHeader}} | c | ||
+ | {{DTableRow}} | ||
+ | | c || d || e | ||
+ | {{DTableRowAlt}} | ||
+ | | f || g || h | ||
+ | |} | ||
+ | || | ||
+ | {{DTableBegin | ||
+ | | style=cellspacing="0" cellpadding="2" style="text-align:center; font-size: 10px; color: #FFF;" | ||
+ | | caption= This is a caption}} | ||
+ | {{DTableHeader}} | a | ||
+ | {{DTableHeader}} | b | ||
+ | {{DTableHeader}} | c | ||
+ | {{DTableRow}} | ||
+ | | c || d || e | ||
+ | {{DTableRowAlt}} | ||
+ | | f || g || h | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | The rest of the parts are very straight-forward. |
Latest revision as of 14:59, 9 December 2009
I am in you're wiki, cleaning up your syntax.
I am really going through all of the tables and making them wiki tables instead of HTML tables.
Use of DTable Templates
Every DTable follows the pattern below:
{{DTableBegin}}
{{DTableHeader}} | header
...n times
{{DTableRow}}
| value list
{{DTableRowAlt}}
| value list
...n times
|}
DTableBegin
All tables begin with a {{DTableBegin}} call. This has two optional parameters: style and caption. They do exactly what you think they do. The style will allow you to override only the table styles, not row- or cell-specific styles. This would be useful for changing the cell spacing or font size. Here's an example of a use:
Default | w/ caption | /w manual style | ||||||||||||||||||||||||
|
|
|
The rest of the parts are very straight-forward.