Help talk:Magic words

From MediaWiki.org

Jump to: navigation, search

Contents

[edit] BASEPAGENAME and SUBPAGENAME do not output properly

I am running an installation of Mediawiki 1.11.0, and I cannot get {{BASEPAGENAME}} 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 {{SUBPAGENAME}}. 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.) iAlex 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)

[edit] 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)

[edit] 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)

[edit] 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:

int ns urlencode lcfirst ucfirst lc uc localurl localurle fullurl fullurle formatnum grammar plural numberofpages numberofusers numberofarticles numberoffiles numberofadmins numberofedits language padleft padright anchorencode special defaultsort filepath pagesincategory pagesize tag

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)

[edit] {{NUMBEROFARTICLES}} shows a wrong number

Hi,

I use {{NUMBEROFARTICLES}} in the main page of my site. at the moment in the name space I have about 20 articles but {{NUMBEROFARTICLES}} 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)

[edit] START

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

Personal tools