C# 클래스 WikiFunctions.Namespace

Contains constants for canonical namespace numbers
파일 보기 프로젝트 열기: reedy/AutoWikiBrowser

공개 프로퍼티들

프로퍼티 타입 설명
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