Template:Expand language (non-Latin script)/doc

From blackwiki
< Template:Expand language (non-Latin script)
Revision as of 15:41, 14 September 2009 by imported>Casey56 (grammar)
Jump to navigation Jump to search

How to create a new daughter template using this template

This template is intended for use with languages that do not use the Latin script (that is, languages where the alternative article is unlikely to have the same title as the article in en.wiki). For other languages, see {{Expand language}}.

{{Expand language (non-Latin script)
|langcode=
|google=<--yes/no for link to google translate-->
|googlelangcode=<!--optional override where google's code is not the same as wikipedia's code. rarely happens.-->

<!--The rest of the fields should be left as they are, except for replacing LANGCODE as appropriate.-->
|googlelink={{#if:{{{1|}}}|&u=http://LANGCODE.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
|otherarticle={{#if:{{{1|}}}|[[:LANGCODE:{{{1}}}|corresponding article]]|corresponding article}}
|notice={{#if:{{{1|}}}|<code><nowiki>{{Translated|LANGCODE|</nowiki>{{{1}}}<nowiki>}}</nowiki></code>|{{tl|Translated}}}}
|date={{{date|}}}
}}

For example, here is {{Expand Japanese}}.

{{Expand language (non-Latin script)
|langcode=ja
|google=yes
|googlelink={{#if:{{{1|}}}|&u=http://ja.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
|otherarticle={{#if:{{{1|}}}|[[:ja:{{{1}}}|corresponding article]]|corresponding article}}
|notice={{#if:{{{1|}}}|<code>{{Translated|ja|{{{1}}}}}</code>|{{tl|Translated}}}}
|date={{{date|}}}
}}

Uncommon override parameters:

|language= <!--for where the language code gives a funky language name, e.g. Ripuarian and Norman-->
|googlelangcode= <!--for where Google's language translation code is not the same as the Wikipedia language translation code-->

What else needs to be done after you set up the template

For all of these steps, replace XXXX with the name of the language you just created.

1. Create a template documentation page.

This is easy. Just go to Template:Expand XXXX/doc. There, you should paste {{Expand language (non-Latin script)/howto|XXXX}}.

2. Set up the category where articles to be translated will go.

Go to Category:Articles needing translation from XXXX Wikipedia. There, paste the following:

{{info|To add an article to this category, tag it with {{tl|Expand XXXX}}. (Do not add articles to this category directly.)}}
[[Category:Articles needing translation from foreign-language Wikipedias|XXXX]]

You can also add categories here for Wikiprojects that may be interested.