ទំព័រគំរូ:Dr-make/doc
This is a documentation subpage for ទំព័រគំរូ:Dr-make. It may contain usage information, categories and other content that is not part of the original ទំព័រគំរូ page. |
Usage
កែប្រែ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
- p: displays AD as prefix (only valid with a)
- ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options
- yap, ysap, nap, nsap, sap: combinations with AD prefix
Used by {{dr}}. Uses {{drep}}.
Examples
កែប្រែ- {{dr-make|1|y}} ទំព័រគំរូ:Drep
- {{dr-make|1|y|n}} ទំព័រគំរូ:Drep
- {{dr-make|1|y|t}} ទំព័រគំរូ:Drep
- {{dr-make|1|y|a}} ទំព័រគំរូ:Drep
- {{dr-make|1|y|sa}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|a}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|sa}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|na}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|nsa}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|ap}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|sap}} ទំព័រគំរូ:Drep
- {{dr-make|212|y|yap}} ទំព័រគំរូ:Drep
- {{dr-make|911|y}} ទំព័រគំរូ:Drep
- {{dr-make|-11|d}} ទំព័រគំរូ:Drep
- {{dr-make|-1|d}} ទំព័រគំរូ:Drep
- {{dr-make|0|d}} ទំព័រគំរូ:Drep
- {{dr-make|1|d}} ទំព័រគំរូ:Drep
- {{dr-make|10|d}} ទំព័រគំរូ:Drep
- {{dr-make|1|c}} ទំព័រគំរូ:Drep
- {{dr-make|1|c|a}} ទំព័រគំរូ:Drep
- {{dr-make|10|c}} ទំព័រគំរូ:Drep
- {{dr-make|1|m}} ទំព័រគំរូ:Drep
- {{dr-make|0|y}} ទំព័រគំរូ:Drep
- {{dr-make|0|y|s}} ទំព័រគំរូ:Drep
- {{dr-make|-2|y|ysa}} ទំព័រគំរូ:Drep