Board Thread:Support Requests - Getting Technical/@comment-25295528-20161017152024

How can I refer a Java Script to a template? I want to insert the message text of the following Javascript line into a template, so I can change the text on a template rather than the JS page, to avoid having to constantly submit the JS for review (which would be impractical in this case)

/* Wikia Notifications */ /* var WikiaNotificationMessage = "Check out the latest GTA Wiki Weekly News!"; var WikiaNotificationexpiry = 3; importScriptPage('WikiaNotification/code.js', 'dev');

In essence, I want to create a template: Template:GTAWikiWeeklyNews, and tell the JS to load the message text from this template and use the text on the notification message. 