<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
	<id>https://wiki.czchan.org/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3ALanguage</id>
	<title>Modul:Language - Historie editací</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.czchan.org/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3ALanguage"/>
	<link rel="alternate" type="text/html" href="https://wiki.czchan.org/w/index.php?title=Modul:Language&amp;action=history"/>
	<updated>2026-05-13T16:49:47Z</updated>
	<subtitle>Historie editací této stránky</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.czchan.org/w/index.php?title=Modul:Language&amp;diff=336&amp;oldid=prev</id>
		<title>Sneedmaster: naimportována 1 revize</title>
		<link rel="alternate" type="text/html" href="https://wiki.czchan.org/w/index.php?title=Modul:Language&amp;diff=336&amp;oldid=prev"/>
		<updated>2026-03-06T18:29:24Z</updated>

		<summary type="html">&lt;p&gt;naimportována 1 revize&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;cs&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Starší verze&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Verze z 6. 3. 2026, 18:29&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;cs&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Žádný rozdíl)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key nuwiki-nuwiki-:diff:1.41:old-335:rev-336 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sneedmaster</name></author>
	</entry>
	<entry>
		<id>https://wiki.czchan.org/w/index.php?title=Modul:Language&amp;diff=335&amp;oldid=prev</id>
		<title>wp&gt;Legoktm: Replacing Module:No globals with require(&#039;strict&#039;) (more info) #noglobals</title>
		<link rel="alternate" type="text/html" href="https://wiki.czchan.org/w/index.php?title=Modul:Language&amp;diff=335&amp;oldid=prev"/>
		<updated>2026-01-06T00:44:06Z</updated>

		<summary type="html">&lt;p&gt;Replacing Module:No globals with require(&amp;#039;strict&amp;#039;) (&lt;a href=&quot;https://meta.wikimedia.org/wiki/User:Legoktm/No_globals&quot; class=&quot;extiw&quot; title=&quot;m:User:Legoktm/No globals&quot;&gt;more info&lt;/a&gt;) #noglobals&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function getCode(args)&lt;br /&gt;
	return mw.text.trim(args[1] or &amp;#039;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- pozor, vrací prázdný string (který se chová jako true), ne nil&lt;br /&gt;
function p._getName(code)&lt;br /&gt;
	local data = mw.loadData(&amp;#039;Modul:Languages/data&amp;#039;)&lt;br /&gt;
	return data[&amp;#039;overrides-names&amp;#039;][code] or mw.language.fetchLanguageName(code, &amp;#039;cs&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._getNameVJazyce(code)&lt;br /&gt;
	local data = mw.loadData(&amp;#039;Modul:Languages/data&amp;#039;)&lt;br /&gt;
	return data[&amp;#039;jak&amp;#039;][code]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._getLink(code)&lt;br /&gt;
	local data = mw.loadData(&amp;#039;Modul:Languages/data&amp;#039;)&lt;br /&gt;
	local target = data[&amp;#039;overrides-links&amp;#039;][code]&lt;br /&gt;
	local label = p._getName(code)&lt;br /&gt;
	if label == &amp;#039;&amp;#039; then&lt;br /&gt;
		label = target&lt;br /&gt;
	end&lt;br /&gt;
	if not label then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if target then&lt;br /&gt;
		return mw.ustring.format(&amp;#039;[[%s|%s]]&amp;#039;, target, label)&lt;br /&gt;
	else&lt;br /&gt;
		return mw.ustring.format(&amp;#039;[[%s]]&amp;#039;, label)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._getLinkVJazyce(code)&lt;br /&gt;
	local data = mw.loadData(&amp;#039;Modul:Languages/data&amp;#039;)&lt;br /&gt;
	local label = p._getNameVJazyce(code)&lt;br /&gt;
	if not label then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local n&lt;br /&gt;
	label, n = mw.ustring.gsub(label, &amp;#039;^(ve?) &amp;#039;, &amp;#039;%1&amp;amp;nbsp;&amp;#039;, 1)&lt;br /&gt;
	local target = data[&amp;#039;overrides-links&amp;#039;][code] or p._getName(code)&lt;br /&gt;
	if target ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		return mw.ustring.format(&amp;#039;[[%s|%s]]&amp;#039;, target, label)&lt;br /&gt;
	else&lt;br /&gt;
		return label&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getName(frame)&lt;br /&gt;
	local code = getCode(frame.args)&lt;br /&gt;
	return p._getName(code)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getNameVJazyce(frame)&lt;br /&gt;
	local code = getCode(frame.args)&lt;br /&gt;
	return p._getNameVJazyce(code)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getLink(frame)&lt;br /&gt;
	local code = getCode(frame.args)&lt;br /&gt;
	return p._getLink(code)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getLinkVJazyce(frame)&lt;br /&gt;
	local code = getCode(frame.args)&lt;br /&gt;
	return p._getLinkVJazyce(code)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wp&gt;Legoktm</name></author>
	</entry>
</feed>