<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AError</id>
	<title>Module:Error - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AError"/>
	<link rel="alternate" type="text/html" href="https://zybkcn.com/w/index.php?title=Module:Error&amp;action=history"/>
	<updated>2026-05-04T05:52:14Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://zybkcn.com/w/index.php?title=Module:Error&amp;diff=23520&amp;oldid=prev</id>
		<title>入我相思门：​创建页面，内容为“-- This module implements {{error}}.  local p = {}  local function _error(args)     local message = args.message or args[1] or error(&#039;没有指定的-{zh-cn:信息; zh-tw:資訊}-&#039;, 2)     message = tostring(message)     local tag = mw.ustring.lower(tostring(args.tag))      -- Work out what html tag we should use.     if not (tag == &#039;p&#039; or tag == &#039;span&#039; or tag == &#039;div&#039;) then         tag = &#039;strong&#039;     end      -- Generate the html.     local root = mw.html.crea…”</title>
		<link rel="alternate" type="text/html" href="https://zybkcn.com/w/index.php?title=Module:Error&amp;diff=23520&amp;oldid=prev"/>
		<updated>2022-05-02T14:57:13Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“-- This module implements {{error}}.  local p = {}  local function _error(args)     local message = args.message or args[1] or error(&amp;#039;没有指定的-{zh-cn:信息; zh-tw:資訊}-&amp;#039;, 2)     message = tostring(message)     local tag = mw.ustring.lower(tostring(args.tag))      -- Work out what html tag we should use.     if not (tag == &amp;#039;p&amp;#039; or tag == &amp;#039;span&amp;#039; or tag == &amp;#039;div&amp;#039;) then         tag = &amp;#039;strong&amp;#039;     end      -- Generate the html.     local root = mw.html.crea…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{error}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function _error(args)&lt;br /&gt;
    local message = args.message or args[1] or error(&amp;#039;没有指定的-{zh-cn:信息; zh-tw:資訊}-&amp;#039;, 2)&lt;br /&gt;
    message = tostring(message)&lt;br /&gt;
    local tag = mw.ustring.lower(tostring(args.tag))&lt;br /&gt;
&lt;br /&gt;
    -- Work out what html tag we should use.&lt;br /&gt;
    if not (tag == &amp;#039;p&amp;#039; or tag == &amp;#039;span&amp;#039; or tag == &amp;#039;div&amp;#039;) then&lt;br /&gt;
        tag = &amp;#039;strong&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Generate the html.&lt;br /&gt;
    local root = mw.html.create(tag)&lt;br /&gt;
    root&lt;br /&gt;
        :addClass(&amp;#039;error&amp;#039;)&lt;br /&gt;
        :wikitext(message)&lt;br /&gt;
&lt;br /&gt;
    return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.error(frame)&lt;br /&gt;
    local args&lt;br /&gt;
    if frame == mw.getCurrentFrame() then&lt;br /&gt;
        -- We&amp;#039;re being called via #invoke. The args are passed through to the module&lt;br /&gt;
        -- from the template page, so use the args that were passed into the template.&lt;br /&gt;
        args = frame.args&lt;br /&gt;
    else&lt;br /&gt;
        -- We&amp;#039;re being called from another module or from the debug console, so assume&lt;br /&gt;
        -- the args are passed in directly.&lt;br /&gt;
        args = frame&lt;br /&gt;
    end&lt;br /&gt;
    -- if the message parameter is present but blank, change it to nil so that Lua will&lt;br /&gt;
    -- consider it false.&lt;br /&gt;
    if args.message == &amp;quot;&amp;quot; then&lt;br /&gt;
        args.message = nil&lt;br /&gt;
    end&lt;br /&gt;
    return _error(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>入我相思门</name></author>
	</entry>
</feed>