Board Thread:Support Requests - Getting Technical/@comment-24530269-20180113145031/@comment-27958705-20180113184736

Withersoul 235 Thread:1377441 Does anyone know a code that can do that? there is no such code, cuz nobody knows ur templates. generally, if u want to target some template on some page (why do u need it? do u really need it?), then ur template must use some unique class\id (span class="mytemplate" or smth). page name lies in window.wgPageName. code will be like if (window.wgPageName === 'mypage' && $('.mytemplate').length) { //do stuff }