info:style

著作標示板塊The Credit Module由日本站點成員 C-takeC-takephysicslikephysicslikesinazugawasinazugawa 以及 Nanimono DemonaiNanimono Demonai日本站點 所共同製作。其後由 德國站點Dr_GromDr_Grom 移植到德國站點,並由 CroquemboucheCroquembouche 以及 RimpleRimple 兩位用戶移植到 基金會本部

使用方法

在頁面的頂部使用以下程式碼取代原本的評分板塊以及評分板塊上下的[[>]] 程式碼。也請移除您認為多餘的空格,同時,[[include …]]裡的內容可以依您的需求進行一定程度的客製化。

[[include info:start]]
**SCP-ZH-XXXX:**作品名稱
**基金會故事/GoI格式的名稱**
**作者:**[[*user 該作者的用戶名]]
**來源作品:**附上該作品的超連結
**譯者:** [[*user 該譯者的用戶名]]
**圖像版權:**填寫任何有關該作品版權的資訊
如果您有其他需要加上的資訊可以依照以上範例加入
[[include info:more]]
在這一欄加入的內容會以額外對話窗展示出來。如果您不想加入額外對話窗,可以移除「[[include info:more]]」
[[include info:end]]

如果您的文章裡原本就沒有加入評分板塊,則可以直接加入以下其中一項[[include]]程序碼,而不是以上那些。

[[include info:start-standalone]]
[[include info:more-standalone]]
[[include info:credit:end-standalone]]

請注意:當您使用文本編輯器的「預覽」功能時,著作標示板塊並不會正常顯示出來,只有在儲存後才會正確顯示,這種現象是正常的,不用擔心。

另外也請注意:本板塊不支援Multipage以及Listpages這兩個板塊。請使用perPage="250"以最大化一個頁面內所能看到的文章數目。

Note: If you want to use this module on another wiki (for example, on the sandbox), prefix the page name with ":scp-wiki:". For example, [[include :scp-wiki:info:start]].還有一點要留意:如果您想在其他維基使用這個板塊(例如沙盒維基),請加上「:scp-wiki:」這個前綴。範例如: [[include :scp-wiki:info:start]]


@import url('http://cdnjs.cloudflare.com/ajax/libs/cc-icons/1.2.1/css/cc-icons.min.css');
 
#u-credit-view, #u-credit-otherwise {
    width: 100%;
    height: 100%;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    display: flex;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    z-index: 10;
}
#u-credit-view:not(:target), #u-credit-otherwise:not(:target) {
    opacity: 0;
    display: none;
}
#u-credit-view:target, #u-credit-otherwise:target {
    opacity: 1;
    animation-duration: 0.3s;
    animation-name: fade-in;
    -moz-animation-duration: 0.5s;
    -moz-animation-name: fade-in;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-name: fade-in;
}
 
@keyframes fade-in {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
    }
    100% {
        display: block;
        opacity: 1;
    }
}
@-moz-keyframes fade-in {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
    }
    100% {
        display: block;
        opacity: 1;
    }
}
@-webkit-keyframes fade-in {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: block;
        opacity: 0;
    }
      100% {
        display: block;
        opacity: 1;
    }
}
 
.fader{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.fader iframe, .fader a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
 
.modalcontainer{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 600px;
    max-width: 95vw !important;
    height: 350px;
    margin: auto;
    pointer-events: auto !important;
}
.modalbox{
    /*min-width: 400px;*/
    background: #fefefe;
    background:linear-gradient(#eee 51px,#fefefe 51px,#fefefe);
    border: #333 solid 1px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(102, 0, 0, .5);
    padding:4px;
    max-height: 50vh;
    pointer-events: auto !important;
}
#u-credit-otherwise .modalbox {
    background:linear-gradient(#eee 51px,#fefefe 51px,#fefefe);
}
.modalbox .credit {
    margin: 2em;
}
.modalbox .credit p {
    /*margin: 0;*/
}
.modalbox .credit:not(:first-child) {
    margin-top: 0;
}
.modalbox .credit:not(:last-child) {
    margin-bottom: 0;
}
.modalbox .credit.otherwise {
    overflow-y: auto;
    height: 30vh;
}
 
#u-credit-view .credit-back {
    display:none;
}
#u-credit-otherwise .creditBottomRate {
    display:none;
}
 
@media (max-width: 767px) {
#u-credit-view {
    height: 100%;
    top: 0;
}
.modalcontainer{
    /*min-width: 300px;*/
}
.modalbox{
    /*min-width: 300px;*/
}
}
#u-credit-view-button {
    display: block;
    text-align: right;
}
 
.Dendo{
    display:none;
    text-align:right;
}
.Dendo .heritage-rating-module{
    float:right;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    vertical-align: top;
}
 
.creditRate {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    align-items: center;
    float:right;
    margin-bottom:10px;
    margin-right:2em;
}
.creditRate p{
    display:inline;
    padding: 0;
    margin:0;
    line-height: 0;
}
 
