今天是2024年11月25日 第48周 星期一
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
“Template:FromOther/doc”的版本间的差异
跳到导航
跳到搜索
enmgp>公的驱逐舰 小 |
enmgp>公的驱逐舰 小 |
||
第1行: | 第1行: | ||
+ | This is a page-top or section-top template used to mark pages originally from different wiki projects. | ||
+ | ==Syntax== | ||
*You may simply use <code><nowiki>{{FromOther}}</nowiki></code>: | *You may simply use <code><nowiki>{{FromOther}}</nowiki></code>: | ||
:{{FromOther}} | :{{FromOther}} | ||
第5行: | 第7行: | ||
*You should also provide the link to the exact page: <code><nowiki>{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}</nowiki></code> yields | *You should also provide the link to the exact page: <code><nowiki>{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}</nowiki></code> yields | ||
:{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}} | :{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}} | ||
+ | *Use <code>|sect=sect</code>to mark a section instead of the entire page. <code><nowiki>{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}</nowiki></code> yields | ||
+ | :{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}} | ||
+ | ==Template data== | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "label": "site", | ||
+ | "description": "The name of the original site", | ||
+ | "example": "Chinese Moe Girl Pedia", | ||
+ | "type": "string", | ||
+ | "suggested": true, | ||
+ | "default": "another wiki project" | ||
+ | }, | ||
+ | "2": { | ||
+ | "label": "page", | ||
+ | "description": "The page of the origin. Links should be provided.", | ||
+ | "example": "[https://zh.moegirl.org/Are_you_OK Are you OK]", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "sect": { | ||
+ | "label": "is section", | ||
+ | "description": "Use \"sect\" verbatim to mark a section as from another wiki project, instead of the entire page. All other inputs are ignored.", | ||
+ | "example": "sect", | ||
+ | "type": "string", | ||
+ | "autovalue": "" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Page-top (or section-top) notice for pages originally from a different wiki project. ", | ||
+ | "paramOrder": [ | ||
+ | "1", | ||
+ | "2", | ||
+ | "sect" | ||
+ | ], | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata> |
2019年11月26日 (二) 15:32的版本
This is a page-top or section-top template used to mark pages originally from different wiki projects.
Syntax
- You may simply use
{{FromOther}}
:
本模板原先来自另一个维基计划。
经过双方编辑者的修改,本模板可能已与它的来源大不相同。
- To notify from which site is the page is from, use
{{FromOther|name of wiki}}
. For example,{{FromOther|Wikipedia}}
yields:
本模板原先来自Wikipedia。
经过双方编辑者的修改,本模板可能已与它的来源大不相同。
- You should also provide the link to the exact page:
{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}
yields
本模板原先来自Chinese Moe Girl PediaTemplate:Info。
经过双方编辑者的修改,本模板可能已与它的来源大不相同。
- Use
|sect=sect
to mark a section instead of the entire page.{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}
yields
本段落原先来自Chinese Moe Girl Pedia博丽灵梦#基本资料。
经过双方编辑者的修改,本段落可能已与它的来源大不相同。
Template data
Page-top (or section-top) notice for pages originally from a different wiki project.
参数 | 说明 | 类型 | 状态 | |
---|---|---|---|---|
site | 1 | The name of the original site
| 字符串 | 推荐 |
page | 2 | The page of the origin. Links should be provided.
| 字符串 | 推荐 |
is section | sect | Use "sect" verbatim to mark a section as from another wiki project, instead of the entire page. All other inputs are ignored.
| 字符串 | 可选 |