Difference between revisions of "Template:FromOtherWiki/doc"
(Created page with "This template is rewritten on the basis of {{tl|FromOther}}, using interwiki links to simplify parameter filling. Because this template does not have a built-in compatibility...") |
m (// Edit Via InPageEdit) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
== Parameters == | == Parameters == | ||
* <code>interwiki</code>: required parameter, prefix for interwiki links, all available prefixes, see [[Special:interwiki]]. It also corresponds to the anonymous parameter <code>1</code>. | * <code>interwiki</code>: required parameter, prefix for interwiki links, all available prefixes, see [[Special:interwiki]]. It also corresponds to the anonymous parameter <code>1</code>. | ||
− | *: Currently, only common site names ( | + | *: Currently, only common site names (zhwp=Chinese Wikipedia, enwp=English Wikipedia, jawp=Japanese Wikipedia, metawikimedia=MetaWiki) and default protocols are written in the template, welcome to add them. |
* <code>pagename</code>: Required parameter, the name of the referenced page. | * <code>pagename</code>: Required parameter, the name of the referenced page. | ||
* <code>oldid</code>: optional parameter, the version id referenced from, which can be seen in the browser address bar of the historical version. | * <code>oldid</code>: optional parameter, the version id referenced from, which can be seen in the browser address bar of the historical version. | ||
Line 14: | Line 14: | ||
===<code>copyright</code> parameter=== | ===<code>copyright</code> parameter=== | ||
− | '''The following is quoted from the template | + | '''The following is quoted from the template documentation of {{tl|FromOther}}. The only difference from the FromOther template is that this template defines the default protocol of common sites.''' |
The <code>copyright</code> parameter is the most complex parameter system in this template. Currently, it allows users to choose one of three authorization methods or to define a certificate themselves. | The <code>copyright</code> parameter is the most complex parameter system in this template. Currently, it allows users to choose one of three authorization methods or to define a certificate themselves. | ||
Line 30: | Line 30: | ||
#*Use this option if you have a license from the copyright owner or author for Moegirlpedia (ie, not a generic license like CC). Please still tag the source and author as usual, and use the <code>licenseURL</code> parameter to provide the license file itself, or the address of a web page that proves the license exists. | #*Use this option if you have a license from the copyright owner or author for Moegirlpedia (ie, not a generic license like CC). Please still tag the source and author as usual, and use the <code>licenseURL</code> parameter to provide the license file itself, or the address of a web page that proves the license exists. | ||
#Custom authorization. | #Custom authorization. | ||
− | + | #*<code>The copyright</code> parameter should be assigned the name of the authorization certificate you want to use (eg <code>copyright=Apache Certificate</code>; use <code>licenseURL</code> to connect to the original address of the certificate. Link to the original authors according to the requirements of the authorization certificate. | |
=== Attribution === | === Attribution === | ||
Line 36: | Line 36: | ||
== See also == | == See also == | ||
− | *[[Template:FromOther]], [[Template:FromOther# Quoted from _Mediawiki_ website page|Template:FromOther/wiki]]<noinclude>[[Category:Template | + | *[[Template:FromOther]], [[Template:FromOther# Quoted from _Mediawiki_ website page|Template:FromOther/wiki]]<noinclude>[[Category:Template documentation]] |
+ | [[zh:模板:FromOtherWiki]]</noinclude> |
Latest revision as of 06:20, 8 August 2022
This template is rewritten on the basis of {{FromOther}}, using interwiki links to simplify parameter filling.
Because this template does not have a built-in compatibility judgment syntax, it is recommended to use Template:FromOther/wiki.
Parameters
interwiki
: required parameter, prefix for interwiki links, all available prefixes, see Special:interwiki. It also corresponds to the anonymous parameter1
.- Currently, only common site names (zhwp=Chinese Wikipedia, enwp=English Wikipedia, jawp=Japanese Wikipedia, metawikimedia=MetaWiki) and default protocols are written in the template, welcome to add them.
pagename
: Required parameter, the name of the referenced page.oldid
: optional parameter, the version id referenced from, which can be seen in the browser address bar of the historical version.sect
: optional parameter, you can use|sect=sect
to make the template mark only one paragraph (not the whole page).sectlink
: Optional parameter, pointing to the specific section name of the referenced page.
The following are things that are generally not used (
copyright
parameter
The following is quoted from the template documentation of {{FromOther}}. The only difference from the FromOther template is that this template defines the default protocol of common sites.
The copyright
parameter is the most complex parameter system in this template. Currently, it allows users to choose one of three authorization methods or to define a certificate themselves.
- CC protocol.
copyright=cc
.- When the CC protocol is selected, a protocol subclass (such as "BY", "BY-NC-SA", etc.) must be provided with the
lsubtype
parameter, and thelver
parameter must be used Provide a correct protocol version number. - The templates automatically generates protocol URLs. Do not use
licenseURL
. - The template has special support for CC0: the subclass of CC0 is
zero
, and the version number is1.0
.
- Public domain.
copyright=pd
.- Although it is generally not necessary to attribute the content cited from the public domain, if you know the author's name and the source URL, please attach it.
- (Special) agreement or authorization.
copyright=agreement
.- Use this option if you have a license from the copyright owner or author for Moegirlpedia (ie, not a generic license like CC). Please still tag the source and author as usual, and use the
licenseURL
parameter to provide the license file itself, or the address of a web page that proves the license exists.
- Custom authorization.
The copyright
parameter should be assigned the name of the authorization certificate you want to use (egcopyright=Apache Certificate
; uselicenseURL
to connect to the original address of the certificate. Link to the original authors according to the requirements of the authorization certificate.
Attribution
This template provides two methods of attribution: you can use contribURL
to link to a page listing all contributors (for wiki projects, this is usually the page for viewing historical versions), or you can use contributors
directly lists the names of all contributors or copyright holders. For co-authored sources such as quotes from Wiki projects and books compiled by a large number of editors, please use the former as much as possible (you can consider using Moegirl Library to include editor pages), because it is either impossible to list all contributors directly, or it will take up a lot of page space . Use the contributors
parameter only with few contributors or copyright holders.