「テンプレート:ArticleFooter」の版間の差分

提供: 小樽のじかん事典
編集の要約なし
編集の要約なし
1行目: 1行目:
== 出典 ==
== 出典 ==
<references />
<references/>
 
== コメント ==
== コメント ==
<comments />
<comments />
<script>
(function () {
  window.RLQ = window.RLQ || [];
  window.RLQ.push(function () {
    function moveCatlinks() {
      var cat = document.getElementById('catlinks');
      if (!cat) return;
      var comments = document.getElementById('comments-body');
      if (comments && comments.insertAdjacentElement) {
        if (comments.nextElementSibling === cat) return;
        comments.insertAdjacentElement('afterend', cat);
        return;
      }
      var dst = document.getElementById('mw-data-after-content');
      if (dst && cat.parentElement !== dst) {
        dst.appendChild(cat);
      }
    }
    moveCatlinks();
    if (window.mw && mw.hook) {
      mw.hook('wikipage.content').add(function () {
        moveCatlinks();
      });
    }
    var watchRoot = document.getElementById('mw-data-after-content') || document.body;
    if (watchRoot && window.MutationObserver) {
      var obs = new MutationObserver(function () {
        moveCatlinks();
      });
      obs.observe(watchRoot, { childList: true, subtree: true });
    }
  });
})();
</script>

2026年1月8日 (木) 07:32時点における版

出典


コメント

Loading comments...

<script> (function () {

 window.RLQ = window.RLQ || [];
 window.RLQ.push(function () {
   function moveCatlinks() {
     var cat = document.getElementById('catlinks');
     if (!cat) return;
     var comments = document.getElementById('comments-body');
     if (comments && comments.insertAdjacentElement) {
       if (comments.nextElementSibling === cat) return;
       comments.insertAdjacentElement('afterend', cat);
       return;
     }
     var dst = document.getElementById('mw-data-after-content');
     if (dst && cat.parentElement !== dst) {
       dst.appendChild(cat);
     }
   }
   moveCatlinks();
   if (window.mw && mw.hook) {
     mw.hook('wikipage.content').add(function () {
       moveCatlinks();
     });
   }
   var watchRoot = document.getElementById('mw-data-after-content') || document.body;
   if (watchRoot && window.MutationObserver) {
     var obs = new MutationObserver(function () {
       moveCatlinks();
     });
     obs.observe(watchRoot, { childList: true, subtree: true });
   }
 });

})(); </script>