コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:Dr-make

Produces a representation of a logically-numbered year/decade/century/millennium (first parameter). Second para is y/d/c/m. Representation style depends on the third parameter:

  • (parameter empty or absent): links to the year if it has an article (not a redirect)
  • y: always links
  • n: never links
  • t: produces simple text (no no-break spaces etc.), e.g. for use in category names
  • s: displays 紀元後 or 紀元前 in small capitals
  • a: adds 紀元後 if not 紀元前
  • ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options

Used by {{dr}}.