Sure, until it changes. Here it is in Jan 2016 when it was included in the opening paragraphs as the text "The latest version of OS X is <scrape here>".
https://en.wikipedia.org/w/index.php?title=MacOS&oldid=69769...
And here it is in June 2016 where that sentence was changed to "The latest software version is <scrape here>"
https://en.wikipedia.org/w/index.php?title=MacOS&oldid=72528...
Then around September 2016 it was moved into the sidebar using the template you linked. It looks like that template has been a consistent and reliable element for this since 2012, but then why was it only used in the OSX infobar in middle/late 2016? How else would anyone have known to find it?
And this is just OSX, what if OP wanted a web page that tracked the latest stable release for 20 different OS's? It ends up being pretty frequent maintenance for a small project.