MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
MuwuM (Diskussion | Beiträge) |
MuwuM (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
var button={"imageFile":"images/5/50/Kampfkraft.jpg","speedTip":"Stärke","tagOpen":"{{ST}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/1/1a/Konstitution.jpg","speedTip":"Konstitution","tagOpen":"{{KO}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/6/60/Gewandtheit.jpg","speedTip":"Gewandtheit","tagOpen":"{{GE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/c/cb/Fingerfertigkeit.jpg","speedTip":"Fingerfertigkeit","tagOpen":"{{FF}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/4f/Wahrnehmung.jpg","speedTip":"Wahrnehmung","tagOpen":"{{WA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/5/5b/Charisma.jpg","speedTip":"Charisma","tagOpen":"{{CH}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/9/9d/Intelligenz.jpg","speedTip":"Intelligenz","tagOpen":"{{IN}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/2/2c/Heilkunst.jpg","speedTip":"Heilkunst","tagOpen":"{{HE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/3/35/%C3%9Cberlebenskunst.jpg","speedTip":"Naturkunde ","tagOpen":"{{NA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/44/Zauberkraft.jpg","speedTip":"Zauberkraft","tagOpen":"{{ZA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);/*var button={"imageFile":"images/thumb/1/10/Gold.png/22px-Gold.png","speedTip":"Goldmünzen","tagOpen":"{{GOLD}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/6/62/Silber.png/22px-Silber.png","speedTip":"Silbermünzen","tagOpen":"{{SILBER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/f/f2/Bronze.png/22px-Bronze.png","speedTip":"Kupfermünzen","tagOpen":"{{KUPFER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/1/15/Calendar.png/20px-Calendar.png","speedTip":"Ereigniss","tagOpen":"{{EreignissMarker|","tagClose":"|0}}","sampleText":"Beschreibung"};mwCustomEditButtons.push(button);*/ | var button={"imageFile":"images/5/50/Kampfkraft.jpg","speedTip":"Stärke","tagOpen":"{{ST}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/1/1a/Konstitution.jpg","speedTip":"Konstitution","tagOpen":"{{KO}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/6/60/Gewandtheit.jpg","speedTip":"Gewandtheit","tagOpen":"{{GE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/c/cb/Fingerfertigkeit.jpg","speedTip":"Fingerfertigkeit","tagOpen":"{{FF}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/4f/Wahrnehmung.jpg","speedTip":"Wahrnehmung","tagOpen":"{{WA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/5/5b/Charisma.jpg","speedTip":"Charisma","tagOpen":"{{CH}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/9/9d/Intelligenz.jpg","speedTip":"Intelligenz","tagOpen":"{{IN}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/2/2c/Heilkunst.jpg","speedTip":"Heilkunst","tagOpen":"{{HE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/3/35/%C3%9Cberlebenskunst.jpg","speedTip":"Naturkunde ","tagOpen":"{{NA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/44/Zauberkraft.jpg","speedTip":"Zauberkraft","tagOpen":"{{ZA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);/*var button={"imageFile":"images/thumb/1/10/Gold.png/22px-Gold.png","speedTip":"Goldmünzen","tagOpen":"{{GOLD}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/6/62/Silber.png/22px-Silber.png","speedTip":"Silbermünzen","tagOpen":"{{SILBER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/f/f2/Bronze.png/22px-Bronze.png","speedTip":"Kupfermünzen","tagOpen":"{{KUPFER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/1/15/Calendar.png/20px-Calendar.png","speedTip":"Ereigniss","tagOpen":"{{EreignissMarker|","tagClose":"|0}}","sampleText":"Beschreibung"};mwCustomEditButtons.push(button);*/ | ||
$("body").html($("body").html().replace(/(\+|\-)?\s?(bis\s?)?(\+|\-)?\s?(\d+)\s?(a\.\s?Z\.|EZ)/ | $("body").html($("body").html().replace(/(\+|\-)?\s?(bis\s?)?(\+|\-)?\s?(\d+)\s?(a\.\s?Z\.|EZ)/igm,'<div class="ffwYear" style="color:#006600;font-weight:bold;"><span style="color:#660000;">$1$2 $3</span></div>')); | ||
$(".ffwYear").append($('<button>a.Z. <> EZ</button>').hide().click(function(){$(this).parent().children('span').toggle();})).mouseenter(function() {$(this).children('span').toggle();$(this).children('button').show();}).mouseleave(function() {$(this).children('span').toggle();$(this).children('button').hide();}); | $(".ffwYear").append($('<button>a.Z. <> EZ</button>').hide().click(function(){$(this).parent().children('span').toggle();})).mouseenter(function() {$(this).children('span').toggle();$(this).children('button').show();}).mouseleave(function() {$(this).children('span').toggle();$(this).children('button').hide();}); |
Version vom 6. August 2013, 13:26 Uhr
var button={"imageFile":"images/5/50/Kampfkraft.jpg","speedTip":"Stärke","tagOpen":"{{ST}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/1/1a/Konstitution.jpg","speedTip":"Konstitution","tagOpen":"{{KO}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/6/60/Gewandtheit.jpg","speedTip":"Gewandtheit","tagOpen":"{{GE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/c/cb/Fingerfertigkeit.jpg","speedTip":"Fingerfertigkeit","tagOpen":"{{FF}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/4f/Wahrnehmung.jpg","speedTip":"Wahrnehmung","tagOpen":"{{WA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/5/5b/Charisma.jpg","speedTip":"Charisma","tagOpen":"{{CH}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/9/9d/Intelligenz.jpg","speedTip":"Intelligenz","tagOpen":"{{IN}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/2/2c/Heilkunst.jpg","speedTip":"Heilkunst","tagOpen":"{{HE}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/3/35/%C3%9Cberlebenskunst.jpg","speedTip":"Naturkunde ","tagOpen":"{{NA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/4/44/Zauberkraft.jpg","speedTip":"Zauberkraft","tagOpen":"{{ZA}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);/*var button={"imageFile":"images/thumb/1/10/Gold.png/22px-Gold.png","speedTip":"Goldmünzen","tagOpen":"{{GOLD}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/6/62/Silber.png/22px-Silber.png","speedTip":"Silbermünzen","tagOpen":"{{SILBER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/f/f2/Bronze.png/22px-Bronze.png","speedTip":"Kupfermünzen","tagOpen":"{{KUPFER}}","tagClose":"","sampleText":""};mwCustomEditButtons.push(button);var button={"imageFile":"images/thumb/1/15/Calendar.png/20px-Calendar.png","speedTip":"Ereigniss","tagOpen":"{{EreignissMarker|","tagClose":"|0}}","sampleText":"Beschreibung"};mwCustomEditButtons.push(button);*/ $("body").html($("body").html().replace(/(\+|\-)?\s?(bis\s?)?(\+|\-)?\s?(\d+)\s?(a\.\s?Z\.|EZ)/igm,'<div class="ffwYear" style="color:#006600;font-weight:bold;"><span style="color:#660000;">$1$2 $3</span></div>')); $(".ffwYear").append($('<button>a.Z. <> EZ</button>').hide().click(function(){$(this).parent().children('span').toggle();})).mouseenter(function() {$(this).children('span').toggle();$(this).children('button').show();}).mouseleave(function() {$(this).children('span').toggle();$(this).children('button').hide();});