wikilife>Mathglot (Use doc page instead, and drop category, and <noinclude>'d doc from this page.) |
(没有差异)
|
2020年12月23日 (三) 05:37的版本
{{#ifeq:模板|模板||}}
A passage in this article or section needs to be translated from its current language into English. If you are confident enough in your fluency of English and this language, please feel free to add a translation. Please see this article's entry on Pages needing translation into English for discussion. {{#ifeq: {{safesubst:#switch: no |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes }}|yes||----
If you have just labeled this {{#if:模板|page|article}} as needing {{#ifeq:{{{2}}}|cleanup|attention|translation}}, please add |
{{#ifeq:{{{small}}}|left|}}
{{#ifeq:translatepassage |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:TranslatePassage. 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:模板:TranslatePassage | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
40x40px | This template should always be substituted (i.e., use {{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:模板|模板 | template | other }} }} | template = {{[[Template:{{#switch:TranslatePassage|doc|sandbox=TranslatePassage|TranslatePassage}}|subst:{{#switch:TranslatePassage|doc|sandbox=TranslatePassage|TranslatePassage}}]]}} | other | #default = 模板:Tlsu }}). {{#if:{{safesubst:#switch: no |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes}} |Any accidental transclusions will be automatically substituted by a bot.{{#switch:TranslatePassage|doc|sandbox=|}}}} {{#if: |For transcluding, use {{[[Template:|]]}} instead.}} |
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}}}}} |
Usage
This template {{Translate passage}} adds a banner on articles that have passages that require translation, and provides instructions on how to list the article at Wikipedia:Pages needing translation into English.
This template should be transcluded, not {{subst:}}ed.
Example:
{{subst:Translate passage|ArticleName|language=LanguageName}} ~~~~
This template categorizes pages on which it appears into Category:Wikipedia articles needing translation, unless suppressed with an optional parameter.
After following instructions provided in the template for listing the article at WP:PNT, please change the listed param to "yes".
Parameters
One positional and two named parameters; all are optional:
- 1 - language of the passage needing translation (e.g., 'Spanish', 'French', 'Chinese')
- category – if set to 'no', suppresses categorization of the article (default: 'yes'; categorization is applied)
- listed - if set to 'yes', this displays a briefer version of the banner without instructions for listing at PNT (default: 'no')
See also
- WP:PNTCU
- Wikipedia:Template messages/Cleanup
- Wikipedia:Translation
- {{Needtrans}}
- {{Translation sidebar}}
- {{Not English}}
- {{Not English-inline}}
- {{Cleanup translation}}
- {{Rough translation}}
- {{Proofreader needed}}
- {{Expand language}}
- {{Whose translation}}
{{#if:{{#ifeq:Transla|sandbox|1}}{{#ifeq:TranslatePassage|doc|1}}|| }}