Difference between revisions 137843 and 137929 on testwiki/// PerfektesChaos/js/WikisyntaxTextMod/?W.js /// 2012-06-18 [email protected] /// Fingerprint: #0#0# /// <nowiki> // WikiSyntaxTextMod: Wiki syntax specific code /* jshint curly:true, latedef:true, laxbreak:true, trailing:true, undef:true, white:false */ /* global mw: true, mediaWiki: false */ (contracted; show full) } // while \n } } // for k }; // .w.elem.gallery() WSTM.w.elem.imagemaps = function () { // Adapt all <imagemap>...</imagemap> blocks // Precondition: // At least one imagemap block has been detected before. // Postcondition: // Nodes are modified where suitable. // RegExp was used. // Uses: // > .text // > .children // > .mode // > .scope // > .WikiTom.TagBinary // >< .l10n.word.file // .o.WikiTom().getCount() // .l10n.word.fetch() // .w.elem.imagemap() // 2012-06-20 [email protected] }; // .w.elem.imagemaps()⏎ ⏎ ⏎ ⏎ WSTM.w.elem.redirect = function (all) { // Standardize #REDIRECT statement // Precondition: // all -- WikiTom to be analyzed and standardized (root) // Postcondition: // Modifies text, if appropriate // RegExp was used. // Uses: // .WikiTom().fetch() (contracted; show full) codeInline: "code|dfn|kbd|poem|samp", comment: "hiddentext", direct: "bdi|br|ref|hiddentext" + "|ruby|rb|rbc|rp|rt|rtc", enclose: "b|big|blockquote|center|i|em" + "|s|span|strong|u", marker: "gallery " // + "|imagemap" + "|includeonly|onlyinclude" + "|references", parNone: "hiddentext" + "|imagemap|includeonly|inputbox" + "|noinclude|nowiki|onlyinclude" + "|rb|rbc|rp|rt|rtc|ruby" + "|timeline", (contracted; show full) seek = "|" + s + "|"; if (this.suitable.indexOf(seek) >= 0) { r = { leader: (typeof(got[3]) === "string"), move: got[1].length, scan: seek, scope: s, source: adjust }; mw.log(WSTM.debugging,".w.tags.fold() r.leader 1"+r.leader,1);⏎ r = this.fetch(r); if (! r) { r = { move: got.move }; } } } } return r; (contracted; show full) linebreak: true, lineup: false } params Array format {{{*}}} style style-object particular values [ [name, regexp, replace|false], ] hook function(WikiTom.values)⏎ */ } } } } // for i } return r; }; // .w.template.mod.factory() (contracted; show full) adjust.values.splice(j, 1); adjust.values.splice(i, 0, p); r = true; p = false; break; // for j } } // for j if (p && l) { p = new WSTM.o.WikiTom("", adjust); p.symbol = s; adjust.values.splice(i, 0, { symbol: s, value: p }); (contracted; show full) // Emacs // Local Variables: // encoding: iso-8859-1-dos // fill-column: 80 // End: /// EOF </nowiki> WikiSyntaxTextMod/?W.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=137929.
![]() ![]() 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.
|