テンプレート:Dr-make

2012年12月8日 (土) 23:11時点におけるWikiSysop (トーク | 投稿記録)による版 (ページの作成:「<includeonly>{{#switch:{{{2}}}|y={{#switch:{{#expr:{{{1}}}<-498}}{{#expr:{{{1}}}<1}}{{#expr:{{{1}}}<2060}}|111={{drep |{{#expr:1-{{{1}}}}}|{{{3|}}}b}}|011={{drep |{{#expr:...」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

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 AD or BC in small capitals
  • a: adds AD if not BC
  • ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options

Used by {{dr}}.