版权模块
2020年7月3日
修订 14
评分
11
↑ 11
↓ 0
支持率
100%
总票数 11
Wilson 95% 下界
74.1%
在相同票数下更稳健的支持率估计
争议指数
0.000
评分趋势
按周聚合 加载图表中...
最近修订
1 / 5
最近投票
1 / 2
2025-09-17
2024-11-05
2024-09-03
2023-01-23
2022-08-22
2022-05-24
2022-05-24
2022-05-24
2022-05-24
2022-05-24
相关页面
暂无推荐
页面源码
[[iftags +组件]]
如需要在你的页面添加版权信息,在页面最底端且在 wikiwalk 页脚下方添加如下语法:
**翻译自英语站的作品:**
[[div class="blockquote"]]
@@[[include :scp-wiki-cn:component:license-box@@
@@|author=作者(可选,一个或多个;默认为页面创建者)@@
@@|translator=译者(可选,一个或多个;默认为页面创建者)@@
@@]]@@
@@=====@@
@@> **文件名:**@@
@@> **图像名:**(若与文件名不同)@@
@@> **图像作者:**@@
@@> **授权协议:**@@
@@> **来源链接:**@@
@@> **衍生自:**(若适用)@@
@@> **备注:**(可选)@@
@@=====@@
@@[[include :scp-wiki-cn:component:license-box-end]]@@
[[/div]]
**翻译自其他语言分部的作品:**
[[div class="blockquote"]]
@@[[include :scp-wiki-cn:component:license-box@@
@@|lang=INT/RU/KO/FR/PL/ES/TH/JP/DE/IT/UA/PTBR/CS/VN(语言代码,需大写)@@
@@|author=作者(可选,一个或多个;默认为页面创建者)@@
@@|translator=译者(可选,一个或多个;默认为页面创建者)@@
@@]]@@
@@=====@@
@@> **文件名:**@@
@@> **图像名:**(若与文件名不同)@@
@@> **图像作者:**@@
@@> **授权协议:**@@
@@> **来源链接:**@@
@@> **衍生自:**(若适用)@@
@@> **备注:**(可选)@@
@@=====@@
@@[[include :scp-wiki-cn:component:license-box-end]]@@
[[/div]]
**中文原创作品:**
[[div class="blockquote"]]
@@[[include :scp-wiki-cn:component:license-box@@
@@|lang=CN@@
@@|author=作者(可选,一个或多个;默认为页面创建者)@@
@@]]@@
@@=====@@
@@> **文件名:**@@
@@> **图像名:**(若与文件名不同)@@
@@> **图像作者:**@@
@@> **授权协议:**@@
@@> **来源链接:**@@
@@> **衍生自:**(若适用)@@
@@> **备注:**(可选)@@
@@=====@@
@@[[include :scp-wiki-cn:component:license-box-end]]@@
[[/div]]
你也可以使用这个便捷模块生成器。你可以手动输入数据,或者将原文的版权模块代码复制至文本框中,生成器可以自动本地化组件:
[[div class="textchange"]]
[[module ListUsers users="."]]
[[div class="sitemember"]]
[[iframe https://scp-wiki-cn.wdfiles.com/local--code/component%3Alicense-box/1?userName=%%title%% class="html-block-iframe"]]
[[/div]]
[[/module]]
[[div class="sitemember"]]
//请先登入你的 Wikidot 帐号。//
[[/div]]
[[/div]]
[[module CSS]]
.textchange div.sitemember:nth-child(2) { display:none; }
[[/module]]
[!--
[[code type="HTML"]]
<head>
<style>
@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/scp-cn-tech/sigma9@cn/cn/sigma9_ch.min.css');
body {
background: transparent;
margin: 0;
padding: 0;
overflow-y: hidden;
}
</style>
<link rel = "stylesheet"
type = "text/css"
href = "textBoxes.css" />
<!-- C-take's resizing iframe method -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/scp-cn-tech/interwiki@cn/createResizeIframe.js"></script>
</head>
<body>
<form action = "">
<p>原文来源:<select id="inputLang" value="EN" onchange="changeLang()"><option selected="selected" value="EN">英语(EN)</option><option value="INT">国际站(INT)</option><option value="RU">俄语(RU)</option><option value="CN">中文(CN)</option><option value="KO">韩语(KO)</option><option value="FR">法语(FR)</option><option value="PL">波兰语(PL)</option><option value="ES">西班牙语(ES)</option><option value="TH">泰语(TH)</option><option value="JP">日语(JP)</option><option value="DE">德语(DE)</option><option value="IT">意大利语(IT)</option><option value="UA">乌克兰语(UA)</option><option value="PTBR">葡萄牙语(PT)</option><option value="CS">捷克语(CZ)</option><option value="VN">越南语(VN)</option></select></p>
<p>作者:<input type="text" id="inputAuthor" value="" style="width: 220px;" /></p>
<p>译者:<input type="text" id="inputTranslator" value="" style="width: 220px;" /></p>
<p><textarea id="inputLicenseInfo" rows="10" cols="80"></textarea></p>
<p><input type = "button" value = "生成版权模块!" onclick = "boxify()"/>
<input type = "button" value = "重置" onclick = "resetBox()"/></p>
</form>
<script type = "text/javascript">
var getQueryString = (name) => {
var r = document.location.search.substr(1).split("&");
var Reg = new RegExp("^" + name + "=([^&]*)$", "i");
for (var i = 0; i < r.length; i++) {
if (r[i].search(Reg) > -1) {
r[i] = unescape(r[i].match(Reg)[1]);
} else {
r.splice(i, 1);
i--;
}
}
if (r.length > 0) {
return r[0];
} else {
return "";
}
}
var userName = getQueryString("userName");
var inputLang = document.getElementById("inputLang");
var inputAuthor = document.getElementById("inputAuthor");
var inputTranslator = document.getElementById("inputTranslator");
inputAuthor.value = userName;
inputTranslator.value = userName;
function changeLang(){
if (inputLang.value == "CN") {
inputTranslator.setAttribute("disabled", "disabled");
} else {
inputTranslator.removeAttribute("disabled");
}
}
function resetBox(){
var txtName = document.getElementById("inputLicenseInfo");
var name = txtName.value;
inputLicenseInfo.value = "> **文件名:**\n> **图像名:**(若与文件名不同)\n> **图像作者:**\n> **授权协议:**\n> **来源链接:**\n> **衍生自:**(若适用)\n> **备注:**(可选)";
} // end clear
function boxify(){
var attribution = "";
var txtName = document.getElementById("inputLicenseInfo");
var name = txtName.value;
if (inputLang.value != "EN") attribution += "\n|lang=" + inputLang.value;
if (inputAuthor.getAttribute("disabled") == null) {
var author = "";
if (name.search(/\|author=[^|\]]+/) > -1) author = name.match(/\|author=([^|\]]+)/)[1].replace(/^\s+/, "").replace(/\s+$/, "");
if (author == "" && inputAuthor.value != userName) author = inputAuthor.value;
if (author != "") attribution += "\n|author=" + author;
}
if (inputTranslator.getAttribute("disabled") == null) {
var translator = "";
if (name.search(/\|translator=[^|\]]+/) > -1) translator = name.match(/\|translator=([^|\]]+)/)[1].replace(/^\s+/, "").replace(/\s+$/, "");
if (translator == "" && inputTranslator.value != userName) translator = inputTranslator.value;
if (translator != "") attribution += "\n|translator=" + translator;
}
if (attribution != "") attribution += "\n";
inputLicenseInfo.value = "[[include :scp-wiki-cn:component:license-box" + attribution + "]]\r\n=====\r\n" + name.replace(/\s*\[\[include .*?component:license-box[^\]]*?\]\]\s+={4,}\s+/gm, "").replace(/\s+={4,}\s+\[\[include .*?component:license-box-end\]\]\s*/gm, "").replace(/\*\*Filename[::]\*\* */gm, "**文件名:**").replace(/\*\*Name[::]\*\* */gm, "**图像名:**").replace(/\*\*Author[::]\*\* */gm, "**图像作者:**").replace(/\*\*License[::]\*\* */gm, "**授权协议:**").replace(/\*\*Source Link[::]\*\* */gm, "**来源链接:**").replace(/\*\*Derivative of[::]\*\* */gm, "**衍生自:**").replace(/\*\*Additional Notes[::]\*\* */gm, "**备注:**").replace(/:\*\* */gm, ":**").replace(/(\*\*[^*]*\*\*)(https?:\/\/)/gm, "$1*$2") + "\r\n=====\r\n[[include :scp-wiki-cn:component:license-box-end]]";
} // end boxify
resetBox();
</script>
<div id="iframeset"></div>
</body>
[[/code]]
--]
//注意//:
* 请勿在版权模块中使用一些 module,包括 CSS、HTML 和 listpages。也不能使用折叠或表格。
* 如果脚注出现在了版权模块下方,请在版权模块上方添加 [[span style="background-color: beige; font-family:'courier new';"]]@@[[footnoteblock]]@@[[/span]]。
* 请勿复制或移动 [[span style="background-color: beige; font-family:'courier new';"]]@@=====@@[[/span]] 元素。仅需一对,并将这一对分别放在 include 的上下两侧。
* 版权模块生成器仅能自动翻译上文中已有的项目名称(如“文件名”、“图像作者”等),也不能自动翻译项目内容,请手动检查并翻译这些部分。
**|author=** 和 **|translator=** 属性可用于指定作者和译者,若不填,默认为该页的创建者。这对于合著作品、你希望将著作权归属于他人的作品、或者通过元数据归属的作品来说非常有用。
----
[[/iftags]]
[[iftags -组件]]
[[include :scp-wiki-cn:component:license-box-backend
|lang{$lang}=false
|lang={$lang}
|lang=false
|author={$author}
|author=false
|translator={$translator}
|translator=false
]]
[[/iftags]]