AutoWikiBrowser.Plugins.Kingbotk.PluginBase.GetRedirects C# (CSharp) Method

GetRedirects() protected static method

Load the redirects for a template from Wikipedia
protected static GetRedirects ( string target ) : List
target string Template name
return List
        protected static List<WikiFunctions.Article> GetRedirects(string target)
        {
            string message = "Loading redirects for Template:" + target;

            PluginManager.StatusText.Text = message;
            Application.DoEvents();
            // the statusbar text wasn't updating without this; if happens elsewhere may need to write a small subroutine

            try
            {
                return Rlp.MakeList(Namespace.Template, new[] {Variables.Namespaces[Namespace.Template] + target});
            }
            finally
            {
                PluginManager.DefaultStatusText();
            }
        }