SCP財団の質問カテゴリについて、度々既存の質問と同じ内容の質問スレッドが建てられます。
サイト内にはFAQが設置されていますが、今正に問題を抱えて質問しようとしているユーザの目には見つけにくい場所に置かれているのかも知れません。
そこで、質問カテゴリに新規スレッドを建てる際、下記の注意書きを表示するスクリプトを設置する事を提案します。
質問する前に
もしかしたら過去にあなたと同じ疑問を持った人が既に質問をしているかも知れません。
投稿する前にフォーラムを検索してみましょう。
また下記のページもご参照ください。
FAQ
寄稿する方法
モックは下記になります。
椎茸天然製造の質問カテゴリ
http://shitake-crude-production.wikidot.com/forum:new-thread/c/3338831
別のカテゴリでは注意書きはでません。
注意書きが出ない例
http://shitake-crude-production.wikidot.com/forum:new-thread/c/3218553
導入可否及び注意書きのリンクに追加すべきページ等についてご意見頂きたくお願いいたします。
[[html]]
<style>
@import url(http://scp-jp.wdfiles.com/local--files/japanese-syntax/scp-WikidotCss.css);
</style>
<script type="text/javascript">
var targetCategory = "3338831";//←SCP財団に導入する際はここを"981309"に変える
var PresentCategory = (function(){var ary = document.referrer.split("/");
return ary[ary.length-1].trim();
})();
function showAttention(){
if(targetCategory != PresentCategory){
return;
}
document.getElementById("attention").style.display = "block";
}
function GoToLink(url){
window.parent.location.href = url;
}
window.onload = showAttention;
</script>
<div id="attention" style="display:none;">
<b style="font-size:105%;">質問する前に</b><br />
もしかしたら過去にあなたと同じ疑問を持った人が既に質問をしているかも知れません。<br />
投稿する前にフォーラムを検索してみましょう。<br />
また下記のページもご参照ください。
<blockquote>
<span class="fake-link" onclick="GoToLink('http://ja.scp-wiki.net/faq');">FAQ</span><br />
<span class="fake-link" onclick="GoToLink('http://ja.scp-wiki.net/contribute');">寄稿する方法
</blockauote>
</div>
[[/html]]