跳转到内容

用户:Doc Taxon/vector.js

okcih Wikipedia

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
//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;
   }
} );