Template:Decades and years/addepoch/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

This template returns {{{1}}} {{{2}}} if {{{2}}} is either not specified or set to AD. Otherwise it returns {{{1}}} {{{2}}} or, iff {{{3}}} is specified, {{{1}}} {{{3}}}.

Examples

1

  • {{Decades and years/addepoch|1|BC}} 1 BC
  • {{Decades and years/addepoch|1|AD}} 1
  • {{Decades and years/addepoch|1|BC|<small>BC</small>}} 1 BC
  • {{Decades and years/addepoch|1|AD|<small>BC</small>}} 1

0s

  • {{Decades and years/addepoch|0s|BC}} 0s BC
  • {{Decades and years/addepoch|0s|AD}} 0s
  • {{Decades and years/addepoch|0s|BC|<small>BC</small>}} 0s BC
  • {{Decades and years/addepoch|0s|AD|<small>AD</small>}} 0s

10s

  • {{Decades and years/addepoch|10s|BC}} 10s BC
  • {{Decades and years/addepoch|10s|AD}} 10s

100s

  • {{Decades and years/addepoch|100s|BC}} 100s BC
  • {{Decades and years/addepoch|100s|AD}} 100s