Difference between revisions of "Template:DOWs"
Jump to navigation
Jump to search
imported>Primefac m (Changed protection level for "Template:DOWs": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
imported>Pppery (Remove header class per edit request) |
||
Line 1: | Line 1: | ||
<noinclude>{| class="wikitable" | <noinclude>{| class="wikitable" | ||
− | </noinclude>|- class=" | + | </noinclude>|- class="{{{class|}}}" style="{{{style|}}}" |
{{#if:{{{left|{{{colspan|}}}}}}|!colspan={{{colspan|1}}}{{!}} {{{left|}}} }} | {{#if:{{{left|{{{colspan|}}}}}}|!colspan={{{colspan|1}}}{{!}} {{{left|}}} }} | ||
{{#ifeq:{{{start|}}}|Sunday|{{Sunday|{{{letters|2}}}|!|{{{width|*}}}}}|}} | {{#ifeq:{{{start|}}}|Sunday|{{Sunday|{{{letters|2}}}|!|{{{width|*}}}}}|}} |
Latest revision as of 03:10, 6 November 2020
Template:MondayTemplate:TuesdayTemplate:WednesdayTemplate:Thursday
Fr |
---|
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| Text
can 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.
The above documentation is transcluded from Template:DOWs/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |