සැකිල්ල:Year category name
පෙනුම
| මෙම සැකිල්ල පිටු 2,400 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
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")
- All BC years: YYY BC
- AD years 1 to 10: AD YYY
- AD years after 10: YYY
This template allows accurate links to be generated.
Usage
[සංස්කරණය]{{Year category name|YYYY}}
The parameter may be:
- A bare number for AD years, e.g.
123or1937 - A negative number for BC years, e.g.
-45or-1307 - A number preceded or followed by "AD", with or without a space, e.g.
AD 17or1066AD - A number preceded or followed by "BC", with or without a space, e.g.
BC5or783 BC
Any other input will be ignored. There are no error messages.
Examples
[සංස්කරණය]{{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}}→