模板:Expand language
{{#if:| {{#if:|This {{#ifeq:yes|{{safesubst:#switch:
|{{#if:|This {{#ifeq:yes|{{safesubst:#switch:
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = }}|section|article}} may be expanded with text translated from the corresponding articles in {{#if:|[[::{{{otherarticle}}}|]]|{{#if:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode}}}:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|}}}}{{#if:|{{#if:|, [[::{{{otherarticle3}}}|]]|{{#if:{{#if:{{{langcode3}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|, [[:{{{langcode3}}}:{{#if:{{{langcode3}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|, }}}}}} and {{#if:|[[::{{{otherarticle2}}}|]]|{{#if:{{#if:{{{langcode2}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode2}}}:{{#if:{{{langcode2}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|}}}}.|This {{#ifeq:yes|{{safesubst:#switch: |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default =}}|section|article}} may be expanded with text translated from {{#if:|the {{#if:|[[::{{{otherarticle}}}|corresponding article]]|{{#if:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode}}}:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|corresponding article]]|corresponding article}}}} in |a corresponding article in another language}}.}} {{#if:| ({{{date}}})}} Click [show] for important translation instructions. |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = }}|section|article}} may be expanded with text translated from the corresponding articles in {{#if:|[[::{{{otherarticle}}}|]]|{{#if:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode}}}:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|}}}}{{#if:|{{#if:|, [[::{{{otherarticle3}}}|]]|{{#if:{{#if:{{{langcode3}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|, [[:{{{langcode3}}}:{{#if:{{{langcode3}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|, }}}}}} and {{#if:|[[::{{{otherarticle2}}}|]]|{{#if:{{#if:{{{langcode2}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode2}}}:{{#if:{{{langcode2}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|]]|}}}}.|This {{#ifeq:yes|{{safesubst:#switch: |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default =}}|section|article}} may be expanded with text translated from {{#if:|the {{#if:|[[::{{{otherarticle}}}|corresponding article]]|{{#if:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|[[:{{{langcode}}}:{{#if:{{{langcode}}}|Lua错误 在package.lua的第80行:module 'Module:i18n' not found|模板:Error}}|corresponding article]]|corresponding article}}}} in |a corresponding article in another language}}.}} {{#if:| ({{{date}}})}} Click [show] for important translation instructions.}} {{#switch: |af |am |ar |az |be |be-tarask |bg |bn |bs |ca |ceb |co |cs |cy |da |de |el |en |eo |es |et |eu |fa |fi |fr |fy |ga |gd |gl |gu |ha |haw |he |hi |hr |ht |hu |hy |id |ig |is |it |ja |jv |ka |kk |km |kn |ko |ku |ky |la |lb |lo |lt |lv |mg |mi |mk |ml |mn |mr |ms |mt |my |ne |nl |nn |no |ny |pa |pl |ps |pt |ro |ru |sd |sh |si |sk |sl |sm |sn |so |sq |sr |st |su |sv |sw |ta |te |tg |th |tl |tr |uk |ur |uz |vi |xh |yi |yo |zh |zu =
|#default = }}
|
{{#ifeq:{{{small}}}|left|}}{{#ifeq:{{ safesubst:#if:
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Expand language}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Expand language}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Articles to be expanded from ||}} |[[Category:{{#if: ||Articles to be expanded}}]]}}{{#if:All articles to be expanded |}}}}}}
{{#ifeq:expand language |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Expand language. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Expand language | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
50x40px | If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! {{#if:| {{{1}}}}} |
{{#if: |[[File:{{{image}}}|40px|Notice]]}} | {{#if: | ' }}{{safesubst:#if:This template should usually not be placed on article pages directly'. Instead, choose a language-specific template from Category:Expand by language Wikipedia templates.
|This template should usually not be placed on article pages directly. Instead, choose a language-specific template from Category:Expand by language Wikipedia templates. |large }} | {{#if: |{{{imageright}}} |{{#if: | | }} }}
Typical usage
If you find an article in the English Wikipedia is much less complete than the corresponding article in another language, there are a series of templates you can use to announce this on the page. Do not use this template, but instead, please use the appropriate template in Category:Expand by language Wikipedia templates. If the language you are looking for doesn't already have a template, see below for instructions on how to make one.
How to create a new daughter template using this template
{{Expand language |langcode= |otherarticle={{{1|}}} |section={{{section|}}} |date={{{date|}}} |fa={{{fa|}}} |topic= |nodoc={{{nodoc|}}} |no interwiki={{{no interwiki|}}} }}
Example for Spanish (see {{Expand Spanish}}):
{{Expand language |langcode=es |otherarticle={{{1|}}} |section={{{section|}}} |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. {{#if:|}}{{#switch:¬
|¬= |SUBST=
}}{{#if:|{{#ifeq:{{{name}}}|Expand language||{{#if:||}}}}}}{{#if:
| |[{{#if: | }}clarification needed{{#if: | }}]
}}
- 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.
Multiple languages
Multiple languages can be specified in the same template using |{{SAFESUBST:#if:langcode2|langcode2=}}
, |{{SAFESUBST:#if:otherarticle2|otherarticle2=}}
, |{{SAFESUBST:#if:langcode3|langcode3=}}
and |{{SAFESUBST:#if:otherarticle3|otherarticle3=}}
. This functionality is not accessible in wrapper templates.
{{#if:{{#ifeq:Expand |sandbox|1}}{{#ifeq:Expand language|doc|1}}||
}}