Namespaces are special prefixes used to organize pages within the wiki. They separate content into logical areas such as articles, user pages, templates, and system pages. Each namespace defines how the wiki interprets and displays its pages.
Overview
Every page belongs to a namespace. A namespace is indicated by a prefix followed by a colon (:), for example:
- Main page (no prefix): PageName
- Category page: Category:Creatures
- Template page: Template:Infobox
- User page: User:Example
This helps the wiki manage content types more effectively and prevent name conflicts.
Common Namespaces
Main
- The default namespace.
- Used for regular articles and content pages.
- Pages in this namespace do not have a prefix.
Category
- Used to group related pages together.
- Each category page automatically lists all pages that belong to it.
Template
- Contains reusable blocks of wiki code.
- Can be included in other pages using {{TemplateName}}.
User
- Personal pages for registered users.
- Typically used for notes, drafts, or user profiles.
File
- Used for uploaded files such as images and documents.
- Example: [[File:example.png]]
Special
- Contains automatically generated or system pages.
- Example: Special:RecentChanges
- These pages cannot be edited directly.
Module
- Contains backend logic or scripts written in LGML.
- Used by templates and pages to generate dynamic content.
Linking Between Namespaces
To link to a page in a namespace other than Main, always include the prefix.
Examples:
- [[Template:Infobox]] → Links to a template page.
- [[Module:Items]] → Links to a module page.
- [[User:Admin]] → Links to a user page.
Best Practices
- Use namespaces consistently for clarity and organization.
- Avoid placing unrelated content in system namespaces.
- When creating templates or modules, use descriptive names to avoid collisions.
- Use categories to connect pages across namespaces when appropriate.