Difference between revisions of "Template:PrintDateValue"
Jump to navigation
Jump to search
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 | + | -->|{{#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 | + | -->|{{#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 | + | -->|{{#time:Y|{{{year|}}}}} {{#ifeq: {{{era|CE}}}|BCE|BCE|}}<!-- only year is given |
-->}}<!-- if month | -->}}<!-- if month | ||
-->}}<!-- if year | -->}}<!-- if year | ||
--></includeonly> | --></includeonly> |
Revision as of 01:35, 26 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.