Difference between revisions of "Template:Sefirat HaOmer"
en>StevenJ81 m (Fixing style/layout errors) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:40, 2 January 2019
None
This template gives the current Sefirat HaOmer count. It indirectly makes use of the template {{Current hour offset in time zone}}, so that it will show the proper count based on your chosen time zone. See below for the currently supported time zones.
Contents
Usage
Behavior outside the period of Sefirat HaOmer
The template returns the stringNoneoutside the period of Sefirat HaOmer.
Default
{{Sefirat HaOmer}}
Without parameters, the template returns the Sefirat HaOmer (Sefirah) count based on UTC (which is the server's time zone). The output is a number between 1 and 49.
Full
{{Sefirat HaOmer[|full=yes]}}
With the parameter full=yes
, the template returns a phrase describing the complete Sefirah count for the day, based on the customary sefirah count found in the (Ashkenazi) siddur. For example, for Iyar 18 (Lag BaOmer), the template would return: 33 days, making 5 weeks and 5 days.
With time zone abbreviation
{{Sefirat HaOmer[|full=yes][|tz=time_zone][|erev=erev]}}
- ('
[...]
' means 'optional', do not include the square brackets when using this template)
where
- time_zone is the desired time zone abbreviation (see below and also the list of time zone abbreviations);
- erev is an optional parameter to force the Hebrew calendar date to advance at 18:00 (6:00 pm) local time. See below.
- Capability in similar templates to use the code
dst
to disable automatic daylight saving time adjustment was not included in this template. This template uses {{Daylight saving in time zone}} to automatically adjust the offset according to daylight saving time (DST), if applicable. If you wish to suppress daylight saving time adjustment in a time zone that otherwise uses it (like in Arizona or Saskatchewan), please use theoffset
parameter instead.
With time offset
{{Sefirat HaOmer|offset=offset[|full=yes][|erev=erev]}}
- offset is the time offset from UTC/GMT in hours; see map below. Non-integer offsets are valid. Template cannot accommodate DST when using offset. When
offset
is present, any time zone abbreviation is ignored. - erev is an optional parameter to force the Hebrew calendar date to advance at 18:00 (6:00 pm) local time. See below.
erev parameter: Hebrew dates begin the evening before
The MediaWiki software, and therefore this template, normally calculate date conversions using conventional midnight-to-midnight days. For example, this template would return the Hebrew calendar date 1 Elul 5773 for the entire Gregorian day of 7 August 2013.
However, Hebrew calendar dates actually run from sundown to sundown. Thus 1 Elul 5773 actually begins at sundown on 6 August, while 2 Elul begins at sundown on 7 August. To approximate this behavior, the parameter erev
forces the template to advance the Hebrew calendar date at 18:00 (6:00 pm) in the time zone selected. Thus, at 6:00 pm on 7 August, the template would advance the Hebrew calendar date to 2 Elul. (The page might need to be purged.)
- In this template, the required format for this parameter is
erev=erev
.
Date
{{Sefirat HaOmer|Hebrew calendar month|Hebrew calendar day of month}}
- Passing the parameters of a Hebrew calendar date (month and day) returns the count for that Hebrew calendar date, or "None" if the date does not fall within the period of the count. Other parameters are ignored in this case.
Supported time zones
Currently the following time zones are supported:
Time zone map
Related templates
- {{Hebrew calendar today in time zone}}
- {{Hebrew calendar tomorrow in time zone}}
- {{Current hour offset in time zone}}
- {{Current minute offset in time zone}}
- {{Current hour in time zone}}
- {{Current minute in time zone}}
- {{Daylight saving in time zone}}
- {{Sefirat HaOmer Box}}
Source
Template was substantially copied from its Hebrew Wikipedia counterpart.
The above documentation is transcluded from Template:Sefirat HaOmer/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. |