<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AIll-wd</id>
	<title>Modul:Ill-wd - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AIll-wd"/>
	<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Ill-wd&amp;action=history"/>
	<updated>2026-04-22T02:12:29Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Ill-wd&amp;diff=350&amp;oldid=prev</id>
		<title>Sergiu: Pagină nouă: local getArgs = require(&#039;Modul:Arguments&#039;).getArgs local wikidata = require(&#039;Modul:Wikidata&#039;) local StringUtils = require(&#039;Modul:StringUtils&#039;) local plainText = require(&#039;Modul:Plain text&#039;)._main local p = {}  p.fromArgs = function(wdId, wdLabel, wdArticleName, capitalize) 	local out = &#039;&#039; 	if mw.wikibase.sitelink(wdId) then 		if wdLabel then 			out = wikidata.findLinkToItemWithLabel(wdId, wdLabel) 		else 			local label = mw.wikibase.label(StringUtils._prependIfMissing({tostrin...</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Ill-wd&amp;diff=350&amp;oldid=prev"/>
		<updated>2024-07-14T20:27:10Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;) local StringUtils = require(&amp;#039;Modul:StringUtils&amp;#039;) local plainText = require(&amp;#039;Modul:Plain text&amp;#039;)._main local p = {}  p.fromArgs = function(wdId, wdLabel, wdArticleName, capitalize) 	local out = &amp;#039;&amp;#039; 	if mw.wikibase.sitelink(wdId) then 		if wdLabel then 			out = wikidata.findLinkToItemWithLabel(wdId, wdLabel) 		else 			local label = mw.wikibase.label(StringUtils._prependIfMissing({tostrin...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs&lt;br /&gt;
local wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;)&lt;br /&gt;
local StringUtils = require(&amp;#039;Modul:StringUtils&amp;#039;)&lt;br /&gt;
local plainText = require(&amp;#039;Modul:Plain text&amp;#039;)._main&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
p.fromArgs = function(wdId, wdLabel, wdArticleName, capitalize)&lt;br /&gt;
	local out = &amp;#039;&amp;#039;&lt;br /&gt;
	if mw.wikibase.sitelink(wdId) then&lt;br /&gt;
		if wdLabel then&lt;br /&gt;
			out = wikidata.findLinkToItemWithLabel(wdId, wdLabel)&lt;br /&gt;
		else&lt;br /&gt;
			local label = mw.wikibase.label(StringUtils._prependIfMissing({tostring(wdId), &amp;#039;Q&amp;#039;}))&lt;br /&gt;
			if label and capitalize then label = StringUtils._capitalize({ label }) end&lt;br /&gt;
			out = label and wikidata.findLinkToItemWithLabel(wdId, label) or wikidata.findLinkToItem(wdId, capitalize, false, false)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		wdLabel = wdLabel or mw.wikibase.label(wdId) or wdArticleName or wikidata.findLabel(wdId)&lt;br /&gt;
		if wdLabel and capitalize then wdLabel = StringUtils._capitalize({ wdLabel }) end&lt;br /&gt;
		&lt;br /&gt;
		if not wdArticleName then&lt;br /&gt;
			local wdLangLabel, wdLangName = mw.wikibase.getLabelWithLang(wdId)&lt;br /&gt;
			if wdLangName == &amp;#039;ro&amp;#039; then wdArticleName = wdLangLabel end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		wdArticleName = plainText(wdArticleName or wdLabel)&lt;br /&gt;
&lt;br /&gt;
		if not wdArticleName then &lt;br /&gt;
			return wikidata.findLinkToItem(wdId, capitalize, false, false)&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. &amp;#039;[[:&amp;#039; .. wdArticleName&lt;br /&gt;
		if wdArticleName ~= wdLabel then &lt;br /&gt;
			out = out .. &amp;#039;|&amp;#039; .. (wdLabel or wdArticleName)&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. &amp;#039;]]&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
		local wikidataLinkSpan = mw.html.create(&amp;#039;span&amp;#039;):attr(&amp;#039;title&amp;#039;, wdArticleName .. &amp;#039; la Wikidata&amp;#039;):wikitext(&amp;#039;d&amp;#039;)&lt;br /&gt;
		local supTag = mw.html.create(&amp;#039;sup&amp;#039;):tag(&amp;#039;small&amp;#039;):wikitext(mw.ustring.char(0x2060), &amp;#039;([[:d:&amp;#039;, wdId, &amp;#039;|&amp;#039;, tostring(wikidataLinkSpan), &amp;#039;]])&amp;#039;):allDone()&lt;br /&gt;
		out = out .. tostring(supTag)&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.fromArray = function(array)&lt;br /&gt;
	local wdId = StringUtils.prependIfMissing({array[1] or wikidata.getEntityId(), &amp;#039;Q&amp;#039;})&lt;br /&gt;
	local inLabel = array[3]&lt;br /&gt;
	local labelLang = &amp;#039;ro&amp;#039;&lt;br /&gt;
	if not inLabel then&lt;br /&gt;
		wdLabel, labelLang = mw.wikibase.getLabelWithLang(wdId)&lt;br /&gt;
	end&lt;br /&gt;
	local wdArticleName = array[2] or wdLabel&lt;br /&gt;
	&lt;br /&gt;
	if not wdLabel or labelLang ~= &amp;#039;ro&amp;#039; then&lt;br /&gt;
		wdLabel = wdArticleName or wdLabel or wikidata.findLabel(wdId, &amp;#039;ro&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local capitalize = array[&amp;#039;capitalize&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
	return p.fromArgs(wdId, inLabel or wdLabel, wdArticleName, capitalize ~= nil)&lt;br /&gt;
end&lt;br /&gt;
p.fromFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p.fromArray(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
</feed>