今天是2024年11月5日 第45周 星期二
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
“Template:FromOther”的版本间的差异
enmgp>公的驱逐舰 小 |
enmgp>公的驱逐舰 小 |
||
第4行: | 第4行: | ||
//other types of licenses are rarely used in MGP. Not included. | //other types of licenses are rarely used in MGP. Not included. | ||
-->|agreement=under an agreement which can be found [{{{licenseURL}}} here]<!-- | -->|agreement=under an agreement which can be found [{{{licenseURL}}} here]<!-- | ||
− | -->|#default=under {{#if:{{{licenseURL|}}}|[{{{licenseURL}}} {{{copyright}}}]|{{{copyright}}}}}}}}}{{#if:{{{contributors|}}}|; the contributor(s){{#ifeq:{{lc:{{{copyright|}}}}}|agreement| or copyright holder(s)}} is/are {{{contributors}}}|{{#if:{{{contribURL|}}}|; the names of contributors can be found [{{{contribURL}}} here]|{{#ifeq:{{lc:{{{copyright|}}}}}|cc|{{#ifeq:{{lc:{{{lsubtype|}}}}}|zero||<span style="color:red;">The CC license indicated requires attribution. Please provide a list, or a link to a list, of all contributors</span>}}}}}}}}. It may now be different from its source. | + | -->|#default=under {{#if:{{{licenseURL|}}}|[{{{licenseURL}}} {{{copyright}}}]|{{{copyright}}}}}}}}}{{#if:{{{contributors|}}}|; the contributor(s){{#ifeq:{{lc:{{{copyright|}}}}}|agreement| or copyright holder(s)}} is/are {{{contributors}}}|{{#if:{{{contribURL|}}}|; the names of contributors can be found [{{{contribURL}}} here]|{{#ifeq:{{lc:{{{copyright|}}}}}|cc|{{#ifeq:{{lc:{{{lsubtype|}}}}}|zero||<span style="color:red;">The CC license indicated requires attribution. Please provide a list, or a link to a list, of all contributors</span>}}}}}}}}.<!-- It may now be different from its source. For more information, please see [[Moegirlpedia:From other wiki]].--> |
</div></onlyinclude>{{documentation}} | </div></onlyinclude>{{documentation}} |
2020年2月14日 (五) 10:58的版本
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=sect
to 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.
- 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 thelver
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=}}
- 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}}
- 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=}}
- Other licenses.
- Let
copyright
be the name of the license (e.g.copyright=the Apache License
), and uselicenseURL
to provide a link to the text of the license. Credit the contributors as required by the license. - Barebone:
{{FromOther|copyright=|licenseURL=|contribURL=}}
- Let
Template data
用来标记原先来自其他地方的页面或内容的页顶(或段顶)模板。
参数 | 说明 | 类型 | 状态 | |
---|---|---|---|---|
网站 | 1 site | 来源网站的名字。
| 字符串 | 推荐 |
段落 | sect | 为本参数赋值“sect”来让本模板仅标识一个段落而非整个页面。其他输入会被忽略。
| 字符串 | 可选 |
来源 | origin | 提供来源页面的名称。
| 字符串 | 推荐 |
来源 URL | originURL | 提供来源页面的 URL。
| URL | 可选 |
版权授权 | copyright | 提供版权或授权类型。要使用创意共享,请赋值"cc";要使用公共领域,请赋值"pd";要使用作者授权,请赋值"agreement";要使用任何其他授权证书,直接填写证书名字。
| 字符串 | 推荐 |
证书子类型 | lsubtype | 目前仅在证书为CC时可用。提供正确的CC证书子类型(如“BY-NC-SA”)。
| 字符串 | 推荐 |
证书版本号 | lver | 目前仅在证书为CC时可用。提供正确的CC证书版本号。
| 字符串 | 推荐 |
证书 URL | licenseURL | 到证书或授权的链接。如果证书类型是CC则不必填写本项;模板会自动生成链接。
| URL | 可选 |
贡献者 | contributors | 列出所有贡献者。仅在贡献者数量很少或可以省略时使用。
| 字符串 | 可选 |
贡献者 URL | contribURL | 到所有贡献者列表的链接。对于维基计划而言,这通常是查看历史版本的页面。
| URL | 推荐 |
页面 | 2 page | 来源页面的名字。如果想要使用链接,请写完整外链。
| 字符串 | 已弃用 |
上述文档嵌入自Template:FromOther/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |