ढाँचा:Dr-make
ढाँचा कागजात[हेर्नुहोस्] [सम्पादन गर्नुहोस्] [इतिहास] [ताजा गर्नुहोस्]
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}} 1
- {{dr-make|1|y|n}} 1
- {{dr-make|1|y|t}} 1
- {{dr-make|1|y|a}} सन् 1
- {{dr-make|1|y|sa}} सन् 1
- {{dr-make|212|y|a}} सन् 212
- {{dr-make|212|y|sa}} सन् 212
- {{dr-make|212|y|na}} सन् 212
- {{dr-make|212|y|nsa}} सन् 212
- {{dr-make|212|y|ap}} सन् 212
- {{dr-make|212|y|sap}} सन् 212
- {{dr-make|212|y|yap}} सन् 212
- {{dr-make|911|y}} 911
- {{dr-make|-11|d}} ई.पू. 100 दशक
- {{dr-make|-1|d}} ई.पू. 0 दशक
- {{dr-make|0|d}} 0 दशक
- {{dr-make|1|d}} 10 दशक
- {{dr-make|10|d}} 100 दशक
- {{dr-make|1|c}} 1औँ शताब्दी
- {{dr-make|1|c|a}} 1औँ शताब्दी सन्
- {{dr-make|10|c}} 10औँ शताब्दी
- {{dr-make|1|m}} 1औँ सहस्राब्दी
- {{dr-make|0|y}} ई.पू. 1
- {{dr-make|0|y|s}} ई.पू. 1
- {{dr-make|-2|y|ysa}} ई.पू. 3