This template is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and
parser functions before editing the template. If your edit causes unexpected problems, please
undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
A helper template which returns the bare name of the category on a given calendar year.
This is needed because the articles on years take three different formats ("YYY" indicates a number, e.g. "6", "29", "754", "938")
This template allows accurate links to be generated.
{{Year category name|YYYY}}
The parameter may be:
123
or 1937
-45
or -1307
AD 17
or 1066AD
BC5
or 783 BC
Any other input will be ignored. There are no error messages.
{{Year category name}}
→{{Year category name|}}
→{{Year category name|5}}
→ AD 5{{Year category name|15}}
→ 15{{Year category name|4 AD}}
→ AD 4{{Year category name|6AD}}
→ AD 6{{Year category name|AD 7}}
→ AD 7{{Year category name|AD8}}
→ AD 8{{Year category name|17 BC}}
→ 17 BC{{Year category name|BC 42}}
→ 42 BC{{Year category name|BC91}}
→ 91 BC{{Year category name|64BC}}
→ 64 BC{{Year category name|-26}}
→ 26 BC{{Year category name|-319}}
→ 319 BC{{Year category name|xyz701}}
→{{Year category name|1943abc}}
→{{Year category name|Hello}}
→{{Year category name|RMS Titanic was a British passenger liner operated by the White Star Line that sank in the North Atlantic Ocean in the early morning hours of 15 April 1912}}
→This template is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and
parser functions before editing the template. If your edit causes unexpected problems, please
undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
A helper template which returns the bare name of the category on a given calendar year.
This is needed because the articles on years take three different formats ("YYY" indicates a number, e.g. "6", "29", "754", "938")
This template allows accurate links to be generated.
{{Year category name|YYYY}}
The parameter may be:
123
or 1937
-45
or -1307
AD 17
or 1066AD
BC5
or 783 BC
Any other input will be ignored. There are no error messages.
{{Year category name}}
→{{Year category name|}}
→{{Year category name|5}}
→ AD 5{{Year category name|15}}
→ 15{{Year category name|4 AD}}
→ AD 4{{Year category name|6AD}}
→ AD 6{{Year category name|AD 7}}
→ AD 7{{Year category name|AD8}}
→ AD 8{{Year category name|17 BC}}
→ 17 BC{{Year category name|BC 42}}
→ 42 BC{{Year category name|BC91}}
→ 91 BC{{Year category name|64BC}}
→ 64 BC{{Year category name|-26}}
→ 26 BC{{Year category name|-319}}
→ 319 BC{{Year category name|xyz701}}
→{{Year category name|1943abc}}
→{{Year category name|Hello}}
→{{Year category name|RMS Titanic was a British passenger liner operated by the White Star Line that sank in the North Atlantic Ocean in the early morning hours of 15 April 1912}}
→