<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://gf-ogas.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3A%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE</id>
	<title>Module:少女前线图鉴图 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://gf-ogas.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3A%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE"/>
	<link rel="alternate" type="text/html" href="https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;action=history"/>
	<updated>2026-12-01T09:06:29Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;diff=20859&amp;oldid=prev</id>
		<title>失格异构体：​改为静态映射表（避免 exceeds expensive function call limit）</title>
		<link rel="alternate" type="text/html" href="https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;diff=20859&amp;oldid=prev"/>
		<updated>2026-10-25T14:05:40Z</updated>

		<summary type="html">&lt;p&gt;改为静态映射表（避免 exceeds expensive function call limit）&lt;/p&gt;
&lt;a href=&quot;https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;amp;diff=20859&amp;amp;oldid=20856&quot;&gt;显示更改&lt;/a&gt;</summary>
		<author><name>失格异构体</name></author>
	</entry>
	<entry>
		<id>https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;diff=20856&amp;oldid=prev</id>
		<title>失格异构体：​新建：图鉴缩略图文件名回退解析</title>
		<link rel="alternate" type="text/html" href="https://gf-ogas.wiki/index.php?title=Module:%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF%E5%9B%BE%E9%89%B4%E5%9B%BE&amp;diff=20856&amp;oldid=prev"/>
		<updated>2026-10-25T14:04:52Z</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;
local cache = {}&lt;br /&gt;
&lt;br /&gt;
local function exists(name)&lt;br /&gt;
    local ok, t = pcall(mw.title.new, &amp;quot;File:&amp;quot; .. name)&lt;br /&gt;
    if not ok or not t then&lt;br /&gt;
        return false&lt;br /&gt;
    end&lt;br /&gt;
    return t.fileExists == true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- 把图鉴里引用的缩略图名（Pic_XXX_S.jpg）解析成本站真实存在的文件：&lt;br /&gt;
-- 先看原名，再退回 &amp;lt;base&amp;gt;.png / &amp;lt;base&amp;gt;_N.png。&lt;br /&gt;
function p.file(frame)&lt;br /&gt;
    local raw = frame.args[1]&lt;br /&gt;
    if not raw then&lt;br /&gt;
        return &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    local name = mw.text.trim(raw)&lt;br /&gt;
    if name == &amp;#039;&amp;#039; then&lt;br /&gt;
        return &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    if cache[name] ~= nil then&lt;br /&gt;
        return cache[name]&lt;br /&gt;
    end&lt;br /&gt;
    local out = name&lt;br /&gt;
    if not exists(name) then&lt;br /&gt;
        local base = name:gsub(&amp;#039;_S%.[%a]+$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
        local cands = { base .. &amp;#039;.png&amp;#039;, base .. &amp;#039;_N.png&amp;#039; }&lt;br /&gt;
        for _, c in ipairs(cands) do&lt;br /&gt;
            if exists(c) then&lt;br /&gt;
                out = c&lt;br /&gt;
                break&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    cache[name] = out&lt;br /&gt;
    return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>失格异构体</name></author>
	</entry>
</feed>