Tu banner alternativo

Wikipedia:WikiProject User scripts/Scripts/Quick orphan

In this article, we will explore everything related to Wikipedia:WikiProject User scripts/Scripts/Quick orphan. From its origins to its impact on today's society, Wikipedia:WikiProject User scripts/Scripts/Quick orphan has been a topic of interest to many. Throughout history, Wikipedia:WikiProject User scripts/Scripts/Quick orphan has played an important role in different areas, from culture to science. Knowing more about Wikipedia:WikiProject User scripts/Scripts/Quick orphan allows us to better understand its influence on our environment and how it has evolved over time. In addition, we will analyze its relevance today and how it continues to be a topic of debate and discussion in various areas. Read on to find out everything you need to know about Wikipedia:WikiProject User scripts/Scripts/Quick orphan.

Tu banner alternativo
// <pre><nowiki>
// &lt;nowiki&gt;If you are editing a page, click the orphan button on your tab bar to add "{{orphan|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "orphaned article" as the edit summary, mark it as a minor edit, and submit.&lt;/nowiki&gt;

function doQorphan() {
  document.editform.wpTextbox1.value = '{' + '{' + 'orphan|' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked for orphanism';
  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") {
     // wouldn't it make more sense to just check for mw.config.get('wgCanonicalNamespace') != "", or am I missing something?
     return;
  }
  if (document.editform) {
     mw.util.addPortletLink("p-cactions", "javascript:doQorphan()", "orphan", "ca-orphan", "orphaned article", "");
  }
});

// by ]
// </nowiki></pre>