Difference between revisions of "Template:Sunday before"
(new) |
(Example) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#time:{{{format|F j, Y}}}| {{{date|}}} - {{#time:N| {{{date|}}} }} day}} | + | {{#time:{{{format|F j, Y}}}| {{{date|}}} - {{#time:N| {{{date|}}} }} day}}<noinclude> |
---- | ---- | ||
==Usage== | ==Usage== | ||
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=''''' | + | Usage: '''<nowiki>{{</nowiki>Sunday before | date='''''Mmm dd yyyy | '''''format'''''=format string'''''<nowiki>}}</nowiki>''' |
− | where '' | + | 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 21, 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