Difference between revisions of "Template:Sunday before"

From OrthodoxWiki
Jump to: navigation, search
m (fix)
(Example)
 
Line 9: Line 9:
 
Or this template displays the date of the Sunday before the date given by the '''date''' parameter in the format of the '''format''' parameter.  
 
Or this template displays the date of the Sunday before the date given by the '''date''' parameter in the format of the '''format''' parameter.  
  
Usage:  '''<nowiki>{{</nowiki>Sunday before | date='''''mm dd yyyy | '''''format'''''=format string'''''<nowiki>}}</nowiki>'''
+
Usage:  '''<nowiki>{{</nowiki>Sunday before | date='''''Mmm dd yyyy | '''''format'''''=format string'''''<nowiki>}}</nowiki>'''
  
where ''mm dd yyyy'' is the month day year
+
where ''Mmm dd yyyy'' is the month day year
  
 
default date is today
 
default date is today
Line 17: Line 17:
 
default ''format string'' is F j, Y
 
default ''format string'' is F j, Y
 
format string see chart at [[Template:Pascha date]]
 
format string see chart at [[Template:Pascha date]]
 +
==Example==
 +
'''<nowiki>{{Sunday before|date=Dec 25 2016}}</nowiki>''' returns:
  
 
+
{{Sunday before|date=Dec 25 2016}}
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:Calendar templates]]</noinclude>
 
[[Category:Calendar templates]]</noinclude>

Latest revision as of 20:41, December 1, 2011

April 14, 2024


Usage

This template displays the date of last Sunday.

Usage: {{Sunday before}}


Or this template displays the date of the Sunday before the date given by the date parameter in the format of the format parameter.

Usage: {{Sunday before | date=Mmm dd yyyy | format=format string}}

where Mmm dd yyyy is the month day year

default date is today

default format string is F j, Y format string see chart at Template:Pascha date

Example

{{Sunday before|date=Dec 25 2016}} returns:

December 18, 2016