32:
63:
345:
Flags to select the output style. Possible options are "always link" (y), "never link" (n), "never link and no formatting" (t), "small letters for BC/AD" (s), "use AD if not BC" (a). These may be combined, but y, n, and t are mutually
110:
Third parameter is the input number. For example, 1 represents the year 1, the 10s, the 1st century or the 1st millennium (depending on the first parameter). For BC, make the number negative (for the decade 0s BC, use -0).
114:
Fourth parameter is an offset from the output value. Notice that the output decade/century/millennium is the (first) decade/century/millennium of the input year/decade/century/millennium, but an output
126:
Fifth parameter contains style options. Normally the item is linked if it is within the range for which
Knowledge (XXG) has articles (to configure that range, please edit
437:
409:
394:
382:
47:
364:
421:
378:
43:
51:
83:
404:
79:
253:
Specifies whether the input is interpreted as years (y), decades (d), centuries (c), or millennia (m)
389:
75:
276:
Specifies whether the output should be in years (y), decades (d), centuries (c), or millennia (m)
368:
189:
178:
130:
87:
146:
t = never link, and no no-break spaces or other formatting (e.g. for use in category names)
417:
372:
39:
200:
431:
96:
Produces a year, decade, century or millennium for use in an infobox or navbox.
322:
Offset of the output value from the input value, interpreted as the output type
211:
Produces a year, decade, century or millennium for use in an infobox or navbox.
70:
26:
17:
160:
299:
Starting year, century, etc. Negative values are interpreted as BC.
107:
Second parameter is y, d, c, m, depending on what is to be output.
155:
ys, ysa, ya, ns, nsa, na, sa = permitted combinations of the above
74:
and changes may be widely noticed. Test changes in the template's
166:, i.e. first decade of the 5th century BC, offset by +3 decades.
104:
First parameter is y, d, c, m, depending on what is being input.
57:
398:
221:
This template prefers inline formatting of parameters.
8:
208:
123:year of an input decade/century/millennium.
149:s = small letters for BC (or AD if present)
388:Editors can experiment in this template's
214:
136:). The following options are available:
86:. Consider discussing changes on the
7:
159:Example: {{dr|c|d|-5|3|s}} produces
25:
61:
30:
438:Historical period subtemplates
71:approximately 3,400 pages
1:
454:
362:
422:Subpages of this template
227:
90:before implementing them.
82:subpages, or in your own
69:This template is used on
416:Add categories to the
35:Template documentation
152:a = use AD if not BC
360:
224:
217:Template parameters
215:
213:
359:
358:
240:
209:
164:
94:
93:
16:(Redirected from
445:
413:
402:
386:
341:
318:
295:
272:
249:
241:
225:
222:
205:
199:
194:
188:
183:
177:
162:
135:
129:
65:
64:
58:
55:
36:
34:
33:
21:
453:
452:
448:
447:
446:
444:
443:
442:
428:
427:
426:
425:
415:
407:
392:
387:
376:
373:Template:Dr/doc
361:
339:
316:
293:
270:
247:
220:
203:
197:
192:
186:
181:
175:
172:
140:y = always link
133:
127:
102:
62:
56:
37:
31:
29:
23:
22:
15:
12:
11:
5:
451:
449:
441:
440:
430:
429:
357:
356:
353:
350:
349:
342:
337:
333:
332:
329:
326:
325:
319:
314:
310:
309:
306:
303:
302:
296:
291:
287:
286:
283:
280:
279:
273:
268:
264:
263:
260:
257:
256:
250:
245:
239:
238:
235:
232:
229:
207:
206:
195:
184:
171:
168:
157:
156:
153:
150:
147:
144:
143:n = never link
141:
101:
98:
92:
91:
66:
28:
27:
24:
14:
13:
10:
9:
6:
4:
3:
2:
450:
439:
436:
435:
433:
423:
419:
411:
406:
400:
396:
391:
384:
380:
374:
370:
366:
365:documentation
354:
351:
348:
347:
343:
338:
336:Style options
335:
334:
330:
327:
324:
323:
320:
315:
312:
311:
307:
304:
301:
300:
297:
292:
289:
288:
284:
281:
278:
277:
274:
269:
266:
265:
261:
258:
255:
254:
251:
246:
243:
242:
236:
233:
230:
226:
223:
218:
212:
202:
196:
191:
185:
180:
174:
173:
169:
167:
165:
154:
151:
148:
145:
142:
139:
138:
137:
132:
124:
122:
118:
112:
108:
105:
99:
97:
89:
85:
81:
77:
73:
72:
67:
60:
59:
53:
49:
45:
41:
19:
344:
321:
298:
290:Input number
275:
252:
219:
216:
210:
204:}}
198:{{
193:}}
187:{{
182:}}
176:{{
170:Subtemplates
158:
134:}}
128:{{
125:
120:
116:
113:
109:
106:
103:
95:
84:user subpage
68:
369:transcluded
267:Output type
231:Description
50:] [
46:] [
42:] [
18:Template:DR
363:The above
346:exclusive.
244:Input type
161:460s
80:/testcases
420:subpage.
405:testcases
355:suggested
228:Parameter
88:talk page
432:Category
331:required
308:required
285:required
262:required
190:Dr-logno
76:/sandbox
397:|
390:sandbox
383:history
381:|
179:Dr-make
131:dr-make
119:is the
48:history
414:pages.
352:String
328:Number
313:Offset
305:Number
282:String
259:String
237:Status
121:second
371:from
201:Dr-yr
100:Usage
54:]
52:purge
38:[
418:/doc
410:edit
403:and
399:diff
395:edit
379:edit
234:Type
117:year
44:edit
40:view
367:is
78:or
434::
375:.
163:BC
424:.
412:)
408:(
401:)
393:(
385:)
377:(
340:5
317:4
294:3
271:2
248:1
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.