<includeonly>[[:{{{1}}}:{{DecadesAndYears/addepoch|{{{2}}}|{{{3}}}}}|{{#ifeq:{{#expr:{{{2}}}}}|{{{2}}}|{{DecadesAndYears/addepoch|{{{2}}}|{{{3}}}|<small>{{{3}}}</small>}}|'''{{DecadesAndYears/addepoch|{{{2}}}|{{{3}}}|<small>{{{3}}}</small>}}'''}}]]</includeonly><noinclude>Intended for use with years, decades, etc.; this subtemplate links to either of the following pages in the namespace ''{{{1}}}''. 
*''{{{2}}} {{{3}}}'' 
*''{{{2}}}'' iff ''{{{3}}}'' = ''AD''
{{{3}}} is displayed in small type.</noinclude>