Jump to content

Help talk:Magic words/Archives/2008

From Meta, a Wikimedia project coordination wiki
Latest comment: 15 years ago by Hillgentleman in topic {{subst:REVISIONID}}

NUMBEROFARTICLES for articles with prefix

In incubator: need count number of articles with subproject prefix. For example exist test Karakalpak Wikipedia. All articles in Karakalpak language has prefix Wp/kaa. For some reson need count articles with that prefix. It affect for other languagee tests. Format for new feature is prefered as {{NUMBEROFARTICLES:prefix_for_article}} and for raw output {{NUMBEROFARTICLESR:prefix_for_article}}. For example for Wp/kaa: {{NUMBEROFARTICLES:Wp/kaa}} and {{NUMBEROFARTICLESR:Wp/kaa}}.--AlefZet 20:54, 24 January 2008 (UTC)

Can DEFAULTSORT be a space?

When using DEFAULTSORT, can it just be a space? - LA @ 19:23, 29 January 2008 (UTC)

Apparently not, although it can be a character like "*" if you want it to be sorted at the top of the category. —{admin} Pathoschild 20:56:19, 29 January 2008 (UTC)
Belated thanks for looking into it for me. - LA @ 15:04, 28 February 2008 (UTC)

Is the Russian plural option really so odd?

"Plural" is a site-language-dependent switch function, ... for some languages overridden in Languagexx.php, e.g. for ... Russian (oddly, first option is 1, 21, 31,.., 91, 101, 121, .., second is 2, 3, 4, 22, 23, 24, 31, 32, 33, 41,.., 94, 102, 103, 104,.., 122, 123,.., and else the third).

In Russian, some words are used with three different forms. I remember for example money: 1 = od'in rubel, 2 = dwa rublya, 3 = try rublya, 4 = chetyre rublya, 5 = pyat' rubley, etc. That's the reason for this "odd" behaviour. This webpage explains (on the right) the same phenomenon when you give somebody's age. I think that "31" and "41" should belong to the first list, not to the second; can somebody check that? -- dnjansen [Sorry, can't login here]

FYI: w:en:template talk:DIRMARK

Halló This is about « aliases » : w:en:template talk:DIRMARK. Best regards
‫·‏לערי ריינהארט‏·‏Th‏·‏T‏·‏email me‏·‏‬ 06:05, 16 February 2008 (UTC)

That page (now deleted) says that {{DIRMARK}} is an alias defined in MessagesEN.php; would it then not work on non-English wikis? —{admin} Pathoschild 14:45:22, 05 March 2008 (UTC)

magic word step by step

mmm hi i would like to use magic words but it's so confusing (the page :S)... my native language is spanish and there are so many words on english that i don't understand :( so, by that reason i have to ask to this comunity if you can help me with this step by step of using and configuring magic words on the wiki that i been helping: http://wiki.gorebiobio.cl

the magic word wish i want to use are the following:

 {{CURRENTDAYNAME}}
 {{CURRENTDAY}}
 {{CURRENTMONTHNAME}}
 {{CURRENTYEAR}}

my user page is this: Elpct82 i hope you can help me with this stuff

Magic words are enabled by default; simply copy and paste those into a page on your wiki, and they will work. —{admin} Pathoschild 14:37:37, 05 March 2008 (UTC)

WP:Magic disambig

Would it be possible to have a note at the top of the page mentioning about how WP:MAGIC redirects here and you may be looking for Wikipedia:WikiProject Magic? This is in the same way that WP:NOTE mentions about citations, footnotes and what wikipedia isn't. It is a plausible redirect I believe, as the other day I couldn't remember the page name so typed WP:MAGIC in search and ended up here instead. Thanks! 195.33.114.129 09:29, 22 May 2008 (UTC)

It seems to me that the page is updated manually at w:en:Help:Magic words, so couldn't you just add such a note there? It wouldn't be appropriate here. --Erwin(85) 12:38, 22 May 2008 (UTC)

Tradução

Alguém pode traduzir para o Português? HyperBroad 23:27, 30 May 2008 (UTC)

Is there a magic word or variable for username?

I'd like to make a page more friendly by using the name of a registered user (or default to "guest" for a user who has not registered.)

I've searched for something like {{USERNAME}} but can't find anything that will return the user's name. If somebody has a solution then please advise. Najevi 23:38, 13 June 2008 (UTC)

This is not supported on Wikimedia or in the parserfunctions used on Wikimedia as it would: a) either break caching or be horribly broken by caching (in similar ways to the way that the time functions are, but those are at least consistent when broken), and b) be useless for the vast majority of page views by anonymous users. See bugzilla:4196 for more information.
Some ways in which this might be instituted may be things like subst-only (which would make it similar to three tildes), or a javascript replace after page load (which is safe for caching but would be useless for parserfunctions). If you are requesting for a wiki offsite from Wikimedia you could request installation of something like mw:Extension:Variables. Splarka 07:41, 14 June 2008 (UTC)

