How to contribute: Difference between revisions
link the wikipedia be bold article |
Add documentation how to correctly translate |
||
Line 128: | Line 128: | ||
[[:Category:Templates|Category:Templates]] | [[:Category:Templates|Category:Templates]] | ||
== Translation == | |||
To translate a page, the page needs a <nowiki>{{LangNavBox}}</nowiki> at the top of the page. Then you can click on the link language you want to create. You translate the page by having two browser windows open comparing them side by side or any other method you can think of. | |||
=== Title === | |||
To translate the title you can go to "Edit source" and add <code><nowiki>{{DISPLAYTITLE:Translated title}}</nowiki></code> to the top of the page replacing "Translated title" with the title you want displayed. | |||
=== Linking === | |||
When the page you link to exists in your page, you should reference it like this: <nowiki>[[English title/language-code|Translated title]]</nowiki>. For example: <nowiki>[[Jump/de|Sprung]]</nowiki> as a link to the jump article in German, with the translated string "Sprung" visible to the user. This allows the LangNavBox to always show all links to translated pages. | |||
You can archive the same in the visual editor, by first linking the translated page: e.g. by typing <code>[[</code> to open the linking page. Enter <code>Jump/de</code> to link to the correct page and then modify the display text to the translated version. |