Help talk:Magic words

__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: =

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

TOC - hide contents
is there a possibility to hide the content at starting up the page? i saw that it is made with a nice little java script.

Page name of transcluded page
Is there a way to automatically display the name of a page that has been transcluded into another page? If I use the or  magic words, I get the name of the page into which it has been transcluded. For example, if Example/subpage is transcluded into Example, they will show "Example", but what I want to display is "Example/subpage", so I can see what subpage is being used. Can this be done without hardcoding the name? RL0919 22:19, 23 February 2010 (UTC)
 * No; you'll need to hardcode the name into the subtemplate to get it to stay static. Happy ‑ melon 23:39, 23 February 2010 (UTC)
 * This JS code has been proposed as a gadget for that. JackPotte 21:57, 24 February 2010 (UTC)

Page name: keeping only the main title of the sub-page name
Hello. Is it possible to discard one part between brackets from a sub-page name, keeping only the main title? Example: keeping only “Foo” from “Title/Foo (bar)” Thanks. 200.163.4.66 14:59, 2 March 2010 (UTC)
 * Not really; you could hack something up with ParserFunctions and/or StringFunctions. Happy ‑ melon 23:12, 2 March 2010 (UTC)
 * OK

tagname
Can this page link to some explanation of what "tagname" means in the #tag: function? Better yet, a specific example? Wnt 09:44, 4 March 2010 (UTC)

PAGENAME for pages with underscore
The tz database contains identifiers containing an underscore. Templates, e.g. store data to make it accessible via includes.
 * en:Template:tz/country code
 * en:Template:tz/comments
 * en:Template:tz/coordinates

Works fine at But not at
 * http://en.wikipedia.org/wiki/Asia/Omsk
 * http://en.wikipedia.org/wiki/America/Santa_Isabel

Any magic word that can deliver the name with underscores, as in the URL?

TimeCurrency 00:33, 13 March 2010 (UTC)
 * Check the functions listed under Help:Magic words. Hamilton Abreu 01:32, 13 March 2010 (UTC)


 * I see nothing that would output "America/Santa_Isabel". I also tried whether would return its value - it does not. TimeCurrency 14:50, 13 March 2010 (UTC)


 * Misunderstood the question. Appending "E" to the magic word name should achieve the desired result:
 *   &rarr;
 *   &rarr;
 *   &rarr;
 *   &rarr;
 * Sorry about that. Hamilton Abreu 15:46, 13 March 2010 (UTC)

Great news, thank you. Also thank you for giving the list here. In fact I was thinking about PAGENAMEE, but Help:Magic_words says "URL-encoded" values, which is incorrect, details at en:URL encoding. But I don't with which words to correct this. TimeCurrency 02:39, 14 March 2010 (UTC)

NUMBEROFACTIVEUSERS
Hi - can anyone tell me how NUMBEROFACTIVEUSERS (= ) is defined? And can it be adjusted in e.g. LocalSettings? --Robinson Weijman 08:51, 15 March 2010 (UTC)
 * From what can be gathered in Release notes/1.15, it "is like NUMBEROFUSERS, but uses the active users data from site_stats." Special:Statistics indicates that it is registered users who have performed an action in the last 30 days. Hamilton Abreu 13:50, 15 March 2010 (UTC)


 * Aha, thanks Hamilton - very useful. --Robinson Weijman 12:53, 16 March 2010 (UTC)

can someone get #tag to work with the include tags?
I know #tag is supposed to work for extension XML tags, but can someone add support for, , , and  ? Thanks. Manishearth 02:21, 20 March 2010 (UTC)
 * . noinclude etc aren't handled the same way as other XML tags. Happy ‑ melon 18:41, 20 March 2010 (UTC)