Template:Apostles fast date

From OrthodoxWiki
(Difference between revisions)
Jump to: navigation, search
(new)
 
(Example)
 
(One intermediate revision by one 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 11:57, December 1, 2011

June 16, 2014

for 13 Days ( 26 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)

Personal tools
Namespaces
Variants
Actions
Navigation
interaction
Donate

Please consider supporting OrthodoxWiki. FAQs

Toolbox