Difference between revisions of "Template:Gregorian date"

From OrthodoxWiki
Jump to: navigation, search
m (Usage: usage)
(Example)
 
Line 5: Line 5:
 
This template displays any Julian date on the Gregorian Calendar in the format of the '''format''' parameter.  
 
This template displays any Julian date on the Gregorian Calendar in the format of the '''format''' parameter.  
  
Usage:  '''<nowiki>{{</nowiki>Gregorian date|date='''''mm dd yyyy'''''|format='''''format string'''''<nowiki>}}</nowiki>'''
+
Usage:  '''<nowiki>{{</nowiki>Gregorian date|date='''''Mmm dd yyyy'''''|format='''''format string'''''<nowiki>}}</nowiki>'''
  
where ''mm dd yyyy'' is the month day year of the Gregorian date (new calendar)
+
where ''Mmm dd yyyy'' is the month day year of the Gregorian date (new calendar)
  
 
default date is today Julian witch should return today Gregorian  
 
default date is today Julian witch should return today Gregorian  
Line 14: Line 14:
  
 
format string see chart at [[Template:Pascha date]]
 
format string see chart at [[Template:Pascha date]]
 +
==Example==
 +
'''<nowiki>{{Gregorian date|date=Dec 25 2020}}</nowiki>''' returns:
  
 +
{{Gregorian date|date=Dec 25 2020}}
  
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:Calendar templates]]</noinclude>
 
[[Category:Calendar templates]]</noinclude>

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

December 7, 2016


Usage

This template displays any Julian date on the Gregorian Calendar in the format of the format parameter.

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

where Mmm dd yyyy is the month day year of the Gregorian date (new calendar)

default date is today Julian witch should return today Gregorian

default format string is F j, Y

format string see chart at Template:Pascha date

Example

{{Gregorian date|date=Dec 25 2020}} returns:

January 7, 2021