.creditRate .page-rate-widget-box {
    margin:0;
    padding:0;
}
.creditRate .heritage-rating-module {
    float:right;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    vertical-align: top;
    margin:0;
}
.creditRate .heritage-rating-module .page-rate-widget-box{
    margin:0;
}
.creditRate .audio-img-block {
    top: 0;
}
.rate-box-with-credit-button{
    background-color: #633;
    border: solid 1px #633;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
.rate-box-with-credit-button .page-rate-widget-box .cancel {
    border-right: 0;
}
.rate-box-with-credit-button .page-rate-widget-box{
    box-shadow: none;
}
.rate-box-with-credit-button .creditButton {
    display: inline-block;
}
.creditRate .rateBox{
    display:inline-block;
}
.creditRate .rateBox p{
    display:inline;
    margin:0;
    padding:0;
}
 
.creditButton p{
    font-size: 0.8em;
}
.creditButton p a{
    width: 17px;
    margin-left: -5px;
    padding-top: 0.5px;
    color: #ffffff;
    border-left: solid 1px #966;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
}
.creditButton p a:hover {
    color: #3498db;
}
 
.heritage-rating-module .creditButton p a{
    margin-left: 1px;
    margin-right: -5px;
    padding-left: 1px;
    padding-top: 1.5px;
    color: #ffffff;
    font-size: 13px;
}
.heritage-rating-module .creditButton p a:hover {
    color: #ccc066;
}
 
.modalbox .page-rate-widget-box {
    margin-right: 0;
}
 
.credit-back .back a {
    display: none;
}
.credit-back .back a::before {
    content: "Zurück";
}
 
.creditButtonStandalone p a{
    display: block;
    width: 17px;
    height: 17px;
    line-height: 17px;
    border-radius: 50%;
    color: #ffffff;
    text-align: center;
    background: #744;
    box-shadow: 0 0 3px gray;
    font-size: 12px;
}
.creditButtonStandalone p a:hover {
    background: #3498db;
}
 
/* Give a little expandability to the box */
.credit.first {
    height: 30vh;
    overflow-y: auto;
}
 
/* Add a lil X to close the box */
.close-credits {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    width: 1em;
}



This script had to be copied here to change a string.
Original (second script)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
    <head>
        <meta http-equiv="Content-Script-Type" content="text/javascript"/>
        <meta http-equiv="Content-Style-Type" content="text/css"/>
        <meta http-equiv="content-language" content="ja,jp-ja"/>
        <meta charset="UTF-8"/>
        <link rel="stylesheet" href="/component:theme/code/1">
        <style>
        body{
        background:transparent;
        padding:0;
        }
        </style>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script>
        /*!
        * jQuery JavaScript Library v3.2.1
        * https://jquery.com/
        *
        * Includes Sizzle.js
        * https://sizzlejs.com/
        *
        * Copyright JS Foundation and other contributors
        * Released under the MIT license
        * https://jquery.org/license
        *
        * Date: 2017-03-20T18:59Z
        */
        //---------------------------
        //ProjectName: Credit Module
        //FunctionName: Back Module
        //CreatedBy C-take , sinazugawa
        //License MIT
        //---------------------------
        $(function() {
        var ua = navigator.userAgent.toLowerCase();
        var bReload= true;
        if ( ( ua.indexOf("applewebkit") >= 0 ||  ua.indexOf("firefox") >= 0 ) && ua.indexOf("edge") == -1 )
        bReload= false;
        $('.back').click(closeCredit);
        function closeCredit() {
        if ( bReload ) {
        history.go(-1);
        parent.location.href = document.referrer.split('#')[0];
        } else {
        history.go(-1);
        }
        return false;
        }
        });
        </script>
    </head>
    <body>
        <div style="width: 100%; text-align: center;">
        <a class="back" style="cursor: pointer;">按此返回</span>
        </div>
    </body>
</html>



For the lil "X" button
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" style="padding:0;margin:0;">
    <head>
        <meta http-equiv="Content-Script-Type" content="text/javascript"/>
        <meta http-equiv="Content-Style-Type" content="text/css"/>
        <meta http-equiv="content-language" content="ja,jp-ja"/>
        <meta charset="UTF-8"/>
        <link rel="stylesheet" href="/component:theme/code/1">
        <style>
        body{
        background:transparent;
        padding:0;
        }
        </style>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script>
        $(function() {
        var ua = navigator.userAgent.toLowerCase();
        var bReload= true;
        if ( ( ua.indexOf("applewebkit") >= 0 ||  ua.indexOf("firefox") >= 0 ) && ua.indexOf("edge") == -1 )
        bReload= false;
        $('.back').click(closeCredit);
        function closeCredit() {
        if ( bReload ) {
        history.go(-1);
        parent.location.href = document.referrer.split('#')[0];
        } else {
        history.go(-1);
        }
        return false;
        }
        });
        </script>
    </head>
    <body style="padding:0;margin:0;">
        <div style="width: 100%; text-align: center;">
        <a class="back" style="cursor: pointer;">X</span>
        </div>
    </body>
</html>
除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License