Template:GetYear

From Pestinfo-Wiki
Jump to: navigation, search

Extracting the year (four characters) from a string starting with the character "(". This is used to obtain the year from a string like "Virus Research (2010)". The template should be called as:

{{GetYear|{{PAGENAME}}}}