Difference between revisions 137474 and 137631 on testwiki

/// PerfektesChaos/js/WikisyntaxTextMod/?L.js
/// 2012-06-116 [email protected]
/// Fingerprint: #0#0#
/// <nowiki>
// Localization for WikiSyntaxTextMod



if (typeof(mediaWiki) !== "object") {   // disconnected
(contracted; show full)      }
   }
   return  r;
};   // .l10n.proj.dewiki.comment()




WSTM.l10n.proj.dewiki.valEqualsign  =  function (arglist) {
   // Handler for template with '=' heading value
   // Precondition:
   //    arglist  -- String: template name
   // Postcondition:
   //    Returns false, if not known
   //            true   permit '=' heading value
   // 2012-06-16 [email protected]
   var r  =  false;
   switch (arglist) {
      case "Schachbrett" :
      case "schachbrett" :
         r  =  true;
         break;
   }   // switch arglist
   return  r;
};   // .l10n.proj.dewiki.valEqualsign()



WSTM.l10n.proj.dewiki.template.fresh  =  function (arglist) {
   // Prüfe und berichtige ggf. Vorlagen in deutschsprachiger Wikipedia
   // Precondition:
   //    arglist  -- [0] template name
   //                [1] node number of template start
   //                [2] node number of template end
   //                [3] WikiTom sequence
   // Postcondition:
(contracted; show full)               [/^GNDCheck$/i,  "GNDCheck",  false],     //  8
               [/^GKD$/i,       "GKD",       false],     //  9
               [/^PND$/i,       "PND",       false],     // 10
               [/^SWD$/i,       "SWD",       false],     // 11
               [/^EST$/i,       "EST",       false] ];   // 12
   var p;
   var v;

//mw.log(WSTM.debugging,".l10n.proj.dewiki.normdaten.format()>>",0,adjust);
   WSTM.w.template.mod.trim(adjust);
   WSTM.w.template.mod.flush(adjust, d);
   WSTM.w.template.par.fix(t, adjust);
   p  =  WSTM.w.template.par.find(adjust, "PND");
   if (p) {
      v  =  WSTM.w.template.par.find(adjust, "GND");
      if (v) {
         if (v.value.toString()) {
            v  =  false;
         } else {
            v.value  =  p.value;
         }
      } else {
         v  =  WSTM.w.template.par.fiat(adjust, "GND", p.value);
      }
      if (v) {
         WSTM.w.template.par.fiat(adjust, "TYP", "p");
         WSTM.w.template.mod.flush(adjust,  [ [/^PND$/, true] ]);
      }
   }
   WSTM.w.template.par.fixed(t, adjust);
   WSTM.w.template.mod.furnish( adjust,
                                { indent:    0,
                                  later:     false,
                                  leap:      false,
                                  leave:     false,
                                  linebreak: false,
                                  lineup:    false
                                } );
   if (adjust.learnt) {
      WSTM.w.template.mod.format(adjust);
   }
mw.log(WSTM.debugging,".normdaten.format()   .mod.format",0,adjust);
   WSTM.w.encountered.normdaten  =  true;
};   // .l10n.proj.dewiki.template.normdaten.format()



WSTM.l10n.proj.dewiki.template.personendaten  =  { };


(contracted; show full)   //    .l10n.de_INIT()                     de     *
   //    wikisyntax_de_polish()              de     polish
   //    .l10n.lang.de.finishing()           de     finishing
   //    .l10n.dewiki_fragmentAnker()        dewiki fragment
   //    wikisyntax_dewiki_Vorlage()         dewiki template
   //    .l10n.proj.dewiki.template.fresh()  dewiki template
   //    .l10n.dewiki_wikilink_lower1()      dewiki wikilink-lower1
   // 2012-0
5-316-16 [email protected]
   var r  =  false;
   var x;
   switch (action) {
      case "*" :
         this.first();
         break;
      case "booksources" :
         r  =  this.booksources(arglist);
         break;anchor" :
      case "comment" :
      case "commentvalEqualsign" :
         x  =  WSTM.l10n.proj[  WSTM.g.wDBname  ];
         if (typeof(x) === "object") {
            x  =  x.comment[ action ];
            if (typeof(x) === "function") {
               r  =  x(arglist);
            }
         }
         break;
      case "booksources" :
         r  =  this.booksources(arglist);
         break;
      case "commonscat" :
         r  =  this.commonscat(arglist);
         break;
      case "defaultsort.strict" :
         r  =  this.defaultsort_strict();
         break;
      case "displaytitle.localize" :
         r  =  this.displaytitle_localize();
         break;
      case "finishing" :
         x  =  WSTM.l10n.lang[  WSTM.g.projLang  ];
         if (typeof(x) === "object") {
            x  =  x.finishing[ action ];
            if (typeof(x) === "function") {
               r  =  x(arglist);
            }
         }
         break;
      case "headline-spacing" :
         r  =  this.headline_spacing();
(contracted; show full)// Emacs
// Local Variables:
// coding: utf-8-unix
// encoding: utf-8-unix
// fill-column: 80
// End:

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