Vintage Story Wiki:How to translate the wiki: Difference between revisions
From Vintage Story Wiki
(Marked this version for translation) |
(Updated info on how to translate templates.) |
||
Line 12: | Line 12: | ||
# Go to the [[Special:Translate|translation center]] and start thunder typing ;-) | # Go to the [[Special:Translate|translation center]] and start thunder typing ;-) | ||
# Once translated, edit the page again, and to the very top, add <code><languages<nowiki/>/></code> - this will make the language bar appear | # Once translated, edit the page again, and to the very top, add <code><languages<nowiki/>/></code> - this will make the language bar appear | ||
For tackling specific formatting issues in wikitext and how they interact with the translate tags, see [https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples this guide on MediaWiki]. When translating a page that uses translatable templates, do not include them within the <code><nowiki><translate></nowiki></code> tags. | |||
=== How to update translations === <!--T:4--> | === How to update translations === <!--T:4--> | ||
Line 50: | Line 52: | ||
<!--T:13--> | <!--T:13--> | ||
[[File:Template-translate.PNG|thumb|500px|right]] | [[File:Template-translate.PNG|thumb|500px|right|Veerserif's note: now outdated due to the new tnt template.]] | ||
<!--T:14--> | <!--T:14--> | ||
Templates should only be tagged and mark for translation when they are ''complete''. Make sure the <code><nowiki><languages /></nowiki></code> tag is '''outside''' of the part of the template marked for transclusion, i.e. the <code><nowiki><onlyinclude> ... </onlyinclude></nowiki></code> or <code><nowiki><includeonly> ... </includeonly></nowiki></code> part. | |||
When you use a translated or translatable (i.e. tagged and marked for translation) template on any page, you '''must''' use the [[Template:Translatable template|Translatable template]] template instead! For example, if you wanted to use the <code><nowiki>{{Metals navbox}}</nowiki></code> template on a page, instead write it as <code><nowiki>{{Translatable template|Metals navbox}}</nowiki></code>. You can also use <code><nowiki>{{tnt|Metals navbox}}</nowiki></code> as a shorter version. | |||
When translating a page that uses translatable templates, do not include them within the <code><nowiki><translate></nowiki></code> tags. (I'm repeating this because it's important.) | |||
</translate> | </translate> | ||
[[Category:Wiki Editing]] | [[Category:Wiki Editing]] |