<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.marvgame.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%3A%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E6%9F%BB</id>
	<title>モジュール:法人番号検査 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.marvgame.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%3A%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E6%9F%BB"/>
	<link rel="alternate" type="text/html" href="https://wiki.marvgame.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E6%9F%BB&amp;action=history"/>
	<updated>2026-09-04T14:02:54Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.marvgame.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E6%9F%BB&amp;diff=1035&amp;oldid=prev</id>
		<title>Korobka: ページの作成:「require(&#039;strict&#039;) local p = {}  function p.check(id) 	-- 	-- 法人番号の検査を行う 	-- 文字列idが法人番号として有効であればtrueを、 	-- そうでなければfalseを返す 	-- 	id = id:match(&#039;^%s*([1-9]%d%d%d%d%d%d%d%d%d%d%d%d)%s*$&#039;) 	if not id then return false end  	local work = 0 	for i = 1, 13 do 		work = work + tonumber(id:sub(i, i)) * (2 - i % 2) 	end 	 	return work % 9 == 0 end  function p.main(frame) 	return p.check(frame.args…」</title>
		<link rel="alternate" type="text/html" href="https://wiki.marvgame.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E6%9F%BB&amp;diff=1035&amp;oldid=prev"/>
		<updated>2026-04-21T20:36:51Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「require(&amp;#039;strict&amp;#039;) local p = {}  function p.check(id) 	--[[ 	-- 法人番号の検査を行う 	-- 文字列idが法人番号として有効であればtrueを、 	-- そうでなければfalseを返す 	]]-- 	id = id:match(&amp;#039;^%s*([1-9]%d%d%d%d%d%d%d%d%d%d%d%d)%s*$&amp;#039;) 	if not id then return false end  	local work = 0 	for i = 1, 13 do 		work = work + tonumber(id:sub(i, i)) * (2 - i % 2) 	end 	 	return work % 9 == 0 end  function p.main(frame) 	return p.check(frame.args…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.check(id)&lt;br /&gt;
	--[[&lt;br /&gt;
	-- 法人番号の検査を行う&lt;br /&gt;
	-- 文字列idが法人番号として有効であればtrueを、&lt;br /&gt;
	-- そうでなければfalseを返す&lt;br /&gt;
	]]--&lt;br /&gt;
	id = id:match(&amp;#039;^%s*([1-9]%d%d%d%d%d%d%d%d%d%d%d%d)%s*$&amp;#039;)&lt;br /&gt;
	if not id then return false end&lt;br /&gt;
&lt;br /&gt;
	local work = 0&lt;br /&gt;
	for i = 1, 13 do&lt;br /&gt;
		work = work + tonumber(id:sub(i, i)) * (2 - i % 2)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return work % 9 == 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	return p.check(frame.args[1] or &amp;#039;&amp;#039;) and &amp;#039;&amp;#039; or &amp;#039;error&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Korobka</name></author>
	</entry>
</feed>