<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://tensura-wiki.info/w/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://tensura-wiki.info/w/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://tensura-wiki.info/w/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-28T13:58:44Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://tensura-wiki.info/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=2526&amp;oldid=prev</id>
		<title>ド馬: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://tensura-wiki.info/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=2526&amp;oldid=prev"/>
		<updated>2025-07-19T15:12:29Z</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;2025年7月20日 (日) 00:12時点における版&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://tensura-wiki.info/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=2525&amp;oldid=prev</id>
		<title>ja&gt;Syunsyunminmin: カテゴリ改名に対応化</title>
		<link rel="alternate" type="text/html" href="https://tensura-wiki.info/w/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Noredirect&amp;diff=2525&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 == '' then&lt;br /&gt;
        return error('ページ名が指定されていません')&lt;br /&gt;
    end&lt;br /&gt;
    pagetitle = pagetitle:gsub('^%[*', ''):gsub('%]*$', '') -- Remove leading/trailing brackets to prevent errors&lt;br /&gt;
    pagetitle = pagetitle:gsub('_', ' ') -- Replace underscores with spaces because this variable will be used for the link's label&lt;br /&gt;
    pagetitle = pagetitle:gsub('^%s*', ''):gsub('%s*$', '') -- trim&lt;br /&gt;
    if pagetitle == '' then&lt;br /&gt;
        return error('ページ名が不正です')&lt;br /&gt;
    elseif pagetitle:find('[&amp;lt;&amp;gt;[%]{}|]') then&lt;br /&gt;
        return error('ページ名に使用できない記号が含まれています（ &amp;lt; &amp;gt; [ ] { } | ）')&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 == '' then&lt;br /&gt;
        label = pagetitle -- Don'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 = '[' .. tostring(mw.uri.fullUrl(title.prefixedText, {redirect = 'no'})) .. ' ' .. label .. ']'&lt;br /&gt;
        link = '&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;' .. link .. '&amp;lt;/span&amp;gt;'&lt;br /&gt;
        return link&lt;br /&gt;
    else&lt;br /&gt;
        return '[[:' .. title.prefixedText .. '|' .. label .. ']]'&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['1'], frame.args['2'])&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>