Difference between revisions 40373 and 40374 on zhwikivoyage//<nowiki> (function($){ /* * vim: set noet sts=0 sw=8: (contracted; show full) default: words = ""; break; } words += params.typename; newtag += "请求" + Morebits.string.toUpperCaseFirstChar(words) + ( params.reason !== '' ? ":" + Morebits.string.formatReasonText(params.reason) : "。" ) + "--~~~~"; var reg; if ( params.category === 'unprotect' ) { reg = /(==\s*请求解除保护\s*==\n)/; } else { reg = /(\/header2}}\n)/; } var originalTextLength = text.length; text = text.replace( reg, "$1" + newtag + "\n"); if (text.length === originalTextLength) { var linknode = document.createElement('a'); linknode.setAttribute("href", mw.util.wikiGetlink("Wikipedia:Twinkle/修复RFPP") ); linknode.appendChild(document.createTextNode('如何修复RFPP')); statusElement.error( [ '无法在WP:RFPP上找到相关位点标记,要修复此问题,请参见', linknode, '。' ] ); return; } statusElement.status( '添加新提名…' ); rppPage.setEditSummary( '请求对[[' + mw.config.get('wgPageName').replace(/_/g, ' ')Morebits.pageNameNorm + ']]' + params.typename + Twinkle.getPref('summaryAd') ); rppPage.setPageText( text ); rppPage.setCreateOption( 'recreate' ); rppPage.save(); } }; })(jQuery); //</nowiki> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://zh.wikivoyage.org/w/index.php?diff=prev&oldid=40374.
![]() ![]() 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.
|