[[embed]]
<iframe src="//interwiki.scpwikicn.com/styleFrame.html?priority=1
&type=sidebar
&override={$override}&theme=https://hormress.github.io/Parallel/normalize-min.css
&css={$css}" style="display: none"></iframe>
[[/embed]]
[[embed]]
<iframe src="//interwiki.scpwikicn.com/styleFrame.html?priority=2
&type=sidebar
&override={$override}&theme=https://hormress.github.io/Parallel/parallel-min.css
&css={$css}" style="display: none"></iframe>
[[/embed]]
这是什么?
该组件由OneWildMaggot制作。设计上参考了
Liryn与
Placeholder McD的玄武岩 版式的页面元素。使用了由
EstrellaYoshte,
HarryBlank以及
Calibold制作的图标。这个组件可以让你更方便的插入“来自XX的通知”。
使用方法
将以下代码置于文章的任意位置,就像这样:
[[include :scp-wiki-cn:component:noticefromdepartments-backend]]
之后你就可以使用这些:
[[div class="raisa_memo"]]
[[/div]]
[[div class="overwatch_memo"]]
[[/div]]
[[div class="ethics_memo"]]
[[/div]]
[[div class="classification_memo"]]
[[/div]]
[[div class="ettra_memo"]]
[[/div]]
[[div class="dd_memo"]]
[[/div]]
示例
来自基金会记录与信息安全管理部的通知
你正在浏览该文档的过时版本。
——RAISA主管Maria Jones
代码:
[[div class="raisa_memo"]]
[[=]]
++++* 来自基金会记录与信息安全管理部的通知你正在浏览该文档的过时版本。
**——RAISA主管Maria Jones**
[[/=]]
[[/div]]
自定义
你可以通过这些自定义一个通知背景(而且不用引用这个组件)。
[[module css]]
.在这里输入一串字母 {
color: black;
border: solid 3px 在这里输入边框颜色;
background-color: 在这里输入背景颜色;
background-image: url(在这里输入logo图片地址);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
[[/module]]
之后你就可以通过
[[div class="在上面输入的一串字母"]]
[[/div]]
调用这个通知背景了。
+ 源代码
.raisa_memo {
color: black;
border: solid 3px #BDB76B;
background-color: #f2f2c2;
background-image: url(https://scp-wiki.wdfiles.com/local--files/facilities-complete-list/RAISA.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
.overwatch_memo {
color: black;
border: solid 3px #A9A9A9;
background-color: #DCDCDC;
background-image: url(http://scpsandboxcn.wikidot.com/local--files/collab:credoalbus4/overwatch_gray.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
.ethics_memo {
color: black;
border: solid 3px #D8BFD8;
background-color: #E6E6FA;
background-image: url(http://scpsandboxcn.wikidot.com/local--files/collab:credoalbus4/ec_gray.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
.classification_memo {
color: black;
border: solid 3px #D4F6D4;
background-color: #F0FFF0;
background-image: url(http://scpsandboxcn.wikidot.com/local--files/collab:credoalbus4/cc_gray.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
.ettra_memo {
color: black;
border: solid 3px #FFA500;
background-color: #FFE4B5;
background-image: url(http://scpsandboxcn.wikidot.com/local--files/collab:credoalbus4/ETTRA_gray.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}
.dd_memo {
color: black;
border: solid 3px #DCDCDC;
background-color: #ffffff;
background-image: url(http://scpsandboxcn.wikidot.com/local--files/collab:credoalbus4/DeDLogo_gray.svg);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
padding: 5px;
margin-bottom: 10px;
}





