C# Class AutoWikiBrowser.Plugins.Kingbotk.PluginBase

SDK Software's base class for template-manipulating AWB plugins
Afficher le fichier Open project: reedy/AutoWikiBrowser Class Usage Examples

Protected Properties

Свойство Type Description
LastKnownGoodRedirects string
MainRegex System.Text.RegularExpressions.Regex
OurMenuItem System.Windows.Forms.ToolStripMenuItem
PreferredTemplateNameRegex System.Text.RegularExpressions.Regex
PreferredTemplateNameRegexCreator System.Text.RegularExpressions.Regex
SecondChanceRegex System.Text.RegularExpressions.Regex
Template Templating
TheArticle Article

Private Properties

Свойство Type Description
PluginBase System
PluginBase System
ReadXMLRedirects void
ReqPhoto void
TemplateWritingAndPlacement void
WriteXMLRedirects void
ourmenuitem_CheckedChanged void

Méthodes protégées

Méthode Description
AddAndLogNewParamWithAYesValue ( string paramName ) : void
AddEmptyParam ( string paramName ) : void
AddNewParamWithAYesValue ( string paramName ) : void
BotModeChanged ( bool botMode ) : void
ConvertRedirectsToString ( List redirects ) : string
GetRedirects ( string target ) : List

Load the redirects for a template from Wikipedia

GotNewAlternateNamesString ( string alternateNames, bool senderIsGenericTemplateForm = false ) : void

Called when we have a new Redirects list (at startup, from Wikipedia, or from the user in the case of generic templates)

GotTemplateNotPreferredName ( string templateName ) : void
ImportanceParameter ( Importance importance ) : void
Initialise ( ) : void
InitialiseBase ( ) : void
MatchEvaluator ( Match match ) : string
PluginCheckTemplateName ( string templateName ) : void
PreferredTemplateNameWikiMatchEvaluator ( Match match ) : string
ProcessArticleFinish ( ) : void
ProcessArticleFinishNonStandardMode ( Classification classification, Importance importance, bool forceNeedsInfobox, bool forceNeedsAttention, bool removeAutoStub ) : void
ProcessTalkPage ( Article article, Classification classification, Importance importance, bool forceNeedsInfobox, bool forceNeedsAttention, bool removeAutoStub, ProcessTalkPageMode processTalkPageMode, bool addReqPhotoParm ) : bool
ProcessTalkPage ( Article article, bool addReqPhotoParm ) : bool
ReadXML ( XmlTextReader reader ) : void
Reset ( ) : void
ShowHideOurObjects ( bool visible ) : void
SkipIfContains ( ) : bool
StubClass ( ) : void
TemplateFound ( ) : bool

Send the template to the plugin for preinspection

TemplateNotFound ( ) : void
WriteOutParameterToHeader ( string paramName ) : string
WriteTemplateHeader ( ) : string
WriteXML ( XmlTextWriter writer ) : void

Private Methods

Méthode Description
PluginBase ( bool iamAGenericTemplate ) : System
PluginBase ( string defaultRegexpmiddle ) : System
ReadXMLRedirects ( XmlTextReader reader ) : void
ReqPhoto ( ) : void
TemplateWritingAndPlacement ( ) : void
WriteXMLRedirects ( XmlTextWriter writer ) : void
ourmenuitem_CheckedChanged ( object sender, EventArgs e ) : void

Method Details

AddAndLogNewParamWithAYesValue() protected méthode

protected AddAndLogNewParamWithAYesValue ( string paramName ) : void
paramName string
Résultat void

AddEmptyParam() protected méthode

protected AddEmptyParam ( string paramName ) : void
paramName string
Résultat void

AddNewParamWithAYesValue() protected méthode

protected AddNewParamWithAYesValue ( string paramName ) : void
paramName string
Résultat void

BotModeChanged() protected méthode

protected BotModeChanged ( bool botMode ) : void
botMode bool
Résultat void

ConvertRedirectsToString() protected static méthode

protected static ConvertRedirectsToString ( List redirects ) : string
redirects List
Résultat string

GetRedirects() protected static méthode

Load the redirects for a template from Wikipedia
protected static GetRedirects ( string target ) : List
target string Template name
Résultat List

GotNewAlternateNamesString() protected méthode

Called when we have a new Redirects list (at startup, from Wikipedia, or from the user in the case of generic templates)
protected GotNewAlternateNamesString ( string alternateNames, bool senderIsGenericTemplateForm = false ) : void
alternateNames string
senderIsGenericTemplateForm bool
Résultat void

