Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Wikipedia:WikiProject User scripts/Scripts/POV tool

From Wikipedia, the free encyclopedia
// <pre><nowiki>
// <nowiki>If you are editing a page, click the unref button on your tab bar to add "{{Unreferenced|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.</nowiki>
 
function doQpovtag() {
  document.editform.wpTextbox1.value = '{' + '{' + 'POV|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Added POV tag.';
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
 
$.when($.ready, mw.loader.using('mediawiki.util')).then(function () {
  if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {
     return;
  }
  if (document.editform) {
     mw.util.addPortletLink("p-cactions", "javascript:doQpovtag()", "POV", "ca-povtag", "Add POV tag to this article", "");
  }
});
 
// by [[User:Jj137|jj137]]
//