![]() | This template uses Lua: |
![]() | This template is used on approximately 178,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
A helper template to find the most specific chronology portal which actually exists for a given year or decade. Used to simplify linking to a chronology portal.
It is a wrapper template around Module:FindYDCportal. For use within templates, it is most efficient to invoke the module directly. For one-off use, the template requires less typing and makes the code easier to read.
Takes one parameter, which must be either a year (e.g. "1879", "1123") or a decade (e.g. "1940s", "730s").
If the parameter is missing, empty, or does not fit the required format, an empty string is returned.
If a portal is found, returns its name without the namespace prefix, e.g.
1980s
If no portal is found, it returns an empty string.
((FindYDCportal|YYYY))
... where YYYY
is a 3- or 4-digit year
((FindYDCportal|YYY0s))
... where YYY0s
is a 3- or 4-digit decade
((FindYDCportal|2018))
→ 2010s((FindYDCportal|1982))
→ 1980s((FindYDCportal|1946))
→((FindYDCportal|1857))
→((FindYDCportal|736))
→((FindYDCportal|1800))
→((FindYDCportal|2000s))
→((FindYDCportal|1940s))
→((FindYDCportal|560s))
→((FindYDCportal))
→((FindYDCportal|))
→((FindYDCportal|1927-related))
→((FindYDCportal|Swedish chef))
→If the parameter is a year:
If the parameter is a decade: