模板:Translating/doc
跳转到导航
跳转到搜索
| File:Edit-copy green.svg | 此页面是Template:Translating的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| File:Lua-Logo.svg | 此模板使用Lua语言: |
使用说明[编辑]
以下是一个简单的例子:
{{translating|[[:en:Wikipedia]]||tpercent=50|time=2026-06-24UTC02:39:59}}
显示为:
- 其中共有三个参数:
- 第一个参数为匿名参数,用于标明翻译所参考的其他语言维基百科的页面。记得加入[[]],并在跨语言链接之前加入一个半角冒号。(此参数可选)
- tpercent参数,用于标明翻译进行的百分比。如50代表着翻译已进行了50%。不需要在数字后加上百分号。(此参数可选)
- time参数,用于以标准的PHP日期格式标明翻译开始的时间。常见的写法有:time=2026-06-24UTC02:39:59,或time=2026-06-24。
可以使用{{subst:translating/auto}}自动填写时间。用法为:{{subst:translating/auto|[[:en:Wikipedia]]||tpercent=50}}
显示效果同前。
其他[编辑]
- 此模板是一个自我提及。
- 此模板不支持替换引用,如需要,请使用Template:Translating/auto。
重定向[编辑]
- {{翻译}}
相关模板[编辑]
- {{Translated page}}
- {{TransH}}
- 子模板:{{Translation/Ref}}
<templatedata> { "params": { "1": { "aliases": [ "tfrom" ], "label": "来源页面", "description": "标明翻译所参考的其他语言维基百科的页面,记得加入[[]],并在跨语言链接之前加入一个半角冒号" }, "date": { "aliases": [ "3" ], "label": "日期" }, "time": { "label": "时间", "description": "常见的写法有:time=2022-02-26UTC00:29:56,或time=2022-02-26" }, "tpercent": { "label": "百分比", "aliases": [ "2" ], "description": "不需要加%" }, "nocategory": {} } } </templatedata>