Help:MediaWiki namespace: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
Line 51:
 
===Transclusion===
[[WP:TRANS|Transclusion]] of MediaWiki messages can make sense, as noted below historically these messages also covered the function of templates.
*{{evaldemo|MediaWiki:Edit|=}}, see {{tim|Ed}}.
*{{evaldemo|int:Edit|=}}, [[Help:colon function|colon function]] '''int:''' is a shorthand for '''MediaWiki:'''.
*{{evaldemo|int:Example|=}}, but only as far as the message exists.
*{{evaldemo|MediaWiki:Example|=}} doesn't exist.
 
The difference between {{tlc|MediaWiki:}} and {{tlc|int:}} is that {{tlc|MediaWiki:}} transcludes using the default language of the Wiki (i.e. English), whereas {{tlc|int:}} transcludes using the language set by the user's preferences. For example, if your user language is not set to English, the following two lines will differ:
*{{MediaWiki:articlepage}}
*{{int:articlepage}}
 
However many messages are not suited for transclusion, because they contain '''$1''' and similar parameters not evaluated by the
template parser, or raw [[w:Cascading Style Sheets|CSS]] and [[w:en:XHTML|XHTML]] markup not permitted on normal pages.
 
==== With parameters ====
MediaWiki messages may have parameters as '''$1''', '''$2''', ... and they are variables used in the software. When transcluding it with custom changed parameters, {{tlc|int:}} transclusions would be preferred.
 
===Interlanguage links===
[[Help:Interwiki linking|Interlanguage link]]s in MediaWiki messages typically won't work as expected. Adding <kbd>&lt;noinclude&gt;</kbd> isn't good enough, because something has to evaluate it, as it's the case for messages [[#Inclusion|included]] like ordinary templates, but not {{clarifyme}} for messages used internally as system messages.