C# Class WikiFunctions.Namespace

Contains constants for canonical namespace numbers
Afficher le fichier Open project: reedy/AutoWikiBrowser

Méthodes publiques

Свойство Type Description
Image int
ImageTalk int
Mainspace int

Méthodes publiques

Méthode Description
Determine ( string articleTitle ) : int

Deduces the namespace number from the input article title.

IsImportant ( int key ) : bool

Tests title to make sure it is either main, image, category or template namespace.

IsImportant ( string articleTitle ) : bool

Tests title to make sure it is either main, image, category or template namespace.

IsMainSpace ( int ns ) : bool

Tests title to make sure it is main space

IsMainSpace ( string articleTitle ) : bool

Tests title to make sure it is main space

IsSpecial ( int ns ) : bool

Returns true if the given namespace is non-editable, i.e. Special or Media

IsTalk ( int key ) : bool

Tests title to make sure it is a talk page (article talk, user talk etc.).

IsTalk ( string articleTitle ) : bool

Tests title to make sure it is a talk page.

IsUserPage ( string articleTitle ) : bool

IsUserSpace ( string articleTitle ) : bool

returns true if current page is a userpage

IsUserTalk ( string articleTitle ) : bool

Normalize ( string ns, int nsId ) : string

Normalizes a namespace string, but does not changes it to default namespace name

VerifyNamespaces ( string>.Dictionary namespaces ) : bool

Checks if given namespaces are sufficient for AWB to function properly and that their format is expected.

Private Methods

Méthode Description
Namespace ( ) : System

Method Details

Determine() public static méthode

Deduces the namespace number from the input article title.
public static Determine ( string articleTitle ) : int
articleTitle string
Résultat int

IsImportant() public static méthode

Tests title to make sure it is either main, image, category or template namespace.
public static IsImportant ( int key ) : bool
key int Namespace key
Résultat bool

IsImportant() public static méthode

Tests title to make sure it is either main, image, category or template namespace.
public static IsImportant ( string articleTitle ) : bool
articleTitle string The title.
Résultat bool

IsMainSpace() public static méthode

Tests title to make sure it is main space
public static IsMainSpace ( int ns ) : bool
ns int
Résultat bool

IsMainSpace() public static méthode

Tests title to make sure it is main space
public static IsMainSpace ( string articleTitle ) : bool
articleTitle string The title.
Résultat bool

IsSpecial() public static méthode

Returns true if the given namespace is non-editable, i.e. Special or Media
public static IsSpecial ( int ns ) : bool
ns int
Résultat bool

IsTalk() public static méthode

Tests title to make sure it is a talk page (article talk, user talk etc.).
public static IsTalk ( int key ) : bool
key int The namespace key
Résultat bool

IsTalk() public static méthode

Tests title to make sure it is a talk page.
public static IsTalk ( string articleTitle ) : bool
articleTitle string The title.
Résultat bool

IsUserPage() public static méthode

public static IsUserPage ( string articleTitle ) : bool
articleTitle string Title of the article
Résultat bool

IsUserSpace() public static méthode

returns true if current page is a userpage
public static IsUserSpace ( string articleTitle ) : bool
articleTitle string
Résultat bool

IsUserTalk() public static méthode

public static IsUserTalk ( string articleTitle ) : bool
articleTitle string Title of the article
Résultat bool

Normalize() public static méthode

Normalizes a namespace string, but does not changes it to default namespace name
public static Normalize ( string ns, int nsId ) : string
ns string
nsId int
Résultat string

VerifyNamespaces() public static méthode

Checks if given namespaces are sufficient for AWB to function properly and that their format is expected.
public static VerifyNamespaces ( string>.Dictionary namespaces ) : bool
namespaces string>.Dictionary namespaces to verify
Résultat bool

Property Details

Image public_oe static_oe property

public static int Image
Résultat int

ImageTalk public_oe static_oe property

public static int ImageTalk
Résultat int

Mainspace public_oe static_oe property

public static int Mainspace
Résultat int