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

From blackwiki
Jump to navigation Jump to search
imported>Calliopejen1
imported>Calliopejen1
(Replaced content with '#redirect {{Template:Expand language/howto}}')
Line 1: Line 1:
{{Documentation subpage}}
+
#redirect {{Template:Expand language/howto}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
=== 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 {{tl|Expand language}}.
 
<pre>
 
{{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><nowiki>{{Translated|LANGCODE|</nowiki></nowiki>{{{1}}}<nowiki><nowiki>}}</nowiki></nowiki></code>|{{tl|Translated}}}}
 
|date={{{date|}}}
 
|topic=<!--to be left blank unless topic subcategories are desired - not needed for smaller languages-->
 
}}</pre>
 
 
 
For example, here is {{tl|Expand Japanese}}.
 
<pre>
 
{{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><nowiki>{{Translated|ja|</nowiki>{{{1}}}<nowiki>}}</nowiki></code>|{{tl|Translated}}}}
 
|date={{{date|}}}
 
}}</pre>
 
 
 
Uncommon override parameters:
 
<pre>
 
|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-->
 
</pre>
 
 
 
===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 <code><nowiki>{{Expand language (non-Latin script)/howto|XXXX}}</nowiki></code>.
 
 
 
;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:
 
<pre>
 
{{Transcat
 
|language=XXXX
 
}}
 
</pre>
 
You can also add categories here for Wikiprojects that may be interested.
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
[[Category:Expand by language Wikipedia templates| ]]
 
</includeonly>
 

Revision as of 15:43, 28 March 2012