<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://uchuwiki.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-autonum.js</id>
	<title>MediaWiki:Gadget-autonum.js - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://uchuwiki.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-autonum.js"/>
	<link rel="alternate" type="text/html" href="https://uchuwiki.com/wiki/index.php?title=MediaWiki:Gadget-autonum.js&amp;action=history"/>
	<updated>2026-09-15T06:19:10Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://uchuwiki.com/wiki/index.php?title=MediaWiki:Gadget-autonum.js&amp;diff=112750&amp;oldid=prev</id>
		<title>2024年5月12日 (日) 15:32にAikaによる</title>
		<link rel="alternate" type="text/html" href="https://uchuwiki.com/wiki/index.php?title=MediaWiki:Gadget-autonum.js&amp;diff=112750&amp;oldid=prev"/>
		<updated>2024-05-12T15:32:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年5月13日 (月) 00:32時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;4行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;4行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @author Krinkle&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @author Krinkle&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @version &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2021&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;03&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * @version &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2024&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;04&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;25&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  */&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;var toc = document.querySelector(&amp;#039;#toc&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;var toc = document.querySelector(&amp;#039;#toc&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if (toc) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if (toc) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   document.querySelectorAll(&#039;.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline&#039;).forEach(function (headline) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  // Support legacy Parser: &amp;lt;h2&amp;gt;&amp;lt;span class=mw-headline id=…&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  // Support Parsoid: &amp;lt;section&amp;gt;&amp;lt;div class=mw-heading&amp;gt;&amp;lt;h2 id…&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   document.querySelectorAll(&#039;.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[id], .mw-parser-output .mw-heading [id]:is(h1,h2,h3,h4,h5,h6)&lt;/ins&gt;&#039;).forEach(function (headline) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var num = toc.querySelector(&amp;#039;a[href=&amp;quot;#&amp;#039; + CSS.escape(headline.id) + &amp;#039;&amp;quot;] .tocnumber&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     var num = toc.querySelector(&amp;#039;a[href=&amp;quot;#&amp;#039; + CSS.escape(headline.id) + &amp;#039;&amp;quot;] .tocnumber&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (num) headline.prepend(num.textContent + &amp;#039; &amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (num) headline.prepend(num.textContent + &amp;#039; &amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key uchuwiki:diff:1.41:old-71357:rev-112750:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Aika</name></author>
	</entry>
	<entry>
		<id>https://uchuwiki.com/wiki/index.php?title=MediaWiki:Gadget-autonum.js&amp;diff=71357&amp;oldid=prev</id>
		<title>Aika: ページの作成:「/**  * Auto-number headings  *  * @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings  * @author Krinkle  * @version 2021-10-03  */ var toc = document.querySelector(&#039;#toc&#039;); if (toc) {   document.querySelectorAll(&#039;.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline&#039;).forEach(function (headline) {     var num = toc.querySelector(&#039;a[href=&quot;#&#039; + CSS.escape(headline.id) + &#039;&quot;] .tocnumber&#039;);     if (num) headline.prepend(num.textContent + &#039; &#039;);   }); } e…」</title>
		<link rel="alternate" type="text/html" href="https://uchuwiki.com/wiki/index.php?title=MediaWiki:Gadget-autonum.js&amp;diff=71357&amp;oldid=prev"/>
		<updated>2023-03-26T09:04:52Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「&lt;span class=&quot;autocomment&quot;&gt;*  * Auto-number headings  *  * @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings  * @author Krinkle  * @version 2021-10-03: &lt;/span&gt; var toc = document.querySelector(&amp;#039;#toc&amp;#039;); if (toc) {   document.querySelectorAll(&amp;#039;.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline&amp;#039;).forEach(function (headline) {     var num = toc.querySelector(&amp;#039;a[href=&amp;quot;#&amp;#039; + CSS.escape(headline.id) + &amp;#039;&amp;quot;] .tocnumber&amp;#039;);     if (num) headline.prepend(num.textContent + &amp;#039; &amp;#039;);   }); } e…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/**&lt;br /&gt;
 * Auto-number headings&lt;br /&gt;
 *&lt;br /&gt;
 * @source https://www.mediawiki.org/wiki/Snippets/Auto-number_headings&lt;br /&gt;
 * @author Krinkle&lt;br /&gt;
 * @version 2021-10-03&lt;br /&gt;
 */&lt;br /&gt;
var toc = document.querySelector(&amp;#039;#toc&amp;#039;);&lt;br /&gt;
if (toc) {&lt;br /&gt;
  document.querySelectorAll(&amp;#039;.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline&amp;#039;).forEach(function (headline) {&lt;br /&gt;
    var num = toc.querySelector(&amp;#039;a[href=&amp;quot;#&amp;#039; + CSS.escape(headline.id) + &amp;#039;&amp;quot;] .tocnumber&amp;#039;);&lt;br /&gt;
    if (num) headline.prepend(num.textContent + &amp;#039; &amp;#039;);&lt;br /&gt;
  });&lt;br /&gt;
} else {&lt;br /&gt;
  document.body.classList.add(&amp;#039;tpl-autonum&amp;#039;);&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Aika</name></author>
	</entry>
</feed>