Zanibe: Piştî weşandinê, ji bo dîtina guhartinan dibe ku hewce be "cache"ya geroka xwe paqij bikî.

  • Firefox / Safari: Pê li Shift û Reload bike an jî Ctrl-F5 an Ctrl-R bike (ji bo Mac: ⌘-R)
  • Google Chrome: Pê li Ctrl-Shift-R (ji bo Mac: ⌘-Shift-R) bike
  • Internet Explorer / Edge: Pê li Ctrl û Refresh bike, an jî Ctrl-F5 bike
  • Opera: Pê li Ctrl-F5 bike.
/**
* Insert WikiEditor (sMirC) emoticons buttons
* @created 2014-08-16
* @source [[mw:Extension:WikiEditor/Toolbar customization]], [[c:SMirC]]
* @version 0.2.1 (01:11, 2 December 2015 (UTC))
* @author [[User:Perhelion]], 2014
* @license released in the public domain
* @ToDo: Should there be support for the classic toolbar?
* @required modules: mw.user, wikiEditor
**/
/*global jQuery, mediaWiki*/
(function ($, mw) {
"use strict";
if (typeof mw.libs.wikiEditorEmoticons === 'function') return; // load only once
var ns = mw.config.get('wgNamespaceNumber'),
	cUrl = 'https://upload.wikimedia.org/wikipedia/commons/thumb/', //Commons
/** sMirC emoticons only **/
	s = 'SMirC-',
	sMList = {};
addSmilie(s+'¹',[
['6/69', 'smile', ':-)'],
['e/ec', 'wink', ';-)'],
['e/e3', 'beam', ':-D'],
['8/8c', 'dunno', ':-S'],
['6/66', 'grin', 'X-)'],
['9/90', 'happy', '=>'],
['5/5a', 'laugh', 'lol'],
['a/a2', 'doh', 'doh'],
['0/00', 'mmm', 'mm'],
['6/6d', 'bored', '-.-'],
['0/0b', 'whistle', '"-:'],
['9/91', 'chuckle', '^_^'],
['0/08', 'cool', 'B)'],
['e/e3', 'bearhug', 'ʕ•ᴥ•ʔ'],
['3/3f', 'angel', '0:)'],
['4/40', 'devil', '3:D'],
['c/c2', 'vamp', '*,,*'],
['b/bf', 'alien', '(.V.)'],
['b/b3', 'dead', '☠'],
['b/b3', 'stoned', '@_,@'],
['5/56', 'puke', '(゚*゚)'],
['5/54', 'jealous', '(°₀°)'],
['0/0e', 'angry', '>:[]'],
['0/0d', 'hot', '♨'],
['9/93', 'freezing', ':-{}'],
['3/3d', 'spent', 'x_x'],
['5/5a', 'hi', 'hi'],
['4/47', 'beware', 'stop'],
['6/62', 'congrats', '-<-@'],
['f/f5', 'party', '*<:o)'],
['1/1f', 'thumbsup', 'yes'],
['c/c8', 'thumbsdown', 'no'],
['0/0c', 'shock', 'O_O'],
['5/5f', 'goggle', '°o°'],
['e/e8', 'scream', '8-O']
]);
addSmilie(s+'²',[
['3/39', 'sad', ':-('],
['d/d5', 'medium', ':-|'],
['a/aa', 'puppyeyes', '8-('],
['6/66', 'rolleyes', '8)'],
['e/e3', 'unnerved', '(~_~)'],
['a/ae', 'cry', ';,('],
['b/b6', 'love', '<3'],
['8/80', 'kiss', ':-*'],
['3/35', 'what', '???'],
['4/4b', 'zzz', 'zZz'],
['c/c2', 'sceptic', ';-/'],
['5/58', 'silent', ':-x'],
['c/c3', 'tongue', ':-P'],
['1/1e', 'crazy', '%Þ'],
['6/64', 'horny', '<3Þ'],
['e/ec', 'greedy', '$Þ'],
['0/00', 'shy', '●^_^●'],
['7/7f', 'embarassed', '●°.°●'],
['d/d2', 'nerd', '8-)'],
['d/d8', 'wasntI', '8-°'],
['8/85', 'worry', '8-['],
['8/8b', 'wtf', 'o_O'],
['1/17', 'martial', '(-°-)'],
['a/ab', 'xmas', 'xmas'],
['3/33', 'coffeebreak', 'café'],
['9/95', 'facepalm', 'm('],
['2/23', 'daisy', 'daisy'],
['5/5d', 'sunny', '☀'],
['3/37', 'cloudy', '☁'],
['d/d2', 'rainy', '☂'],
['2/27', 'thundery', '☈'],
['9/9e', 'snowy', '☃'],
['5/55', 'hazy', '≈'],
['d/d3', 'super', '\\S/'],
['1/10', 'ass', '(_*_)']
]);

function addSmilie (g, sL) { // make buttons
	var b = {}, i, id, src,
		fns = '[[' + mw.config.get('wgFormattedNamespaces')[6] + ':';
	for (i = 0; i < sL.length; i++) { 
		id = sL[i][1];
		src = cUrl + sL[i][0] +'/'+ s + id + '.svg/22px-'+ s + id + '.svg.png';
		b[id] = {
			label : sL[i][2],
			type : 'button',
			icon : src,
			action : {
				type : 'encapsulate',
				options : {
					pre : fns + s + id +'.svg|20px|'+ sL[i][2] +']]'
				}
			}
		};
	}
	sMList[g] = {
		label : g,
		tools : b
	};
}
mw.libs.wikiEditorEmoticons = function () { // make to toolbar
	$('#wpTextbox1').wikiEditor('addToToolbar', {
		'sections' : { 
			'emoticons' : {
				'type' : 'toolbar',
				//'deferLoad': true,
				'groups' : sMList
			}
		}
	});
	$('.tab-emoticons a').append($('<img>') // made section button (hack)
		.attr({
			src : cUrl+'5/59/Cute_Ball_-_Games.png/22px-Cute_Ball_-_Games.png',
			width : 22,
			height : 22,
			title : 'Emoticons',
			rel : s,
			role : 'button',
			'class' : 'tool tool-button'
		}));
	if ($(document).width() < 1100) // made bar wider (hack)
		mw.util.addCSS( ".section-emoticons .label {display:none}"+
			".section-emoticons {width:900px;margin-left:-5px}"+ 
			"#content {margin-left:140px; margin-right:-54px; padding: 9px}"+
			"#mw-panel {margin-left:-22px}" );
};

/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar… */
$(function () {
	if ( (ns % 2 === 1 || $.inArray(ns, [2, 4]) !== -1) && mw.config.get('wgPageContentModel') === "wikitext") 
		mw.loader.using(['mediawiki.util', 'user.options'], function () { 
			if ( mw.toolbar && (mw.user.options.get('usebetatoolbar') || /^(load|ready)/.test(mw.loader.getState('ext.wikiEditor')) ))
				$.when(mw.loader.using(['ext.wikiEditor']), $.ready).then( mw.libs.wikiEditorEmoticons );
			//else console.log('You have not enabled the enhanced toolbar (WikiEditor) to show the Emoticons bar!');
		});
	mw.hook('ext.lqt.textareaCreated').add( mw.libs.wikiEditorEmoticons ); // LiquidThreads deprecated
	
});
})(jQuery, mediaWiki);