Template:Hindu festival date/sandbox
debug... [[ | ]] māsa (amānta) / [[ | ]] māsa (purnimānta), pakṣa, [[ | ]] tithi
This is the template sandbox page for Template:Hindu festival date (diff). |
This template obtains the festival date (masa, paksha and tithi) from the wikidata page corresponding to the festival, formats it and returns it. This template can be transcluded into any Hindu festival's page in wikipedia. For this template work correctly, the corresponding wikidata page must be configured appropriately.
Usage
[edit]{{Hindu festival date
|end
}}
Parameters
[edit]- end
- an optional parameter that indicates that the festival is spread over multiple consecutive days and the end date of the festival is being requested.
Examples
[edit]When trascluded into the wiki page of Navaratri:
- {{Hindu festival date}}
- āśvina māsa, śukla pakṣa, prathama tithi
- {{Hindu festival date | end}}
- āśvina māsa, śukla pakṣa, navamī tithi
Wikidata configuration
[edit]Hindu festival date elements (masa, paksha, tithi) are configured as multiple values of a single property - day in year for periodic occurrence (P837).
A maximum of six values may be configured - three for a festival which is celebrated on a single day, six for multi-day festivals.
Each value must be qualified by taxonomic type (P427). This qualifier must be set to one of masa (Q109641212) / paksha (Q3634430) / tithi (Q1427958).
Single day festival
[edit]The following three values must be configured:
- masa
- this value must be the wikidata item of any one of the twelve months of the Hindu calendar (Chaitra, Vaisakha, etc.). This value must be qualified by taxonomic type = masa (Q109641212). If the paksha of the festival is krishna an additional qualifier must be configured - determination method (P459) - whose value must be set to amaanta (Q109641534).
- paksha
- this value must be the wikidate item of one of Shukla (Q109641113) / Krishna (Q109641101). This value must be qualified by taxonomic type = paksha (Q3634430)
- tithi
- this value must be the wikidata item of one of the fourteen tithis of this Hindu calendar (prathama, dwitiya etc.) or purnima or amavasya. This value must be qualified by taxonomic type = tithi (Q1427958)
Multi day festival
[edit]In the case of multi-day festivals, the three values mentioned above will be interpreted as the begin date of the festival. The end date of the festival must be configured by three additional values, identical to the above but with an additional qualifier - end period (P3416). This qualifier must be set to the truth value true (Q16751793)
Examples
[edit]Single day festival (shukla paksha): https://www.wikidata.org/wiki/Q929250
Single day festival (krishna paksha): https://www.wikidata.org/wiki/Q2722469
Multi day festival : https://www.wikidata.org/wiki/Q10244