Editing
Help:Namespaces
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Identifying namespaces== There are a number of ways by which the namespace of a particular page can be identified: ;Magic words The [[Help:Magic word|magic word]] <tt><nowiki>{{NAMESPACE}}</nowiki></tt> returns the value of the namespace the page is in. ;JavaScript The JavaScript variable <tt>wgCanonicalNamespace</tt> contains the full namespace name. The variable <tt>wgNamespaceNumber</tt> contains the numerical index of the namespace. ;CSS The <tt><nowiki><body></nowiki></tt> tag of the HTML page output is given two CSS classes that vary by namespace: A class <tt>ns-#</tt>, where # is the index of the namespace, and <tt>ns-XXX</tt>, where XXX is "<tt>subject</tt>" for all {{mediawiki|Manual:Namespace#Subject and talk namespaces|subject namespaces}}, "<tt>special</tt>" for pages in the {{ns:-1}} namespace, and "<tt>talk</tt>" for {{mediawiki|Manual:Namespace#Subject and talk namespaces|talk namespaces}}. So CSS code such as the following can be used to change the appearance of an object based on its namespace: <source lang=css> .ns-subject a { /* Almost all links on subject pages to be green. */ color: #00FF00; } .ns-talk a { /* Links on talk pages to be blue. */ color: #0000FF; } .ns-3 a { /* and links on user talk pages to be red */ color: #FF0000; } </source> ;API You can get a complete list of all the namespaces used on this wiki from the API: :http://www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces
Summary:
Please note that all contributions to Fanra's EverQuest Wiki are considered to be released under the Creative Commons Attribution Share Alike (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Help page
Discussion
English
Views
Read
Edit source
View history
More
Search
Main Menu
Main page
Sections
Classes and Races
Spells, Songs, Disciplines, and AAs
Items
Zones
NPCs
Quests
Raids
Tradeskills
User Interface
Tips and Guides
EQ Links
Wiki
Recent changes
Advanced search
Random page
Help
Contact Fanra
Tools
What links here
Related changes
Upload file
Special pages
Page information