Template:JustTheYear/doc

JustTheYear gives you just the year from the title of a page. It looks for a series of 4 consecutive integers in the title and returns it. This is not something I expect you'll find in active use, but I made it to help making interlanguage links for year pages easier. Category:1998 Births could include a link to the Czech Category:Rok narození:  and it would correctly fill in the 1998. Since SUBST is used, it actually puts 1998 in the text and if you edit the page later JustTheYear won't be sen at all. This is not a time saver for small editing work, but can be handy when setting up dozens of years of some kind of category.