This is a script that detects page protection levels (not move or upload protections) . This may deprecate templates in the future, but for now, all the use is for is to add page protection topicons (some may duplicate).
To use this script, insert the following code into your common.js page:
importScript("User:Awesome Aasim/DetectProtectionLevels.js")
That's it! Hope this helps.