今天是2024年11月25日 第48周 星期一

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

“Template:FromOther/doc”的版本间的差异

来自Akarin
跳到导航 跳到搜索
enmgp>公的驱逐舰
(Bug workaround for document-transclude)
 
(未显示2个用户的4个中间版本)
第1行: 第1行:
 +
{{FromOther|site=英文萌娘百科|originURL=https://en.moegirl.org/{{FULLPAGENAME}}|origin={{FULLPAGENAME}}|copyright=cc|lsubtype=by-sa|lver=3.0|contribURL=https://en.moegirl.org/index.php?title={{FULLPAGENAME}}&action=history}}[[Category:从英文萌娘百科引入的页面]]
 +
 
This is a page-top or section-top template used to mark pages originally from different wiki projects. 
 
This is a page-top or section-top template used to mark pages originally from different wiki projects. 
 
==Syntax==
 
==Syntax==
*You may simply use <code><nowiki>{{FromOther}}</nowiki></code>:
+
You may simply use <code><nowiki>{{FromOther}}</nowiki></code>, but this is not recommended. Instead, you are encouraged to give credit whenever you can. <!--
{{FromOther}}
+
 
*To notify from which site is the page is from, use <code><nowiki>{{FromOther|name of wiki}}</nowiki></code>. For example, <code><nowiki>{{FromOther|Wikipedia}}</nowiki></code> yields:
+
Two shortcuts were setup for Wikipedia and Moegirlpedia. See below for details.-->
{{FromOther|Wikipedia}}
+
===Common usage===
*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
+
In most cases, you can use:
{{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
+
<code><nowiki>{{FromOther|site=|originURL=|origin=|copyright=cc|lsubtype=by-sa|lver=4.0|contribURL=}}</nowiki></code>
{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}
+
 
 +
You will provide the site name, a link to original page, the name of the page, and a link to a list of contributors. This particular template declares that the original page is shared under CC BY-SA 4.0. Make sure to check if the license is correct.
 +
 
 +
For works that have few contributors or no website detailing the contributors, you may use <code>contributors</code> instead of <code>contribURL</code>.
 +
 
 +
For example: If you are to reference "Earth" from English wikipedia, use
 +
<nowiki>{{FromOther|</nowiki>site='''English Wikipedia'''|originURL='''https://en.wikipedia.org/wiki/Earth'''|origin='''Earth'''|copyright=cc|lsubtype=by-sa|lver=3.0|contribURL='''https://en.wikipedia.org/w/index.php?title=Earth&action=history'''}}</code>
 +
which yields
 +
{{FromOther|site=English Wikipedia|originURL=https://en.wikipedia.org/wiki/Earth|origin=Earth|copyright=cc|lsubtype=by-sa|lver=3.0|contribURL=https://en.wikipedia.org/w/index.php?title=Earth&action=history}}
 +
 
 +
===The <code>sect</code> parameter===
 +
You can use <code>|sect=sect</code>to mark a section instead of the entire page. 
 +
<nowiki>{{FromOther|</nowiki>'''sect=sect'''|site='''Chinese Moegirlpedia'''|originURL='''https://zh.moegirl.org/博丽灵梦#基本资料'''|origin=''' 博丽灵梦#基本资料'''|copyright=cc|lsubtype=<span style="font-weight:bold;color:#F00;">by-nc-sa</span>|lver=3.0|contribURL='''https://zh.moegirl.org/index.php?title=博丽灵梦&action=history'''}}
 +
yields
 +
{{FromOther|sect=sect|site=Chinese Moegirlpedia|originURL=https://zh.moegirl.org/博丽灵梦#基本资料|origin= 博丽灵梦#基本资料|copyright=cc|lsubtype=by-nc-sa|lver=3.0|contribURL=https://zh.moegirl.org/index.php?title=博丽灵梦&action=history}}
 +
 
 +
===The <code>copyright</code> parameter===
 +
Currently, the <code>copyright</code> parameter allows one to choose between three types of predefined license or define their own license.
 +
 
 +
#Creative Commons.
 +
#*<code>copyright=cc</code>.
 +
#*You will also need to provide the license subtype (e.g. "BY", "BY-NC-SA", etc.) via the <code>lsubtype</code> parameter and the license version via the <code>lver</code> parameter.
 +
#*The template will automatically generate link to the respective CC licenses with the above provided information; do not use <code>licenseURL</code>.
 +
#*Special support is made for CC0 1.0. The license subtype is <code>zero</code>.
 +
#*Barebone: <code><nowiki>{{FromOther|copyright=cc|lsubtype=|lver=|contribURL=}}</nowiki></code>
 +
#Public Domain.
 +
#*<code>copyright=pd</code>.
 +
#*Although it is not necessary to credit public domain material, it is a good gesture to do so.
 +
#*Barebone: <code><nowiki>{{FromOther|copyright=pd}}</nowiki></code>
 +
#Agreement.
 +
#*<code>copyright=agreement</code>.
 +
#*This applies when a copyright holder(s) agree to release their copyrighted material for use by Moegirlpedia. Credit as usual, but use <code>licenseURL</code> to provide a link to the text of the agreement or proof of its existence if possible.
 +
#*Barebone: <code><nowiki>{{FromOther|copyright=agreement|licenseURL=|contribURL=}}</nowiki></code>
 +
#Other licenses.
 +
#*Let <code>copyright</code> be the name of the license (e.g. <code>copyright=the Apache License</code>), and use <code>licenseURL</code> to provide a link to the text of the license. Credit the contributors as required by the license.
 +
#*Barebone: <code><nowiki>{{FromOther|copyright=|licenseURL=|contribURL=}}</nowiki></code>
 
==Template data==
 
==Template data==
 
<templatedata>
 
<templatedata>
第14行: 第51行:
 
"params": {
 
"params": {
 
"1": {
 
"1": {
"label": "site",
+
"label": " 网站",
"description": "The name of the original site",
+
"description": " 来源网站的名字。",
"example": "Chinese Moe Girl Pedia",
+
"example": " 中文维基百科",
 
"type": "string",
 
"type": "string",
 
"suggested": true,
 
"suggested": true,
"default": "another wiki project"
+
"default": " 另一个维基计划",
 +
"aliases": [
 +
"site"
 +
]
 
},
 
},
 
"2": {
 
"2": {
"label": "page",
+
"label": " 页面",
"description": "The page of the origin. Links should be provided.",
+
"description": " 来源页面的名字。如果想要使用链接,请写完整外链。",
 
"example": "[https://zh.moegirl.org/Are_you_OK Are you OK]",
 
"example": "[https://zh.moegirl.org/Are_you_OK Are you OK]",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"aliases": [
 +
"page"
 +
],
 +
"deprecated": "用“origin”和“originURL”代替。"
 
},
 
},
 
"sect": {
 
"sect": {
"label": "is section",
+
"label": " 段落",
"description": "Use \"sect\" verbatim to mark a section as from another wiki project, instead of the entire page. All other inputs are ignored.",
+
"description": " 为本参数赋值“sect”来让本模板仅标识一个段落而非整个页面。其他输入会被忽略。",
 
"example": "sect",
 
"example": "sect",
 
"type": "string",
 
"type": "string",
"autovalue": ""
+
"autovalue": "sect"
 +
},
 +
"originURL": {
 +
"description": "提供来源页面的 URL。",
 +
"example": "https://zh.moegirl.org/Are_You_OK",
 +
"type": "url",
 +
"autovalue": "",
 +
"label": "来源 URL"
 +
},
 +
"origin": {
 +
"description": "提供来源页面的名称。",
 +
"example": "Are You OK",
 +
"type": "string",
 +
"label": "来源",
 +
"suggested": true
 +
},
 +
"copyright": {
 +
"description": "提供版权或授权类型。要使用创意共享,请赋值\"cc\";要使用公共领域,请赋值\"pd\";要使用\b作者授权,请赋值\"agreement\";要使用任何其他授权证书,直接填写证书名字。",
 +
"example": "cc;pd;Apache证书",
 +
"type": "string",
 +
"autovalue": "cc",
 +
"suggested": true,
 +
"label": "版权授权"
 +
},
 +
"lsubtype": {
 +
"label": "证书子类型",
 +
"description": "目前仅在证书为CC时可用。提供正确的CC证书子类型(如“BY-NC-SA”)。",
 +
"example": "BY-NC-SA;BY;zero",
 +
"type": "string",
 +
"autovalue": "BY-SA",
 +
"suggested": true
 +
},
 +
"lver": {
 +
"label": "证书版本号",
 +
"description": "目前仅在证书为CC时可用。提供正确的CC证书版本号。",
 +
"example": "3.0;4.0",
 +
"type": "string",
 +
"autovalue": "4.0",
 +
"suggested": true
 +
},
 +
"licenseURL": {
 +
"description": "到证书或授权的链接。如果证书类型是CC则不必填写本项;模板会自动生成链接。",
 +
"type": "url",
 +
"autovalue": "",
 +
"label": "证书 URL"
 +
},
 +
"contributors": {
 +
"description": "列出所有贡献者。仅在贡献者数量很少或可以省略时使用。",
 +
"example": "John Doe;王小刚和Anna Ivanova;维基用户 et al.",
 +
"type": "string",
 +
"label": "贡献者"
 +
},
 +
"contribURL": {
 +
"label": "贡献者 URL",
 +
"description": "到所有贡献者列表的链接。对于维基计划而言,这通常是查看历史版本的页面。",
 +
"example": "https://zh.moegirl.org/index.php?title=Are_You_OK&actgion=history;",
 +
"type": "url",
 +
"suggested": true
 
}
 
}
 
},
 
},
"description": "Page-top (or section-top) notice for pages originally from a different wiki project. ",
+
"description": " 用来标记原先来自其他地方的页面或内容的页顶(或段顶)模板。",
 
"paramOrder": [
 
"paramOrder": [
 
"1",
 
"1",
"2",
+
"sect",
"sect"
+
"origin",
 +
"originURL",
 +
"copyright",
 +
"lsubtype",
 +
"lver",
 +
"licenseURL",
 +
"contributors",
 +
"contribURL",
 +
"2"
 
],
 
],
 
"format": "inline"
 
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>

2020年6月1日 (一) 10:33的最新版本

This is a page-top or section-top template used to mark pages originally from different wiki projects.

Syntax

You may simply use {{FromOther}}, but this is not recommended. Instead, you are encouraged to give credit whenever you can.

Common usage

In most cases, you can use:

{{FromOther|site=|originURL=|origin=|copyright=cc|lsubtype=by-sa|lver=4.0|contribURL=}}

You will provide the site name, a link to original page, the name of the page, and a link to a list of contributors. This particular template declares that the original page is shared under CC BY-SA 4.0. Make sure to check if the license is correct.

For works that have few contributors or no website detailing the contributors, you may use contributors instead of contribURL.

For example: If you are to reference "Earth" from English wikipedia, use

{{FromOther|site=English Wikipedia|originURL=https://en.wikipedia.org/wiki/Earth|origin=Earth|copyright=cc|lsubtype=by-sa|lver=3.0|contribURL=https://en.wikipedia.org/w/index.php?title=Earth&action=history}}

which yields

The sect parameter

You can use |sect=sectto mark a section instead of the entire page.

{{FromOther|sect=sect|site=Chinese Moegirlpedia|originURL=https://zh.moegirl.org/博丽灵梦#基本资料|origin=博丽灵梦#基本资料|copyright=cc|lsubtype=by-nc-sa|lver=3.0|contribURL=https://zh.moegirl.org/index.php?title=博丽灵梦&action=history}}

yields

The copyright parameter

Currently, the copyright parameter allows one to choose between three types of predefined license or define their own license.

  1. Creative Commons.
    • copyright=cc.
    • You will also need to provide the license subtype (e.g. "BY", "BY-NC-SA", etc.) via the lsubtype parameter and the license version via the lver parameter.
    • The template will automatically generate link to the respective CC licenses with the above provided information; do not use licenseURL.
    • Special support is made for CC0 1.0. The license subtype is zero.
    • Barebone: {{FromOther|copyright=cc|lsubtype=|lver=|contribURL=}}
  2. Public Domain.
    • copyright=pd.
    • Although it is not necessary to credit public domain material, it is a good gesture to do so.
    • Barebone: {{FromOther|copyright=pd}}
  3. Agreement.
    • copyright=agreement.
    • This applies when a copyright holder(s) agree to release their copyrighted material for use by Moegirlpedia. Credit as usual, but use licenseURL to provide a link to the text of the agreement or proof of its existence if possible.
    • Barebone: {{FromOther|copyright=agreement|licenseURL=|contribURL=}}
  4. Other licenses.
    • Let copyright be the name of the license (e.g. copyright=the Apache License), and use licenseURL to provide a link to the text of the license. Credit the contributors as required by the license.
    • Barebone: {{FromOther|copyright=|licenseURL=|contribURL=}}

Template data

用来标记原先来自其他地方的页面或内容的页顶(或段顶)模板。

模板参数

此模板首选参数行内格式。

参数说明类型状态
网站1site

来源网站的名字。

默认值
另一个维基计划
例子
中文维基百科
字符串推荐
段落sect

为本参数赋值“sect”来让本模板仅标识一个段落而非整个页面。其他输入会被忽略。

例子
sect
自动值
sect
字符串可选
来源origin

提供来源页面的名称。

例子
Are You OK
字符串推荐
来源 URLoriginURL

提供来源页面的 URL。

例子
https://zh.moegirl.org/Are_You_OK
自动值
URL可选
版权授权copyright

提供版权或授权类型。要使用创意共享,请赋值"cc";要使用公共领域,请赋值"pd";要使用作者授权,请赋值"agreement";要使用任何其他授权证书,直接填写证书名字。

例子
cc;pd;Apache证书
自动值
cc
字符串推荐
证书子类型lsubtype

目前仅在证书为CC时可用。提供正确的CC证书子类型(如“BY-NC-SA”)。

例子
BY-NC-SA;BY;zero
自动值
BY-SA
字符串推荐
证书版本号lver

目前仅在证书为CC时可用。提供正确的CC证书版本号。

例子
3.0;4.0
自动值
4.0
字符串推荐
证书 URLlicenseURL

到证书或授权的链接。如果证书类型是CC则不必填写本项;模板会自动生成链接。

自动值
URL可选
贡献者contributors

列出所有贡献者。仅在贡献者数量很少或可以省略时使用。

例子
John Doe;王小刚和Anna Ivanova;维基用户 et al.
字符串可选
贡献者 URLcontribURL

到所有贡献者列表的链接。对于维基计划而言,这通常是查看历史版本的页面。

例子
https://zh.moegirl.org/index.php?title=Are_You_OK&actgion=history;
URL推荐
页面2page

来源页面的名字。如果想要使用链接,请写完整外链。

例子
[https://zh.moegirl.org/Are_you_OK Are you OK]
字符串已弃用