@ Sir Joseph, Howcheng, and Dweller: This is a follow-up thread to the original thread at BotReq. Example use. 12 Jewish holidays are populated. -- Green C 19:14, 24 August 2018 (UTC)
-- Green C 13:55, 27 August 2018 (UTC)
Seems to me like that page should be a Module page, stored in a Lua table, since it's not hooking into a Javascript system but instead the Module. -- Izno ( talk) 15:59, 30 August 2018 (UTC)
datasource
probably would not be needed, or not needed in the same way (since e.g. I'm pretty sure Lua can manipulate the time display directly, so you don't need to provide the time parserfunction in the JSON, just the final format). --
Izno (
talk) 21:58, 30 August 2018 (UTC)
datasource
. --
Green
C 23:17, 30 August 2018 (UTC)
|year=
. The text in datasource
is not live only an instruction for what the template should execute (preprocess) during runtime. Anyway I'm probably ditching JSON entirely in the latest revision, there are a couple advantages to going native Lua table. --
Green
C 00:06, 31 August 2018 (UTC)There was a discussion on Wikidata (Aug, 25-29 2018) about integration with this template, and long story short to produce moveable dates, in most cases, requires running a query and Lua can't do it. Example query for Hanukkah. -- Green C 21:23, 31 August 2018 (UTC)
@
Pppery: - The citation information should not be removed from the Events Module.
[1] The template can be used in non-mainspace pages etc.. the citation information is there for whoever wants to use it for whatever purpose, including in non-mainspace. It is an optional command argument, if you don't want it in your mainspace page then don't use the |cite=
argument. There is no reason to delete it from the Module itself.
Also, self-referential is not entirely clear, it's courtesy information so readers understand the dates are being calculated and where to find the calculator, should they wish to verify the dates. Our primary objective is Verification, a core pillar and policy of Wikipedia, WP:SELFREF is a weaker MOS Guideline and should not trump our primary goal of Verifiability. Also it is a courtesy to notify before making major changes, particularly a change based on Guideline vs Policy. And you should be using a Sandbox instead of editing on the fly and causing breakages. -- Green C 17:31, 17 February 2019 (UTC)
|cite=
in some articles is not a solution. You are right that maybe I should have used the sandbox, but one is not required to notify before making major changes:
WP:BOLD says otherwise.
{{3x|p}}ery (
talk) 19:07, 17 February 2019 (UTC)
|cite=
is off by default, if someone wants to use it for whatever purpose that is their choice, there is no reason to remove it from the source code. The calculator modules are open source and demonstrably accurate, it is correct to point readers to them as the source that generated the dates where needed (not always the case calculators are used). --
Green
C 21:41, 17 February 2019 (UTC)
|cite=
was added because this template was once removed from an article because it lacked information where the dates came from, so it was added as a courtesy for users where and how the dates are generated - not everyone is clued how to find that information, evidently. Wouldn't get too stuck on the exact meaning of a citation, citations sometimes contain simply notes. The important thing is the core policy of Verifiability. --
Green
C 14:33, 18 February 2019 (UTC)
|cite=
-> |note=
to avoid confusion about RS and SELFREF. --
Green
C 15:16, 18 February 2019 (UTC)
There are a grand total of 52 articles linking to module namespace, the vast majority of which are modules reporting an error to their users. {{3x|p}}ery ( talk) 16:22, 18 February 2019 (UTC)
This
edit request to
Template:Calendar date/Configuration.json has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change content model to Wikitext and redirect to Module:Calendar date/Events. This template has been implemented using a Lua data page rather than a JSON page, so there is no need to keep the old JSON around. {{3x|p}}ery ( talk) 00:11, 19 February 2019 (UTC)
I believe Wikipedia:Interface administrators' noticeboard have the perms to change content type. Request. -- Green C 00:38, 19 February 2019 (UTC)
editcontentmodel
right necessary to perform this request.
{{3x|p}}ery (
talk) 00:50, 19 February 2019 (UTC)The URL https://www.hebcal.com/holidays/passover no longer works, and I suppose the same is true for the other Jewish holidays. It should be just https://www.hebcal.com/holidays now. Eric Kvaalen ( talk) 10:52, 23 April 2019 (UTC)
@ GreenC: I just created this file. How did you get dates up to 2100 for the other local data files? I couldn't figure out where to get them from hebcal. Thanks. — howcheng { chat} 15:39, 31 May 2019 (UTC)
@ Howcheng: I made a program that retrieves data from the Hebcal API. However, the API has gaps in coverage. For example, to see all Holidays in June 2018 [2]. There is no Tzom Tammuz listed (should be June 30 at sunset). Because Fast Days can't be calculated(?) Hebcal probably manually adds them thus they do not go forward as far as calculated dates. No good solutions, maybe a reminder somehow to keep the file updated or find a different source. -- Green C 18:49, 31 May 2019 (UTC)
The result of the move request was: moved. ( non-admin closure) — Newslinger talk 06:46, 25 June 2019 (UTC)
– Names of subpages of modules and templates should be lowercase per convention. * Pppery * it has begun... 23:34, 17 June 2019 (UTC)
The URL to a Naval Observatory server being surfaced by this template in the infobox at Ash Wednesday is not working as at 09:19, 15 March 2021 (UTC). Thanks. — Spike Toronto 09:19, 15 March 2021 (UTC)
Maybe better frame:expandTemplate and then frame:callParserFunction? Can I try it on Module:Calendar date/sandbox?
Also, I would like to migrate one or two functions from my ru:Module:Calendar for {{ OldStyleDate}}.
I would like an international, module-friendly date mechanism ( see phab). I will be grateful if you allow me to use your sandbox for implementation — there are already functions in it that I use. I can use Module:DatesWD (now I see I need to make it WikiData-friendly 😆), but your title is better. · Carn· !? 14:57, 29 May 2021 (UTC)
The dates for Chuseok (Korea), Tsukimi (Japan) and Mid-autumn (China) holidays are coming up wrong for 2024. The holiday is day 15 of the 8th lunar month. In 2024 that new moon is 2 Sept [1] so the holiday is 17 Sept [2]. (Chuseok and Tsukimi are observed for several days centered around that date). The template comes up about 10 days earlier:
16 September 2024 – 18 September 2024.
17 September 2024 – 20 September 2024.
17 September 2024.
-- M.boli ( talk) 21:39, 20 August 2022 (UTC)
References
M.boli: This template uses
Module:Calendar_date/events to define holidays. Looking at the entry for Chuseok, it uses {{ctime:x|YYYY|8|14}}
to calculate the date, where "YYYY" is the year in question. Thus {{ctime:x|2024|8|14}}
= 2024-09-16 which is the date noted above. I don't know how {{
ctime:x}}
works is the problem with {{ctime:x}}
or the 8|14 parameter? --
Green
C 03:37, 21 August 2022 (UTC)
This template is giving the wrong date of Passover at Passover Seder for this year. It is saying it begins on the night of April 6th. However, the correct info is the night of April 5th. I commented out the use of the template there for now. - UtherSRG (talk) 00:40, 5 April 2023 (UTC)
@ Sir Joseph, Howcheng, and Dweller: This is a follow-up thread to the original thread at BotReq. Example use. 12 Jewish holidays are populated. -- Green C 19:14, 24 August 2018 (UTC)
-- Green C 13:55, 27 August 2018 (UTC)
Seems to me like that page should be a Module page, stored in a Lua table, since it's not hooking into a Javascript system but instead the Module. -- Izno ( talk) 15:59, 30 August 2018 (UTC)
datasource
probably would not be needed, or not needed in the same way (since e.g. I'm pretty sure Lua can manipulate the time display directly, so you don't need to provide the time parserfunction in the JSON, just the final format). --
Izno (
talk) 21:58, 30 August 2018 (UTC)
datasource
. --
Green
C 23:17, 30 August 2018 (UTC)
|year=
. The text in datasource
is not live only an instruction for what the template should execute (preprocess) during runtime. Anyway I'm probably ditching JSON entirely in the latest revision, there are a couple advantages to going native Lua table. --
Green
C 00:06, 31 August 2018 (UTC)There was a discussion on Wikidata (Aug, 25-29 2018) about integration with this template, and long story short to produce moveable dates, in most cases, requires running a query and Lua can't do it. Example query for Hanukkah. -- Green C 21:23, 31 August 2018 (UTC)
@
Pppery: - The citation information should not be removed from the Events Module.
[1] The template can be used in non-mainspace pages etc.. the citation information is there for whoever wants to use it for whatever purpose, including in non-mainspace. It is an optional command argument, if you don't want it in your mainspace page then don't use the |cite=
argument. There is no reason to delete it from the Module itself.
Also, self-referential is not entirely clear, it's courtesy information so readers understand the dates are being calculated and where to find the calculator, should they wish to verify the dates. Our primary objective is Verification, a core pillar and policy of Wikipedia, WP:SELFREF is a weaker MOS Guideline and should not trump our primary goal of Verifiability. Also it is a courtesy to notify before making major changes, particularly a change based on Guideline vs Policy. And you should be using a Sandbox instead of editing on the fly and causing breakages. -- Green C 17:31, 17 February 2019 (UTC)
|cite=
in some articles is not a solution. You are right that maybe I should have used the sandbox, but one is not required to notify before making major changes:
WP:BOLD says otherwise.
{{3x|p}}ery (
talk) 19:07, 17 February 2019 (UTC)
|cite=
is off by default, if someone wants to use it for whatever purpose that is their choice, there is no reason to remove it from the source code. The calculator modules are open source and demonstrably accurate, it is correct to point readers to them as the source that generated the dates where needed (not always the case calculators are used). --
Green
C 21:41, 17 February 2019 (UTC)
|cite=
was added because this template was once removed from an article because it lacked information where the dates came from, so it was added as a courtesy for users where and how the dates are generated - not everyone is clued how to find that information, evidently. Wouldn't get too stuck on the exact meaning of a citation, citations sometimes contain simply notes. The important thing is the core policy of Verifiability. --
Green
C 14:33, 18 February 2019 (UTC)
|cite=
-> |note=
to avoid confusion about RS and SELFREF. --
Green
C 15:16, 18 February 2019 (UTC)
There are a grand total of 52 articles linking to module namespace, the vast majority of which are modules reporting an error to their users. {{3x|p}}ery ( talk) 16:22, 18 February 2019 (UTC)
This
edit request to
Template:Calendar date/Configuration.json has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change content model to Wikitext and redirect to Module:Calendar date/Events. This template has been implemented using a Lua data page rather than a JSON page, so there is no need to keep the old JSON around. {{3x|p}}ery ( talk) 00:11, 19 February 2019 (UTC)
I believe Wikipedia:Interface administrators' noticeboard have the perms to change content type. Request. -- Green C 00:38, 19 February 2019 (UTC)
editcontentmodel
right necessary to perform this request.
{{3x|p}}ery (
talk) 00:50, 19 February 2019 (UTC)The URL https://www.hebcal.com/holidays/passover no longer works, and I suppose the same is true for the other Jewish holidays. It should be just https://www.hebcal.com/holidays now. Eric Kvaalen ( talk) 10:52, 23 April 2019 (UTC)
@ GreenC: I just created this file. How did you get dates up to 2100 for the other local data files? I couldn't figure out where to get them from hebcal. Thanks. — howcheng { chat} 15:39, 31 May 2019 (UTC)
@ Howcheng: I made a program that retrieves data from the Hebcal API. However, the API has gaps in coverage. For example, to see all Holidays in June 2018 [2]. There is no Tzom Tammuz listed (should be June 30 at sunset). Because Fast Days can't be calculated(?) Hebcal probably manually adds them thus they do not go forward as far as calculated dates. No good solutions, maybe a reminder somehow to keep the file updated or find a different source. -- Green C 18:49, 31 May 2019 (UTC)
The result of the move request was: moved. ( non-admin closure) — Newslinger talk 06:46, 25 June 2019 (UTC)
– Names of subpages of modules and templates should be lowercase per convention. * Pppery * it has begun... 23:34, 17 June 2019 (UTC)
The URL to a Naval Observatory server being surfaced by this template in the infobox at Ash Wednesday is not working as at 09:19, 15 March 2021 (UTC). Thanks. — Spike Toronto 09:19, 15 March 2021 (UTC)
Maybe better frame:expandTemplate and then frame:callParserFunction? Can I try it on Module:Calendar date/sandbox?
Also, I would like to migrate one or two functions from my ru:Module:Calendar for {{ OldStyleDate}}.
I would like an international, module-friendly date mechanism ( see phab). I will be grateful if you allow me to use your sandbox for implementation — there are already functions in it that I use. I can use Module:DatesWD (now I see I need to make it WikiData-friendly 😆), but your title is better. · Carn· !? 14:57, 29 May 2021 (UTC)
The dates for Chuseok (Korea), Tsukimi (Japan) and Mid-autumn (China) holidays are coming up wrong for 2024. The holiday is day 15 of the 8th lunar month. In 2024 that new moon is 2 Sept [1] so the holiday is 17 Sept [2]. (Chuseok and Tsukimi are observed for several days centered around that date). The template comes up about 10 days earlier:
16 September 2024 – 18 September 2024.
17 September 2024 – 20 September 2024.
17 September 2024.
-- M.boli ( talk) 21:39, 20 August 2022 (UTC)
References
M.boli: This template uses
Module:Calendar_date/events to define holidays. Looking at the entry for Chuseok, it uses {{ctime:x|YYYY|8|14}}
to calculate the date, where "YYYY" is the year in question. Thus {{ctime:x|2024|8|14}}
= 2024-09-16 which is the date noted above. I don't know how {{
ctime:x}}
works is the problem with {{ctime:x}}
or the 8|14 parameter? --
Green
C 03:37, 21 August 2022 (UTC)
This template is giving the wrong date of Passover at Passover Seder for this year. It is saying it begins on the night of April 6th. However, the correct info is the night of April 5th. I commented out the use of the template there for now. - UtherSRG (talk) 00:40, 5 April 2023 (UTC)