Difference between revisions of "Template:PrintDateValue"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
 +
<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 doesn't store any values anywhere, but merely prints them on the page.
 +
 +
'''Parameters:'''
 +
* <code><nowiki>|era=</nowiki></code> - the era: BCE or CE. The default is CE.
 +
* <code><nowiki>|year=</nowiki></code> - the year; mandatory.
 +
* <code><nowiki>|month=</nowiki></code> - the month.
 +
* <code><nowiki>|day=</nowiki></code> - the day.
 +
 +
</noinclude><includeonly><!--
 +
-->{{#if: {{{year|}}}<!-- if there is year
 +
-->|{{#if: {{{month|}}}<!--
 +
  -->|{{#if: {{{day|}}}<!--
 +
    -->|{{#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 given
 +
    -->}}<!-- if day
 +
  -->|{{#time:Y|{{{year|}}}}} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only year is given
 +
  -->}}<!-- if month
 +
-->}}<!-- if year
 +
--></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.