<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iraspa.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang%2Futilities</id>
	<title>Module:Lang/utilities - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iraspa.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang%2Futilities"/>
	<link rel="alternate" type="text/html" href="https://wiki.iraspa.org/index.php?title=Module:Lang/utilities&amp;action=history"/>
	<updated>2026-04-17T14:43:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.iraspa.org/index.php?title=Module:Lang/utilities&amp;diff=1129&amp;oldid=prev</id>
		<title>Administrator: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.iraspa.org/index.php?title=Module:Lang/utilities&amp;diff=1129&amp;oldid=prev"/>
		<updated>2018-07-20T16:40:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:40, 20 July 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.iraspa.org/index.php?title=Module:Lang/utilities&amp;diff=1128&amp;oldid=prev</id>
		<title>wikipedia&gt;Trappist the monk at 22:30, 15 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.iraspa.org/index.php?title=Module:Lang/utilities&amp;diff=1128&amp;oldid=prev"/>
		<updated>2018-04-15T22:30:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require (&amp;#039;Module:No globals&amp;#039;);&lt;br /&gt;
local is_latn = require (&amp;#039;Module:Lang&amp;#039;).is_latn;&lt;br /&gt;
local p={}&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ C J K &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
return true if code is one of the listed Chinese, Japanese, Korean ISO 639 codes, false else.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_cjk_code (code)&lt;br /&gt;
local cjk =&lt;br /&gt;
		{&lt;br /&gt;
		[&amp;#039;zh&amp;#039;] = true, [&amp;#039;cdo&amp;#039;] = true, [&amp;#039;cjy&amp;#039;] = true, [&amp;#039;cmn&amp;#039;] = true,			-- Chinese language codes&lt;br /&gt;
		[&amp;#039;cpi&amp;#039;] = true, [&amp;#039;cpx&amp;#039;] = true, [&amp;#039;czh&amp;#039;] = true, [&amp;#039;czo&amp;#039;] = true,&lt;br /&gt;
		[&amp;#039;gan&amp;#039;] = true, [&amp;#039;hak&amp;#039;] = true, [&amp;#039;hsn&amp;#039;] = true, [&amp;#039;ltc&amp;#039;] = true,&lt;br /&gt;
		[&amp;#039;lzh&amp;#039;] = true, [&amp;#039;mnp&amp;#039;] = true, [&amp;#039;nan&amp;#039;] = true, [&amp;#039;och&amp;#039;] = true,&lt;br /&gt;
		[&amp;#039;wuu&amp;#039;] = true, [&amp;#039;yue&amp;#039;] = true, [&amp;#039;zhx&amp;#039;] = true,&lt;br /&gt;
		[&amp;#039;ja&amp;#039;] = true, [&amp;#039;jpx&amp;#039;] = true, [&amp;#039;ojp&amp;#039;] = true,							-- Japanese language codes&lt;br /&gt;
		[&amp;#039;ko&amp;#039;] = true, [&amp;#039;okm&amp;#039;] = true, [&amp;#039;oko&amp;#039;] = true,							-- Korean language codes&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	return cjk[code] or false;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ I T A L I C S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Created for use with Template:Infobox book and Template:Infobox document and perhaps others to replace hard-coded&lt;br /&gt;
italic markup in the call to {{lang}}.  This module attempts to make sure that {{lang}} correctly applies italic&lt;br /&gt;
markup according to MOS:FOREIGNITALIC.  &lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function p.set_italics (frame)&lt;br /&gt;
	local code = frame.args[1] or frame.args[&amp;#039;code&amp;#039;] or &amp;#039;&amp;#039;;						-- empty string causes &amp;#039;yes&amp;#039; return; {{lang}} will handle the missing code error&lt;br /&gt;
	local text = frame.args[2] or frame.args[&amp;#039;text&amp;#039;] or &amp;#039;&amp;#039;;						-- empty string causes &amp;#039;yes&amp;#039; return; {{lang}} will handle the missing text error&lt;br /&gt;
	&lt;br /&gt;
	if is_cjk_code (code) and not is_latn (text) then							-- is_latn() is in Module:Lang&lt;br /&gt;
		return  &amp;#039;no&amp;#039;;															-- only case for &amp;#039;no&amp;#039; &lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;yes&amp;#039;;																-- everything else is yes&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Trappist the monk</name></author>
		
	</entry>
</feed>