Latest Neocron News and Information

  • New test server patch #563 has been released to Vedeena

Difference between revisions of "Metadata:Mapping/Map.js"

From Neocron Wiki
Jump to: navigation, search
(New improved way to generate the map key, without having to edit this file every time a new key is added)
(Brammers changed the content model of the page Metadata:Mapping/Map.js from "wikitext" to "JavaScript")
Tag: content model change
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* NC-Wiki Jquery File - Do not delete! */
+
/* NC-Wiki Jquery File - Do not delete! (c) 2017 - Tech Haven Network */
  
$kjq(document).ready(function($)
+
$(document).ready(function($)
 
{
 
{
 
// Add functions and stuff here
 
// Add functions and stuff here
Line 22: Line 22:
 
// Dont hide map on the Template:Mapkey page
 
// Dont hide map on the Template:Mapkey page
 
// Otherwise you cannot preview it!
 
// Otherwise you cannot preview it!
if (wgPageName!='Template:Mapkey')
+
if (wgPageName.substr(0,15)!='Template:Mapkey')
 
{
 
{
 
// Ok find the map key elemetns
 
// Ok find the map key elemetns
Line 51: Line 51:
 
// End of mapkey functions
 
// End of mapkey functions
  
// End of functions
 
 
});
 
});

Latest revision as of 23:35, 27 August 2017

Sorry you do not have permissions to view this page.