Difference between revisions 139867 and 139985 on testwiki

/// PerfektesChaos/js/WikisyntaxTextMod/?X.js
/// 2012-067-278 [email protected]
/// Fingerprint: #0#0#
/// <nowiki>
/* jshint curly:true, latedef:true, laxbreak:true,
           trailing:true, undef:true, white:false  */
/* global jQuery: true, mw: true, mediaWiki: false, window: false      */
/*jslint   plusplus: true, regexp: true, sloppy: true, unparam: true,
           vars: true, white: true, maxerr: 50 */
/*globals  jQuery: true, mw: true, mediaWiki: false, window: false     */



if (typeof(mediaWiki) !== "object") {   // disconnected
   mw      =  { libs: { },
                log:  function () {}
              };
   jQuery  =  {};
}
if (typeof(mw.libs.WikiSyntaxTextMod) !== "object") {   // isolated
   mw.libs.WikiSyntaxTextMod  =  { debugging: false };
}
if (typeof(mw.libs.WikiSyntaxTextMod.X) !== "object") {
   mw.libs.WikiSyntaxTextMod.X  =  { };
}
mw.libs.WikiSyntaxTextMod.X.vsn  =  -5.011;
if (typeof(mw.libs.WikiSyntaxTextMod.bb) !== "object") {
   mw.libs.WikiSyntaxTextMod.bb  =  { };
}
if (typeof(mw.libs.WikiSyntaxTextMod.main) !== "object") {
   mw.libs.WikiSyntaxTextMod.main  =  { };
}

(contracted; show full)


mw.libs.WikiSyntaxTextMod.bb.X  =  function (jQuery, mw, WSTM) {



   
if (WSTM.config) {
      if (! WSTM.config.mod) {
         WSTM.config.mod  =  { };
      }
      if (typeof(WSTM.config.mod.template) !== "object") {
         WSTM.config.mod.template  =  [
            { detect: { title: "^[Ii]nfobox Autobahn$" },
              rename: { title: [true, "Infobox hochrangige Straße"]var VorlageBBKL  =  [false,      "1",       false],
                       [/autor/i,   "autor",   true],
                       [/artikel/i, "artikel", true],
                       [/band/i,    "band",    true],
                       [/spalten/i, "spalten", false],
                       [/spalte/i,  "spalte",  false] ];
   if (WSTM.config) {
      if (! WSTM.config.mod) {
         WSTM.config.mod  =  { };
      }
      if (typeof(WSTM.config.mod.template) !== "object") {
         WSTM.config.mod.template  =  [
            { detect: { title: "^[Ii]nfobox Autobahn$" },
              rename: { title: [true, "Infobox hochrangige Straße"] }
            },
            { detect: { title: "[Bb]BKL" },
              rename: { title:  [true, "BBKL"],
                        params: VorlageBBKL },
              order:  VorlageBBKL,
              style:  { linebreak: false,
                        leap:      false,
                        leave:     false,
                        later:     false,
                        lastline:  false }
            }
                                      ];
      }
   }



// Start on import: callback to waiting ...
   if (typeof(WSTM.main.wait) === "function") {
      WSTM.main.wait("X", WSTM.X.vsn);
   }
};
mw.libs.WikiSyntaxTextMod.bb.X(jQuery, mw, mw.libs.WikiSyntaxTextMod);



// Emacs
// Local Variables:
// encoding: iso-8859-1-dos
// fill-column: 80
// End:

/// EOF </nowiki>   WikiSyntaxTextMod/?X.js