User:PerfektesChaos/js/paneMarker/dialog/r.js

/// mw:User:PerfektesChaos/js/paneMarker/dialog/r.js /// 2014-09-08 PerfektesChaos@de.wikipedia /// Fingerprint:#0#6387BAFF# /// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA) /// (function(mw){ "use strict"; var PaneMk="paneMarker"; if(typeof mw.libs[PaneMk]!=="object"||!mw.libs[PaneMk]){ mw.libs[PaneMk]={prefs:{}};} PaneMk=mw.libs[PaneMk]; if(!PaneMk.prefs){ PaneMk.prefs={};} PaneMk.prefs.vsn=2.3; PaneMk.prefs.texts={ "suffix":{"en":"&#8211; emphasize browser windows or tabs currently used for input activities","de":"&#8211; Browser-Fenster oder Tabs hervorheben, in denen Bearbeitung offen"},"?icon":{"en":"URL of alternative icon &#8211; regular page iconempty: use red favicon","de":"URL eines alternativen Icons  &#8211; hier kein abweichender Iconleer: Roter Standard-Favicon"},"?mark":{"en":"<ul style='margin-left:3em'>marker string as desired</li> nnnn &#8211; Unicode of specific marker</li>  &#8211; do not prepend any marker</li>empty: use default marker</li></ul>","de":"<ul style='margin-left:3em'>Gewünschter Marker (direkt)</li> nnnn &#8211; Unicode des gewünschten Markers</li>  &#8211; keinen Marker voranstellen</li>leer: Standard-Marker</li></ul>"},"^appleIcon":{"en":"Alternative red apple-touch-icon, or disabled","de":"Alternativer apple-touch-icon, oder deaktiviert"},"^faviconICO":{"en":"Alternative red favicon in .ICO format, or disabled","de":"Alternativer Favicon im .ICO-Format, oder deaktiviert"},"^faviconPNG":{"en":"Alternative red favicon in .PNG format, or disabled","de":"Alternativer Favicon im .PNG-Format, oder deaktiviert"},"^lazy":{"en":"Always keep standard icon","de":"Konventionellen Icon immer beibehalten"},"^chars":{"en":"Distinguishing mark:  general activation/deactivation","de":"Unterscheidungszeichen allgemein aktivieren/deaktivieren"},"^charDiff":{"en":"Marker for diffpages","de":"Marker für diffpages"},"^charHistory":{"en":"Marker for history pages","de":"Marker für Versionsgeschichte"},"^charLinks":{"en":"Marker for “Whatlinkshere”","de":"Marker für Links auf diese Seite"},"^charVitally":{"en":"Marker for important pages","de":"Marker für wichtige Seiten-Aktivitäten"},"^lowChar":{"en":"Use ANSI characters","de":"ANSI-Zeichen benutzen"},"^favicon":{"en":"Alternative default favicon for this project","de":"Alternativer Favicon für dieses Projekt"},"^leave":{"en":"Create window titles as short as possible","de":"(Benutze kurzen Seitentitel)"},"^shortcut":{"en":"Use shortcuts on page","de":"Benutze Shortcuts auf der Seite"} }; PaneMk.prefs.userlang={ "de":"de","als":"de","bar":"de","dsb":"de","frr":"de","gsw":"de","hsb":"de","ksh":"de","lb":"de","nds":"de","pdc":"de","pdt":"de","pfl":"de","sli":"de","stq":"de","vmf":"de" }; PaneMk.prefs.favorite=function{ var r=mw.config.get("wgUserLanguage").toLowerCase; if(r.length>4){ if(r.charCodeAt(2)===45){ r=r.substr(0,2);}} r=this.userlang[r]; r=(r?r:"en"); switch(r){ case "de": this.support=r+".wikipedia.org"; break; default: this.support="www.mediawiki.org";} this.support="//"+this.support+"/wiki/"; return r; }; PaneMk.prefs.furnish=function{ var dialog,slang=this.favorite; this.fetch; dialog={script:PaneMk.type,support:this.support,suffix:this.texts.suffix[slang],opts:[{signature:"appleIcon",type:"text",show:this.texts["^appleIcon"][slang],suffix:this.texts["?icon"][slang],val:this.fiat("appleIcon")},{signature:"faviconICO",type:"text",show:this.texts["^faviconICO"][slang],suffix:this.texts["?icon"][slang],val:this.fiat("faviconICO") },{signature:"faviconPNG",type:"text",show:this.texts["^faviconPNG"][slang],suffix:this.texts["?icon"][slang],val:this.fiat("faviconPNG")},{signature:"lazy",type:"checkbox",show:this.texts["^lazy"][slang],val:(PaneMk.lazy?true:false)},{signature:"chars",type:"checkbox",show:this.texts["^chars"][slang],val:(PaneMk.chars?true:false)},{signature:"charDiff",type:"text",show:this.texts["^charDiff"][slang],suffix:this.texts["?mark"][slang],val:this.fiat("charDiff") },{signature:"charHistory",type:"text",show:this.texts["^charHistory"][slang],suffix:this.texts["?mark"][slang],val:this.fiat("charHistory")},{signature:"charLinks",type:"text",show:this.texts["^charLinks"][slang],suffix:this.texts["?mark"][slang],val:this.fiat("charLinks") },{signature:"charVitally",type:"text",show:this.texts["^charVitally"][slang],suffix:this.texts["?mark"][slang],val:this.fiat("charVitally")},{signature:"lowChar",type:"checkbox",show:this.texts["^lowChar"][slang],val:(PaneMk.lowChar?true:false)},{signature:"favicon",type:"text",show:this.texts["^favicon"][slang],val:this.fiat("favicon") },{signature:"leave",type:"checkbox",show:this.texts["^leave"][slang],val:(PaneMk.leave?true:false),},{signature:"shortcut",type:"checkbox",show:this.texts["^shortcut"][slang],val:(PaneMk.shortcut===false?false:true)} ]}; mw.libs[this.supply].form(dialog); }; if(mw.config.get("wgCanonicalSpecialPageName")==="Gadgets"){ PaneMk.prefs.furnish;} }(window.mediaWiki)); /// EOF paneMarker/dialog/r.js