<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.signal-st.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%3AProtect</id>
	<title>モジュール:Protect - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.signal-st.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%3AProtect"/>
	<link rel="alternate" type="text/html" href="https://wiki.signal-st.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Protect&amp;action=history"/>
	<updated>2026-04-19T03:46:39Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.signal-st.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Protect&amp;diff=912&amp;oldid=prev</id>
		<title>羽井出: 1版 をインポートしました: Main, Pathnavなど</title>
		<link rel="alternate" type="text/html" href="https://wiki.signal-st.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Protect&amp;diff=912&amp;oldid=prev"/>
		<updated>2025-01-11T13:56:29Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました: Main, Pathnavなど&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;2025年1月11日 (土) 22:56時点における版&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>羽井出</name></author>
	</entry>
	<entry>
		<id>https://wiki.signal-st.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Protect&amp;diff=911&amp;oldid=prev</id>
		<title>ja&gt;ネイ: 日本語化</title>
		<link rel="alternate" type="text/html" href="https://wiki.signal-st.com/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Protect&amp;diff=911&amp;oldid=prev"/>
		<updated>2021-09-01T07:12:14Z</updated>

		<summary type="html">&lt;p&gt;日本語化&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function processResult(options, success, ...)&lt;br /&gt;
	if not success then&lt;br /&gt;
		local message = tostring(... or &amp;#039;（メッセージなし）&amp;#039;)&lt;br /&gt;
		if options.removeLocation then&lt;br /&gt;
			message = string.gsub(message, &amp;#039;^Module:[^:]+:%d+: &amp;#039;, &amp;#039;&amp;#039;, 1)&lt;br /&gt;
			message = string.gsub(message, &amp;#039;^モジュール:[^:]+:%d+: &amp;#039;, &amp;#039;&amp;#039;, 1)&lt;br /&gt;
		end&lt;br /&gt;
		return string.format(options.errFormat, message)&lt;br /&gt;
	end&lt;br /&gt;
	return ...&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function protect(func, errFormat, options)&lt;br /&gt;
	if type(errFormat) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		options = options or errFormat&lt;br /&gt;
		errFormat = nil&lt;br /&gt;
	end&lt;br /&gt;
	options = mw.clone(options) or {}&lt;br /&gt;
	options.errFormat = errFormat or options.errFormat or &amp;#039;エラー: %s&amp;#039;&lt;br /&gt;
	if not options.raw then&lt;br /&gt;
		options.errFormat = &amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;&amp;#039; .. options.errFormat .. &amp;#039;&amp;lt;/strong&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	options.removeLocation = options.removeLocation == nil or options.removeLocation&lt;br /&gt;
	&lt;br /&gt;
	return function (...)&lt;br /&gt;
		return processResult(options, pcall(func, ...))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return protect&lt;/div&gt;</summary>
		<author><name>ja&gt;ネイ</name></author>
	</entry>
</feed>