<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADocumentation%2Fi18n%2Fsandbox</id>
	<title>模块:Documentation/i18n/sandbox - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADocumentation%2Fi18n%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/i18n/sandbox&amp;action=history"/>
	<updated>2026-11-17T02:59:45Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/i18n/sandbox&amp;diff=28566&amp;oldid=prev</id>
		<title>wiki&gt;Tacsipacsi：​use UI language in module namespace</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/i18n/sandbox&amp;diff=28566&amp;oldid=prev"/>
		<updated>2021-07-31T22:12:44Z</updated>

		<summary type="html">&lt;p&gt;use UI language in module namespace&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local tnt = require(&amp;#039;Module:TNT&amp;#039;)&lt;br /&gt;
local format&lt;br /&gt;
if mw.title.getCurrentTitle().namespace == 828 then&lt;br /&gt;
	local lang = mw.getCurrentFrame():callParserFunction(&amp;#039;int&amp;#039;, &amp;#039;lang&amp;#039;)&lt;br /&gt;
	format = function (id)&lt;br /&gt;
		return tnt.formatInLanguage(lang, &amp;#039;I18n/Documentation&amp;#039;, id)&lt;br /&gt;
	end&lt;br /&gt;
else&lt;br /&gt;
	format = function (id)&lt;br /&gt;
		return tnt.format(&amp;#039;I18n/Documentation&amp;#039;, id)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
local i18n = {}&lt;br /&gt;
&lt;br /&gt;
i18n[&amp;#039;cfg-error-msg-type&amp;#039;] = format(&amp;#039;cfg-error-msg-type&amp;#039;)&lt;br /&gt;
i18n[&amp;#039;cfg-error-msg-empty&amp;#039;] = format(&amp;#039;cfg-error-msg-empty&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;template-namespace-heading&amp;#039;]&lt;br /&gt;
-- The heading shown in the template namespace.&lt;br /&gt;
i18n[&amp;#039;template-namespace-heading&amp;#039;] = format(&amp;#039;template-namespace-heading&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;module-namespace-heading&amp;#039;]&lt;br /&gt;
-- The heading shown in the module namespace.&lt;br /&gt;
i18n[&amp;#039;module-namespace-heading&amp;#039;] = format(&amp;#039;module-namespace-heading&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;file-namespace-heading&amp;#039;]&lt;br /&gt;
-- The heading shown in the file namespace.&lt;br /&gt;
i18n[&amp;#039;file-namespace-heading&amp;#039;] = format(&amp;#039;file-namespace-heading&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;other-namespaces-heading&amp;#039;]&lt;br /&gt;
-- The heading shown in other namespaces.&lt;br /&gt;
i18n[&amp;#039;other-namespaces-heading&amp;#039;] = format(&amp;#039;other-namespaces-heading&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;view-link-display&amp;#039;]&lt;br /&gt;
-- The text to display for &amp;quot;view&amp;quot; links.&lt;br /&gt;
i18n[&amp;#039;view-link-display&amp;#039;] = format(&amp;#039;view-link-display&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;edit-link-display&amp;#039;]&lt;br /&gt;
-- The text to display for &amp;quot;edit&amp;quot; links.&lt;br /&gt;
i18n[&amp;#039;edit-link-display&amp;#039;] = format(&amp;#039;edit-link-display&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;history-link-display&amp;#039;]&lt;br /&gt;
-- The text to display for &amp;quot;history&amp;quot; links.&lt;br /&gt;
i18n[&amp;#039;history-link-display&amp;#039;] = format(&amp;#039;history-link-display&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;purge-link-display&amp;#039;]&lt;br /&gt;
-- The text to display for &amp;quot;purge&amp;quot; links.&lt;br /&gt;
i18n[&amp;#039;purge-link-display&amp;#039;] = format(&amp;#039;purge-link-display&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- cfg[&amp;#039;create-link-display&amp;#039;]&lt;br /&gt;
-- The text to display for &amp;quot;create&amp;quot; links.&lt;br /&gt;
i18n[&amp;#039;create-link-display&amp;#039;] = format(&amp;#039;create-link-display&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
return i18n&lt;/div&gt;</summary>
		<author><name>wiki&gt;Tacsipacsi</name></author>
	</entry>
</feed>