Difference between revisions of "Template:Expand language/doc"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(move notice from template)
imported>Calliopejen1
Line 37: Line 37:
 
;1. Create a template documentation page.
 
;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>.
+
This is easy. Just go to [[Template:Expand XXXX/doc]]. There, you should paste <code><nowiki>{{Expand language/howto|XXXX}}</nowiki></code>.
  
 
;2. Set up the category where articles to be translated will go.
 
;2. Set up the category where articles to be translated will go.

Revision as of 16:59, 19 July 2010

How to create a new daughter template using this template

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

{{Expand language
|langcode=
|google=<!--yes/no for Google Translate link-->
|otherarticle={{{1|{{PAGENAME}}}}} <!--keep this as it is -->
|date={{{date|}}}
|fa={{{fa|}}}
|topic={{{topic|}}}
}}

Example for Spanish (see {{Expand Spanish}}):

{{Expand language
|langcode=es
|google=yes
|otherarticle={{{1|{{PAGENAME}}}}}
|date={{{date|}}}
|fa={{{fa|}}}
|topic={{{topic|}}}
}}

Uncommon override parameters:

|googlelangcode= <!--for where Google's language translation code is not the same as the Wikipedia language translation code-->

(Currently only use in Template:Expand Norwegian (Nynorsk) )

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/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.