Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Namespace/doc: Difference between revisions

Template page
m Reverted edits by Scottmeltzer (talk) to last revision by The Evil IP address
Note on localization: Category:Internationalization templates
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
This works similar to the [[m:Help:Magic words|magic word]] {{Tlf|NAMESPACE}}, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.
This works similar to the [[m:Help:Magic words|magic word]] {{Tlf|NAMESPACE}}, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.


This table compares the magic word to this template showing what each would display if in those namespaces.
This table compares the magic word to this template showing what each would display if in those namespaces.
Line 27: Line 26:
'''See also:''' {{tl|namespaces}} - for when a plural form is needed.
'''See also:''' {{tl|namespaces}} - for when a plural form is needed.


==Note on localization==
== Note on localization ==
As templates like these are used directly within translations themselves, it would not make sense to have this autotranslate (the messages they are used in should be). Thus, when creating localized versions, you may use any names that are appropriate in your language (but please link them or categorize them with this template to help translators find them).  In some languages, it may be appropriate to create additional/alternative forms of these functional templates. For example, {{tl|namespace/fi}}, {{tl|namespacepar/fi}}, and {{tl|namespacepluralgen/fi}} instead of the two in English.
As templates like these are used directly within translations themselves, it would not make sense to have this autotranslate (the messages they are used in should be). Thus, when creating localized versions, you may use any names that are appropriate in your language (but please link them or categorize them with this template to help translators find them).  In some languages, it may be appropriate to create additional/alternative forms of these functional templates. For example, {{tl|namespace/fi}}, {{tl|namespacepar/fi}}, and {{tl|namespacepluralgen/fi}} instead of the two in English.
[[Category:Internationalization templates]]

Revision as of 14:12, 5 March 2015

This works similar to the magic word {{NAMESPACE}}, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.

This table compares the magic word to this template showing what each would display if in those namespaces.

Location {{NAMESPACE}} {{namespace}}
Main space (nothing) gallery
Commons: pages Neodyland Wiki project page
File: pages File media file
User: pages User user page
Categories Category category
Templates Template template
System messages MediaWiki system message
Any talk page Talk, User talk, Neodyland Wiki talk, File talk... talk page

All other pages are rendered as "page".

See also: {{Namespaces}} - for when a plural form is needed.

Note on localization

As templates like these are used directly within translations themselves, it would not make sense to have this autotranslate (the messages they are used in should be). Thus, when creating localized versions, you may use any names that are appropriate in your language (but please link them or categorize them with this template to help translators find them). In some languages, it may be appropriate to create additional/alternative forms of these functional templates. For example, {{Namespace/fi}}, {{Namespacepar/fi}}, and {{Namespacepluralgen/fi}} instead of the two in English.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.