<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ABilibiliVideoIDValidator</id>
	<title>模块:BilibiliVideoIDValidator - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ABilibiliVideoIDValidator"/>
	<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:BilibiliVideoIDValidator&amp;action=history"/>
	<updated>2026-06-28T16:22:19Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:BilibiliVideoIDValidator&amp;diff=11420&amp;oldid=prev</id>
		<title>DrTompkins：导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:BilibiliVideoIDValidator&amp;diff=11420&amp;oldid=prev"/>
		<updated>2023-04-12T04:17:33Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&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;2023年4月12日 (三) 04:17的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh&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>DrTompkins</name></author>
	</entry>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:BilibiliVideoIDValidator&amp;diff=11419&amp;oldid=prev</id>
		<title>zhmoe&gt;Lih：搬运自萌娘百科的同名条目</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:BilibiliVideoIDValidator&amp;diff=11419&amp;oldid=prev"/>
		<updated>2022-09-23T09:56:38Z</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;return {&lt;br /&gt;
    validation = function(frame)&lt;br /&gt;
        local result = true&lt;br /&gt;
        local id = mw.text.trim(frame.args.id or '')&lt;br /&gt;
        if mw.ustring.match(id, '^%d+$') then&lt;br /&gt;
            -- 纯数字&lt;br /&gt;
            if not (string.sub(id, 1, 1) ~= '0' and string.len(id) &amp;lt;= 9) then -- 若id为纯数字时，当首位不为0且长度在1-9位时合法。&lt;br /&gt;
                result = false&lt;br /&gt;
            end&lt;br /&gt;
        elseif mw.ustring.match(id, '^[aA][vV]%d+$') then&lt;br /&gt;
            -- 若id为【av+纯数字】（不区分大小写）时，当且仅当纯数字部分首位不为0且长度在1-9位时合法，其余情况添加分类&lt;br /&gt;
            if not (string.sub(id, 3, 3) ~= '0' and string.len(id) &amp;lt;= 11) then&lt;br /&gt;
                result = false&lt;br /&gt;
            end&lt;br /&gt;
        elseif mw.ustring.match(id, '4.1.7..$') then&lt;br /&gt;
            if string.len(id) == 12 then&lt;br /&gt;
                -- 若id为【BV1】开头时，当且仅当id长度为12位，且除去【BV1】后的部分均不包含小写l大写I、大写O和数字0时合法。&lt;br /&gt;
                if not mw.ustring.match(id, '^[bB][vV]1[a-km-zA-HJ-NP-Z0-9]+$') then&lt;br /&gt;
                    result = false&lt;br /&gt;
                end&lt;br /&gt;
            elseif string.len(id) == 10 then&lt;br /&gt;
                -- 若id为【1】开头时，当且仅当id长度为10位，且除去【1】后的部分均不包含小写l大写I、大写O和数字0时合法。&lt;br /&gt;
                if not mw.ustring.match(id, '^1[a-km-zA-HJ-NP-Z0-9]+$') then&lt;br /&gt;
                    result = false&lt;br /&gt;
                end&lt;br /&gt;
            elseif string.len(id) == 9 then&lt;br /&gt;
                -- 若id不满足上述四种情况时，当且仅当id长度为9位，且不包含小写l大写I、大写O和数字0时合法。&lt;br /&gt;
                if not mw.ustring.match(id, '^[a-km-zA-HJ-NP-Z0-9]+$') then&lt;br /&gt;
                    result = false&lt;br /&gt;
                end&lt;br /&gt;
            else&lt;br /&gt;
                result = false&lt;br /&gt;
            end&lt;br /&gt;
        else&lt;br /&gt;
            result = false&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if result then&lt;br /&gt;
            return ''&lt;br /&gt;
        else&lt;br /&gt;
            return frame:expandTemplate {title = 'ArticleCategory', args = {'Bilibili视频ID错误'}} ..&lt;br /&gt;
                    '&amp;lt;span class=&amp;quot;BilibiliVideoIDValidatorArgument&amp;quot; style=&amp;quot;display: none;&amp;quot;&amp;gt;' ..&lt;br /&gt;
                        frame.args.id .. '&amp;lt;/span&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>zhmoe&gt;Lih</name></author>
	</entry>
</feed>