Editing
Help:Magic words
(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!
===Page names=== {| class="wikitable" |- ! {{Hl2}}| Variable ! {{Hl2}}| Output ! {{Hl2}}| Description ! {{Hl2}}| Versions |- | <code><nowiki>{{FULLPAGENAME}}</nowiki></code> | {{FULLPAGENAME}} | Namespace and page title. | 1.6+ |- | <code><nowiki>{{PAGENAME}}</nowiki></code> | {{PAGENAME}} | Page title. | |- | <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | {{BASEPAGENAME}} | Page title excluding the current [[Help:Subpages|subpage]] and namespace ("Title/foo" on "Title/foo/bar"). For more complex splitting, use <code><nowiki>{{</nowiki>[[Help:Extension:ParserFunctions#.23titleparts|#titleparts:]]<nowiki>}}</nowiki></code> from [[Help:Extension:ParserFunctions|ParserFunctions extension]]. | 1.7+ |- | <code><nowiki>{{SUBPAGENAME}}</nowiki></code> | {{SUBPAGENAME}} | The [[Help:Subpages|subpage]] title ("foo" on "Title/foo"). | 1.6+ |- | <code><nowiki>{{SUBJECTPAGENAME}}</nowiki></code> <br/><code><nowiki>{{ARTICLEPAGENAME}}</nowiki></code> | {{SUBJECTPAGENAME}}<br/>{{ARTICLEPAGENAME}} | The namespace and title of the associated subject page. | 1.7+ |- | <code><nowiki>{{TALKPAGENAME}}</nowiki></code> | {{TALKPAGENAME}} | The namespace and title of the associated talk page. | 1.7+ |} The <code><nowiki>{{BASEPAGENAME}}</nowiki></code> and <code><nowiki>{{SUBPAGENAME}}</nowiki></code> magic words only work in namespaces that have subpages enabled. See {{mediawiki|Manual:$wgNamespacesWithSubpages}} for information on enabling subpages. As of {{mediawiki|rev:46662|1.15+}}, these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page: * <code><nowiki>{{PAGENAME:Template:Main Page}}</nowiki></code> → '''{{PAGENAME:Template:Main Page}}''' {{Warning|Page titles containing certain characters, such as single quotes (') or asterisks <code>*</code>, may produce unexpected results when handled with these magic words, e.g. <code><nowiki>{{PAGESINCATEGORY:{{PAGENAME}}}}</nowiki></code>. See bugsย {{mediawiki|bugzilla:14779|14779}}, {{mediawiki|bugzilla:16474|16474}} and {{mediawiki|bugzilla:35628|35628}}.}} For example, if page name is "L'Aquila", the following code will produce the string "Numeric char encoding": <pre><nowiki>{{#switch:{{PAGENAME}} | L'Aquila = No translation | L = not ok | L&apos;Aquila = Entity escaping | L&#39;Aquila = Numeric char encoding }}</nowiki></pre> ==== URL encoded page names ==== The following are equivalents encoded for use in MediaWiki URLs (i.e. spaces replaced with underscores and some characters [[wikipedia:Numeric character reference|HTML escaped using numeric character encoding]]): * <code><nowiki>{{FULLPAGENAMEE}}</nowiki> * <nowiki>{{PAGENAMEE}}</nowiki> * <nowiki>{{BASEPAGENAMEE}}</nowiki> * <nowiki>{{SUBPAGENAMEE}}</nowiki> * <nowiki>{{SUBJECTPAGENAMEE}}</nowiki> * <nowiki>{{ARTICLEPAGENAMEE}}</nowiki> * <nowiki>{{TALKPAGENAMEE}}</nowiki></code> Note that <code><nowiki>{{PAGENAME}}</nowiki></code>, <code><nowiki>{{PAGENAMEE}}</nowiki></code> and <code><nowiki>{{urlencode:}}</nowiki></code> have distinct implementations. See [[Manual:PAGENAMEE encoding]] for details.
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