Uso
Produce una representación de una fecha. El primer parámetro es el texto de visualización; el segundo es el estilo; el tercero es el texto del vínculo (el valor predeterminado es el texto de visualización). Parámetros de estilo:
- (parámetro vacío o ausente): sin enlace
- y/yy: enlace
- n: no hay enlace incluso después de y
- t: no hay enlace incluso después de y, pero devuelve el texto del enlace
- s: muestra d. C. o d. C. en mayúsculas pequeñas
- a: agrega AD si no hay b
- p: coloca AD como prefijo (solo válido con a)
- b: agrega BC
- d: agrega (década) solo al enlace, y solo si aparece inmediatamente después de b
Las opciones anteriores se pueden combinar, en ese orden (pero no con n o s).
Esta plantilla es utilizada por {{ dr-make }} .
Ejemplos
- {{drep|1}} 1
- {{drep|1|y}} 1
- {{drep|1|y|1 d.C.}} 1
- {{drep|1|y|1 CE}} 1
- {{drep|1|aa}} 1
- {{drep|1|yn}} 1
- {{drep|1|yt}} 1
- {{drep|1|ya}} 1 d.C.
- {{drep|1|ysa}} 1 d.C.
- {{drep|1|yap}} 1 d.C.
- {{drep|1|ysap}} 1 d.C.
- {{drep|1|yab}} 1 a. C.
- {{drep|1|ysab}} 1 a. C.
- {{drep|10s|y}} 10s
- {{drep|100s|ysabd}} 100 años antes de Cristo
- {{drep|911|y|911 (año)}} 911
- {{drep|1984|año}} 1984
- {{drep|2001|año}} 2001
- {{drep|2014|año}} 2014
- {{drep|2084|y}} 2084
- {{drep|3035|y}} 3035