Difference between revisions of "Template:PrintDateValue"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
  -->|{{#if: {{{month|}}}<!--
 
  -->|{{#if: {{{month|}}}<!--
 
   -->|{{#if: {{{day|}}}<!--
 
   -->|{{#if: {{{day|}}}<!--
     -->|{{#time:j F Y|{{{day|}}} {{{month|}}} {{{year|}}} }} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- all components are present 
+
     -->|{{#time:j F Y|{{{day|}}} {{{month|}}} {{{year|}}} }} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- all components are given
     -->|{{#time:F Y|28 {{{month|}}} {{{year|}}} }} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only month and year are present
+
     -->|{{#time:F Y|28 {{{month|}}} {{{year|}}} }} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only month and year are given
 
     -->}}<!-- if day
 
     -->}}<!-- if day
   -->|{{#time:Y|{{{year|}}}}} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only year is present 
+
   -->|{{#time:Y|{{{year|}}}}} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only year is given
 
   -->}}<!-- if month
 
   -->}}<!-- if month
 
-->}}<!-- if year
 
-->}}<!-- if year
 
--></includeonly>
 
--></includeonly>

Latest revision as of 21:27, 1 June 2020

This template is used to print the date value from the year, month, day etc. Month and day are optional parameters.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |era= - the era: BCE or CE. The default is CE.
  • |year= - the year; mandatory.
  • |month= - the month.
  • |day= - the day.