Difference between revisions of "User:Megavolt/cheatsheet"

m
Replace < with < due the translate extension
(Added Translate Extension to cheatsheet)
 
m (Replace < with < due the translate extension)
 
Line 9: Line 9:
|-
|-
| Initiate page for translation / Produces language selector
| Initiate page for translation / Produces language selector
| <nowiki><languages /></nowiki>
| <nowiki>&lt;languages /></nowiki>
| <nowiki><languages /></nowiki><br />Some text
| <nowiki>&lt;languages /></nowiki><br />Some text
|-
|-
| Extract text for translation || <nowiki><translate>Some text</translate></nowiki><br />NOT WORKING:<br /><nowiki><translate>Some more text<translate>Some text</translate> Some more text<translate></nowiki> || <nowiki><translate>Some text</translate></nowiki><br /> <nowiki>[[internal link|<translate>text</translate>]]</nowiki><br /><nowiki>[external link <translate>text</translate>]</nowiki>
| Extract text for translation || <nowiki>&lt;translate>Some text&lt;/translate></nowiki><br />NOT WORKING:<br /><nowiki>&lt;translate>Some more text&lt;translate>Some text&lt;/translate> Some more text&lt;translate></nowiki> || <nowiki>&lt;translate>Some text&lt;/translate></nowiki><br /> <nowiki>[[internal link|&lt;translate>text&lt;/translate>]]</nowiki><br /><nowiki>[external link &lt;translate>text&lt;/translate>]</nowiki>
|-
|-
| Division of the translation sections. Written by the extension. Don't delete them, otherwise the translations have to be redone. || <nowiki><!--T:N--></nowiki> || <nowiki><!--T:323--></nowiki>
| Division of the translation sections. Written by the extension. Don't delete them, otherwise the translations have to be redone. || <nowiki><!--T:N--></nowiki> || <nowiki><!--T:323--></nowiki>
|-
|-
| Used to point tp language links. If the article is available at your language, then it will be displayed, if not, then it uses the original article. || <nowiki>[[Special:MyLanguage/internal_link_name]]</nowiki> || <nowiki>[[Special:MyLanguage/internal_link_name]]</nowiki><br /><nowiki>[[Special:MyLanguage/internal_link_name|<translate>text</translate>]]</nowiki>
| Used to point tp language links. If the article is available at your language, then it will be displayed, if not, then it uses the original article. || <nowiki>[[Special:MyLanguage/internal_link_name]]</nowiki> || <nowiki>[[Special:MyLanguage/internal_link_name]]</nowiki><br /><nowiki>[[Special:MyLanguage/internal_link_name|&lt;translate>text&lt;/translate>]]</nowiki>
|-
|-
| Add the language code which was taken by the Unversal Language Selector. Commenly used for Categories.
| Add the language code which was taken by the Unversal Language Selector. Commenly used for Categories.
| <nowiki>[[Category:Text{{#translation:}}]]</nowiki>
| <nowiki>[[Category:Text{{#translation:}}]]</nowiki>
| <nowiki>[[Category:Text{{#translation:}}]]</nowiki>
| <nowiki>[[Category:Text{{#translation:}}]]</nowiki>
<nowiki>[[Category:Text{{#translation:}}|<translate>Text</translate>]]</nowiki>
<nowiki>[[Category:Text{{#translation:}}|&lt;translate>Text&lt;/translate>]]</nowiki>
|-
|-
| Variables can be used to hide specific content from them translator, so he/she might not change it by accident. ||  <nowiki><translate>[[<tvar|myvar>hidden internal link</>| Some text]]</translate></nowiki> || And this will be visible for the translator:<br /><nowiki>[[$myvar|Some text]]</nowiki>
| Variables can be used to hide specific content from them translator, so he/she might not change it by accident. ||  <nowiki>&lt;translate>[[<tvar|myvar>hidden internal link</>| Some text]]&lt;/translate></nowiki> || And this will be visible for the translator:<br /><nowiki>[[$myvar|Some text]]</nowiki>
|}
|}


Further information: https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration
Further information: https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration
translator
278

edits