Help talk:Magic words

BASEPAGENAME and SUBPAGENAME do not output properly
I am running an installation of Mediawiki 1.11.0, and I cannot get  to output the appropriate page name. If the page is called "title/foo", it is supposed to output "title", but instead I get "title/foo". Same output with. Would appreciate some help... --Wikitonic 18:37, 14 November 2007 (UTC)
 * Set $wgNamespacesWithSubpages to true for the namespaces where you want to use these templates. (It's better to ask these questions on Project:Support desk.) i Alex  08:17, 15 November 2007 (UTC)
 * Thanks! I'll try to post in a better place next time. --Wikitonic 16:22, 15 November 2007 (UTC)

User's User Name?
will link to your profile: Subfader But how about a code that returns your user name as plain text so i can use it for codes and links? --Subfader 11:05, 28 March 2008 (UTC)


 * I know that Uncyclopedia uses  in their article on You, but I think that one might be a custom magic word for them only. -- Lightsup55  ( T | C ) 07:30, 26 January 2009 (UTC)

Section name
Is there any variable (or extension that enables it) which returns the current section name? Would be useful for manually inserting edit links. 193.62.111.10 09:47, 3 April 2008 (UTC)
 * I second this. Access to the current section name/number would be very helpful on occasion. ⇔ ChristTrekker 20:06, 4 September 2008 (UTC)


 * MediaWiki's bug-tracking database already has an old request for a section number variable. See 1605. --Zigger 16:42, 10 November 2008 (UTC)

Sync?
I have added a few that seemed to have been missed, like filepath and pagesize, but when about to add #special, I saw that #language and #tag aren't listed here, but are on m:Help:Magic_words. Should I add them? They are ptechnically parser functions, but so are many of the one listed here already. The definition of parser function vs variable is a bit hazy, so separating them isn't terribly easy. Here are all the (as of r33875) defined core parser functions:

Should all of these either all be included, or all moved to Help:Parser functions? Splarka 23:10, 24 April 2008 (UTC)


 * I think including them on this page would be better, so it's easier to reference or look something up. Maybe add a "Parser function" section? — Pathoschild 08:37:53, 15 May 2008 (UTC)

shows a wrong number
Hi,

I use  in the main page of my site. at the moment in the name space I have about 20 articles but just says ten.

I have:
 * 1)  MediaWiki: 1.11.0
 * 2) PHP: 5.2.4 (cgi)

how could that be fixed?

thanks,

--DonGiulio 20:48, 1 May 2008 (UTC)

START
The magic word __START__ does not appear in the list $mDoubleUnderscoreIDs defined in MagicWord.php. John Vandenberg 02:58, 30 July 2008 (UTC)


 * Start and End are obsolete. --G.Hagedorn 08:27, 10 March 2009 (UTC)

something to obtain image dimensions?
There's a variable or something to get the "dimensions" of a file in the "Image" description pages?

(I want to put this info in a property using SemanticMediaWiki; I see the info is there but I don't know how to obtain it)

Thanks in advance.

Dvdgmz.--Dvdgmz 11:09, 3 September 2008 (UTC)

__NEWSECTIONLINK__ or alternative in 1.6.10?
is there any alternative to __NEWSECTIONLINK__ or in 1.6.10?

PAGESINCATEGORY doesn't work on my site.
I cannot seem to get the PAGESINCATEGORY magic word to work. My wiki treats it like its a Template.

Is there a setting that needs to be set somewhere to make it work? My Wiki Version is 1.13.1

I note that it works here: =

Magic word requests

 * User's User Name
 * Section name
 * image dimensions
 * page_id
 * Random GUID (Globally Unique ID) string

I would like to have page_id TechControl 21:00, 28 October 2008 (UTC)

Create Date ?
Hi, is there a way to display the date a page was created? I only found the REVISIONDAY - REVISIONTIMESTAMP, etc ... But i need the CREATEDATE. Can anyone help with a workaround? thanks in advance best regards --TurboKanne 08:56, 21 November 2008 (UTC)

How can I figure out the name space of a contribution
Hello, I'd like to know how to figure out that e.g. "Template:Unreferenced" is actually located in the name space template, the same for all other name spaces (files, categories, helps, etc.). I couldn't find any magic word like that. Would it be possible to create one (something like     resulting in "Template")? Does anybody know any other way to find it out?, regards, --Poco a poco 18:08, 22 February 2009 (UTC)
 * In the latest version of MediaWiki, you can use the   variable also as a parser function:    &rarr; . Happy ‑ melon 22:34, 22 February 2009 (UTC)

PAGESIZE:
Hi! Is there any way that PAGESIZE: displayed the size in a given number of digits? For example, something like   resulted 02,560. If you could answer in my wikipedia spanish talk page, altought i'll try to check this one. Thanks, Gons 23:14, 5 March 2009 (UTC).


 * Replied Splarka 08:30, 6 March 2009 (UTC)

" NOINDEX"
"NOINDEX" does not work with Google.68.4.177.125 21:06, 7 March 2009 (UTC)

Revision Date issues
We have both and. Any reason there is no, which would allow to create standard international ISO dates (2009-01-01)? Also, would be useful in a template we try to construct. --G.Hagedorn 08:30, 10 March 2009 (UTC)
 * was added in Special:Code/MediaWiki/48149 (3 days ago) and has not made it past code review yet. Splarka 07:03, 11 March 2009 (UTC)
 * Cool - that is a nice coincidence! --G.Hagedorn 21:31, 13 March 2009 (UTC)

Q/ doesn't work on my wiki. You'v got any idea ?
 * A/ Needs MW 1.14++.

Finding associated talk page
Is there a way, given a page name as parameter, to obtain the page name of the associated talk page? For example:

Happiness      -->  Talk:Happiness File:Happiness -->  File talk:Happiness

While I can get the talk page namespace with  , I don't see how to get the page within that namespace. For an example for which this is desirable, consider en:Template:nothanks-sd, which gets pre-filled from en:Template:db-filecopyvio as, for example,  File:Foo.JPG, so as to blithely produce defective links such as. --Lambiam 12:44, 23 March 2009 (UTC)

To answer my own question: en:Template:talk does the job. --Lambiam 13:18, 23 March 2009 (UTC)