User:Rwojy/personaltemplates.js

$(document).ready(function {	// http://www.netlobo.com/url_query_string_javascript.html	function getParam(name) {		name = name.replace(/[\[]/, '\\\[').replace(/[\]]/, '\\\]');		var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); 		var results = regex.exec(window.location.href);		if (results == null) {			return ;		} else {			return decodeURIComponent(results[1]);		}	}	function setCookie(name, value, expires) {		var d = new Date;		d.setDate(d.getDate + expires);		document.cookie = name + '=' + escape(value) + ';path=/';	}	function getCookie(name) {		if (document.cookie.length > 0) {			var start = document.cookie.indexOf(name + '=');			if (start != -1) { 				start = start + name.length + 1; 				var end = document.cookie.indexOf(';', start);				if (end == -1) {					end = document.cookie.length;				}				return unescape(document.cookie.substring(start, end));			} 		}		return ;	} // Needle and haystack should contain strings. Each element in haystack will be trimmed before comparison. function inArray(needle, haystack) { for (var i in haystack) { if (needle == $.trim(haystack[i])) { return true; }		}		return false; }	var toolbarTemplates = (window.toolbarTemplates instanceof Array) ? window.toolbarTemplates : []; toolbarTemplates = toolbarTemplates.concat([

{ name: 'GEMW 2', ns: 'User_talk', open: '

GEMW Vandalism
Please do not incorrectly update the Grand Exchange Market Watch. It is considered vandalism. In the future, please follow the instructions listed at the top of each GEMW page. Thank you. 05:39, March 28, 2010 (UTC)', sample: '__CONTENTPAGE__' }, { name: 'Block', ns: 'User_talk', open: '

Blocked
You have been temporarily blocked from editing for vandalism of RuneScape Wiki. Please note that page blanking, addition of random text or spam, deliberate misinformation, privacy violations, and repeated and blatant policy violations are considered vandalism. If you wish to make useful contributions, you may come back after the block expires. 05:39, March 28, 2010 (UTC)', close: , sample:  }, { name: 'Welcome Notice', ns: 'User_talk', open: '==Welcome!== { name: 'No Personal Images', ns: 'User_talk', open: '==Personal Image== Hello. An image or video that you have uploaded appears to be personal. Personal files should not be hosted on the RuneScape Wiki (see RS:NOT). If you want to add a picture or video of your RuneScape character, or any other media that doesn't fit in an article, you may upload it on an image hosting site, such as Photobucket or ImageShack. You can then insert it into your userpage simply by copying and pasting the URL where you want to insert it. If you have uploaded a picture of your avatar, you can instead directly link to your avatar picture by pasting http://avatar-rs.runescape.com/your character name/full.gif for full avatar and http://avatar-rs.runescape.com/your character name/chat.gif for chathead. If you need more details feel free to ask any question you have on. 05:39, March 28, 2010 (UTC)', close: , sample:  }, { name: 'No Vandal', ns: 'User_talk', open: '

Vandalism
Hello,, it appears that you have been vandalising the RuneScape Wiki. Vandalism includes:


 * Adding offensive comments to pages.
 * Removing or blanking content from pages or templates.
 * Adding nonsense to articles or creating nonsense pages.
 * Purposefully adding incorrect information to articles.
 * Attacking another user.
 * Advertising outside websites.
 * Breaking or encouraging others to break Jagex's game rules.

If you have been or are doing this, please stop and try to make useful contributions or you will be blocked. If you have already been blocked and you feel that the block was unfair, please contact a sysop by leaving a message on your talk page. A sysop will read your appeal and make a decision.

If you were blocked, you are more than welcome to return after your block expires and make helpful contributions. Thank you. 05:39, March 28, 2010 (UTC)', close: , sample:  }, { name: 'Test 1', ns: 'User_talk', open: '

Test Edit
Thank you for experimenting with the RuneScape Wiki. Your test worked, and it has been reverted or removed. Please use the sandbox for any other tests you want to do. Thanks. 05:39, March 28, 2010 (UTC)', sample: '__CONTENTPAGE__' }, { name: 'Test 2', ns: 'User_talk', open: '

Vandalism
Please do not remove content from or add nonsense to RuneScape Wiki pages. It is considered vandalism. If you would like to experiment, please use the sandbox. Thank you. 05:39, March 28, 2010 (UTC)', sample: '__CONTENTPAGE__' }, { name: 'Test 3', ns: 'User_talk', open: '

Warning
Please stop your disruptive editing. If your vandalism continues, you will be blocked from editing the RuneScape Wiki. Thank you, 05:39, March 28, 2010 (UTC)', sample: '__CONTENTPAGE__' }, { name: 'Deleted User Talk', ns: 'User_talk', open: '== Blanking your talk page ==

Hello, we have a policy of not deleting discussions here, so if you would like to have a clear talk page, then you may archive it. To archive a talk page, simply create a page titled User talk:/archive 1 (be sure to include a link to your archive on your talk page) and move the contents of your talk page there. 05:39, March 28, 2010 (UTC)', close: , sample:  }, { name: 'Don\'t Edit Userpages', ns: 'User_talk', open: '

Don't edit userpages
Please do not edit other users' userpages on the RuneScape Wiki, as per this policy. If it was your userpage, please log in before editing. However, a few exceptions can be made. You may edit another user's userpage:


 * ... if you notice anything obscene on a user page (vulgar language, crude photos, messages that may be harmful to someone else or anything that breaks one of Jagex's rules). If you are unsure if it breaks this rule, contact another user to check it out.
 * ... to clear red links from the wanted pages list.
 * ... if editors are given permission by the author to edit the page. This includes guestbooks and some sandboxes.
 * ... to revert vandalism.

Any other edits will be considered vandalism, and may get you blocked from editing the RuneScape Wiki if you continue to do so. Thank you. 05:39, March 28, 2010 (UTC)', sample: '__CONTENTPAGE__' }, { name: 'Banned', ns: 'User', open: , sample:  } ]);	/* Try to keep track of the last visited "content" page. */	if (wgCanonicalNamespace.search(/talk|special/gi) == -1) {		var page = wgPageName.replace(/_/g, ' ');		if (wgCanonicalNamespace == 'File') {			page = ':' + page;		}		setCookie('templatesContentReferrer', page);	}	/* Append template list when editing user talk pages. */	if (wgAction == 'edit' || wgAction == 'submit') {		var haveTemplates = false;		var $select = $(' ').change(function { var i = $(this).val; if (i == '-1') { return; }			var tpl = toolbarTemplates[i]; insertTags(tpl.open, tpl.close, tpl.sample.replace('__CONTENTPAGE__', getCookie('templatesContentReferrer'))); var fillSummary = (typeof(window.toolbarFillSummary) != 'undefined') ? window.toolbarFillSummary : true; var fillHeading = (typeof(window.toolbarFillHeading) != 'undefined') ? window.toolbarFillHeading : true; var newSection = (getParam('section') == 'new'); if ((newSection && fillHeading) || (!newSection && fillSummary)) { var summary = $('#wpSummaryEnhanced').val; if ($.trim(summary.replace(/\/\*.*?\*\//, )) == ) { $('#wpSummaryEnhanced').val(summary + tpl.name); }			}		});		$select.append($(' ').val('-1').text('[Templates]'));		for (var i in toolbarTemplates) {			var tpl = toolbarTemplates[i];			var ns = tpl.ns.toLowerCase;			// normalize namespace list			ns = ns.replace(/ /g, '_').replace(/main/g, '').replace(/image/g, 'file');			if (tpl.ns == '*' || inArray(wgCanonicalNamespace.toLowerCase, ns.split('|'))) {				$select.append($(' ').val(i).text(tpl.name));				haveTemplates = true;			}		}		if (haveTemplates) {			$('#toolbar').prepend($select);		}	} }); var toolbarTemplates = []; var toolbarFillSummary = 1; var toolbarFillHeader = 1;