Template:Help:Heading and title translation: Unterschied zwischen den Versionen

Aus Ashes of Creation Wiki
Zur Navigation springen Zur Suche springen
(Add image)
Zeile 1: Zeile 1:
 
Article titles and headings within articles are treated like [[mw:Help:System_message|localized messages]].
 
Article titles and headings within articles are treated like [[mw:Help:System_message|localized messages]].
 +
 +
* Please avoid using forward slashes in titles. For example: Use '''Day and night cycle''' rather than '''Day/night cycle'''.
  
 
=== Heading translation ===
 
=== Heading translation ===

Version vom 5. August 2020, 02:13 Uhr

Article titles and headings within articles are treated like localized messages.

  • Please avoid using forward slashes in titles. For example: Use Day and night cycle rather than Day/night cycle.

Heading translation

Clicking on a heading in the page editor will popup a link to the translation for that heading in the MediaWiki: namespace for the currently selected language.

Each heading within an article is checked to see if a message exists in the MediaWiki: namespace corresponding to the current language code. If the translation exists it will be automatically substituted for the heading text.

Example

MediaWiki:Services/de

Dienstleistungen

This translates the == Services == heading in the Fréttinga article (and all other articles where that heading text appears) into German.

translation guide 6.png

This method works for all heading levels.

Article title translation

Each article's title is checked to see if a message exists in the MediaWiki: namespace corresponding to the current language code. If the translation exists it will be automatically substituted for the title text.

Note: This is only applicable to articles. This is not required for Templates, as they never display their page titles.

Example

MediaWiki:Fréttinga services/de

Fréttinga dienstleistungen

This translates the page title of Fréttinga dienstleistungen for German readers without requiring any redirects.

translation guide 5.png

Link translation

Each link is checked to see if a message exists in the MediaWiki: namespace corresponding to the current language code. If the translation exists it will be automatically substituted for the link text.

Example

== See also ==

* [[Seasons]]
* [[Exploration]]
* [[Underrealm]]
* [[Underwater]]

If MediaWiki:Exploration/de is not defined but all other translations are, then the output of the above in the German language will be as follows:

translation links.png