v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Msg/doc"
Jump to navigation
Jump to search
(correct fallback explanation) |
m (reword) |
||
Line 8: | Line 8: | ||
gives: {{msg|example}} | gives: {{msg|example}} | ||
− | + | The message above should appear in {{#language:{{INTERFACELANGUAGE}}}}, which is your current interface language setting. The following links can be used to change your language temporarily: | |
* [{{fullurl:Template:Msg|uselang=en}} English], located at {{tl|msg/example/en}} | * [{{fullurl:Template:Msg|uselang=en}} English], located at {{tl|msg/example/en}} | ||
* [{{fullurl:Template:Msg|uselang=es}} Spanish], located at {{tl|msg/example/es}} | * [{{fullurl:Template:Msg|uselang=es}} Spanish], located at {{tl|msg/example/es}} | ||
* [{{fullurl:Template:Msg|uselang=da}} Danish], located at {{tl|msg/example/da}} (this will fall back to English unless [[Mediawiki:Language-code/da]] exists) | * [{{fullurl:Template:Msg|uselang=da}} Danish], located at {{tl|msg/example/da}} (this will fall back to English unless [[Mediawiki:Language-code/da]] exists) | ||
Note that this template relies ''heavily'' on [[Mediawiki:Language-code]] - if this is not defined for a certain language, all messages for that language will fall back to English. | Note that this template relies ''heavily'' on [[Mediawiki:Language-code]] - if this is not defined for a certain language, all messages for that language will fall back to English. |
Revision as of 23:41, 26 September 2013
Alternative to using {{int:}} for translations (which requires admin rights to edit messages).
Usage
Messages should go in a subpage of Template:Msg:
Template:Msg/message name/language code
For example:
{{msg|example}}
gives: This is an example message.
The message above should appear in English, which is your current interface language setting. The following links can be used to change your language temporarily:
- English, located at {{msg/example/en}}
- Spanish, located at {{msg/example/es}}
- Danish, located at {{msg/example/da}} (this will fall back to English unless Mediawiki:Language-code/da exists)
Note that this template relies heavily on Mediawiki:Language-code - if this is not defined for a certain language, all messages for that language will fall back to English.