Difference between revisions 40375 and 40376 on zhwikivoyage//<nowiki> // vim: set noet sts=0 sw=8: (function($){ /* (contracted; show full) Twinkle.protect.protectionLevel = null; Twinkle.protect.callback.protectionLevel = function twinkleprotectCallbackProtectionLevel(apiobj) { var xml = apiobj.getXML(); var result = []; $(xml).find('pr , flagged').each(function(index, pr) { var $pr = $(pr); var boldnode = document.createElement('b'); boldnode.textContentotectionEntry) { var $protectionEntry = $(protectionEntry); var type, level, expiry, cascade = false; type = Morebits.string.toUpperCaseFirstChar($protectionEntry.attr('type')) + ": " + $pr.attr('level'); level = $protectionEntry.attr('level'); expiry = $protectionEntry.attr('expiry'); cascade = $protectionEntry.attr('cascade') === ''; var boldnode = document.createElement('b'); boldnode.textContent = type + ": " + level; result.push(boldnode); if ($pr.attr('expiry') === 'infinity') { result.push("(永久)"); } else { result.push("(过期:" + new Date($pr.attr('expiry')).toUTCString() + ")"); } if ($pr.attr('cascade') === ''cascade) { result.push("(联锁)"); } }); var boldnode;⏎ ⏎ if (!result.length) { var boldnode = document.createElement('b'); boldnode.textContent = "未被保护"; result.push(boldnode); } Twinkle.protect.protectionLevel = result; apiobj.statelem.info(result); window.setTimeout(function() { Morebits.wiki.actionCompleted.postfix = "完成"; }, 500); // restore actionCompleted message }; (contracted; show full) 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=40376.
![]() ![]() 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.
|