Tildes not magic?

So, ~~~, ~~~~ and ~~~~~ are not considered magic words? Is that because they get replaced when the page is saved? If so, what's the official name for them (I mean, if they're not called "magic words")? - dcljr 07:37, 16 June 2008 (UTC)

Translation for the Portuguese

It would be good if any PT user translate the page for the Portuguese. HyperBroad 19:18, 20 June 2008 (UTC)

User Timezone offset

The {{REVISIONTIMESTAMP}} returns a value which depends on a user's timezone offset setting. How can I determine what that offset is so I can calculate the elapsed time since a page was last edited? Or is it possible to get the revision time stamp in UTC or server time? Barfbagger 11:45, 16 July 2008 (UTC)

Merge with MediaWiki.org documentation

I've merged the magic word documentation into mw:Help:Magic words, except:

  • {{grammar}}, whose documentation here is unclear;
  • template and image modifiers, which should be on the template and image help pages;
  • some of the more technical information (such as {{grammar}} definition in language files), which belong on mw:Manual:Magic words.

{admin} Pathoschild 03:56:33, 13 August 2008 (UTC)

I disagree. mw:Manual:Magic words does not contain descriptions of particular magic words, so there is no reason why it should explain what {{grammar}} is. --Yecril 11:39, 15 December 2008 (UTC)

DateOfCreation

Hello everybody, I come here to ask something that was asked before but didn't get any answer. Is there an existing magic word for the date of creation of an article? I know the one with the revision date, but is there nothing helping to find out the date an article was created? In the case that it does not exist, doesn't it make sense to create it?, regards, Poco a poco 01:28, 9 September 2008 (UTC)

"Double underscore" magic words

We have variables, parser functions, and "double underscore" magic words. It seems as if these underscored magic words should be assigned a name of some kind, if only to make reference simpler and less awkward. Any suggestions? —Anonymous DissidentTalk 12:16, 11 September 2008 (UTC)

The help page refers to those as "behaviour switches". —Pathoschild 18:40:01, 20 October 2008 (UTC)

is there any alternative for __NEWSECTIONLINK__ in 1.6.10?

Check namespace

I would like to know how to check or get namespace from a given string, not the title of article? --Octahedron80 05:35, 4 November 2008 (UTC)

{{subst:REVISIONID}}

Why doesn't work the command {{subst:REVISIONID}}, similar as ex. {{subst:REVISIONTIMESTAMP}}? I really need the function, have somebody an idea how to replace it to get the same result? --PAD 21:29, 18 December 2008 (UTC)

It doesn't work because the revision ID is not available until the text is finalized and committed, after variable/substitution expansion. See Bugzilla:12694. Splarka 07:59, 19 December 2008 (UTC)
See {{page history}} for an alternative (which actually existed before revisionid was turned on). Hillgentleman 00:44, 24 March 2009 (UTC)