Difference between revisions 138274 and 138277 on testwiki/// PerfektesChaos/js/WikisyntaxTextMod/?O.js // WikisyntaxTextMod: Objects for wiki syntax specific code /// 2012-06-27 [email protected] /// Fingerprint: #0#0# /// <nowiki> /* jshint curly:true, latedef:true, laxbreak:true, trailing:true, undef:true, white:false */ /* global mw: true, mediaWiki: false */ (contracted; show full) story = WSTM.l10n.lang.flop(s); if (! story) { slang = WSTM.str.trimR(s, false).toLowerCase(); if (slang !== s) { learnt = true; } } // matching lang? mw.log(WSTM.debugging,".o.Wikilink.language "+story,0);⏎ if (! slang) { if (this.justify) { switch (this.justify) { case 1 : slang = false; learnt = story; break; case 2 : slang = "en"; learnt = true; break; } // switch this.justify left = true; } } if (slang === WSTM.g.projLang) { slang = false; learnt = true; } if (learnt || slang || story) { // language or similar identified this.score = this.score.substr(ahead + 1); if (story) { this.score = story + ":" + this.score; slang = false; } else { this.score = WSTM.str.trimL(this.score, false); if (left) { this.score = s + ":" + this.score; } } if (slang) { this.slang = slang + ":"; r = true; (contracted; show full) // Emacs // Local Variables: // encoding: iso-8859-1-dos // fill-column: 80 // End: /// EOF </nowiki> WikiSyntaxTextMod/?O.js All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test.wikipedia.org/w/index.php?diff=prev&oldid=138277.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|