Template:Date

From Foundry Wiki
Revision as of 06:13, 29 June 2022 by Naginreed (talk | contribs) (Created page with "<!-- {{{1|}}} = year: {{#expr: {{{1|}}} }} will strip leading zeros if any {{{2|}}} = month: input to {{I18n month}} {{{3|}}} = day: {{#expr: {{{3}}} }} will strip leading zeros if any {{{4|}}} = language code --><onlyinclude>{{#if: {{{1|}}}{{{2|}}}{{{3|}}} | {{#ifexpr:{{#if:{{{1|}}}|1|0}}or({{#if:{{{2|}}}|1|0}}and{{#if:{{{3|}}}|1|0}})| <time datetime="{{{1|}}}{{#if:{{{2|}}} |{{#if:{{{1|}}}|-}}{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}}}"> }}{{#switch: {{#if: {{{4|}}} | {{{4}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template-info.png Documentation

Examples

  • {{date|2016|06|10}}
    → 
2016(2016-06-10)
  • {{date|2016|06}}
    → 
2016(2016-06)
  • {{date|2016}}
    → (2016)
  • {{date|2016|06||ja}}
    → (2016-06)
  • {{date|2016|06||bn}}
    → 
২০১৬(2016-06)
  • {{date||06|10}}
    → 
  • {{date||06}}
    → June