Jump to content

Help talk:Magic words

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Krinkle (talk | contribs) at 01:36, 3 June 2012 (→‎anchorencode?). It may differ significantly from the current version.

Latest comment: 12 years ago by Krinkle in topic anchorencode?

Archives of this page


Please add new topics to the bottom of this page

{{MediaWiki:}} and {{int:}}

Just as clarification, {{MediaWiki:..}} and {{int:..}} are not the same.

{{MediaWiki:..}} is not a magic word function. It is just a regular template transclusion from the MediaWiki-namespace (just like one could embed User:Krinkle/Tools with {{User:Krinkle/Tools}}.

{{int:..}} on the other hand is in fact a magic word function that returns the translated message value for the passed key, in the language of the logged-in user. For example {{int:nstab-main}} returns "Content page" (the title of the "namespace tab" of the main namespace).

These messages are part of the MediaWiki software, they are not stored in the MediaWiki namespace. Only messages that are overridden or created for this wiki specifically (created, for example: MediaWiki:Common.js. Overridden for example: MediaWiki:Blockedtext (original) are stored on-wiki in that namespace. Another big difference is the translation. {{int:nstab-main}} returns "Content page" for English users but returns "Seite" for German users. –Krinkletalk 12:30, 16 March 2012 (UTC)Reply

anchorencode?

Searching for "anchorencode" redirects me to this help page, but there isn't any information about anchorencode. So, what does it do?? Please, if you answer, also notify me on my Wikipedia talk page since I'm not so often here. —Kri 22:03, 2 June 2012 (UTC)Reply

This has been merged to the MediaWiki software documentation at mw:Help:Magic_words#Parser functions (see notice on top of the help page). –Krinkletalk 01:36, 3 June 2012 (UTC)Reply