Difference between revisions of "Template:Expand language (non-Latin script)/doc"

From blackwiki
Jump to navigation Jump to search
imported>Calliopejen1
imported>Calliopejen1
Line 46: Line 46:
 
Go to [[:Category:Articles needing translation from XXXX Wikipedia]].  There, paste the following:
 
Go to [[:Category:Articles needing translation from XXXX Wikipedia]].  There, paste the following:
 
<pre>
 
<pre>
{{info|To add an article to this category, tag it with {{tl|Expand XXXX}}. (Do not add articles to this category directly.)}}
+
{{Transcat
[[Category:Articles needing translation from foreign-language Wikipedias|XXXX]]
+
|language=XXXX
 +
}}
 
</pre>
 
</pre>
 
You can also add categories here for Wikiprojects that may be interested.
 
You can also add categories here for Wikiprojects that may be interested.

Revision as of 15:02, 2 June 2010

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|}}}
|topic=<!--to be left blank unless topic subcategories are desired - not needed for smaller languages-->
}}

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:

{{Transcat
|language=XXXX
}}

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