_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:Writ Keeper/Scripts/backlinkWarner.js

In today's world, User:Writ Keeper/Scripts/backlinkWarner.js is a topic of great relevance and interest to a wide audience. Whether due to its impact on society, its influence on popular culture or its importance in the professional field, User:Writ Keeper/Scripts/backlinkWarner.js has become a point of convergence for different perspectives and discussions. In this article, we will delve into the exciting world of User:Writ Keeper/Scripts/backlinkWarner.js, exploring its multiple facets, analyzing its relevance in different contexts and offering a panoramic view that allows the reader to understand the importance and scope of this topic. Through detailed and rigorous analysis, we will unravel the complexities of User:Writ Keeper/Scripts/backlinkWarner.js and offer new perspectives to enrich the debate around this fascinating topic.
$(document).ready(function()
{
	if(mw.config.get("wgAction") == "delete")
	{
		var backlinkWarning = $(".mw-warning.plainlinks");
		if(backlinkWarning.length > 0)
		{
			backlinkWarning.append("<ul id='backlinkWarnings'></ul>");
			var data = {action:"query",list:"backlinks",format:"json",bltitle:mw.config.get("wgPageName"),blnamespace:"0",blfilterredir:"nonredirects",bllimit:"1"};
			$.post("/w/api.php",data, function(response)
			{
				if(response.query.backlinks.length > 0)
				{
					$("#backlinkWarnings").append("<li style='color:red;'>There are pages in mainspace that link to this article.</li>");
				}
			});
			var data = {action:"query",list:"backlinks",format:"json",bltitle:mw.config.get("wgPageName"),blfilterredir:"redirects",bllimit:"1"};
			$.post("/w/api.php",data, function(response)
			{
				if(response.query.backlinks.length > 0)
				{
					$("#backlinkWarnings").append("<li style='color:red;'>There are pages that redirect to this article.</li>");
				}
			});
			var data = {action:"query",list:"embeddedin",format:"json",eititle:mw.config.get("wgPageName"),eilimit:"2"};
			$.post("/w/api.php",data, function(response)
			{
				if(response.query.embeddedin.length > 1 || (response.query.embeddedin.length == 1 && response.query.embeddedin.title.replace(/ /g,"_") != mw.config.get("wgPageName")))
				{
					$("#backlinkWarnings").append("<li style='color:red;'>There are pages that transclude this page.</li>");					
				}
			});
		}
	}
});