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

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 9 interwiki links, now provided by Wikidata on d:Q6180011)
imported>Nnemo
(Notably accessibility, air, corr.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
 
 +
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS LINKS AT THE END OF THIS PAGE -->
 +
 
 
{{Notice|This template should not be placed on article pages directly. Instead, choose a language-specific template from [[:Category:Expand by language Wikipedia templates]].}}
 
{{Notice|This template should not be placed on article pages directly. Instead, choose a language-specific template from [[:Category:Expand by language Wikipedia templates]].}}
  
===How to create a new daughter template using this template===
+
=== How to create a new daughter template using this template ===
 +
 
 
<pre>
 
<pre>
 
{{Expand language
 
{{Expand language
Line 14: Line 17:
 
|no interwiki={{{no interwiki|}}}
 
|no interwiki={{{no interwiki|}}}
 
}}</pre>
 
}}</pre>
 +
 
Example for Spanish (see {{tl|Expand Spanish}}):
 
Example for Spanish (see {{tl|Expand Spanish}}):
 +
 
<pre>
 
<pre>
 
{{Expand language
 
{{Expand language
Line 25: Line 30:
  
 
Uncommon override parameters:
 
Uncommon override parameters:
 +
 
<pre>
 
<pre>
|googlelangcode= <!--for where Google's language translation code is not the same as the Wikipedia language translation code-->
+
|googlelangcode= <!-- for where Google's language translation code is not the same as the Wikipedia language translation code -->
 
</pre>
 
</pre>
  
(Currently only used in Template:Expand Norwegian (Nynorsk) )
+
(Currently only used in Template:Expand Norwegian (Nynorsk).)
  
 
For a list of all daughter templates, see [[:Category:Expand by language Wikipedia templates]].
 
For a list of all daughter templates, see [[:Category:Expand by language Wikipedia templates]].
  
===What else needs to be done after you set up the template===
+
=== 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.
+
 
 +
For all of these steps, replace XXXX with the name of the language you just created. {{what|reason=Who created a language ? When are these steps supposed to be done ? This is not clear.}}
  
 
;1. Create a template documentation page.
 
;1. Create a template documentation page.
Line 43: Line 50:
  
 
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>
 
{{Transcat
 
{{Transcat
Line 49: Line 57:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 
You can also add categories there for Wikiprojects that may be interested.
 
You can also add categories there for Wikiprojects that may be interested.
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
+
 
 +
<!-- CATEGORIES AND INTERWIKIS LINKS AFTER THIS LINE PLEASE -->
 +
 
 
[[Category:Expand by language Wikipedia templates| ]]
 
[[Category:Expand by language Wikipedia templates| ]]
  
 
</includeonly>
 
</includeonly>

Revision as of 11:10, 26 May 2014


How to create a new daughter template using this template

{{Expand language
|langcode=
|otherarticle={{{1|}}}
|date={{{date|}}}
|fa={{{fa|}}}
|topic=
|nodoc={{{nodoc|}}}
|no interwiki={{{no interwiki|}}}
}}

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

{{Expand language
|langcode=es
|otherarticle={{{1|}}}
|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 used in Template:Expand Norwegian (Nynorsk).)

For a list of all daughter templates, see Category:Expand by language Wikipedia templates.

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. Template:What

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:

{{Transcat
|language=XXXX
|empty=y
}}

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