Mazmuna geçiň

Ulanyjy:Doc Taxon/vector.js

Wikipediýa, erkin ensiklopediýa

Bellik: Ýazdyranyňyzdan soň, üýtgeşmeleri görmek üçin brauzeriňiziň keşini arassalaň: Mozilla / Firefox / Safari: Shift-e basyp, Reload-a tyklaň ýa-da ýa Ctrl-F5-e ýa-da Ctrl-R-a basyň (Mac üçin Command-R); Konqueror: Reload-a tyklaň ýa-da F5-e basyň; Opera: Gurallar → Ileri tutmalardan keşi arassalaň; Internet Explorer: Ctrl-a basyp, Refresh-i tyklaň ýa-da Ctrl-F5-e basyň.

//interwiki

if ( typeof mw.libs.DocTaxon  !==  "object" ) {
   mw.libs.DocTaxon  =  { };
}

mw.libs.DocTaxon.nsn  =  mw.config.get( "wgNamespaceNumber" );
mw.libs.DocTaxon.furnish  =  function () {
   var nsn     =  mw.libs.DocTaxon.nsn,
       pgName  =  mw.config.get( "wgPageName" ),
       server  =  mw.config.get( "wgServer" ),
       title   =  mw.config.get( "wgTitle" ).replace( /\/.*$/, "" );
   if ( nsn >= 0 ) {
      mw.util.addPortletLink( "p-personal",
                              server + "/w/index.php?title="
                              + "Special:Export&pages=" + pgName
                              + "&dir=desc&limit=5&wpDownload&history=1",
                              "Export" );
   }
};

mw.hook( "wikipage.content" ).add( function() {
   if ( typeof mw.libs.DocTaxon.loaded  !==  "boolean" ) {
               mw.libs.DocTaxon.furnish();
               mw.libs.DocTaxon.loaded  =  true;
   }
} );