<header><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"><meta name="hibp-verify" content="dweb_ahmm7tzpovjk0hkhflm8wqvu" />

<!--[if IE]>
<meta http-equiv="Refresh" content="0; URL=http://noie.ksepeses.com/">
<!--<![endif]-->
    <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js?id=3N8xzwWYGoxEeDm5&ck=3N8xzwWYGoxEeDm5"></script>
<link rel="icon" type="image/x-icon" href="./favicon-16.ico" sizes="16x16">
<link rel="icon" type="image/png" href="./zyom.png" sizes="512x512">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<meta name="Keywords" content="扩科偶梦,知沅考试,偶像梦幻祭,知沅偶梦,扩展科目偶像梦幻祭,知沅教育,知沅教育出版社,扩展科目">
<meta name="Description" Content="我们的梦想永不终结！欢迎来到知沅教育出版社扩展科目偶像梦幻祭课程教材教学研究所官网~(〃'▽'〃)(〃'▽'〃)">
<meta name="msvalidate.01" content="F6FE2D5F15A458308AEA9CA31A96263F" />
<meta name="baidu-site-verification" content="codeva-9r28d9psyW" />

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2824368906056698"
     crossorigin="anonymous"></script>
</header>
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://es.ksepub.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AWikitextLC</id>
	<title>模块:WikitextLC - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://es.ksepub.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AWikitextLC"/>
	<link rel="alternate" type="text/html" href="https://es.ksepub.com/index.php?title=%E6%A8%A1%E5%9D%97:WikitextLC&amp;action=history"/>
	<updated>2026-07-09T04:40:59Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://es.ksepub.com/index.php?title=%E6%A8%A1%E5%9D%97:WikitextLC&amp;diff=941&amp;oldid=prev</id>
		<title>鹤訓：建立内容为“local p = {}  --- Construct an inline conversion from a table input. -- @param content table of the form --        { [&quot;zh-cn&quot;]='foobar', [&quot;zh-tw&quot;]='firecat', [&quot;zh…”的新页面</title>
		<link rel="alternate" type="text/html" href="https://es.ksepub.com/index.php?title=%E6%A8%A1%E5%9D%97:WikitextLC&amp;diff=941&amp;oldid=prev"/>
		<updated>2025-08-08T14:10:38Z</updated>

		<summary type="html">&lt;p&gt;建立内容为“local p = {}  --- Construct an inline conversion from a table input. -- @param content table of the form --        { [&amp;quot;zh-cn&amp;quot;]=&amp;#039;foobar&amp;#039;, [&amp;quot;zh-tw&amp;quot;]=&amp;#039;firecat&amp;#039;, [&amp;quot;zh…”的新页面&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;
--- Construct an inline conversion from a table input.&lt;br /&gt;
-- @param content table of the form&lt;br /&gt;
--        { [&amp;quot;zh-cn&amp;quot;]='foobar', [&amp;quot;zh-tw&amp;quot;]='firecat', [&amp;quot;zh-hk&amp;quot;]='' }&lt;br /&gt;
-- @returns string&lt;br /&gt;
--       &amp;quot;-{zh-cn:foobar;zh-tw:firecat;zh-hk:&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;}-&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- @fixme allow for generating output without &amp;quot;-{&amp;quot; &amp;quot;}-&amp;quot;, so that&lt;br /&gt;
--        it can be used with the last three wrappers.&lt;br /&gt;
function p.selective( content )&lt;br /&gt;
    local text = '-{'&lt;br /&gt;
    for variant, value in pairs( content ) do&lt;br /&gt;
        if value == '' then&lt;br /&gt;
            value = '&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;'&lt;br /&gt;
        end&lt;br /&gt;
        text = text .. variant .. ':' .. value .. ';'&lt;br /&gt;
    end&lt;br /&gt;
    text = text .. '}-'&lt;br /&gt;
    return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Write some text with a limited set of variants to convert to&lt;br /&gt;
--&lt;br /&gt;
-- @param content text to be written&lt;br /&gt;
-- @param variant a variant (string), or a list of variants&lt;br /&gt;
--        (semicolon-deliminated string, or table of strings)&lt;br /&gt;
-- @param[opt] force convert even under &amp;quot;zh&amp;quot; (no conversion) locale&lt;br /&gt;
function p.converted( content, variant, force )&lt;br /&gt;
    if type( variant ) == 'table' then&lt;br /&gt;
        variant = table.concat( variant, ';' )&lt;br /&gt;
    end&lt;br /&gt;
    return '-{' .. ( force and '' or 'zh;' ) .. variant .. '|' .. content .. '}-'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Wraps some &amp;quot;raw text&amp;quot; to not convert.&lt;br /&gt;
--&lt;br /&gt;
-- @fixme Is the &amp;quot;R&amp;quot; flag some undocumented/undefined no-op magic?&lt;br /&gt;
--        Are we using it instead of the old '-{' .. content .. '}-'&lt;br /&gt;
--        to avoid confusion caused by a flag in the &amp;quot;content&amp;quot;?&lt;br /&gt;
function p.raw( content )&lt;br /&gt;
    return '-{R|' .. content .. '}-'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Wraps a title conversion rule.&lt;br /&gt;
function p.title( content )&lt;br /&gt;
    return '-{T|' .. content .. '}-'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Wraps a (hidden) conversion rule definition.&lt;br /&gt;
function p.hidden( content )&lt;br /&gt;
    return '-{H|' .. content .. '}-'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>鹤訓</name></author>
	</entry>
</feed>