ਫਰਮਾ:Table class/doc
This is a documentation subpage for ਫਰਮਾ:Table class. It contains usage information, categories and other content that is not part of the original ਫਰਮਾ page. |
Usage
[ਸੋਧੋ]{{table class|classname1|classname2|..}}
up to 9 classes.
Use {{table class/import|Stylesheet1|Stylesheet2|...}} to import (up to 9) stylesheet(s) into a page or the <templatestyles> tag.
Additional parameters can be used to specify additional stylesheets to import (up to 8, (The full page name (Wiki style) must be given, using underscores for spaces.)
Use {{tc|classname1|classname2|..}}
or class="classname1 classname2 classname3"
to apply these to elements in the table, in the same location an equivalent {{ts}} call would be placed, for in-line styles.
CSS classes currently available or implemented (in the main style-sheet):-
class | Scope & location of class invocation. | Effect and notes. |
---|---|---|
__boxc | table | Table is centered on page, with a 1px solid black border around it, collapsing cell borders. |
__cols | table | A 1px solid black right border is present on every table cell. |
__cell_vtp | table, cell | Cells in the table are top aligned, This class can also be applied to table cells indvidually. |
__ft | table | (Shorthand for figure table), Cells are right aligned, and to the bottom of a cell vertically. Table header entries are centerd. |
__label | cell | Left aligned text, aligned to the top of the table cell vertically. |
__grid | table | A 1px solid border is applied to every cell in the table, and around the table as a whole, indvidual cell borders are collapsed. |
__floatc | table | The table is centered within the page (or parent element) , equivalent formating to {{ts|mc}}
|
__ba | table | A 1 px solid border is placed around the entire table. |
__bt | row, cell | A 1 px solid border applied to the top of the appropriate element, equivalent formatting to {{ts|bt}}
|
__bb | row, cell | A 1 px solid border applied to the bottom of the appropriate element, equivalent formatting to {{ts|bb}}
|
If additional styles are added, please update this documentation.
Additional Styles
[ਸੋਧੋ]Stylesheet | Class | Scope & location of class invocation. | Effect and notes. |
---|---|---|---|
wnw.css | __wnw1 | Table, affecting the first cell of rows. | Formats first cell of each row to have no-whitespace wrapping, effectively indicating the entire cell should be a single line. |
midcols.css | __midcols | Table. | Applies a continuous border between columns. |
midcols.css | __midcols2n | Table. | Applies a continuous border between every 2nd column |
midcols.css | __midcols4n | Table. | Applies a continuous border between every 4th column |
midcols.css | __midrows | Table. | Applies a continuous border between rows. |
midcols.css | __2col | Table. | Formats all cells, to have 50% width, typically a 2 column layout. |
midcols.css | __italicheaders | Table, affecting headers. | Formats any table headers (in wikimarkup ! or !! ) as italic. |
ledger.css | wst-ts__ledger | Table, | Formats table to be an l.s.d ledger type presentation. |
See also
[ਸੋਧੋ]{{ts}} For creating inline styles from a series of short codes.