Difference between revisions of "Template:PrintDateValue"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> 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 doe...")
 
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 present   
     -->|{{#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 present
 
     -->}}<!-- 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 present   
 
   -->}}<!-- if month
 
   -->}}<!-- if month
 
-->}}<!-- if year
 
-->}}<!-- if year
 
--></includeonly>
 
--></includeonly>

Revision as of 23:23, 25 August 2016

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.