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

From blackwiki
Jump to navigation Jump to search
imported>Calliopejen1
imported>Calliopejen1
Line 15: Line 15:
 
|googlelink={{#if:{{{1|}}}|&u=http://LANGCODE.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
 
|googlelink={{#if:{{{1|}}}|&u=http://LANGCODE.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
 
|otherarticle={{#if:{{{1|}}}|[[:LANGCODE:{{{1}}}|corresponding article]]|corresponding article}}
 
|otherarticle={{#if:{{{1|}}}|[[:LANGCODE:{{{1}}}|corresponding article]]|corresponding article}}
|notice={{#if:{{{1|}}}|<code><nowiki><nowiki>{{Translated article|LANGCODE|</nowiki></nowiki>{{{1}}}<nowiki><nowiki>}}</nowiki></nowiki></code>|{{tl|Translated article}}}}
+
|notice={{#if:{{{1|}}}|<code><nowiki><nowiki>{{Translated|LANGCODE|</nowiki></nowiki>{{{1}}}<nowiki><nowiki>}}</nowiki></nowiki></code>|{{tl|Translated}}}}
 
|date={{{date|}}}
 
|date={{{date|}}}
 
}}</pre>
 
}}</pre>
Line 28: Line 28:
 
|googlelink={{#if:{{{1|}}}|&u=http://ja.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
 
|googlelink={{#if:{{{1|}}}|&u=http://ja.wikipedia.org/wiki/{{urlencode:{{{1}}}}}&|}}
 
|otherarticle={{#if:{{{1|}}}|[[:ja:{{{1}}}|corresponding article]]|corresponding article}}
 
|otherarticle={{#if:{{{1|}}}|[[:ja:{{{1}}}|corresponding article]]|corresponding article}}
|notice={{#if:{{{1|}}}|<code><nowiki>{{Translated article|ja|</nowiki>{{{1}}}<nowiki>}}</nowiki></code>|{{tl|Translated article}}}}
+
|notice={{#if:{{{1|}}}|<code><nowiki>{{Translated|ja|</nowiki>{{{1}}}<nowiki>}}</nowiki></code>|{{tl|Translated}}}}
 
|date={{{date|}}}
 
|date={{{date|}}}
 
}}</pre>
 
}}</pre>

Revision as of 12:50, 24 February 2009

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 alternate 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)
|language=
|langcode=
|mainpage=
|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)
|language=Japanese
|langcode=ja
|mainpage=メインページ
|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|}}}
}}

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.