<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.s-bou.com/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AInfobox%2Fformer</id>
	<title>モジュール:Infobox/former - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.s-bou.com/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AInfobox%2Fformer"/>
	<link rel="alternate" type="text/html" href="https://wiki.s-bou.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Infobox/former&amp;action=history"/>
	<updated>2026-04-07T07:30:23Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://wiki.s-bou.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Infobox/former&amp;diff=1682&amp;oldid=prev</id>
		<title>Administrator: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.s-bou.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Infobox/former&amp;diff=1682&amp;oldid=prev"/>
		<updated>2021-10-22T17:42:19Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2021年10月22日 (金) 17:42時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://wiki.s-bou.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Infobox/former&amp;diff=1681&amp;oldid=prev</id>
		<title>ja&gt;Waiesu: バグ修正; ノート, WP:AN/PEによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.s-bou.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Infobox/former&amp;diff=1681&amp;oldid=prev"/>
		<updated>2016-09-10T14:57:30Z</updated>

		<summary type="html">&lt;p&gt;バグ修正; &lt;a href=&quot;/index.php/%E7%89%B9%E5%88%A5:%E5%9B%BA%E5%AE%9A%E3%83%AA%E3%83%B3%E3%82%AF/61098707#.E3.83.90.E3.82.B0.E4.BF.AE.E6.AD.A3.E9.A1.98.E3.81.84&quot; title=&quot;特別:固定リンク/61098707&quot;&gt;ノート&lt;/a&gt;, &lt;a href=&quot;/index.php/%E7%89%B9%E5%88%A5:%E5%B7%AE%E5%88%86/61098937&quot; title=&quot;特別:差分/61098937&quot;&gt;WP:AN/PE&lt;/a&gt;による&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require('Module:Arguments').getArgs(frame, {parentOnly = true})	--引数取得&lt;br /&gt;
	local child = (args.child == 'yes')&lt;br /&gt;
	local subbox = (args.subbox == 'yes')&lt;br /&gt;
	local h = {subheader = {}, image = {{}}}	--ヘッダー部（subheader, image）テーブル&lt;br /&gt;
	local body, sbody = {}, {}	--本体部テーブル, ソート済み本体部テーブル&lt;br /&gt;
	local link = args.tnavbar or args.name	--（フッター部）テンプレート名&lt;br /&gt;
	local result = ''	--結果格納用&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	subheader, image用引数振り分け&lt;br /&gt;
	]]&lt;br /&gt;
	local function args2tbl(str, k, v)&lt;br /&gt;
		local num = string.match(k, '%d*$')&lt;br /&gt;
		num = (num == '') and 1 or tonumber(num)&lt;br /&gt;
		h[str][num] = h[str][num] or {}&lt;br /&gt;
		if k == str then&lt;br /&gt;
			h[str][1][1] = v&lt;br /&gt;
		elseif string.match(k, str .. '%d+') then&lt;br /&gt;
			h[str][num][1] = v&lt;br /&gt;
		elseif string.find(k, 'style') then&lt;br /&gt;
			if string.match(k, 'style$') then&lt;br /&gt;
				h[str]['style'] = v&lt;br /&gt;
			else&lt;br /&gt;
				h[str][num]['style'] = v&lt;br /&gt;
			end&lt;br /&gt;
		elseif string.find(k, 'rowclass') then&lt;br /&gt;
			if string.match(k, 'rowclass$') then&lt;br /&gt;
				h[str]['rowclass'] = v&lt;br /&gt;
			else&lt;br /&gt;
				h[str][num]['rowclass'] = v&lt;br /&gt;
			end&lt;br /&gt;
		elseif string.match(k, 'class$') then&lt;br /&gt;
			h[str]['class'] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	引数振り分け&lt;br /&gt;
	]]&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		--subheader&lt;br /&gt;
		if string.find(k, 'subheader') then&lt;br /&gt;
			args2tbl('subheader', k, v)&lt;br /&gt;
		--image&lt;br /&gt;
		elseif string.find(k, 'image') then&lt;br /&gt;
			args2tbl('image', k, v)&lt;br /&gt;
		elseif string.find(k, 'caption') then&lt;br /&gt;
			if string.match(k, 'caption$') then&lt;br /&gt;
				h['image'][1]['caption'] = '&amp;lt;div style=&amp;quot;' .. (args.captionstyle or '') .. '&amp;quot;&amp;gt;' .. v .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
			elseif string.match(k, 'caption%d+') then&lt;br /&gt;
				local num = tonumber(string.match(k, '%d*$'))&lt;br /&gt;
				h['image'][num] = h['image'][num] or {}&lt;br /&gt;
				h['image'][num]['caption'] = '&amp;lt;div style=&amp;quot;' .. (args.captionstyle or '') .. '&amp;quot;&amp;gt;' .. v .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
			end&lt;br /&gt;
		--その他（本体部）&lt;br /&gt;
		elseif string.match(k, '^%D+%d+$') then&lt;br /&gt;
			local str, num = string.match(k, '^(%D+)(%d+)$')&lt;br /&gt;
			num = tonumber(num)&lt;br /&gt;
			if not body[num] then&lt;br /&gt;
				local OddOrEven = (num % 2 ~= 0) and 'odd' or 'even'&lt;br /&gt;
				body[num] = {&lt;br /&gt;
					num,&lt;br /&gt;
					headerstyle = (args.headerstyle or '') .. (args[OddOrEven .. 'headerstyle'] or ''),&lt;br /&gt;
					labelstyle = (args.labelstyle or '') .. (args[OddOrEven .. 'labelstyle'] or ''),&lt;br /&gt;
					datastyle = (args.datastyle or '') .. (args[OddOrEven .. 'datastyle'] or '')&lt;br /&gt;
				}&lt;br /&gt;
			end&lt;br /&gt;
			body[num][str] = (body[num][str] or '') .. v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	Template:Infobox/row&lt;br /&gt;
	]]&lt;br /&gt;
	local function row(header, headerstyle, label, labelstyle, data, datastyle, rowstyle, class, rowclass, id, itemprop, rowitemprop, itemtype, rowitemtype, itemref, rowitemref)&lt;br /&gt;
		local result =''&lt;br /&gt;
		if header then&lt;br /&gt;
			result = '&amp;lt;tr style=&amp;quot;' .. (rowstyle or '') ..'&amp;quot;' .. (rowitemtype and (' itemscope itemtype=&amp;quot;' .. rowitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (rowitemref or '') .. '&amp;quot;&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; colspan=&amp;quot;2&amp;quot; class=&amp;quot;' .. (class or '') .. '&amp;quot; style=&amp;quot;text-align:center; ' .. (headerstyle or '') .. '&amp;quot;&amp;gt;' .. header .. '&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
		elseif data then&lt;br /&gt;
			result = '&amp;lt;tr class=&amp;quot;' .. (rowclass or '') .. '&amp;quot; style=&amp;quot;' .. (rowstyle or '') .. '&amp;quot; itemprop=&amp;quot;' .. (rowitemprop or '') .. '&amp;quot;' .. (rowitemtype and (' itemscope itemtype=&amp;quot;' .. rowitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (rowitemref or '') .. '&amp;quot;&amp;gt;'&lt;br /&gt;
			if label then&lt;br /&gt;
				result = result .. '&amp;lt;th scope=&amp;quot;row&amp;quot; style=&amp;quot;text-align:left; white-space:nowrap; ' .. (labelstyle or '') .. '&amp;quot;&amp;gt;' .. label .. '&amp;lt;/th&amp;gt;&amp;lt;td class=&amp;quot;' .. (class or '') .. '&amp;quot; style=&amp;quot;' .. (datastyle or '') .. '&amp;quot; itemprop=&amp;quot;' .. (itemprop or '') .. '&amp;quot;' .. (itemtype and (' itemscope itemtype=&amp;quot;' .. itemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (itemref or '') .. '&amp;quot;&amp;gt;'&lt;br /&gt;
			else&lt;br /&gt;
					result = result .. '&amp;lt;td colspan=&amp;quot;2&amp;quot; class=&amp;quot;' .. (class or '') .. '&amp;quot; style=&amp;quot;text-align:center; ' .. (datastyle or '') .. '&amp;quot; itemprop=&amp;quot;' .. (itemprop or '') .. '&amp;quot;' .. (itemtype and (' itemscope itemtype=&amp;quot;' .. rowitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (itemref or '') .. '&amp;quot;&amp;gt;'&lt;br /&gt;
			end&lt;br /&gt;
			result = result .. '\n' .. data .. '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
		return result&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	Template:Infobox&lt;br /&gt;
	]]&lt;br /&gt;
	--ヘッダー部&lt;br /&gt;
	if not child then&lt;br /&gt;
		--tableタグ&lt;br /&gt;
		result = '&amp;lt;table class=&amp;quot;' .. (subbox and '' or 'infobox ') .. (args.bodyclass or '') .. '&amp;quot; style=&amp;quot;' .. (subbox and 'min-width:100%; width:calc(100% + 6px); margin:-3px; ' or 'width:22em; ') .. (args.bodystyle or '') .. '&amp;quot;' .. (args.bodyitemtype and (' itemscope itemtype=&amp;quot;' .. args.bodyitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (args.bodyitemref or '') .. '&amp;quot;&amp;gt;'&lt;br /&gt;
		if args.title then&lt;br /&gt;
			--captionタグ&lt;br /&gt;
			result = result .. '&amp;lt;caption itemprop=&amp;quot;name&amp;quot; class=&amp;quot;' .. (args.titleclass or '') .. '&amp;quot; style=&amp;quot;' .. (args.titlestyle  or '') .. '&amp;quot;&amp;gt;' .. args.title .. '&amp;lt;/caption&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
		if args.above then&lt;br /&gt;
			result = result .. '&amp;lt;tr&amp;gt;&amp;lt;th colspan=&amp;quot;2&amp;quot; class=&amp;quot;' .. (args.aboveclass or '') .. '&amp;quot; style=&amp;quot;text-align:center; font-size:125%; font-weight:bold; ' .. (args.abovestyle or '') .. '&amp;quot; itemprop=&amp;quot;' .. (args.aboveitemprop or '') .. '&amp;quot;' .. (args.aboveitemtype and (' itemscope itemtype=&amp;quot;' .. args.aboveitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (args.aboveitemref or '') .. '&amp;quot;&amp;gt;' .. args.above ..'&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if args.title then&lt;br /&gt;
			result = '&amp;lt;b itemprop=&amp;quot;name' .. '&amp;quot;' .. (args.bodyitemtype and (' itemscope itemtype=&amp;quot;' .. args.bodyitemtype .. '&amp;quot;') or '') .. ' itemref=&amp;quot;' .. (args.bodyitemref or '') .. '&amp;quot;&amp;gt;' .. args.title .. '&amp;lt;/b&amp;gt;'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs(h.subheader) do&lt;br /&gt;
		result = result .. row(nil, nil, nil, nil, v[1], v.style or h.subheader.style, v.rowstyle, h.subheader.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)&lt;br /&gt;
	end&lt;br /&gt;
	for k, v in pairs(h.image) do&lt;br /&gt;
		result = result .. row(nil, nil, nil, nil, v[1] and (v[1] .. (v.caption or '')), v.style or h.image.style, v.rowstyle, h.image.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--本体部ソート&lt;br /&gt;
	for k, v in pairs(body) do&lt;br /&gt;
		sbody[#sbody + 1] = v&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(sbody,&lt;br /&gt;
		function (a, b) return a[1] &amp;lt; b[1] end&lt;br /&gt;
	)&lt;br /&gt;
	--本体部&lt;br /&gt;
	for k, v in ipairs(sbody) do&lt;br /&gt;
		result = result .. row(v.header, v.headerstyle, v.label, v.labelstyle, v.data, v.datastyle, v.rowstyle, v.class, v.rowclass, v.id, v.itemprop, v.rowitemprop, v.itemtype, v.rowitemtype, v.itemref, v.rowitemref)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--フッター部&lt;br /&gt;
	if args.below then&lt;br /&gt;
		result = result .. '&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;2&amp;quot; class=&amp;quot;' .. (args.belowclass or '') .. '&amp;quot; style=&amp;quot;text-align:center; ' .. (args.belowstyle or '') .. '&amp;quot;&amp;gt;' .. args.below .. '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if link then&lt;br /&gt;
		--Template:Transclude&lt;br /&gt;
		link = string.gsub(link, ':?[Tt]emplate:', '')&lt;br /&gt;
		if not string.find(link, ':') then&lt;br /&gt;
			link = 'Template:' .. link&lt;br /&gt;
		end&lt;br /&gt;
		result = result .. '&amp;lt;tr class=&amp;quot;noprint&amp;quot;&amp;gt;&amp;lt;td colspan=2 style=&amp;quot;text-align:right; font-size:85%;&amp;quot;&amp;gt;[[' .. link .. '|テンプレートを表示]]&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--tableタグ閉じ&lt;br /&gt;
	if not child then&lt;br /&gt;
		result = result .. '&amp;lt;/table&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--出力&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ja&gt;Waiesu</name></author>
	</entry>
</feed>