Difference between revisions 40412 and 40413 on zhwikivoyage//<nowiki> (function($){ /* * vim: set noet sts=0 sw=8: (contracted; show full) Morebits.quickForm.overrideElementLabel(e.target.form.article, "被“咬到”的用户(不含User:) "); } else { Morebits.quickForm.setElementTooltipVisibility(e.target.form.article, true); Morebits.quickForm.resetElementLabel(e.target.form.article); } // add big red notice, warning users about how to use {{uw-[coi-]username}} appropriately $("#tw-warn-red-notice").remove(); ⏎ ⏎ var $redWarning; if (value === "uw-username") { var $redWarning = $("<div style='color: red;' id='tw-warn-red-notice'>{{uw-username}}<b>不应</b>被用于<b>明显</b>违反用户名方针的用户。" + "明显的违反方针应被报告给UAA。" + "{{uw-username}}应只被用在边界情况下需要与用户讨论时。</div>"); $redWarning.insertAfter(Morebits.quickForm.getElementLabelObject(e.target.form.reasonGroup)); };⏎ }; Twinkle.warn.callbacks = { getWarningWikitext: function(templateName, article, reason) { var text = "{{subst:" + templateName; if (article) { // add linked article for user warnings (non-block templates) (contracted; show full) wikipedia_page.setCallbackParameters( params ); wikipedia_page.setFollowRedirect( true ); wikipedia_page.load( Twinkle.warn.callbacks.main ); }; })(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=40413.
![]() ![]() 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.
|