C# Класс WikiFunctions.Namespace

Contains constants for canonical namespace numbers
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Image int
ImageTalk int
Mainspace int

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Namespace ( ) : System

Описание методов

Determine() публичный статический Метод

Deduces the namespace number from the input article title.
public static Determine ( string articleTitle ) : int
articleTitle string
Результат int

IsImportant() публичный статический Метод

Tests title to make sure it is either main, image, category or template namespace.
public static IsImportant ( int key ) : bool
key int Namespace key
Результат bool

IsImportant() публичный статический Метод

Tests title to make sure it is either main, image, category or template namespace.
public static IsImportant ( string articleTitle ) : bool
articleTitle string The title.
Результат bool

IsMainSpace() публичный статический Метод

Tests title to make sure it is main space
public static IsMainSpace ( int ns ) : bool
ns int
Результат bool

IsMainSpace() публичный статический Метод

Tests title to make sure it is main space
public static IsMainSpace ( string articleTitle ) : bool
articleTitle string The title.
Результат bool

IsSpecial() публичный статический Метод

Returns true if the given namespace is non-editable, i.e. Special or Media
public static IsSpecial ( int ns ) : bool
ns int
Результат bool

IsTalk() публичный статический Метод

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
Результат bool

IsTalk() публичный статический Метод

Tests title to make sure it is a talk page.
public static IsTalk ( string articleTitle ) : bool
articleTitle string The title.
Результат bool

IsUserPage() публичный статический Метод

public static IsUserPage ( string articleTitle ) : bool
articleTitle string Title of the article
Результат bool

IsUserSpace() публичный статический Метод

returns true if current page is a userpage
public static IsUserSpace ( string articleTitle ) : bool
articleTitle string
Результат bool

IsUserTalk() публичный статический Метод

public static IsUserTalk ( string articleTitle ) : bool
articleTitle string Title of the article
Результат bool

Normalize() публичный статический Метод

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
Результат string

VerifyNamespaces() публичный статический Метод

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
Результат bool

Описание свойств

Image публичное статическое свойство

public static int Image
Результат int

ImageTalk публичное статическое свойство

public static int ImageTalk
Результат int

Mainspace публичное статическое свойство

public static int Mainspace
Результат int