Difference between revisions of "Template:Apostles fast date"
(new) |
(Example) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
for | for | ||
− | {{#expr: | + | {{#ifexpr: {{#expr: |
+ | {{#time:{{{format|z}}} |Jun 29 {{{year|{{CURRENTYEAR}} }}} }} - | ||
+ | {{#time:{{{format|z}}} |{{Pascha date|year={{{year|{{CURRENTYEAR}} }}} }} + 57 day }} | ||
+ | }} < 1 | ||
+ | | no fast | ||
+ | | {{#expr: | ||
{{#time:{{{format|z}}} |Jun 29 {{{year|{{CURRENTYEAR}} }}} }} - | {{#time:{{{format|z}}} |Jun 29 {{{year|{{CURRENTYEAR}} }}} }} - | ||
{{#time:{{{format|z}}} |{{Pascha date|year={{{year|{{CURRENTYEAR}} }}} }} + 57 day }} | {{#time:{{{format|z}}} |{{Pascha date|year={{{year|{{CURRENTYEAR}} }}} }} + 57 day }} | ||
+ | }} | ||
}} Days ( | }} Days ( | ||
{{#expr: | {{#expr: | ||
Line 26: | Line 32: | ||
format string see chart at [[Template:Pascha date]] | format string see chart at [[Template:Pascha date]] | ||
+ | ==Example== | ||
+ | '''<nowiki>{{Apostles fast date|year=1976}}</nowiki>''' returns: | ||
+ | {{Apostles fast date|year=1976}} | ||
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]] | [[Category:OrthodoxWiki Templates|{{PAGENAME}}]] | ||
[[Category:Calendar templates]]</noinclude> | [[Category:Calendar templates]]</noinclude> |
Latest revision as of 19:57, December 1, 2011
July 1, 2024
for no fast Days ( 11 Days OC)
Usage
This template displays the start date of Apostles fast for the current year, and length in days.
Usage: {{Apostles fast date}}
Or template displays the start date of Apostles fast for the year passed by the year parameter in the format of the format parameter.
Usage: {{Apostles fast date|year=nnnn|format=format string}}
where nnnn is the year
default format string is F j, Y
format string see chart at Template:Pascha date
Example
{{Apostles fast date|year=1976}} returns:
June 21, 1976
for 8 Days ( 21 Days OC)