
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ain">
	<id>https://wiki.aynu.org:443/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ACitation%2FSimulate_CS1_errors</id>
	<title>モジュール:Citation/Simulate CS1 errors - werson huskoanpe</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.aynu.org:443/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ACitation%2FSimulate_CS1_errors"/>
	<link rel="alternate" type="text/html" href="https://wiki.aynu.org:443/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Simulate_CS1_errors&amp;action=history"/>
	<updated>2026-05-08T19:05:15Z</updated>
	<subtitle>Tan wikiの tan sosに関する変更huskoanpe</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.aynu.org:443/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Simulate_CS1_errors&amp;diff=7431&amp;oldid=prev</id>
		<title>Lucas Yoyogi: https://ja.wikipedia.org/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Simulate_CS1_errors&amp;oldid=105329053 の複製</title>
		<link rel="alternate" type="text/html" href="https://wiki.aynu.org:443/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Simulate_CS1_errors&amp;diff=7431&amp;oldid=prev"/>
		<updated>2025-07-18T11:41:17Z</updated>

		<summary type="html">&lt;p&gt;https://ja.wikipedia.org/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Citation/Simulate_CS1_errors&amp;amp;oldid=105329053 の複製&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Asir sos&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require('strict')&lt;br /&gt;
&lt;br /&gt;
local function main(frame)&lt;br /&gt;
	local cs_module = frame.args.Module or ''&lt;br /&gt;
	local visible = frame.args.Visible or ''&lt;br /&gt;
	&lt;br /&gt;
	if cs_module == '' then&lt;br /&gt;
		cs_module = 'CS1'&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local res = require('Module:Citation/' .. cs_module).citation(frame)&lt;br /&gt;
	&lt;br /&gt;
	-- CS1/CS-jaモジュールの出力から主要部とCOinSメタデータを除去する&lt;br /&gt;
	res = mw.ustring.gsub(res, '%&amp;lt;cite .-%&amp;lt;/cite%&amp;gt;', '')&lt;br /&gt;
	res = mw.ustring.gsub(res, '%&amp;lt;span title=&amp;quot;ctx_ver=Z39%.88%-2004.-%&amp;lt;/span%&amp;gt;', '')&lt;br /&gt;
	&lt;br /&gt;
	-- CS1のエラーカテゴリを内部リンクに置き換える&lt;br /&gt;
	res = mw.ustring.gsub(res, '%[%[Category:(テンプレート呼び出しエラーのあるページ/CS1/[^]|]+).-%]%]', '[[:Category:%1|⚠]]')&lt;br /&gt;
	res = mw.ustring.gsub(res, '%[%[Category:(CS1エラー:[^]|]+).-%]%]', '[[:Category:%1|⚠]]')&lt;br /&gt;
	&lt;br /&gt;
	-- その他のカテゴリを除去する&lt;br /&gt;
	res = mw.ustring.gsub(res, '%[%[Category:.-%]%]', '')&lt;br /&gt;
	&lt;br /&gt;
	if not mw.ustring.find(res, '&amp;lt;span') then&lt;br /&gt;
		-- 出力にメッセージが含まれていなければテンプレートスタイルのマーカーを除去する&lt;br /&gt;
		res = mw.ustring.gsub(res, '\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127', '')&lt;br /&gt;
	elseif visible == '' then&lt;br /&gt;
		-- Visible引数が空ならばすべてのエラーメッセージを標準で不可視にする&lt;br /&gt;
		res = mw.ustring.gsub(res, 'cs1%-visible%-error', 'cs1-hidden-error')&lt;br /&gt;
		&lt;br /&gt;
		-- エラーメッセージの区切りのセミコロンも不可視化できるようにする&lt;br /&gt;
		res = mw.ustring.gsub(res, '&amp;lt;/span&amp;gt;; ', '; &amp;lt;/span&amp;gt;')&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return { main = main }&lt;/div&gt;</summary>
		<author><name>Lucas Yoyogi</name></author>
	</entry>
</feed>