Difference between revisions of "Template:DOWs/doc"
Jump to navigation
Jump to search
imported>John of Reading m (Typo fixing, replaced: hte → the, typo(s) fixed: Englsih → English using AWB) |
imported>Jonesey95 (document start=) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | + | This template uses the templates {{tl|Monday}}, {{tl|Tuesday}}, {{tl|Wednesday}}, {{tl|Thursday}}, {{tl|Friday}}, {{tl|Saturday}} and {{tl|Sunday}} to output the [[names of the days of the week|names of the '''d'''ays '''o'''f the '''w'''eek]] (hence "DOW") in a specified manner, mostly for use within other tabular templates as a column or row header, for example {{tl|Calendar}}. | |
=== Optional parameters {{tl|DOWs}} === | === Optional parameters {{tl|DOWs}} === | ||
| Line 8: | Line 8: | ||
; ''class'': optional class name(s) for the whole table row | ; ''class'': optional class name(s) for the whole table row | ||
; ''style'': optional CSS for the whole table row | ; ''style'': optional CSS for the whole table row | ||
| − | ; ''left'': if supplied is used as the contents of the first | + | ; ''left'': if supplied is used as the contents of the first table cell left of the DOWs <code>left= colspan=2{{!}} Text</code> can be used |
; ''letters'': passed as first argument to DOW templates | ; ''letters'': passed as first argument to DOW templates | ||
; ''width'': passed through to the DOW templates | ; ''width'': passed through to the DOW templates | ||
| + | ; ''start'': when set to {{para|start|Sunday}}, the first day listed will be Sunday. The default starting day is Monday. | ||
=== Optional parameters DOW templates === | === Optional parameters DOW templates === | ||
Latest revision as of 21:29, 5 November 2020
| File:Edit-copy green.svg | This is a documentation subpage for Template:DOWs. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template uses the templates {{Monday}}, {{Tuesday}}, {{Wednesday}}, {{Thursday}}, {{Friday}}, {{Saturday}} and {{Sunday}} to output the names of the days of the week (hence "DOW") in a specified manner, mostly for use within other tabular templates as a column or row header, for example {{Calendar}}.
Optional parameters {{DOWs}}
- class
- optional class name(s) for the whole table row
- style
- optional CSS for the whole table row
- left
- if supplied is used as the contents of the first table cell left of the DOWs
left= colspan=2| Textcan be used - letters
- passed as first argument to DOW templates
- width
- passed through to the DOW templates
- start
- when set to
|start=Sunday, the first day listed will be Sunday. The default starting day is Monday.
Optional parameters DOW templates
- 1
- The type of the DOW designation (symbol, abbr, name, code, number) or the length of its abbreviation (1–3 letters, full) is specified by the first parameter.
- 2
- If a header table cell is desired, a literal exclamation mark
!must be supplied as a second parameter - 3 = width
- The cell and hence column width (HTML syntax, not CSS)
- 4 = title
- The hover tip for the cell defaults to the full name in English, but can be set explicitly.