<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://agatadia.com/wiki/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ANoredirect</id>
	<title>モジュール:Noredirect - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://agatadia.com/wiki/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3ANoredirect"/>
	<link rel="alternate" type="text/html" href="https://agatadia.com/wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;action=history"/>
	<updated>2026-04-11T21:02:05Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://agatadia.com/wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=356&amp;oldid=prev</id>
		<title>Szkt: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://agatadia.com/wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=356&amp;oldid=prev"/>
		<updated>2025-05-29T08:16:35Z</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;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;2025年5月29日 (木) 17:16時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key szkt_agatadia:diff:1.41:old-355:rev-356 --&gt;
&lt;/table&gt;</summary>
		<author><name>Szkt</name></author>
	</entry>
	<entry>
		<id>https://agatadia.com/wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=355&amp;oldid=prev</id>
		<title>ja&gt;Syunsyunminmin: カテゴリ改名に対応化</title>
		<link rel="alternate" type="text/html" href="https://agatadia.com/wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=355&amp;oldid=prev"/>
		<updated>2023-02-01T09:00:08Z</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 p = {}&lt;br /&gt;
&lt;br /&gt;
-- Return a blue noredirect wikilink for an existing page, a red wikilink for a non-existing page&lt;br /&gt;
function p.noredirect(pagetitle, label)&lt;br /&gt;
&lt;br /&gt;
    -- Evaluate pagetitle&lt;br /&gt;
    if pagetitle == nil or pagetitle == &amp;#039;&amp;#039; then&lt;br /&gt;
        return error(&amp;#039;ページ名が指定されていません&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
    pagetitle = pagetitle:gsub(&amp;#039;^%[*&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;%]*$&amp;#039;, &amp;#039;&amp;#039;) -- Remove leading/trailing brackets to prevent errors&lt;br /&gt;
    pagetitle = pagetitle:gsub(&amp;#039;_&amp;#039;, &amp;#039; &amp;#039;) -- Replace underscores with spaces because this variable will be used for the link&amp;#039;s label&lt;br /&gt;
    pagetitle = pagetitle:gsub(&amp;#039;^%s*&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;%s*$&amp;#039;, &amp;#039;&amp;#039;) -- trim&lt;br /&gt;
    if pagetitle == &amp;#039;&amp;#039; then&lt;br /&gt;
        return error(&amp;#039;ページ名が不正です&amp;#039;)&lt;br /&gt;
    elseif pagetitle:find(&amp;#039;[&amp;lt;&amp;gt;[%]{}|]&amp;#039;) then&lt;br /&gt;
        return error(&amp;#039;ページ名に使用できない記号が含まれています（ &amp;lt; &amp;gt; [ ] { } | ）&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Create link&lt;br /&gt;
    local title = mw.title.new(pagetitle)&lt;br /&gt;
    if label == nil or label == &amp;#039;&amp;#039; then&lt;br /&gt;
        label = pagetitle -- Don&amp;#039;t use title.prefixedText here because the namespace alias (if the title contains any) is replaced by its canonical one&lt;br /&gt;
    end&lt;br /&gt;
    if title.exists then&lt;br /&gt;
        local link = &amp;#039;[&amp;#039; .. tostring(mw.uri.fullUrl(title.prefixedText, {redirect = &amp;#039;no&amp;#039;})) .. &amp;#039; &amp;#039; .. label .. &amp;#039;]&amp;#039;&lt;br /&gt;
        link = &amp;#039;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;&amp;#039; .. link .. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
        return link&lt;br /&gt;
    else&lt;br /&gt;
        return &amp;#039;[[:&amp;#039; .. title.prefixedText .. &amp;#039;|&amp;#039; .. label .. &amp;#039;]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main package function&lt;br /&gt;
function p.Main(frame)&lt;br /&gt;
    return p.noredirect(frame.args[&amp;#039;1&amp;#039;], frame.args[&amp;#039;2&amp;#039;])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ja&gt;Syunsyunminmin</name></author>
	</entry>
</feed>