GotTemplateNotPreferredName() protected méthode

protected GotTemplateNotPreferredName ( string templateName ) : void
templateName string
Résultat void

ImportanceParameter() protected méthode

protected ImportanceParameter ( Importance importance ) : void
importance Importance
Résultat void

Initialise() protected abstract méthode

protected abstract Initialise ( ) : void
Résultat void

InitialiseBase() protected méthode

protected InitialiseBase ( ) : void
Résultat void

MatchEvaluator() protected méthode

protected MatchEvaluator ( Match match ) : string
match Match
Résultat string

PluginCheckTemplateName() protected méthode

protected PluginCheckTemplateName ( string templateName ) : void
templateName string
Résultat void

PreferredTemplateNameWikiMatchEvaluator() protected méthode

protected PreferredTemplateNameWikiMatchEvaluator ( Match match ) : string
match Match
Résultat string

ProcessArticleFinish() protected abstract méthode

protected abstract ProcessArticleFinish ( ) : void
Résultat void

ProcessArticleFinishNonStandardMode() protected méthode

protected ProcessArticleFinishNonStandardMode ( Classification classification, Importance importance, bool forceNeedsInfobox, bool forceNeedsAttention, bool removeAutoStub ) : void
classification Classification
importance Importance
forceNeedsInfobox bool
forceNeedsAttention bool
removeAutoStub bool
Résultat void

ProcessTalkPage() protected méthode

protected ProcessTalkPage ( Article article, Classification classification, Importance importance, bool forceNeedsInfobox, bool forceNeedsAttention, bool removeAutoStub, ProcessTalkPageMode processTalkPageMode, bool addReqPhotoParm ) : bool
article Article
classification Classification
importance Importance
forceNeedsInfobox bool
forceNeedsAttention bool
removeAutoStub bool
processTalkPageMode ProcessTalkPageMode
addReqPhotoParm bool
Résultat bool

ProcessTalkPage() protected méthode

protected ProcessTalkPage ( Article article, bool addReqPhotoParm ) : bool
article Article
addReqPhotoParm bool
Résultat bool

ReadXML() protected abstract méthode

protected abstract ReadXML ( XmlTextReader reader ) : void
reader System.Xml.XmlTextReader
Résultat void

Reset() protected abstract méthode

protected abstract Reset ( ) : void
Résultat void

ShowHideOurObjects() protected abstract méthode

protected abstract ShowHideOurObjects ( bool visible ) : void
visible bool
Résultat void

SkipIfContains() protected abstract méthode

protected abstract SkipIfContains ( ) : bool
Résultat bool

StubClass() protected méthode

protected StubClass ( ) : void
Résultat void

TemplateFound() protected abstract méthode

Send the template to the plugin for preinspection
protected abstract TemplateFound ( ) : bool
Résultat bool

TemplateNotFound() protected méthode

protected TemplateNotFound ( ) : void
Résultat void

WriteOutParameterToHeader() protected méthode

protected WriteOutParameterToHeader ( string paramName ) : string
paramName string
Résultat string

WriteTemplateHeader() protected abstract méthode

protected abstract WriteTemplateHeader ( ) : string
Résultat string

WriteXML() protected abstract méthode

protected abstract WriteXML ( XmlTextWriter writer ) : void
writer System.Xml.XmlTextWriter
Résultat void

Property Details

LastKnownGoodRedirects protected_oe property

protected string LastKnownGoodRedirects
Résultat string

MainRegex protected_oe property

protected Regex,System.Text.RegularExpressions MainRegex
Résultat System.Text.RegularExpressions.Regex

OurMenuItem protected_oe property

protected ToolStripMenuItem,System.Windows.Forms OurMenuItem
Résultat System.Windows.Forms.ToolStripMenuItem

PreferredTemplateNameRegex protected_oe property

protected Regex,System.Text.RegularExpressions PreferredTemplateNameRegex
Résultat System.Text.RegularExpressions.Regex

PreferredTemplateNameRegexCreator protected_oe static_oe property

protected static Regex,System.Text.RegularExpressions PreferredTemplateNameRegexCreator
Résultat System.Text.RegularExpressions.Regex

SecondChanceRegex protected_oe property

protected Regex,System.Text.RegularExpressions SecondChanceRegex
Résultat System.Text.RegularExpressions.Regex

Template protected_oe property

protected Templating,AutoWikiBrowser.Plugins.Kingbotk Template
Résultat Templating

TheArticle protected_oe property

protected Article,AutoWikiBrowser.Plugins.Kingbotk TheArticle
Résultat Article