FANDOM

2,054,169 Pages

Usage:
{{hasYear|<<input string>>}}

Returns "true" if input string ends with " (####)" where # is a digit 0-9, or with " (????)", else an empty string. Can be used to verify album links or pagenames.

string hasYear
Testalbum
Testalbum (1999) true
Testalbum_(1999) [1]
Testalbum(1999)
Testalbum (????) true
Testalbum (YEAR)
  • ^[1] is a valid link, but there's no reason to use an underscore here
Community content is available under Copyright unless otherwise noted.