<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://u-stella.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%3ARelatedByCategory</id>
	<title>モジュール:RelatedByCategory - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://u-stella.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%3ARelatedByCategory"/>
	<link rel="alternate" type="text/html" href="https://u-stella.wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:RelatedByCategory&amp;action=history"/>
	<updated>2026-04-21T00:33:26Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://u-stella.wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:RelatedByCategory&amp;diff=2100&amp;oldid=prev</id>
		<title>U-Stella: ページの作成:「local p = {}  function p.show(frame)     local title = mw.title.getCurrentTitle()     local categories = title:getParentCategories()     local results = {}     local limit = tonumber(frame.args[1]) or 5      for catTitle, _ in pairs(categories) do         if mw.title.new(catTitle).namespace == 14 then -- Category namespace             local cat = mw.title.new(catTitle):getContent()             local pages = mw.site.stats.pagesInCategory(catTitle, false)…」</title>
		<link rel="alternate" type="text/html" href="https://u-stella.wiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:RelatedByCategory&amp;diff=2100&amp;oldid=prev"/>
		<updated>2025-04-14T20:30:31Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「local p = {}  function p.show(frame)     local title = mw.title.getCurrentTitle()     local categories = title:getParentCategories()     local results = {}     local limit = tonumber(frame.args[1]) or 5      for catTitle, _ in pairs(categories) do         if mw.title.new(catTitle).namespace == 14 then -- Category namespace             local cat = mw.title.new(catTitle):getContent()             local pages = mw.site.stats.pagesInCategory(catTitle, false)…」&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;
function p.show(frame)&lt;br /&gt;
    local title = mw.title.getCurrentTitle()&lt;br /&gt;
    local categories = title:getParentCategories()&lt;br /&gt;
    local results = {}&lt;br /&gt;
    local limit = tonumber(frame.args[1]) or 5&lt;br /&gt;
&lt;br /&gt;
    for catTitle, _ in pairs(categories) do&lt;br /&gt;
        if mw.title.new(catTitle).namespace == 14 then -- Category namespace&lt;br /&gt;
            local cat = mw.title.new(catTitle):getContent()&lt;br /&gt;
            local pages = mw.site.stats.pagesInCategory(catTitle, false)&lt;br /&gt;
            for _, page in ipairs(pages) do&lt;br /&gt;
                if page.prefixedText ~= title.prefixedText and #results &amp;lt; limit then&lt;br /&gt;
                    table.insert(results, &amp;#039;[[&amp;#039; .. page.prefixedText .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if #results == 0 then&lt;br /&gt;
        return &amp;#039;&amp;lt;div class=&amp;quot;related-footer&amp;quot;&amp;gt;&amp;lt;small&amp;gt;関連記事はまだありません。&amp;lt;/small&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return &amp;#039;&amp;lt;div class=&amp;quot;related-footer&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;📚 関連記事:&amp;lt;/strong&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;#039; .. table.concat(results, &amp;#039;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&amp;#039;) .. &amp;#039;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>U-Stella</name></author>
	</entry>
</feed>