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.

Username
Is there any magic word which would username of return currently logged user?

Or his IP adress? --88.102.135.201 15:21, 18 May 2010 (UTC)
 * Check answer to Help_talk:Extension:ParserFunctions Hamilton Abreu 15:56, 18 May 2010 (UTC)


 * Well, that exactly what I didn't wanted. That writes name of who made last edit on such page, which is almost like signature. I need username of user who is just reading that page. --88.102.135.201 17:25, 18 May 2010 (UTC)
 * ...like for example for welcoming user by his name right on Main Page --88.102.135.201 17:48, 18 May 2010 (UTC)
 * I was looking for a MediaWiki-function like this, but I was told that there is none. But hey, if you find it - please tell me. :-) May be there is an extension which provides the username of the visiting user. I didn't check this, because installing an extension is no option at the wiki I was working on. -- Oculus Spectatoris  disputioe-mail 23:32, 18 May 2010 (UTC)

I think I found PHP variable, which contains username, however I wasn't able to create own Magic Word (not even normal static text). If you help me, I might be able to advance it into Magic Word containing username.. --88.102.135.201 00:12, 19 May 2010 (UTC)
 * So, using manual didn't helped me. However, I was able to tweak Extension:UserInfo and add this into it. However, it seems like these custom variables gets parsed and stored, as neither original variables or my experimantal one doesn't seem to react to logining as different user, change of browser... --88.102.135.201 01:23, 19 May 2010 (UTC)
 * Moreover, there is Extension:WhatIsMyIP, which is not installed on this Wiki. JackPotte 04:59, 19 May 2010 (UTC)
 * That might work, again I made it to show username. However, I cannot include special pages in other articles, including Main_Page, which means it doesn't really help. --88.102.135.201 09:15, 19 May 2010 (UTC)

I guess I know, why it didn't worked. PHP variable from which my experiments are fetching username is probably processed after parsing of document, which means it might not be ok...--88.102.135.201 10:43, 19 May 2010 (UTC)
 * This might be of no help either, but  Special:MyPage  &rarr; Special:MyPage takes you to the user's own user page. If you can figure out how that's done, therein might lie the answer. Hamilton Abreu 11:25, 19 May 2010 (UTC)
 * Most promising would be that Extension:WhatIsMyIP, I already managed to make it display current username correctly. However, if I try to treat that Special page as template and include it on normal page, it doesnt work. Only page I was able to include was Special:AllPages
 * Thats probably closest solution so far, I only need to include it. --88.102.135.201 11:54, 19 May 2010 (UTC)
 * Almost solved. class WhatIsMyIP extends SpecialPage { needed to be extended into class WhatIsMyIP extends IncludableSpecialPage {, now it almost works, username is correct, only thing I need is to get rid of line-breaks. --88.102.135.201 12:21, 19 May 2010 (UTC)

Okay, it seems like it still needs some work: There is a problem with OutputPage.php.

I can sort of include it on page, but if I want something more like IF or use it as part of link or such things, its doesn't work... :-( --88.102.135.201 13:56, 19 May 2010 (UTC)