<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://enciclopedia.md/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sergiu</id>
	<title>MediaWiki - Contribuțiile utilizatorului [ro]</title>
	<link rel="self" type="application/atom+xml" href="https://enciclopedia.md/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sergiu"/>
	<link rel="alternate" type="text/html" href="https://enciclopedia.md/Special:Contribu%C8%9Bii/Sergiu"/>
	<updated>2026-04-24T16:03:13Z</updated>
	<subtitle>Contribuțiile utilizatorului</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Istoria_Adev%C4%83rat%C4%83_a_Unirii&amp;diff=1464</id>
		<title>Istoria Adevărată a Unirii</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Istoria_Adev%C4%83rat%C4%83_a_Unirii&amp;diff=1464"/>
		<updated>2025-04-26T20:39:51Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Prima revizie&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Sau despre ce se tace la istoria românilor. ===&lt;br /&gt;
&lt;br /&gt;
= Despre autor =&lt;br /&gt;
Eu am fost unionist. Am fost fan al istoriei românilor. Știu zeci de poezii ale lui Eminescu, Coșbuc, Alecsandri, etc. Și-i băteam la dezbateri pe toți moldoveniștii. Cel puțin așa credeam eu. Pînă cînd am pierdut la o dezbatere. Sau mai bine spus - am fost bătut măr.&lt;br /&gt;
&lt;br /&gt;
= Omul prost și omul înțelept =&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Motto: Minciuna repetată de o mie de ori devine adevăr.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Joseph Goebbels, filolog, Ministru al Propagandei în Germania nazistă (1933-1945)&#039;&#039;&amp;lt;/blockquote&amp;gt;&amp;lt;blockquote&amp;gt;Motto nr. 2: Adevărul pentru a stîrpi minciuna e suficient de spus o singură dată.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Un moldovan.&#039;&#039;&amp;lt;/blockquote&amp;gt;Noi suntem învățați că oamenii puternici stau pe pozițiile lor pînă la urmă, și că doar trădătorii își pot schimba pozițiile. Dacă ar fi așa, atunci dezbaterile între doi oameni puternici nu și-ar avea rostul, pentru că ei vor sta pînă la urmă pe pozițiile lor fără a putea fi convinși de argumentele drepte ale oponentului&lt;br /&gt;
&lt;br /&gt;
Oamenii înțelepți însă, mereu își schimbă părerile atunci cînd aud un argument care  explică mai bine lucrurile, care are mai mult sens decît ceea în ce credeau ei pînă atunci.&lt;br /&gt;
&lt;br /&gt;
[[Fișier:Exemplu de gîndire greșită..png|alt=Exemplu de gîndire greșită|centru|miniatura|Exemplu de gîndire greșită]]&lt;br /&gt;
[[Fișier:Exemplu de gîndire corectă.png|alt=Exemplu de gîndire corectă. Informațiile noi completează vechea viziune și o actualizează.|centru|miniatura|Exemplu de gîndire corectă. Informațiile noi completează vechea viziune și o actualizează.]]&lt;br /&gt;
În viața de zi cu zi îi putem recunoaște pe oamenii nătîngi (prostuți) în discuții. Atunci cînd ei aud un argument care îi contrazice - ei ori:&lt;br /&gt;
&lt;br /&gt;
* Etichetează pe cel care a zis argumentul - această tactică se numește „atac la persoană”. Exemplu: Tu ești prea tînăr să cunoști adevărul.  Exemplu2: Ești un prost, ceea ce înseamnă că argumentul tău este fals.&lt;br /&gt;
* Etichetează sursa la care se face trimitere.  Exemplu: Asta de unde ai luat? Din manualele sovietice?  Exemplu2: Propagandă sovietică!&lt;br /&gt;
&lt;br /&gt;
Pe oamenii cu inteligență îi preocupă sursa argumentului, dar numai pentru a încerca să găsească adevărul, pentru a afla izvorul. Cu alte cuvinte, pe omul inteligent îl interesează în primul rînd dacă argumentul oponentului este drept.&lt;br /&gt;
&lt;br /&gt;
Omul prost vede în argumentele oponentului o amenințare. Consideră pe acestea ca un atac la persoana sa, la convingerile sale. Omul prost se teme să afle adevărul, pentru că asta ar putea însemna că el nu a fost drept, că părerile lui au fost greșite.&lt;br /&gt;
&lt;br /&gt;
Omul înțelept însă, vede în argumentele oponentului o oportunitate. El va fi bucuros dacă convingerile sale vor fi făcute praf, pentru că asta înseamnă că el va obține în urma la asta niște convingeri mai drepte. Omul înțelept tinde mereu spre perfecțiune.&lt;br /&gt;
&lt;br /&gt;
Omul prost vrea ca convingerile sale să fie adevărate.&lt;br /&gt;
&lt;br /&gt;
Omul înțelept vrea ca adevărul să ajungă să devină convingerea sa.&lt;br /&gt;
&lt;br /&gt;
= Istorie sau propagandă =&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Motto: Nicio acțiune bună nu poate fi însoțită de minciună.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filmul „Păzește-te de automobil”&#039;&#039;&amp;lt;/blockquote&amp;gt;Nouă ni se spune că la școală învățăm „adevărul istoric”, și că ideile care neagă acest „adevăr istoric” sunt „propagandă”.&lt;br /&gt;
&lt;br /&gt;
Eu zic că „adevărul istoric” nu poate să includă acești „dușmani” ai adevărului precum:&lt;br /&gt;
&lt;br /&gt;
* Neadevăruri, sau falsuri,&lt;br /&gt;
* Ascunderea cu bună știință a informației care ar combate aceste „adevăruri”.&lt;br /&gt;
&lt;br /&gt;
Asta nu înseamnă că un manual bun și adevărat nu conține falsuri. Deseori se strecoară greșeli chiar și în manualele bune. Dar autorii de bună credință îndată ce vor fi găsit greșeala - o vor îndrepta în următoarea ediție. De dragul adevărului.&lt;br /&gt;
&lt;br /&gt;
Atunci cînd falsurile sunt perpetuate din ediție în ediție a manualelor, iar contra-argumentele sunt cu rea voință ascunse - noi putem constata că aceste manuale nu învață „adevărul istoric”, ci fac propagandă.&lt;br /&gt;
&lt;br /&gt;
În această lucrare eu m-am stăruit să pun doar informații adevărate. Informații care au fost ascunse de către autorii manualelor de istorie a românilor. Eu voi fi bucuros dacă se vor descoperi neadevăruri și falsuri în text. Chiar vă rog să le căutați. Vă provoc! Arătați-mi-le și le voi îndrepta.&lt;br /&gt;
&lt;br /&gt;
= Marea Unire din 1918 =&lt;br /&gt;
Cu toții știm povestea cu deputații din Sfatul Țării care au votat Marea Unire într-un vot democratic, după care s-au luat de mînă și au dansat Hora Unirii. Dar iată cîteva lucruri pe care nu le știm despre Sfatul Țării. Să începem cu o scurtă cronologie a unirii.&lt;br /&gt;
&lt;br /&gt;
== Cronologia evenimentelor ==&lt;br /&gt;
&#039;&#039;&#039;2 decembrie 1917&#039;&#039;&#039; - Sfatul Țării proclamă „Republica Democratică Moldovenească”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;30 decembrie 1917&#039;&#039;&#039; - Regele României Ferdinand I ia hotărîrea să ocupe Republica Democratică Moldovenească.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Începutul lui ianuarie 1918&#039;&#039;&#039; - Trupele românești invadează Basarabia. Nu la chemarea Sfatului Țării.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;13 ianuarie 1918&#039;&#039;&#039; - Inculeț povestește că atunci cînd i-a întrebat la Călărași pe ofițerii români de ce au intrat - ei i-au răspuns că pentru a apăra depozitele. Ei i-au dat asigurări că nu se vor amesteca în viața politică a RDM (au mințit).  Militarii români aveau să părăsească Basarabia după restabilirea ordinii și liniștii în regiune.&lt;br /&gt;
&#039;&#039;&#039;23 ianuarie 1918&#039;&#039;&#039; - RUMCEROD (Comitetul Executiv Central al Sovietelor Frontului Român, Flotei Mării Negre și regiunii Odessa) declară război României pentru invazia Republicii Democratice Moldovenești. Trupele românești suferind o serie de înfrîngeri au cerut un armistițiu (încetare a focului).&lt;br /&gt;
&#039;&#039;&#039;23-24 ianuarie 1918&#039;&#039;&#039; - Sfatul Țării votează Declarația de independență a Republicii Democratice Moldovenești. Fapt care a deranjat oligarhatul român. În special partea care spunea că se dă pămînt țăranilor fără plată, în timp ce România a ucis mii de țărani care cereau pămînt în 1907, și nu vroia să aibă un exemplu pentru țăranii români că în altă parte s-a putut rezolva problema fără vărsare de sînge și în folosul țăranilor.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;15 februarie 1918&#039;&#039;&#039; - guvernul României a primit o telegramă de la RUMCEROD în care scria că dacă România nu-și retrage trupele de pe teritoriul Basarabiei - trupele sovietice vor relua luptele.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;21 februarie 1918&#039;&#039;&#039; - corpul diplomatic de la Iași a propus rușilor să intre în tratative cu românii.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2 martie 1918&#039;&#039;&#039; - trupele germane intră în Kiev, alungîndu-i pe ruși.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3 martie 1918&#039;&#039;&#039; - Rusia semnează cu România o înțelegere de retragere a trupelor românești de pe teritoriul Basarabiei (Iași). Prim-ministrul Averescu a garantat retragerea trupelor de ocupație românești într-un termen de două luni.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5 martie 1918&#039;&#039;&#039; - Tratatul de la Buftea, în anexa secretă a căruia Imperiul German a permis Regatului Român anexarea Basarabiei în schimbul pasajului liber feroviar către Ucraina. România și-a schimbat astfel aliații.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5-9 martie 1918&#039;&#039;&#039; - s-a semnat acordul de pace „Protocolul lichidării conflictului ruso-român”.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8 martie 1918&#039;&#039;&#039; - trupele sovietice primesc ordin de încetare a operațiunilor militare împotriva trupelor românești.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9 martie 1918&#039;&#039;&#039; - Rusia semnează cu România o înțelegere de retragere a trupelor românești de pe teritoriul Basarabiei (același acord ca și cel din 3 martie, Odessa)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9 martie 1918&#039;&#039;&#039; - România văzînd că Rusia pierde bătălile împotriva armatelor austro-germane (Kiev, Vinnița), și înțelegînd că în curînd Rușii vor fi alungați din regiune - încalcă acordul de pace cu Rusia și cucerește localitățile Acherman și Șabo, sfîrșind ocupația Sudului Basarabiei.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;15 martie 1918&#039;&#039;&#039; - Averescu a fost dat jos din funcția de prim-ministru al Românei. Asta din cauză că pe 9 martie spusese că Rusia e slabă, dar nu moartă, iar o țară mică ca România nu trebuie să între în conflict cu o putere ca Rusia.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;27 martie 1918&#039;&#039;&#039; - armata românească adună Sfatul Țării și-i obligă pe deputați să voteze pentru unire prin vot deschis și practic - cu arma la tîmplă&lt;br /&gt;
&#039;&#039;&#039;27 noiembrie 1918&#039;&#039;&#039; - puciul care a lichidat Sfatul Țării.&lt;br /&gt;
&lt;br /&gt;
== Mai mulți deputați din Sfatul Țării au fost uciși de armata română. Lista membrilor Sfatului Țării este incompletă ==&lt;br /&gt;
Pare incredibil, nu-i așa? Toată lumea știe că poți afla lista membrilor din Sfatul Țării intrînd pe Wikipedia!&lt;br /&gt;
&lt;br /&gt;
Dar dacă veți intra pe Wikipedia - veți vedea următorul text:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Aceasta este &#039;&#039;&#039;lista cu membrii Sfatului Țării din ziua votării Unirii Basarabiei cu România&#039;&#039;&#039;. Din cei 125 de deputați prezenți, 86 au votat în favoarea Unirii, 3 au votat împotrivă, 36 s-au abținut, 13 deputați fiind absenți.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Fi%C8%99ier:Exemplu_de_g%C3%AEndire_corect%C4%83.png&amp;diff=1463</id>
		<title>Fișier:Exemplu de gîndire corectă.png</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Fi%C8%99ier:Exemplu_de_g%C3%AEndire_corect%C4%83.png&amp;diff=1463"/>
		<updated>2025-04-26T20:35:35Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exemplu de gîndire corectă. Informațiile noi completează vechile idei sau chiar le infirmă.&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Fi%C8%99ier:Exemplu_de_g%C3%AEndire_gre%C8%99it%C4%83..png&amp;diff=1462</id>
		<title>Fișier:Exemplu de gîndire greșită..png</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Fi%C8%99ier:Exemplu_de_g%C3%AEndire_gre%C8%99it%C4%83..png&amp;diff=1462"/>
		<updated>2025-04-26T20:32:43Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exemplu de gîndire greșită. Faptele noi care neagă vechile concepte sunt ignorate.&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:WikidataUtils/Biography&amp;diff=357</id>
		<title>Modul:WikidataUtils/Biography</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:WikidataUtils/Biography&amp;diff=357"/>
		<updated>2024-07-14T20:31:48Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local Wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;) local p = {}  local function isDead(qId)  	local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, &amp;#039;P570&amp;#039;) 	if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do 		if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= &amp;#039;novalue&amp;#039; 			then 				return true 			end 	end end 	return false end p.isDead = isDead  local function isFemale(qId) 	local genders = Wikidata.findBestCl...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local Wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function isDead(qId) &lt;br /&gt;
	local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, &#039;P570&#039;)&lt;br /&gt;
	if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do&lt;br /&gt;
		if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= &#039;novalue&#039;&lt;br /&gt;
			then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isDead = isDead&lt;br /&gt;
&lt;br /&gt;
local function isFemale(qId)&lt;br /&gt;
	local genders = Wikidata.findBestClaimsForProperty(qId, &#039;P21&#039;)&lt;br /&gt;
	local feminineIds = { 6581072, 1052281, 43445 }&lt;br /&gt;
	&lt;br /&gt;
	if genders then for genderIdx,eachGender in ipairs(genders) do&lt;br /&gt;
		if Wikidata.hasValueSnak(eachGender) and Wikidata.isClaimTrue(eachGender) then for _,eachFemId in ipairs(feminineIds) do&lt;br /&gt;
			if eachFemId == eachGender.mainsnak.datavalue.value[&#039;numeric-id&#039;] then return true end&lt;br /&gt;
		end end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isFemale = isFemale&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:NameAndImage&amp;diff=356</id>
		<title>Modul:NameAndImage</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:NameAndImage&amp;diff=356"/>
		<updated>2024-07-14T20:31:14Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 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 DateUtils = require(&amp;#039;Modul:DateUtils&amp;#039;) local GregorianDate = require(&amp;#039;Modul:GregorianDate&amp;#039;) local join = require(&amp;#039;Modul:Separated entries&amp;#039;)._main local libUtils = require(&amp;#039;libraryUtil&amp;#039;) local p = {}  local maxSize = { [&amp;#039;P94&amp;#039;] = &amp;#039;23x23&amp;#039;, [&amp;#039;P41&amp;#039;] = &amp;#039;23x23&amp;#039;}  local function toWikidataTimestamp(timestamp) 	local ret = nil 	if timesta...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local StringUtils = require(&#039;Modul:StringUtils&#039;)&lt;br /&gt;
local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local GregorianDate = require(&#039;Modul:GregorianDate&#039;)&lt;br /&gt;
local join = require(&#039;Modul:Separated entries&#039;)._main&lt;br /&gt;
local libUtils = require(&#039;libraryUtil&#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local maxSize = { [&#039;P94&#039;] = &#039;23x23&#039;, [&#039;P41&#039;] = &#039;23x23&#039;}&lt;br /&gt;
&lt;br /&gt;
local function toWikidataTimestamp(timestamp)&lt;br /&gt;
	local ret = nil&lt;br /&gt;
	if timestamp then&lt;br /&gt;
		ret = timestamp&lt;br /&gt;
		if mw.ustring.gmatch(timestamp, &#039;^%d+$&#039;) then&lt;br /&gt;
			return &#039;+&#039; .. timestamp .. &#039;-00-00&#039;, 9&lt;br /&gt;
		end&lt;br /&gt;
		if mw.ustring.find(timestamp, &#039;%d+&#039;) == 1 then&lt;br /&gt;
			ret = &#039;+&#039; .. timestamp&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
p._imageFromOneOfProps = function(entityId, imagePropIds, timestamp)&lt;br /&gt;
	local imageName = nil&lt;br /&gt;
	local maxSizeOfImage = nil&lt;br /&gt;
	for _idx, eachPropId in pairs(imagePropIds) do&lt;br /&gt;
		local defaultImageName = wikidata.findOneValueNoRef(eachPropId, entityId)&lt;br /&gt;
		local specificImageName = nil&lt;br /&gt;
		local dataClaim = nil&lt;br /&gt;
		if timestamp then&lt;br /&gt;
			dataClaim = wikidata.findClaimForTimestamp(entityId, eachPropId, timestamp)&lt;br /&gt;
		else&lt;br /&gt;
			local bestDataClaims = wikidata.findBestClaimsForProperty(entityId, eachPropId)&lt;br /&gt;
			if bestDataClaims and 0 &amp;lt; #bestDataClaims then dataClaim = bestDataClaims[1] end&lt;br /&gt;
		end&lt;br /&gt;
		if dataClaim and &#039;statement&#039; == dataClaim.type and &#039;value&#039; == dataClaim.mainsnak.snaktype then specificImageName = dataClaim.mainsnak.datavalue.value end&lt;br /&gt;
&lt;br /&gt;
		if imageName == nil and (defaultImageName and mw.text.trim(defaultImageName) ~= &#039;&#039; or specificImageName and mw.text.trim(specificImageName) ~= &#039;&#039;) then&lt;br /&gt;
			imageName = mw.text.trim(specificImageName or defaultImageName)&lt;br /&gt;
			maxSizeOfImage = StringUtils.appendIfMissing({maxSize[imagePropId] or &#039;23x23&#039;, &#039;px&#039;})&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local imageLink = &#039;&#039;&lt;br /&gt;
	if imageName and mw.text.trim(imageName) ~= &#039;&#039; then&lt;br /&gt;
		imageLink = &#039;[[Fișier:&#039; .. imageName .. &#039;|&#039; .. maxSizeOfImage .. &#039;|border]]&#039;&lt;br /&gt;
	end&lt;br /&gt;
	return imageLink&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._nameAndImageFromOneOfProps = function(entityId, imagePropIds, timestamp)&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImageFromOneOfProps&#039;, &#039;entityId&#039;, entityId, &#039;string&#039;, true)&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImageFromOneOfProps&#039;, &#039;imagePropIds&#039;, imagePropIds, &#039;table&#039;, false)&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImageFromOneOfProps&#039;, &#039;timestamp&#039;, timestamp, &#039;table&#039;, true)&lt;br /&gt;
&lt;br /&gt;
	local articleLink = wikidata.findLinkToItem(entityId, true, false, true)&lt;br /&gt;
&lt;br /&gt;
	local imageLink = p._imageFromOneOfProps(entityId, imagePropIds, timestamp)&lt;br /&gt;
	&lt;br /&gt;
	return mw.text.trim(join({imageLink, articleLink, separator = &#039; &#039;}))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._nameAndImage = function(entityId, imagePropId, timestamp)&lt;br /&gt;
	if not entityId or entityId == &#039;&#039; then return &#039;&#039; end&lt;br /&gt;
	&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImage&#039;, &#039;imagePropId&#039;, imagePropId, &#039;string&#039;, false)&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImage&#039;, &#039;entityId&#039;, entityId, &#039;string&#039;, true)&lt;br /&gt;
	libUtils.checkTypeForNamedArg(&#039;_nameAndImage&#039;, &#039;timestamp&#039;, timestamp, &#039;table&#039;, true)&lt;br /&gt;
&lt;br /&gt;
	return p._nameAndImageFromOneOfProps(entityId, {imagePropId}, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.nameAndImage = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	local propId = args[2]&lt;br /&gt;
	local timestamp = args[3] or args[&#039;timestamp&#039;]&lt;br /&gt;
	local wdTimestamp, wdTimestampPrecision = toWikidataTimestamp(timestamp)&lt;br /&gt;
	if timestamp then timestamp = DateUtils.parseWikidataDate(wdTimestamp, wdTimestampPrecision) end&lt;br /&gt;
	return p._nameAndImage(entityId, propId, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.nameAndCoatOfArms = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	local timestamp = args[2] or args[&#039;timestamp&#039;]&lt;br /&gt;
	local wdTimestamp, wdTimestampPrecision = toWikidataTimestamp(timestamp)&lt;br /&gt;
	if timestamp then timestamp = DateUtils.parseWikidataDate(wdTimestamp, wdTimestampPrecision) end&lt;br /&gt;
	return p._nameAndImage(entityId, &#039;P94&#039;, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.nameAndFlag = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	local timestamp = args[2] or args[&#039;timestamp&#039;]&lt;br /&gt;
	local wdTimestamp, wdTimestampPrecision = toWikidataTimestamp(timestamp)&lt;br /&gt;
	if timestamp then timestamp = DateUtils.parseDate(wdTimestamp, wdTimestampPrecision) end&lt;br /&gt;
	return p._nameAndImage(entityId, &#039;P41&#039;, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._nameAndFlagFromPropOfEntity = function(propId, entityId, timestamp)&lt;br /&gt;
	if not propId then return &#039;&#039; end&lt;br /&gt;
	local entity = entityId&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	if type(entity) == &#039;table&#039; then&lt;br /&gt;
		claims = entity:getBestStatements(propId)&lt;br /&gt;
	else&lt;br /&gt;
		if not entity then entity = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
		if type(entity) == &#039;number&#039; then entity = &#039;Q&#039; .. tostring(entityId) end&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entity, propId)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local countryIdsList = {}&lt;br /&gt;
	if claims and 0 &amp;lt; #claims then&lt;br /&gt;
		for _,eachClaim in ipairs(claims) do&lt;br /&gt;
			if eachClaim.mainsnak.snaktype == &#039;value&#039; then&lt;br /&gt;
				table.insert(countryIdsList, eachClaim.mainsnak.datavalue.value.id)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local countriesWithFlags = {}&lt;br /&gt;
	for _,eachCountryId in ipairs(countryIdsList) do&lt;br /&gt;
		table.insert(countriesWithFlags, p._nameAndImage(eachCountryId, &#039;P41&#039;, timestamp))&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(countriesWithFlags, tostring(mw.html.create(&#039;br&#039;)))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.nameAndFlagFromPropOfEntity = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local propId = args[&#039;pid&#039;] or args[1]&lt;br /&gt;
	local entityId = args[&#039;qid&#039;] or args[2]&lt;br /&gt;
	local timpestamp = args[&#039;timestamp&#039;] or args[3]&lt;br /&gt;
&lt;br /&gt;
	return p._nameAndFlagFromPropOfEntity(propId, entityId, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.flag = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	local timestamp = args[2] or args[&#039;timestamp&#039;]&lt;br /&gt;
	if timestamp then&lt;br /&gt;
		local wdTimestamp, wdTimestampPrecision = toWikidataTimestamp(timestamp)&lt;br /&gt;
		timestamp = DateUtils.parseWikidataDate(wdTimestamp, wdTimestampPrecision)&lt;br /&gt;
	end&lt;br /&gt;
	return p._imageFromOneOfProps(entityId, {&#039;P41&#039;}, timestamp)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:EditAtWikidata&amp;diff=355</id>
		<title>Modul:EditAtWikidata</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:EditAtWikidata&amp;diff=355"/>
		<updated>2024-07-14T20:30:45Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: -- Module to display an icon with a tooltip such as &amp;quot;Edit this at Wikidata&amp;quot; -- Icon will be linked to the Wikidata entry for the article where this is placed. -- This message is only displayed if a local_parameter is not supplied -- i.e. when called from a template, it can be coded not to display the message  -- when a local parameter is in use, preventing the value form Wikidata being fetched. -- The qid of a Wikidata entry can optionally be supplied for testing outside the...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- Module to display an icon with a tooltip such as &amp;quot;Edit this at Wikidata&amp;quot;&lt;br /&gt;
-- Icon will be linked to the Wikidata entry for the article where this is placed.&lt;br /&gt;
-- This message is only displayed if a local_parameter is not supplied&lt;br /&gt;
-- i.e. when called from a template, it can be coded not to display the message &lt;br /&gt;
-- when a local parameter is in use, preventing the value form Wikidata being fetched.&lt;br /&gt;
-- The qid of a Wikidata entry can optionally be supplied for testing outside the article.&lt;br /&gt;
-- Usage:&lt;br /&gt;
-- {{#invoke:EditAtWikidata|showMessage|local_parameter}}&lt;br /&gt;
-- {{#invoke:EditAtWikidata|showMessage|qid=&amp;lt;ArticleID&amp;gt;|local_parameter}}&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
local i18n =&lt;br /&gt;
{&lt;br /&gt;
    [&amp;quot;message&amp;quot;] = &amp;quot;Modificați la Wikidata&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p.displayMessageWithCustomText = function(pid, qid, text)&lt;br /&gt;
	-- Get the object containing all the claims for the article&lt;br /&gt;
	local thisQid = qid or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not thisQid then return nil end&lt;br /&gt;
	if not text then return p.displayMessage(pid, qid) end&lt;br /&gt;
		&lt;br /&gt;
	local link = &amp;quot; [[:d:&amp;quot; .. thisQid .. (pid and (&amp;quot;#&amp;quot; .. pid ) or &amp;quot;&amp;quot;) .. &amp;quot;|&amp;quot; .. text .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	return link&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayMessage = function(pid, qid)&lt;br /&gt;
	&lt;br /&gt;
	-- Get the object containing all the claims for the article&lt;br /&gt;
	local thisQid = qid or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not thisQid then return nil end&lt;br /&gt;
	&lt;br /&gt;
	local icon&lt;br /&gt;
	if pid then&lt;br /&gt;
		icon = &amp;quot; [[File:Blue pencil.svg |frameless |text-top |10px |alt=&amp;quot; .. i18n.message .. &amp;quot; |link=https://www.wikidata.org/wiki/&amp;quot; .. thisQid .. &amp;quot;#&amp;quot; .. pid .. &amp;quot;|&amp;quot; .. i18n.message .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		icon = &amp;quot; [[File:Blue pencil.svg |frameless |text-top |10px |alt=&amp;quot; .. i18n.message .. &amp;quot; |link=https://www.wikidata.org/wiki/&amp;quot; .. thisQid .. &amp;quot;|&amp;quot; .. i18n.message .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return icon&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
p.showMessage = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	&lt;br /&gt;
	-- There may be a local parameter supplied, if it&#039;s blank, set it to nil&lt;br /&gt;
	local local_parm =  args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
	if local_parm and (#local_parm == 0) then local_parm = nil end&lt;br /&gt;
	&lt;br /&gt;
	-- If there is a local parameter used, we don&#039;t want to display the message&lt;br /&gt;
	if local_parm then return nil end&lt;br /&gt;
	&lt;br /&gt;
	-- Can take a named parameter |qid which is the Wikidata ID for the article.&lt;br /&gt;
	-- This will not normally be used except for testing outside the article.&lt;br /&gt;
	local qid = args.qid&lt;br /&gt;
	&lt;br /&gt;
	-- The module can take a parameter pid= &lt;br /&gt;
	-- which will create a link to that property in the Wikidata entry for the article&lt;br /&gt;
	local pid = args.pid&lt;br /&gt;
	&lt;br /&gt;
	local label = args.label&lt;br /&gt;
	&lt;br /&gt;
	if not label then&lt;br /&gt;
		return p.displayMessage(pid, qid)&lt;br /&gt;
	else &lt;br /&gt;
		return p.displayMessageWithCustomText(pid, qid, label)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Lang&amp;diff=354</id>
		<title>Modul:Lang</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Lang&amp;diff=354"/>
		<updated>2024-07-14T20:30:08Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;)  p.fromArgs = function(langISOcode, languageDir, langText, italic) 	local span = mw.html.create(&amp;#039;span&amp;#039;) 	span:attr(&amp;#039;lang&amp;#039;, langISOcode) 	span:attr(&amp;#039;translate&amp;#039;, &amp;#039;no&amp;#039;) 	if languageDir then span:attr(&amp;#039;dir&amp;#039;, languageDir) end 	if italic then span:css(&amp;#039;font-style&amp;#039;, &amp;#039;italic&amp;#039;) end 	span:wikitext(langText) 	return tostring(span) end  p.fromFrame = function(frame) 	local args = ge...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
&lt;br /&gt;
p.fromArgs = function(langISOcode, languageDir, langText, italic)&lt;br /&gt;
	local span = mw.html.create(&#039;span&#039;)&lt;br /&gt;
	span:attr(&#039;lang&#039;, langISOcode)&lt;br /&gt;
	span:attr(&#039;translate&#039;, &#039;no&#039;)&lt;br /&gt;
	if languageDir then span:attr(&#039;dir&#039;, languageDir) end&lt;br /&gt;
	if italic then span:css(&#039;font-style&#039;, &#039;italic&#039;) end&lt;br /&gt;
	span:wikitext(langText)&lt;br /&gt;
	return tostring(span)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.fromFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local langId = args[1]&lt;br /&gt;
	local langISOCode = langId&lt;br /&gt;
	local languageRTL = args[&#039;rtl&#039;]&lt;br /&gt;
	local italic = true&lt;br /&gt;
	if mw.ustring.match(langId, &#039;Q?%d+&#039;) then&lt;br /&gt;
		langISOCode = wikidata.findOneValue(&#039;P218&#039;, langId) or wikidata.findOneValue(&#039;P219&#039;, langId) or wikidata.findOneValue(&#039;P305&#039;, langId)&lt;br /&gt;
		if languageAlphabets and languageAlphabets[1] then&lt;br /&gt;
			languageDirectionalities = wikidata.getBestEntityIdsList(languageAlphabets[1], &#039;P1406&#039;)&lt;br /&gt;
			if languageDirectionalities and languageDirectionalities[1] then&lt;br /&gt;
				languageRTL = (languageDirectionalities[1] == 7333457)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local italicarg = args.italic or args.i&lt;br /&gt;
	if italicarg == &#039;no&#039; or italicarg == &#039;false&#039; or italicarg == &#039;nu&#039; or italicarg == &#039;n&#039; then&lt;br /&gt;
		italic = false&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return p.fromArgs(langISOCode, languageRTL and &#039;rtl&#039;, args[2], italic)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:BirthDateAndAge&amp;diff=353</id>
		<title>Modul:BirthDateAndAge</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:BirthDateAndAge&amp;diff=353"/>
		<updated>2024-07-14T20:29:25Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;) local plural = require(&amp;#039;Modul:Plural&amp;#039;).get_plural local GregorianDate = require(&amp;#039;Modul:GregorianDate&amp;#039;)  local computeYearsPastBetween = function(inMomentDate, inReferenceDate) 	local momentDate = GregorianDate.julianToGregorian(inMomentDate) 	local referenceDate = GregorianDate.julianToGregorian(inReferenceDate) 	local yearsDiff = tonumber(momentDate.year) - tonumber(ref...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local plural = require(&#039;Modul:Plural&#039;).get_plural&lt;br /&gt;
local GregorianDate = require(&#039;Modul:GregorianDate&#039;)&lt;br /&gt;
&lt;br /&gt;
local computeYearsPastBetween = function(inMomentDate, inReferenceDate)&lt;br /&gt;
	local momentDate = GregorianDate.julianToGregorian(inMomentDate)&lt;br /&gt;
	local referenceDate = GregorianDate.julianToGregorian(inReferenceDate)&lt;br /&gt;
	local yearsDiff = tonumber(momentDate.year) - tonumber(referenceDate.year)&lt;br /&gt;
	if tonumber(momentDate.month) &amp;lt; tonumber(referenceDate.month) or (tonumber(momentDate.month) == tonumber(referenceDate.month) and tonumber(momentDate.day) &amp;lt; tonumber(referenceDate.day)) then&lt;br /&gt;
		yearsDiff = yearsDiff - 1&lt;br /&gt;
	end&lt;br /&gt;
	return yearsDiff&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local computeYearsPastSince = function(referenceDate) &lt;br /&gt;
	return computeYearsPastBetween(os.date(&amp;quot;*t&amp;quot;), referenceDate)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._getBdaByWikidata = function(args) &lt;br /&gt;
	local link = false&lt;br /&gt;
	if args[&#039;link&#039;] and mw.text.trim(args[&#039;link&#039;]) ~= &#039;&#039; then&lt;br /&gt;
		link = true&lt;br /&gt;
	end&lt;br /&gt;
	local birthDates = wikidata.findDateValues(&#039;P569&#039;, nil)&lt;br /&gt;
	local deathDates = wikidata.findDateValues(&#039;P570&#039;, nil)&lt;br /&gt;
	if birthDates and birthDates[1] and birthDates[1].claim and birthDates[1].claim.type == &#039;statement&#039; and birthDates[1].claim.mainsnak.snaktype == &#039;value&#039; then&lt;br /&gt;
		local out = GregorianDate.displayDualDateIfInInterval(birthDates[1], link)&lt;br /&gt;
		if not deathDates or not deathDates[1] or (deathDates[1].claim and deathDates[1].claim.mainsnak.snaktype == &#039;novalue&#039;) then&lt;br /&gt;
			age = computeYearsPastSince(birthDates[1])&lt;br /&gt;
			if age &amp;lt; 120 and birthDates[1].precision &amp;gt; 7 then&lt;br /&gt;
				out = out .. &#039; (&#039; .. plural{args={age, &#039;an&#039;, &#039;ani&#039;, &#039;de ani&#039;}} .. &#039;)&#039;&lt;br /&gt;
			else&lt;br /&gt;
				out = out .. &#039;[[Categorie:Decese cu dată necunoscută]]&#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if birthDates[1].claim then&lt;br /&gt;
			out = out .. wikidata.outputReferences(birthDates[1].claim)&lt;br /&gt;
		end&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getBdaByWikidata = function(frame) &lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p._getBdaByWikidata(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getBda = function(frame) &lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local link = false&lt;br /&gt;
	if args[&#039;link&#039;] and mw.text.trim(args[&#039;link&#039;]) ~= &#039;&#039; then&lt;br /&gt;
		link = true&lt;br /&gt;
	end&lt;br /&gt;
	local d = {}&lt;br /&gt;
	if args[1] then&lt;br /&gt;
		d.year = tonumber(args[1])&lt;br /&gt;
		d.month = tonumber(args[2] or &#039;1&#039;)&lt;br /&gt;
		d.day = tonumber(args[3] or &#039;1&#039;)&lt;br /&gt;
		d.precision = 9&lt;br /&gt;
		d.calendar = mw.ustring.lower(args[&#039;calendar_birth&#039;] or args[&#039;calendar&#039;] or &#039;gregorian&#039;)&lt;br /&gt;
		if args[2] then d.precision = 10 end&lt;br /&gt;
		if args[3] then d.precision = 11 end&lt;br /&gt;
		out = GregorianDate.displayDualDateIfInInterval(d, link)&lt;br /&gt;
		if d.precision &amp;gt; 7 then&lt;br /&gt;
			out = out .. &#039; (&#039; .. plural{args={computeYearsPastSince(d), &#039;an&#039;, &#039;ani&#039;, &#039;de ani&#039;}} .. &#039;)&#039;&lt;br /&gt;
		end&lt;br /&gt;
		return  out&lt;br /&gt;
	else&lt;br /&gt;
		return p.getBdaByWikidata(frame)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._getDdaByWikidata = function(args) &lt;br /&gt;
	local birthDates = wikidata.findDateValues(&#039;P569&#039;, nil)&lt;br /&gt;
	local deathDates = wikidata.findDateValues(&#039;P570&#039;, nil)&lt;br /&gt;
	local link = false&lt;br /&gt;
	if args[&#039;link&#039;] and mw.text.trim(args[&#039;link&#039;]) ~= &#039;&#039; then&lt;br /&gt;
		link = true&lt;br /&gt;
	end&lt;br /&gt;
	if deathDates and deathDates[1] and (not deathDates[1].claim or deathDates[1].claim.mainsnak.snaktype == &#039;value&#039;) then&lt;br /&gt;
		local out = &#039;&#039;&lt;br /&gt;
		out = out .. GregorianDate.displayDualDateIfInInterval(deathDates[1], link)&lt;br /&gt;
		if birthDates and birthDates[1] and (not birthDates[1].claim or birthDates[1].claim.mainsnak.snaktype == &#039;value&#039;) then&lt;br /&gt;
			if deathDates[1].precision &amp;gt; 7 and birthDates[1].precision &amp;gt; 7 then&lt;br /&gt;
				out = out .. &#039; (&#039; .. plural{args={computeYearsPastBetween(deathDates[1], birthDates[1]), &#039;an&#039;, &#039;ani&#039;, &#039;de ani&#039;}} .. &#039;)&#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if deathDates[1].claim then&lt;br /&gt;
			out = out .. wikidata.outputReferences(deathDates[1].claim)&lt;br /&gt;
		end&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getDdaByWikidata = function(frame) &lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p._getDdaByWikidata(args)&lt;br /&gt;
end&lt;br /&gt;
p.getDda = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local link = false&lt;br /&gt;
	if args[&#039;link&#039;] and mw.text.trim(args[&#039;link&#039;]) ~= &#039;&#039; then&lt;br /&gt;
		link = true&lt;br /&gt;
	end&lt;br /&gt;
	if args[1] then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		d.year = tonumber(args[1])&lt;br /&gt;
		d.month = tonumber(args[2] or &#039;1&#039;)&lt;br /&gt;
		d.day = tonumber(args[3] or &#039;1&#039;)&lt;br /&gt;
		d.precision = 9&lt;br /&gt;
		d.calendar = mw.ustring.lower(args[&#039;calendar_death&#039;] or &#039;gregorian&#039;)&lt;br /&gt;
		if args[2] then d.precision = 10 end&lt;br /&gt;
		if args[3] then d.precision = 11 end&lt;br /&gt;
		local b = {}&lt;br /&gt;
		b.year = tonumber(args[4])&lt;br /&gt;
		b.month = tonumber(args[5] or &#039;1&#039;)&lt;br /&gt;
		b.day = tonumber(args[6] or &#039;1&#039;)&lt;br /&gt;
		b.precision = 9&lt;br /&gt;
		b.calendar = mw.ustring.lower(args[&#039;calendar_birth&#039;] or &#039;gregorian&#039;)&lt;br /&gt;
		if args[5] then b.precision = 10 end&lt;br /&gt;
		if args[6] then b.precision = 11 end&lt;br /&gt;
		return GregorianDate.displayDualDateIfInInterval(d, link) .. &#039; (&#039; ..  plural{args={computeYearsPastBetween(d, b), &#039;an&#039;, &#039;ani&#039;, &#039;de ani&#039;}} .. &#039;)&#039;&lt;br /&gt;
	else&lt;br /&gt;
		return p.getDdaByWikidata(frame)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:TimestampedTable&amp;diff=352</id>
		<title>Modul:TimestampedTable</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:TimestampedTable&amp;diff=352"/>
		<updated>2024-07-14T20:28:48Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local DateUtils = require(&amp;#039;Modul:DateUtils&amp;#039;) local p = {} local function getTimestampedValueFromArray(arr, ts) 	local tsDate = type(ts) == &amp;#039;string&amp;#039; and DateUtils.parseDate(ts) or type(ts) == &amp;#039;table&amp;#039; and ts 	if not tsDate then tsDate = nil  end 	local closestDate = nil 	local closestDateLabel = nil 	for k,v in pairs(arr) do 		local crtStartDate = k == &amp;#039;_&amp;#039; and {year=-3000, precision=9} or DateUtils.parseDate(k) 		if (nil == tsDate or (tsDate and DateUtils.compare(crtStartDate,...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
local function getTimestampedValueFromArray(arr, ts)&lt;br /&gt;
	local tsDate = type(ts) == &#039;string&#039; and DateUtils.parseDate(ts) or type(ts) == &#039;table&#039; and ts&lt;br /&gt;
	if not tsDate then tsDate = nil  end&lt;br /&gt;
	local closestDate = nil&lt;br /&gt;
	local closestDateLabel = nil&lt;br /&gt;
	for k,v in pairs(arr) do&lt;br /&gt;
		local crtStartDate = k == &#039;_&#039; and {year=-3000, precision=9} or DateUtils.parseDate(k)&lt;br /&gt;
		if (nil == tsDate or (tsDate and DateUtils.compare(crtStartDate, tsDate) &amp;lt;= 0)) and &lt;br /&gt;
			(nil == closestDate or DateUtils.compare(crtStartDate, closestDate) &amp;gt; 0) then&lt;br /&gt;
				closestDate = crtStartDate&lt;br /&gt;
				closestDateLabel = k&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return arr[closestDateLabel]&lt;br /&gt;
end&lt;br /&gt;
p.getValueByTimestamp = getTimestampedValueFromArray&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Plain_text&amp;diff=351</id>
		<title>Modul:Plain text</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Plain_text&amp;diff=351"/>
		<updated>2024-07-14T20:28:04Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: --converts text with wikilinks to plain text, e.g &amp;quot;gah is bar&amp;quot; to &amp;quot;gah is bar&amp;quot; --removes anything enclosed in tags that isn&amp;#039;t nested, mediawiki strip markers (references etc), files, italic and bold markup local p = {}  function p.main(frame) 	local text = frame.args[1] 	return p._main(text) end  function p._main(text) 	if not text then return end 	text = mw.text.killMarkers(text) 		:gsub(&amp;#039;&amp;amp;nbsp;&amp;#039;, &amp;#039; &amp;#039;) --replace nbsp spaces with regular spaces 		:gsub(&amp;#039;&amp;lt;br ?/?&amp;gt;&amp;#039;,...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--converts text with wikilinks to plain text, e.g &amp;quot;[[foo|gah]] is [[bar]]&amp;quot; to &amp;quot;gah is bar&amp;quot;&lt;br /&gt;
--removes anything enclosed in tags that isn&#039;t nested, mediawiki strip markers (references etc), files, italic and bold markup&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local text = frame.args[1]&lt;br /&gt;
	return p._main(text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(text)&lt;br /&gt;
	if not text then return end&lt;br /&gt;
	text = mw.text.killMarkers(text)&lt;br /&gt;
		:gsub(&#039;&amp;amp;nbsp;&#039;, &#039; &#039;) --replace nbsp spaces with regular spaces&lt;br /&gt;
		:gsub(&#039;&amp;lt;br ?/?&amp;gt;&#039;, &#039;, &#039;) --replace br with commas&lt;br /&gt;
		:gsub(&#039;&amp;lt;span.-&amp;gt;(.-)&amp;lt;/span&amp;gt;&#039;, &#039;%1&#039;) --remove spans while keeping text inside&lt;br /&gt;
		:gsub(&#039;&amp;lt;i.-&amp;gt;(.-)&amp;lt;/i&amp;gt;&#039;, &#039;%1&#039;) --remove italics while keeping text inside&lt;br /&gt;
		:gsub(&#039;&amp;lt;.-&amp;gt;.-&amp;lt;.-&amp;gt;&#039;, &#039;&#039;) --strip out remaining tags and the text inside&lt;br /&gt;
		:gsub(&#039;&amp;lt;.-&amp;gt;&#039;, &#039;&#039;) --remove any other tag markup&lt;br /&gt;
		:gsub(&#039;%[%[%s*[Ff]ile%s*:.-%]%]&#039;, &#039;&#039;) --strip out files&lt;br /&gt;
		:gsub(&#039;%[%[%s*[Ii]mage%s*:.-%]%]&#039;, &#039;&#039;) --strip out use of image:&lt;br /&gt;
		:gsub(&#039;%[%[%s*[Cc]ategory%s*:.-%]%]&#039;, &#039;&#039;) --strip out categories&lt;br /&gt;
		:gsub(&#039;%[%[[^%]]-|&#039;, &#039;&#039;) --strip out piped link text&lt;br /&gt;
		:gsub(&#039;[%[%]]&#039;, &#039;&#039;) --then strip out remaining [ and ]&lt;br /&gt;
		:gsub(&amp;quot;&#039;&#039;&#039;&#039;&#039;&amp;quot;, &amp;quot;&amp;quot;) --strip out bold italic markup&lt;br /&gt;
		:gsub(&amp;quot;&#039;&#039;&#039;?&amp;quot;, &amp;quot;&amp;quot;) --not stripping out &#039;&#039;&#039;&#039; gives correct output for bolded text in quotes&lt;br /&gt;
		:gsub(&#039;----&#039;, &#039;&#039;) --remove ---- lines&lt;br /&gt;
		:gsub(&amp;quot;^%s+&amp;quot;, &amp;quot;&amp;quot;) --strip leading&lt;br /&gt;
		:gsub(&amp;quot;%s+$&amp;quot;, &amp;quot;&amp;quot;) --and trailing spaces&lt;br /&gt;
		:gsub(&amp;quot;%s+&amp;quot;, &amp;quot; &amp;quot;) --strip redundant spaces&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Ill-wd&amp;diff=350</id>
		<title>Modul:Ill-wd</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Ill-wd&amp;diff=350"/>
		<updated>2024-07-14T20:27:10Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 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;hr /&gt;
&lt;div&gt;local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local StringUtils = require(&#039;Modul:StringUtils&#039;)&lt;br /&gt;
local plainText = require(&#039;Modul:Plain text&#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 = &#039;&#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), &#039;Q&#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 == &#039;ro&#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 .. &#039;[[:&#039; .. wdArticleName&lt;br /&gt;
		if wdArticleName ~= wdLabel then &lt;br /&gt;
			out = out .. &#039;|&#039; .. (wdLabel or wdArticleName)&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. &#039;]]&#039;&lt;br /&gt;
	&lt;br /&gt;
		local wikidataLinkSpan = mw.html.create(&#039;span&#039;):attr(&#039;title&#039;, wdArticleName .. &#039; la Wikidata&#039;):wikitext(&#039;d&#039;)&lt;br /&gt;
		local supTag = mw.html.create(&#039;sup&#039;):tag(&#039;small&#039;):wikitext(mw.ustring.char(0x2060), &#039;([[:d:&#039;, wdId, &#039;|&#039;, tostring(wikidataLinkSpan), &#039;]])&#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(), &#039;Q&#039;})&lt;br /&gt;
	local inLabel = array[3]&lt;br /&gt;
	local labelLang = &#039;ro&#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 ~= &#039;ro&#039; then&lt;br /&gt;
		wdLabel = wdArticleName or wdLabel or wikidata.findLabel(wdId, &#039;ro&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local capitalize = array[&#039;capitalize&#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>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:LocationAndCountry/data&amp;diff=349</id>
		<title>Modul:LocationAndCountry/data</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:LocationAndCountry/data&amp;diff=349"/>
		<updated>2024-07-14T20:24:01Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local ESCALATABLE_LOCATION_ENTITIES = { -- if this is one of the types of the location from Wikidata, then we skip and escalate it to the administrative unit 	&amp;#039;Q79007&amp;#039;, --street 	&amp;#039;Q16917&amp;#039;, --hospital 	&amp;#039;Q608152&amp;#039;, --hospice 	&amp;#039;Q1059324&amp;#039;, -- university hospital 	&amp;#039;Q702842&amp;#039;, --municipal arrondissement (France) 	&amp;#039;Q2115448&amp;#039;, --raioane ale orașelor federale rusești 	&amp;#039;Q15921300&amp;#039;, --sector of Bucharest 	&amp;#039;Q2755753&amp;#039;, --area of London 	&amp;#039;Q211690&amp;#039;, --London borough 	&amp;#039;Q518343&amp;#039;, -- municipal...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local ESCALATABLE_LOCATION_ENTITIES = { -- if this is one of the types of the location from Wikidata, then we skip and escalate it to the administrative unit&lt;br /&gt;
	&#039;Q79007&#039;, --street&lt;br /&gt;
	&#039;Q16917&#039;, --hospital&lt;br /&gt;
	&#039;Q608152&#039;, --hospice&lt;br /&gt;
	&#039;Q1059324&#039;, -- university hospital&lt;br /&gt;
	&#039;Q702842&#039;, --municipal arrondissement (France)&lt;br /&gt;
	&#039;Q2115448&#039;, --raioane ale orașelor federale rusești&lt;br /&gt;
	&#039;Q15921300&#039;, --sector of Bucharest&lt;br /&gt;
	&#039;Q2755753&#039;, --area of London&lt;br /&gt;
	&#039;Q211690&#039;, --London borough&lt;br /&gt;
	&#039;Q518343&#039;, -- municipal borough&lt;br /&gt;
	&#039;Q879050&#039;, --manor house&lt;br /&gt;
	&#039;Q47168&#039;, --county of USA&lt;br /&gt;
	&#039;Q1785071&#039;, -- fort&lt;br /&gt;
	&#039;Q40357&#039;, -- prison&lt;br /&gt;
	&#039;Q41176&#039;, --building&lt;br /&gt;
	&#039;Q33506&#039;, --museum&lt;br /&gt;
	&#039;Q256020&#039;, --inn&lt;br /&gt;
	&#039;Q287414&#039;, -- neighborhood&lt;br /&gt;
	&#039;Q462667&#039;, -- administrative territorial entity of Moscow&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local ADMIN_UNIT_ATTRACTOR_ENTITY_TYPES = { -- if this is one of the types of the location from Wikidata, then we also pull in the administrative unit&lt;br /&gt;
	&#039;Q532&#039;, -- village&lt;br /&gt;
	&#039;Q659103&#039;, -- commune of Romania&lt;br /&gt;
	&#039;Q17343829&#039;, -- unincorporated community (SUA)&lt;br /&gt;
	&#039;Q408804&#039;, -- burough of NYC&lt;br /&gt;
	&#039;Q55237813&#039;, -- village in NY state, USA&lt;br /&gt;
	&#039;Q13414757&#039;, -- county of NY&lt;br /&gt;
	&#039;Q13212489&#039;, -- county of CA&lt;br /&gt;
	&#039;Q21672098&#039;, -- village of Ukraine&lt;br /&gt;
	&#039;Q10354598&#039;, -- rural settlement&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local ADMIN_UNIT_ATTRACTOR_COUNTRIES = { -- if the country is one of these, pull at least one unit; this is necessary b/c not all such countries are flagged in Wikidata as federations, e.g. UK, Canada&lt;br /&gt;
	&#039;Q145&#039;, -- UK&lt;br /&gt;
	&#039;Q16&#039;, -- Canada&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local ADMIN_UNIT_TYPES_TO_SKIP = { -- if this is one of the types of UATs from Wikidata, then skip&lt;br /&gt;
	&#039;Q15042037&#039;, -- statistical territorial entity&lt;br /&gt;
	&#039;Q2661988&#039;, -- urban settlement in Russia&lt;br /&gt;
	&#039;Q60849925&#039;, -- municipal district in Russia&lt;br /&gt;
	&#039;Q1561418&#039;, -- agreed administrative community in Baden-Württemberg, Germany&lt;br /&gt;
	&#039;Q2586717&#039;, -- Regional State Administrative Agency (Finland)&lt;br /&gt;
	&#039;Q3575784&#039;, -- defense and security zone of France&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local ADMIN_UNITS_TO_SKIP = {-- if this is one of the UATs from Wikidata, then skip&lt;br /&gt;
	&#039;Q212429&#039;, -- Franța metropolitană&lt;br /&gt;
	&#039;Q533534&#039;, -- Cisleithania&lt;br /&gt;
	&#039;Q1206012&#039;, -- Reich-ul German&lt;br /&gt;
	&#039;Q23306&#039;, -- Greater London&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local INVARIANT_LOCATION_NAMES_COUNTRIES = { -- For locations currently in these countries, we don&#039;t search for the name in another language&lt;br /&gt;
	&#039;Q218&#039;, --ro&lt;br /&gt;
	&#039;Q217&#039;, --md&lt;br /&gt;
	&#039;Q230&#039;, --Georgia; transliterare problematică&lt;br /&gt;
}&lt;br /&gt;
local INVARIANT_LOCATION_UATS = {-- For locations currently in these UATs, we don&#039;t search for the name in another language&lt;br /&gt;
	&#039;Q168856&#039;, --regiunea Cernăuți&lt;br /&gt;
	&#039;Q103842911&#039;, -- raionul Ismail&lt;br /&gt;
	&#039;Q103842889&#039;, -- raionul Cetatea Albă&lt;br /&gt;
	&#039;Q103842904&#039;, -- raionul Bolgrad&lt;br /&gt;
	&#039;Q428976&#039;, -- raionul Teceu&lt;br /&gt;
	&#039;Q428963&#039;, -- raionul Rahău&lt;br /&gt;
	&#039;Q728041&#039;, --Banatul de Nord&lt;br /&gt;
	&#039;Q425782&#039;, --Banatul Central&lt;br /&gt;
	&#039;Q720030&#039;, --Banatul de Sud&lt;br /&gt;
	&#039;Q174994&#039;, --Basarabia&lt;br /&gt;
}&lt;br /&gt;
local INVARIANT_LOCATION_TYPES = { -- For locations of these types, we don&#039;t search for the name in another language&lt;br /&gt;
	&#039;Q6256&#039;, -- țări în general&lt;br /&gt;
	&#039;Q3024240&#039;, -- țări istorice&lt;br /&gt;
	&#039;Q426759&#039;, --mandate ale Ligii Națiunilor&lt;br /&gt;
	&#039;Q35657&#039;, -- statele SUA&lt;br /&gt;
	&#039;Q3336843&#039;, -- țările UK&lt;br /&gt;
	&#039;Q12959600&#039;, -- republicile iugoslaviei&lt;br /&gt;
	&#039;Q1221156&#039;, --landurile Germaniei&lt;br /&gt;
	&#039;Q261543&#039;, -- landurile Austriei&lt;br /&gt;
	&#039;Q209824&#039;, -- regiunile Bulgariei&lt;br /&gt;
	&#039;Q10742&#039;, --comunitățile autonome ale Spaniei&lt;br /&gt;
	&#039;Q134390&#039;, --provinciile Țărilor de Jos&lt;br /&gt;
	&#039;Q150093&#039;, -- voievodatele Poloniei&lt;br /&gt;
	&#039;Q84582639&#039;,&lt;br /&gt;
	&#039;Q681026&#039;, -- țările coroanei Habsburgice&lt;br /&gt;
	&#039;Q83057&#039;, --regiunile Belgiei&lt;br /&gt;
	&#039;Q236036&#039;, --republicile sovietice&lt;br /&gt;
	&#039;Q86622&#039;, -- guberniile țariste&lt;br /&gt;
	&#039;Q836672&#039;, -- provinciile Kazahstanului&lt;br /&gt;
	&#039;Q188604&#039;, -- județele Ungariei&lt;br /&gt;
	&#039;Q23058&#039;, -- cantoanele Elveției&lt;br /&gt;
	&#039;Q3348196&#039;, -- regiunile Ucrainei&lt;br /&gt;
	&#039;Q41162&#039;, -- republicile Rusiei&lt;br /&gt;
	&#039;Q687121&#039;, -- volostele Rusiei	&lt;br /&gt;
	&#039;Q843752&#039;, -- entități federale ale Bosniei și Herțegovinei&lt;br /&gt;
	&#039;Q1572329&#039;, -- raioanele Rusiei&lt;br /&gt;
	&#039;Q1267632&#039;, -- raioanele Ucrainei&lt;br /&gt;
	&#039;Q104251&#039;, -- regiunile Albaniei&lt;br /&gt;
	&#039;Q182547&#039;, -- provinciile romane&lt;br /&gt;
	&#039;Q4377540&#039;, -- prefecturile pretoriene romane&lt;br /&gt;
	&#039;Q852231&#039;, -- comitatele Regatului Ungariei&lt;br /&gt;
	&#039;Q44753&#039;, -- provinciile Argentinei&lt;br /&gt;
	&#039;Q207299&#039;, -- unitățile administrative ale Greciei&lt;br /&gt;
	&#039;Q835714&#039;, -- regiunile Rusiei&lt;br /&gt;
	&#039;Q3403564&#039;, -- principate eclesiastice&lt;br /&gt;
	&#039;Q1710033&#039;, -- regiuni autonome ale Italiei&lt;br /&gt;
--	&#039;Q82794&#039;, -- regiuni geografice&lt;br /&gt;
	&#039;Q57053&#039;, -- cantoanele Croației&lt;br /&gt;
	&#039;Q2577883&#039;, -- teritorii ocupate&lt;br /&gt;
	&#039;Q193512&#039;, -- regiunile Finlandei&lt;br /&gt;
	&#039;Q4312761&#039;, -- viceregatele Imperiului Rus&lt;br /&gt;
}&lt;br /&gt;
local SHORT_NAME_LOCATION_TYPES = { -- For locations of these types, we look for the short name rather than official name&lt;br /&gt;
	&#039;Q6256&#039;, -- țări în general&lt;br /&gt;
	&#039;Q236036&#039;, --republicile sovietice&lt;br /&gt;
	&#039;Q12959600&#039;, -- republicile Iugoslaviei&lt;br /&gt;
}&lt;br /&gt;
local INVARIANT_LOCATION_NAMES_IDS = { -- For these locations, we don&#039;t search for the name in another language&lt;br /&gt;
	&#039;Q1524&#039;, -- Atena&lt;br /&gt;
	&#039;Q4332333&#039;, -- Babele&lt;br /&gt;
	&#039;Q3711&#039;, -- Belgrad&lt;br /&gt;
	&#039;Q70&#039;, -- Berna&lt;br /&gt;
	&#039;Q56036&#039;, -- Berlinul de Vest&lt;br /&gt;
	&#039;Q56037&#039;, -- Berlinul de Est&lt;br /&gt;
	&#039;Q1781&#039;, -- Budapesta&lt;br /&gt;
	&#039;Q193965&#039;, -- Camenița&lt;br /&gt;
	&#039;Q52193&#039;, -- Colomeea&lt;br /&gt;
	&#039;Q1748&#039;, -- Copenhaga&lt;br /&gt;
	&#039;Q31487&#039;, -- Cracovia&lt;br /&gt;
	&#039;Q1731&#039;, -- Dresda&lt;br /&gt;
	&#039;Q1953&#039;, -- Erevan&lt;br /&gt;
	&#039;Q2044&#039;, -- Florența&lt;br /&gt;
	&#039;Q71&#039;, -- Geneva&lt;br /&gt;
	&#039;Q4093&#039;, -- Glasgow	&lt;br /&gt;
	&#039;Q36600&#039;, -- Haga&lt;br /&gt;
	&#039;Q1218&#039;, -- Ierusalim&lt;br /&gt;
	&#039;Q147739&#039;, -- Ismail&lt;br /&gt;
	&#039;Q1899&#039;, -- Kiev&lt;br /&gt;
	&#039;Q597&#039;, -- Lisabona&lt;br /&gt;
	&#039;Q84&#039;, -- Londra&lt;br /&gt;
	&#039;Q23482&#039;, -- Marsilia&lt;br /&gt;
	&#039;Q193420&#039;, -- Miercurea Ciuc	&lt;br /&gt;
	&#039;Q154835&#039;, -- Moghilău&lt;br /&gt;
	&#039;Q649&#039;, -- Moscova&lt;br /&gt;
	&#039;Q1726&#039;, -- München&lt;br /&gt;
	&#039;Q33959&#039;, -- Nisa&lt;br /&gt;
	&#039;Q10282&#039;, -- Pamplona&lt;br /&gt;
	&#039;Q210205&#039;, -- Pesta&lt;br /&gt;
	&#039;Q1085&#039;, -- Praga&lt;br /&gt;
	&#039;Q1773&#039;, -- Riga&lt;br /&gt;
	&#039;Q908&#039;, -- Rostov pe Don&lt;br /&gt;
	&#039;Q17151&#039;, -- Salonic&lt;br /&gt;
	&#039;Q19689&#039;, -- Tirana&lt;br /&gt;
	&#039;Q270&#039;, -- Varșovia&lt;br /&gt;
	&#039;Q641&#039;, -- Veneția&lt;br /&gt;
	&#039;Q1741&#039;, -- Viena&lt;br /&gt;
	&#039;Q174994&#039;, -- Basarabia&lt;br /&gt;
	&#039;Q1697&#039;, -- regiunea Moscova&lt;br /&gt;
	&#039;Q3769&#039;, -- Guyana Franceză	&lt;br /&gt;
	&#039;Q30971&#039;, -- Polinezia Franceză&lt;br /&gt;
	&#039;Q1653&#039;, -- Dunărea&lt;br /&gt;
	&#039;Q40104&#039;, -- Ajaccio&lt;br /&gt;
	&lt;br /&gt;
	--localități din Ungaria per http://budapesta.mae.ro/node/797&lt;br /&gt;
	&#039;Q911667&#039;,&#039;Q751520&#039;,&#039;Q791458&#039;,&#039;Q187303&#039;,&#039;Q740810&#039;,&#039;Q178878&#039;,&#039;Q528338&#039;,&#039;Q677698&#039;,&#039;Q1076482&#039;,&#039;Q654192&#039;,&#039;Q902272&#039;,&lt;br /&gt;
	&#039;Q227413&#039;,&#039;Q214938&#039;,&#039;Q54808404&#039;,&#039;Q948356&#039;,&#039;Q1075840&#039;,&#039;Q1076475&#039;,&#039;Q1021811&#039;,&#039;Q281575&#039;,&#039;Q1014872&#039;,&#039;Q81581&#039;,&#039;Q1185124&#039;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local LANGUAGE_ORDER = { -- specify the preferred order of official languages for settlements in a certain region&lt;br /&gt;
	[&#039;Q5705&#039;] = {&#039;es&#039;, &#039;ca&#039;}, -- Catalonia&lt;br /&gt;
	[&#039;Q3908&#039;] = {&#039;es&#039;, &#039;gl&#039;}, -- Galicia&lt;br /&gt;
	[&#039;Q3995&#039;] = {&#039;es&#039;, &#039;eu&#039;}, -- Țara Bascilor&lt;br /&gt;
	[&#039;Q10282&#039;] = {&#039;es&#039;, &#039;eu&#039;}, -- Pamplona&lt;br /&gt;
	[&#039;Q5720&#039;] = {&#039;es&#039;, &#039;cat&#039;, &#039;ca&#039;}, -- Valencia&lt;br /&gt;
	[&#039;Q5765&#039;] = {&#039;es&#039;, &#039;ca&#039;}, -- Baleare&lt;br /&gt;
	[&#039;Q5689&#039;] = {&#039;se&#039;, &#039;fi&#039;}, -- Åland&lt;br /&gt;
	[&#039;Q33&#039;] = {&#039;fi&#039;, &#039;se&#039;}, -- Finlanda&lt;br /&gt;
	[&#039;Q184&#039;] = {&#039;be&#039;, &#039;ru&#039;}, -- Belarus&lt;br /&gt;
	[&#039;Q1250&#039;] = {&#039;it&#039;, &#039;fur&#039;, &#039;sl&#039;, &#039;de&#039;}, -- Friuli-Venezia Giulia&lt;br /&gt;
	[&#039;Q1237&#039;] = {&#039;it&#039;, &#039;de&#039;, &#039;lld&#039;}, --Trentino-Alto Adige&lt;br /&gt;
	[&#039;Q1222&#039;] = {&#039;it&#039;, &#039;fr&#039;}, --Valea Aostei&lt;br /&gt;
	[&#039;Q9337&#039;] = {&#039;nl&#039;, &#039;fr&#039;}, --Flandra&lt;br /&gt;
	[&#039;Q231&#039;] = {&#039;fr&#039;, &#039;nl&#039;}, --Valonia&lt;br /&gt;
	[&#039;Q27&#039;] = {&#039;en&#039;, &#039;ga&#039;}, --Irlanda&lt;br /&gt;
	[&#039;Q22&#039;] = {&#039;en&#039;, &#039;gd&#039;, &#039;sco&#039;}, --Scoția&lt;br /&gt;
	[&#039;Q25&#039;] = {&#039;en&#039;, &#039;cy&#039;}, --Țara Galilor&lt;br /&gt;
	[&#039;Q233&#039;] = {&#039;en&#039;, &#039;mt&#039; }, --Malta&lt;br /&gt;
	[&#039;Q39&#039;] = {&#039;de&#039;, &#039;fr&#039;, &#039;it&#039; }, --Elveția&lt;br /&gt;
	[&#039;Q12640&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Fribourg&lt;br /&gt;
	[&#039;Q11925&#039;] = {&#039;de&#039;, &#039;rm&#039;, &#039;it&#039;}, --Graubünden&lt;br /&gt;
	[&#039;Q12724&#039;] = {&#039;it&#039;, &#039;fr&#039;, &#039;de&#039;}, --Ticino&lt;br /&gt;
	[&#039;Q12771&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Vaud&lt;br /&gt;
	[&#039;Q834&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Valais&lt;br /&gt;
	[&#039;Q12738&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Neuchâtel&lt;br /&gt;
	[&#039;Q11917&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Geneva&lt;br /&gt;
	[&#039;Q12755&#039;] = {&#039;fr&#039;, &#039;de&#039;, &#039;it&#039;}, --Jura&lt;br /&gt;
	[&#039;Q232&#039;] = {&#039;kk&#039;, &#039;ru&#039;}, --Kazahstan&lt;br /&gt;
	[&#039;Q170174&#039;] = {&#039;it&#039;, &#039;la&#039;}, -- Statele Papale&lt;br /&gt;
	[&#039;Q12548&#039;] = {&#039;de&#039;, &#039;la&#039;}, -- Sfântul Imperiu Roman&lt;br /&gt;
	[&#039;Q14112&#039;] = {&#039;fr&#039;, &#039;co&#039;}, -- Corsica&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local LOCATION_NAME_OVERRIDES = { -- For these locations, we use the historical names specified here&lt;br /&gt;
	[&#039;Q406&#039;] = {&lt;br /&gt;
		[&#039;1930-03-28&#039;] = &#039;Istanbul&#039;,&lt;br /&gt;
		[&#039;_&#039;] = &#039;Constantinopol&#039;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;Q656&#039;] = {&lt;br /&gt;
		[&#039;1924-01-25&#039;] = &#039;Leningrad&#039;,&lt;br /&gt;
		[&#039;1914-08-31&#039;] = &#039;Petrograd&#039;,&lt;br /&gt;
		[&#039;1991-09-07&#039;] = &#039;Sankt Petersburg&#039;,&lt;br /&gt;
		[&#039;_&#039;] = &#039;Sankt Petersburg&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;Q48256&#039;] = {&lt;br /&gt;
		[&#039;2016-05-19&#039;] = &#039;Dnipro&#039;,&lt;br /&gt;
		[&#039;1926-07-20&#039;] = &#039;Dnipropetrovsk&#039;,&lt;br /&gt;
		[&#039;1802&#039;] = &#039;Ekaterinoslav&#039;,&lt;br /&gt;
		[&#039;_&#039;] = &#039;Novorosiisk&#039;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;Q1751495&#039;] = { [&#039;_&#039;] = &#039;RS Slovacă&#039; },&lt;br /&gt;
}&lt;br /&gt;
LOCATION_NAME_OVERRIDES[&#039;Q16869&#039;] = LOCATION_NAME_OVERRIDES[&#039;Q406&#039;]&lt;br /&gt;
&lt;br /&gt;
local COUNTRY_NAMES_OVERRIDES = { -- For these countries, we use the name specified here&lt;br /&gt;
	[&#039;Q30&#039;] = &#039;SUA&#039;,&lt;br /&gt;
	[&#039;Q145&#039;] = &#039;Regatul Unit&#039;,&lt;br /&gt;
	[&#039;Q842794&#039;] = &#039;România&#039;,&lt;br /&gt;
	[&#039;Q2685298&#039;] = &#039;România&#039;,&lt;br /&gt;
	[&#039;Q203493&#039;] = &#039;România&#039;,&lt;br /&gt;
	[&#039;Q713750&#039;] = &#039;RFG&#039;,&lt;br /&gt;
	[&#039;Q16957&#039;] = &#039;RDG&#039;,&lt;br /&gt;
	[&#039;Q83286&#039;] = &#039;RSF Iugoslavia&#039;,&lt;br /&gt;
	[&#039;Q15180&#039;] = &#039;URSS&#039;,&lt;br /&gt;
	[&#039;Q207272&#039;] = &#039;Polonia&#039;,&lt;br /&gt;
	[&#039;Q1290149&#039;] = &#039;RFP Iugoslavia&#039;,&lt;br /&gt;
	[&#039;Q83286&#039;] = &#039;RSF Iugoslavia&#039;,&lt;br /&gt;
	[&#039;Q172107&#039;] = &#039;Polonia-Lituania&#039;,&lt;br /&gt;
	[&#039;Q62589&#039;] = &#039;Suedia-Norvegia&#039;,&lt;br /&gt;
	[&#039;Q62651&#039;] = &#039;Danemarca-Norvegia&#039;,&lt;br /&gt;
	[&#039;Q853348&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q140359&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q2010024&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q2454585&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q11178782&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q853348&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q11177699&#039;] = &#039;Cehoslovacia&#039;,&lt;br /&gt;
	[&#039;Q1998866&#039;] = &#039;Cehia și Slovacia&#039;,&lt;br /&gt;
	[&#039;Q2415901&#039;] = &#039;Germania sub ocupație aliată&#039;,&lt;br /&gt;
	[&#039;Q533534&#039;] = &#039;Cisleithania&#039;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local COUNTRY_SKIP_TYPES = {&lt;br /&gt;
	&#039;Q9430&#039;, --ocean&lt;br /&gt;
	&#039;Q165&#039;, --mare&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return { &lt;br /&gt;
	escalatableLocationTypes = ESCALATABLE_LOCATION_ENTITIES, &lt;br /&gt;
	adminUnitExpandableLocationTypes = ADMIN_UNIT_ATTRACTOR_ENTITY_TYPES,&lt;br /&gt;
	adminUnitExpandableCountries = ADMIN_UNIT_ATTRACTOR_COUNTRIES,&lt;br /&gt;
	skippableUatTypes = ADMIN_UNIT_TYPES_TO_SKIP,&lt;br /&gt;
	skippableUats = ADMIN_UNITS_TO_SKIP,&lt;br /&gt;
	invariantLocations = INVARIANT_LOCATION_NAMES_IDS,&lt;br /&gt;
	invariantLocationCountries = INVARIANT_LOCATION_NAMES_COUNTRIES,&lt;br /&gt;
	invariantLocationTypes = INVARIANT_LOCATION_TYPES,&lt;br /&gt;
	shortNameLocationTypes = SHORT_NAME_LOCATION_TYPES,&lt;br /&gt;
	invariantLocationUats = INVARIANT_LOCATION_UATS,&lt;br /&gt;
	locationNameOverrides = LOCATION_NAME_OVERRIDES,&lt;br /&gt;
	countryNameOverrides = COUNTRY_NAMES_OVERRIDES,&lt;br /&gt;
	languageOrder = LANGUAGE_ORDER,&lt;br /&gt;
	skipCountryTypes = COUNTRY_SKIP_TYPES&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:LocationAndCountry&amp;diff=348</id>
		<title>Modul:LocationAndCountry</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:LocationAndCountry&amp;diff=348"/>
		<updated>2024-07-14T20:23:25Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: -- will display a wikidata property representing a location, followed by a comma and the name of the country, both with wikilinks -- the first argument specifies the parameter to be displayed -- the second argument specifies the entity ID -- the third argument specifies a timestamp showing the moment in time for which the country is to be identified -- the fourth argument specifies the maximum number of values to be processed (default 1) -- the fifth argument specifies the se...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- will display a wikidata property representing a location, followed by a comma and the name of the country, both with wikilinks&lt;br /&gt;
-- the first argument specifies the parameter to be displayed&lt;br /&gt;
-- the second argument specifies the entity ID&lt;br /&gt;
-- the third argument specifies a timestamp showing the moment in time for which the country is to be identified&lt;br /&gt;
-- the fourth argument specifies the maximum number of values to be processed (default 1)&lt;br /&gt;
-- the fifth argument specifies the separator to use when displaying multiple values&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local Wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local lacData = mw.loadData(&#039;Modul:LocationAndCountry/data&#039;)&lt;br /&gt;
local TableTools = require(&#039;Modul:TableTools&#039;)&lt;br /&gt;
local GregorianDate = require(&#039;Modul:GregorianDate&#039;)&lt;br /&gt;
local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local Set = require(&#039;Modul:Set&#039;)&lt;br /&gt;
local illWd = require(&#039;Modul:Ill-wd&#039;).fromArgs&lt;br /&gt;
local Transliteration = require(&#039;Modul:Transliteration&#039;)&lt;br /&gt;
local getValueByTimestamp = require(&#039;Modul:TimestampedTable&#039;).getValueByTimestamp&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function getClaimsForParam(entity, param)&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	local workingEntityId = nil&lt;br /&gt;
	if type(entity) == &#039;table&#039; then&lt;br /&gt;
		workingEntityId = entity.id&lt;br /&gt;
		claims = entity:getBestStatements(param)&lt;br /&gt;
	else&lt;br /&gt;
		workingEntityId = entity&lt;br /&gt;
		if not workingEntityId then workingEntityId = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
		if type(entity) == &#039;number&#039; then workingEntityId = &#039;Q&#039; .. tostring(entity) end&lt;br /&gt;
		if workingEntityId == nil then return &#039;&#039; end&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(workingEntityId, param)&lt;br /&gt;
	end&lt;br /&gt;
	return claims, workingEntityId&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getTimestamp(timestamp, workingEntityId)&lt;br /&gt;
	local ts = nil&lt;br /&gt;
	if timestamp then&lt;br /&gt;
		if type(timestamp) == &#039;string&#039; and mw.ustring.gmatch(timestamp, &#039;P%d+&#039;) then&lt;br /&gt;
			local wdDates = Wikidata.findDateValues(timestamp, workingEntityId)&lt;br /&gt;
			if wdDates then for _,eachWdDate in ipairs(wdDates) do&lt;br /&gt;
				if Wikidata.isClaimTrue(eachWdDate.claim) and Wikidata.hasValueSnak(eachWdDate.claim) then&lt;br /&gt;
					ts = GregorianDate.convertToGregorianIfInInterval(eachWdDate)&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
			end end&lt;br /&gt;
		end&lt;br /&gt;
		if ts == nil and type(timestamp) == &#039;string&#039; and mw.ustring.match(timestamp, &#039;^%d+&#039;) then&lt;br /&gt;
			ts = DateUtils.parseYear(timestamp)&lt;br /&gt;
		elseif ts == nil and type(timestamp) == &#039;table&#039; and timestamp.year then&lt;br /&gt;
			ts = timestamp&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ts&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getUatsAndCountryFromQuals(claim)&lt;br /&gt;
	if not Wikidata.isClaimTrue(claim) or not claim.qualifiers then return nil end&lt;br /&gt;
	local country = nil&lt;br /&gt;
	local uats = {}&lt;br /&gt;
	if claim.qualifiers[&#039;P17&#039;] then for _,eachCountryQual in ipairs(claim.qualifiers[&#039;P17&#039;]) do&lt;br /&gt;
		if Wikidata.isValueSnak(eachCountryQual) then&lt;br /&gt;
			country = eachCountryQual.datavalue.value.id&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	&lt;br /&gt;
	if claim.qualifiers[&#039;P131&#039;] then for _,eachUatQual in ipairs(claim.qualifiers[&#039;P131&#039;]) do&lt;br /&gt;
		if Wikidata.isValueSnak(eachUatQual) then&lt;br /&gt;
			table.insert(uats, eachUatQual.datavalue.value.id)&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	&lt;br /&gt;
	return uats, country&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getClaimForTimestamp(entityId, propId, ts)&lt;br /&gt;
	local timestampedClaim = Wikidata.findClaimForTimestamp(entityId, propId, ts)&lt;br /&gt;
	if timestampedClaim and Wikidata.hasValueSnak(timestampedClaim) then&lt;br /&gt;
		local retVal = timestampedClaim&lt;br /&gt;
		local claimTs = nil&lt;br /&gt;
		if timestampedClaim.qualifiers and timestampedClaim.qualifiers[&#039;P582&#039;] then&lt;br /&gt;
			for _,endTQual in ipairs(timestampedClaim.qualifiers[&#039;P582&#039;]) do if Wikidata.isValueSnak(endTQual) then&lt;br /&gt;
				claimTs = GregorianDate.convertToGregorianIfInInterval(DateUtils.extractDateFromWikidataSnak(endTQual))&lt;br /&gt;
				break&lt;br /&gt;
			end end&lt;br /&gt;
		end&lt;br /&gt;
		return retVal, claimTs&lt;br /&gt;
	end&lt;br /&gt;
	return nil, nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getCountryIdForTimestamp(entityId, ts)&lt;br /&gt;
	local countryClaim, retTs = getClaimForTimestamp(entityId, &#039;P17&#039;, ts)&lt;br /&gt;
&lt;br /&gt;
	if countryClaim and Wikidata.hasValueSnak(countryClaim) then&lt;br /&gt;
		return countryClaim.mainsnak.datavalue.value.id, retTs&lt;br /&gt;
	else&lt;br /&gt;
		return Wikidata.loadOneValueInChain({entityId, &#039;P17&#039;, &#039;raw&#039;}), nil&lt;br /&gt;
	end&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
-- returns 0, 1 or 2 - the number of admin units to be pulled&lt;br /&gt;
local function shouldPullUats(entityId, countryId)&lt;br /&gt;
	-- villages, rural settlements, should get 2 uats&lt;br /&gt;
	if Wikidata.isA(entityId, lacData.adminUnitExpandableLocationTypes) then&lt;br /&gt;
		return 2&lt;br /&gt;
	end&lt;br /&gt;
	-- locations in federal countries should get at least one UAT regardless of size&lt;br /&gt;
	if countryId and (Wikidata.isA(countryId, { &#039;Q22676603&#039;, &#039;Q43702&#039; })&lt;br /&gt;
		or TableTools.contains(lacData.adminUnitExpandableCountries, countryId)) then&lt;br /&gt;
		return 1&lt;br /&gt;
	end&lt;br /&gt;
	-- only big cities should have just the country&lt;br /&gt;
	if not Wikidata.isA(entityId, {&#039;Q1549591&#039;, &#039;Q1637706&#039;, &#039;Q200250&#039;}) then&lt;br /&gt;
		return 1&lt;br /&gt;
	end&lt;br /&gt;
	return 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function recurseUats(entityId, ts)&lt;br /&gt;
	local crtUatId = entityId&lt;br /&gt;
	local crtCountryId = Wikidata.loadOneValueInChain({entityId, &#039;P17&#039;, &#039;raw&#039;})&lt;br /&gt;
	local timestampedCountryId = getCountryIdForTimestamp(entityId, ts)&lt;br /&gt;
	local uatList = {}&lt;br /&gt;
	while crtUatId and crtUatId ~= crtCountryId and crtUatId ~= timestampedCountryId do&lt;br /&gt;
		local timestampedUatClaim = Wikidata.findClaimForTimestamp(crtUatId, &#039;P131&#039;, ts)&lt;br /&gt;
		crtUatId = timestampedUatClaim and Wikidata.hasValueSnak(timestampedUatClaim) and timestampedUatClaim.mainsnak.datavalue.value.id or Wikidata.loadOneValueInChain({crtUatId, &#039;P131&#039;, &#039;raw&#039;})&lt;br /&gt;
		if (TableTools.contains(uatList, crtUatId)) then&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
		table.insert(uatList, crtUatId)&lt;br /&gt;
	end&lt;br /&gt;
	local uatListCountryId = nil&lt;br /&gt;
	if #uatList &amp;gt; 0 and (uatList[#uatList] == crtCountryId or uatList[#uatList] == timestampedCountryId or Wikidata.isA(uatList[#uatList], {&#039;Q6256&#039;})) then&lt;br /&gt;
		uatListCountryId  = table.remove(uatList, #uatList)&lt;br /&gt;
	end&lt;br /&gt;
	return uatList, uatListCountryId&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function shouldSkipLocation(entityId)&lt;br /&gt;
	return Wikidata.isA(entityId, lacData.escalatableLocationTypes)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function trimUats(uatList)&lt;br /&gt;
	while #uatList &amp;gt; 0 and (Wikidata.isA(uatList[1], lacData.skippableUatTypes) or TableTools.contains(lacData.skippableUats, uatList[1])) do&lt;br /&gt;
		table.remove(uatList, 1)&lt;br /&gt;
	end&lt;br /&gt;
	while #uatList &amp;gt; 0 and (Wikidata.isA(uatList[#uatList], lacData.skippableUatTypes) or TableTools.contains(lacData.skippableUats, uatList[#uatList])) do&lt;br /&gt;
		table.remove(uatList, #uatList)&lt;br /&gt;
	end&lt;br /&gt;
	return uatList&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function resolvePartName(partId, ts, crtCountryId, uats)&lt;br /&gt;
	if lacData.locationNameOverrides[partId] then&lt;br /&gt;
&lt;br /&gt;
		local timestampedLabel = getValueByTimestamp(lacData.locationNameOverrides[partId], ts)&lt;br /&gt;
		return illWd(partId, timestampedLabel)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local offLangCodes = { &#039;ro&#039; }&lt;br /&gt;
	local offLangSource = nil&lt;br /&gt;
	local countryId = getCountryIdForTimestamp(partId, ts)&lt;br /&gt;
	&lt;br /&gt;
	if TableTools.contains(lacData.invariantLocations, partId) or&lt;br /&gt;
		(crtCountryId and TableTools.contains(lacData.invariantLocationCountries, crtCountryId))&lt;br /&gt;
		or TableTools.size(Set.valueIntersection(recurseUats(partId), lacData.invariantLocationUats)) &amp;gt; 0&lt;br /&gt;
		or Wikidata.isA(partId, lacData.invariantLocationTypes) then&lt;br /&gt;
		offLangCodes = { &#039;ro&#039; }&lt;br /&gt;
	else&lt;br /&gt;
		-- look for (1) official language of the location&lt;br /&gt;
		local officialLangAtTsClaim = getClaimForTimestamp(partId, &#039;P37&#039;, ts)&lt;br /&gt;
		local officialLangClaims = officialLangAtTsClaim and { officialLangAtTsClaim } or Wikidata.findBestClaimsForProperty(partId, &#039;P37&#039;)&lt;br /&gt;
		--          (2) official language of one of the UATs&lt;br /&gt;
		if not officialLangClaims or #officialLangClaims == 0 then&lt;br /&gt;
			for uatIdx,eachUat in ipairs(uats or {}) do&lt;br /&gt;
				local uatOfficialLangAtTsClaim = getClaimForTimestamp(eachUat, &#039;P37&#039;, ts)&lt;br /&gt;
				local uatOfficialLangClaims = uatOfficialLangAtTsSnak and {uatOfficialLangAtTsClaim } or Wikidata.findBestClaimsForProperty(eachUat, &#039;P37&#039;)&lt;br /&gt;
				if not officialLangClaims or #officialLangClaims == 0 then&lt;br /&gt;
					officialLangClaims = uatOfficialLangClaims&lt;br /&gt;
					offLangSource = { qId = eachUat, srcType = &#039;uat&#039;, srcIdx = uatIdx }&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			offLangSource = { qId = partId, srcType = &#039;part&#039; }&lt;br /&gt;
		end&lt;br /&gt;
		--          (3) official language of the country&lt;br /&gt;
		if not officialLangClaims or #officialLangClaims == 0 then&lt;br /&gt;
			if not countryId then return illWd(partId) end&lt;br /&gt;
			officialLangClaims = Wikidata.findBestClaimsForProperty(countryId, &#039;P37&#039;)&lt;br /&gt;
			offLangSource = { qId = countryId, srcType = &#039;country&#039; }&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		for _,eachOffLangClaim in ipairs(officialLangClaims) do&lt;br /&gt;
			if Wikidata.hasValueSnak(eachOffLangClaim) and (not eachOffLangClaim.qualifiers or not eachOffLangClaim.qualifiers[&#039;P518&#039;]) then&lt;br /&gt;
				local eachOffLangId = eachOffLangClaim.mainsnak.datavalue.value.id&lt;br /&gt;
				local writingSystemQueue = Wikidata.getBestEntityIdsList(eachOffLangId, &#039;P282&#039;)&lt;br /&gt;
				local writingSystem = writingSystemQueue and table.remove(writingSystemQueue, 1)&lt;br /&gt;
				while writingSystem and writingSystem ~= &#039;&#039; and writingSystem ~= 8229 do&lt;br /&gt;
					TableTools.appendAll(writingSystemQueue, Wikidata.getBestEntityIdsList(writingSystem, &#039;P282&#039;))&lt;br /&gt;
					writingSystem = table.remove(writingSystemQueue, 1)&lt;br /&gt;
				end&lt;br /&gt;
				local offLangCode = Wikidata.loadOneValueInChain({eachOffLangId, &#039;P218&#039;})&lt;br /&gt;
				if offLangCode and offLangCode ~= &#039;&#039; then&lt;br /&gt;
					if writingSystem == 8229 or Transliteration.isTransliterationSupported(offLangCode) then&lt;br /&gt;
						table.insert(offLangCodes, offLangCode)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if #offLangCodes &amp;gt; 1 and offLangSource then&lt;br /&gt;
		--search config order&lt;br /&gt;
		local configOrder = lacData.languageOrder[offLangSource.qId]&lt;br /&gt;
		if offLangSource.srcType == &#039;part&#039; or offLangSource.srcType == &#039;uat&#039; then&lt;br /&gt;
			local startIdx = offLangSource.srcType == &#039;uat&#039; and offLangSource.srcIdx or 1&lt;br /&gt;
			local crtIdx = startIdx&lt;br /&gt;
			while not configOrder and crtIdx &amp;lt;= #(uats or {}) do&lt;br /&gt;
				configOrder = configOrder or lacData.languageOrder[uats[crtIdx]]&lt;br /&gt;
				crtIdx = crtIdx + 1&lt;br /&gt;
			end&lt;br /&gt;
			configOrder = configOrder or lacData.languageOrder[countryId]&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if configOrder then&lt;br /&gt;
			local sortedOffLangCodes = {}&lt;br /&gt;
			local unknownOffLangCodes = {}&lt;br /&gt;
			for _,eachLang in ipairs(configOrder) do&lt;br /&gt;
				if TableTools.contains(offLangCodes, eachLang) then&lt;br /&gt;
					table.insert(sortedOffLangCodes, eachLang)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			for _,eachLang in ipairs(offLangCodes) do&lt;br /&gt;
				if not TableTools.contains(sortedOffLangCodes, eachLang) then&lt;br /&gt;
					table.insert(sortedOffLangCodes, eachLang)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			offLangCodes = sortedOffLangCodes&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	for _,offLangCode in ipairs(offLangCodes) do&lt;br /&gt;
		local wdPropForName = Wikidata.isA(partId, lacData.shortNameLocationTypes) and &#039;P1813&#039; or &#039;P1448&#039;&lt;br /&gt;
		&lt;br /&gt;
		local officialNameClaim = Wikidata.findClaimForTimestamp(partId, wdPropForName, ts, offLangCode)&lt;br /&gt;
		if officialNameClaim and Wikidata.isClaimTrue(officialNameClaim) and Wikidata.hasValueSnak(officialNameClaim) then&lt;br /&gt;
			local nameInOffLang = officialNameClaim.mainsnak.datavalue.value.text&lt;br /&gt;
			if wdPropForName == &#039;P1448&#039; and (not officialNameClaim.qualifiers or not officialNameClaim.qualifiers[&#039;P582&#039;]) then -- if this is a former name, use it&lt;br /&gt;
			-- if this is the current name, then just get the label from that language&lt;br /&gt;
				nameInOffLang = mw.wikibase.getLabelByLang(partId, offLangCode)&lt;br /&gt;
			end&lt;br /&gt;
			return illWd(partId, Transliteration.isTransliterationSupported(offLangCode) and Transliteration.transliterate(nameInOffLang, offLangCode) or nameInOffLang)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	for _,offLangCode in ipairs(offLangCodes) do&lt;br /&gt;
		local labelInLang = Wikidata.findLabel(partId, offLangCode)&lt;br /&gt;
		if Transliteration.isTransliterationSupported(offLangCode) then&lt;br /&gt;
			labelInLang = Transliteration.transliterate(labelInLang, offLangCode)&lt;br /&gt;
		end&lt;br /&gt;
		return illWd(partId, labelInLang)&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function resolvePartNames(partIds, ts, crtCountryId, uats)&lt;br /&gt;
	if not partIds then return nil end&lt;br /&gt;
	local res = {}&lt;br /&gt;
	for _,partId in ipairs(partIds) do&lt;br /&gt;
		table.insert(res, resolvePartName(partId, ts, crtCountryId, uats))&lt;br /&gt;
	end&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function collapseCapitalledUat(locationEntityId, uatEntitiesIds)&lt;br /&gt;
	if not uatEntitiesIds or #uatEntitiesIds == 0 then return uatEntitiesIds end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	local firstUatEntCapital = Wikidata.loadOneValueInChain({uatEntitiesIds[1], &#039;P36&#039;, &#039;raw&#039;})&lt;br /&gt;
	if not firstUatEntCapital or firstUatEntCapital ~= locationEntityId then&lt;br /&gt;
		table.insert(out, uatEntitiesIds[1])&lt;br /&gt;
	end&lt;br /&gt;
	for idx = 2,#uatEntitiesIds do table.insert(out, uatEntitiesIds[idx]) end&lt;br /&gt;
	return out&lt;br /&gt;
		&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function displayFromParams(param, entity, timestamp, maxvalues, separator, enableRefs)&lt;br /&gt;
&lt;br /&gt;
	if param == nil then return &#039;&#039; end&lt;br /&gt;
	&lt;br /&gt;
	local claims, workingEntityId = getClaimsForParam(entity, param)&lt;br /&gt;
&lt;br /&gt;
	local ts = getTimestamp(timestamp, workingEntityId)&lt;br /&gt;
&lt;br /&gt;
	local valueList = {}&lt;br /&gt;
	local maxvalues = maxvalues or 1&lt;br /&gt;
	if claims and 0 &amp;lt; #claims then&lt;br /&gt;
		for _,actualClaim in ipairs(claims) do&lt;br /&gt;
			local uatEntitiesIds = {}&lt;br /&gt;
			local countryId = nil&lt;br /&gt;
			local locationEntityId = nil&lt;br /&gt;
			if Wikidata.isClaimTrue(actualClaim) and Wikidata.hasValueSnak(actualClaim) then&lt;br /&gt;
				-- get admin unit(s) and/or country from qualifiers&lt;br /&gt;
				uatEntitiesIds, countryId = getUatsAndCountryFromQuals(actualClaim)&lt;br /&gt;
				locationEntityId = actualClaim.mainsnak.datavalue.value.id&lt;br /&gt;
				local countryByTs, countryTs = getCountryIdForTimestamp(locationEntityId, ts)&lt;br /&gt;
&lt;br /&gt;
				countryId = countryId or countryByTs&lt;br /&gt;
				-- (1) see if admin unit needs to be pulled&lt;br /&gt;
				local uatsEnabled = shouldPullUats(locationEntityId, countryId)&lt;br /&gt;
				-- (2) pull all admin units based on timestamp until reaching nothing, self or country&lt;br /&gt;
				local allUats, uatCountryId = recurseUats(locationEntityId, ts)&lt;br /&gt;
				if uatsEnabled &amp;gt; 0 then&lt;br /&gt;
					if uatCountryId and uatCountryId ~= countryId and not countryTs then&lt;br /&gt;
						countryId = uatCountryId&lt;br /&gt;
					elseif countryTs and uatCountryId and uatCountryId ~= countryId then&lt;br /&gt;
						allUats = {}&lt;br /&gt;
					end&lt;br /&gt;
					-- (3) if the location itself is to be skipped, keep the first admin unit in the list as location&lt;br /&gt;
					while #allUats &amp;gt; 0 and shouldSkipLocation(locationEntityId) do&lt;br /&gt;
						locationEntityId = table.remove(allUats, 1)&lt;br /&gt;
					end&lt;br /&gt;
					-- (4) apply rules to eliminate from both ends&lt;br /&gt;
					local trimmedUats = trimUats(allUats)&lt;br /&gt;
					-- (5) keep only first and last (or the only one if only one is left)&lt;br /&gt;
					uatEntitiesIds = #trimmedUats == 0 and {} or #trimmedUats == 1 and trimmedUats or uatsEnabled == 1 and {trimmedUats[#trimmedUats]} or {trimmedUats[1], trimmedUats[#trimmedUats]}&lt;br /&gt;
					if #uatEntitiesIds &amp;gt; 1 then&lt;br /&gt;
						uatEntitiesIds = collapseCapitalledUat(locationEntityId, uatEntitiesIds)&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					uatEntitiesIds = {}&lt;br /&gt;
				end&lt;br /&gt;
				local allPartIds = {}&lt;br /&gt;
				table.insert(allPartIds, locationEntityId)&lt;br /&gt;
				for __,eachUat in ipairs(uatEntitiesIds) do table.insert(allPartIds, eachUat) end&lt;br /&gt;
				local allPartLinks = resolvePartNames(allPartIds, ts, Wikidata.loadOneValueInChain({locationEntityId, &#039;P17&#039;, &#039;raw&#039;}), allUats)&lt;br /&gt;
				if not countryId and uatEntitiesIds and #uatEntitiesIds &amp;gt; 0 then&lt;br /&gt;
					countryId = Wikidata.loadOneValueInChain({uatEntitiesIds[#uatEntitiesIds], &#039;P17&#039;, &#039;raw&#039;})&lt;br /&gt;
				end&lt;br /&gt;
				if countryId and not TableTools.contains(allPartIds, countryId)&lt;br /&gt;
					and not Wikidata.isA(#uatEntitiesIds &amp;gt; 0 and uatEntitiesIds[#uatEntitiesIds] or locationEntityId, lacData.skipCountryTypes) then&lt;br /&gt;
					table.insert(allPartLinks, lacData.countryNameOverrides[countryId] and illWd(countryId, lacData.countryNameOverrides[countryId]) or resolvePartName(countryId, ts, countryId))&lt;br /&gt;
				end&lt;br /&gt;
				local crtVal = table.concat(allPartLinks, &#039;, &#039;)&lt;br /&gt;
				if enableRefs then crtVal = crtVal .. Wikidata.outputReferences(actualClaim) end&lt;br /&gt;
				table.insert(valueList, crtVal)&lt;br /&gt;
			end&lt;br /&gt;
			if #valueList &amp;gt;= maxvalues then&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(valueList, separator or &#039;; &#039;)&lt;br /&gt;
end&lt;br /&gt;
p.displayFromParams = displayFromParams&lt;br /&gt;
&lt;br /&gt;
local function displayFromArgs(args)&lt;br /&gt;
	local param = nil&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	local timestamp = nil&lt;br /&gt;
	local maxvalues = 1&lt;br /&gt;
	local separator = &#039;; &#039;&lt;br /&gt;
	if args[1] or args[&#039;param&#039;] then&lt;br /&gt;
		param = args[1] or args[&#039;param&#039;]&lt;br /&gt;
	end&lt;br /&gt;
	if args[2] or args[&#039;entityId&#039;] then&lt;br /&gt;
		entity = args[2] or args[&#039;entityId&#039;]&lt;br /&gt;
	end&lt;br /&gt;
	if args[3] or args[&#039;timestamp&#039;] then&lt;br /&gt;
		timestamp = args[3] or args[&#039;timestamp&#039;]&lt;br /&gt;
	end&lt;br /&gt;
	if args[4] or args[&#039;maxvalues&#039;] then&lt;br /&gt;
		maxvalues = tonumber(args[4] or args[&#039;maxvalues&#039;])&lt;br /&gt;
	end&lt;br /&gt;
	if args[5] or args[&#039;separator&#039;] then&lt;br /&gt;
		separator = args[5] or args[&#039;separator&#039;]&lt;br /&gt;
	end&lt;br /&gt;
	return displayFromParams(param, entity, timestamp, maxvalues, separator)&lt;br /&gt;
end&lt;br /&gt;
p.displayFromArgs = displayFromArgs&lt;br /&gt;
&lt;br /&gt;
p.displayFromFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame, { frameOnly = true })&lt;br /&gt;
	return displayFromArgs(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayFromParentFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame, { parentOnly = true})&lt;br /&gt;
	return displayFromArgs(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Set&amp;diff=347</id>
		<title>Modul:Set</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Set&amp;diff=347"/>
		<updated>2024-07-14T20:22:45Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: --[[ ------------------------------------------------------------------------------------ --                                   Set                                          -- --                                                                                -- -- This module includes a number of set operations for dealing with Lua tables.   -- -- It currently has union, intersection and complement functions for both         -- -- key/value pairs and for values only....&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--                                   Set                                          --&lt;br /&gt;
--                                                                                --&lt;br /&gt;
-- This module includes a number of set operations for dealing with Lua tables.   --&lt;br /&gt;
-- It currently has union, intersection and complement functions for both         --&lt;br /&gt;
-- key/value pairs and for values only.                                           --&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- Get necessary libraries and functions&lt;br /&gt;
local libraryUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
local tableTools = require(&#039;Module:TableTools&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- Makes a set from a table&#039;s values. Returns an array of all values with&lt;br /&gt;
-- duplicates removed.&lt;br /&gt;
local function makeValueSet(t)&lt;br /&gt;
	local isNan = tableTools.isNan&lt;br /&gt;
	local ret, exists = {}, {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		if isNan(v) then&lt;br /&gt;
			-- NaNs are always unique, and they can&#039;t be table keys, so don&#039;t&lt;br /&gt;
			-- check for existence.&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
		elseif not exists[v] then&lt;br /&gt;
			exists[v] = true&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- union&lt;br /&gt;
--&lt;br /&gt;
-- This returns the union of the key/value pairs of n tables. If any of the tables&lt;br /&gt;
-- contain different values for the same table key, the table value is converted&lt;br /&gt;
-- to an array holding all of the different values.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
function p.union(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;union&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local ret, trackArrays = {}, {}&lt;br /&gt;
	for i = 1, lim do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;union&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			local retKey = ret[k]&lt;br /&gt;
			if retKey == nil then&lt;br /&gt;
				ret[k] = v&lt;br /&gt;
			elseif retKey ~= v then&lt;br /&gt;
				if trackArrays[k] then&lt;br /&gt;
					local array = ret[k]&lt;br /&gt;
					local valExists&lt;br /&gt;
					for _, arrayVal in ipairs(array) do&lt;br /&gt;
						if arrayVal == v then&lt;br /&gt;
							valExists = true&lt;br /&gt;
							break&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					if not valExists then&lt;br /&gt;
						array[#array + 1] = v&lt;br /&gt;
						ret[k] = array&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					ret[k] = {ret[k], v}&lt;br /&gt;
					trackArrays[k] = true&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end				&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- valueUnion&lt;br /&gt;
--&lt;br /&gt;
-- This returns the union of the values of n tables, as an array. For example, for&lt;br /&gt;
-- the tables {1, 3, 4, 5, foo = 7} and {2, bar = 3, 5, 6}, union will return&lt;br /&gt;
-- {1, 2, 3, 4, 5, 6, 7}.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
function p.valueUnion(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;valueUnion&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local isNan = tableTools.isNan&lt;br /&gt;
	local ret, exists = {}, {}&lt;br /&gt;
	for i = 1, lim do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;valueUnion&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			if isNan(v) then&lt;br /&gt;
				ret[#ret + 1] = v&lt;br /&gt;
			elseif not exists[v] then&lt;br /&gt;
				ret[#ret + 1] = v&lt;br /&gt;
				exists[v] = true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- intersection&lt;br /&gt;
--&lt;br /&gt;
-- This returns the intersection of the key/value pairs of n tables. Both the key&lt;br /&gt;
-- and the value must match to be included in the resulting table.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
function p.intersection(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;intersection&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local ret, track, pairCounts = {}, {}, {}&lt;br /&gt;
	for i = 1, lim do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;intersection&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			local trackVal = track[k]&lt;br /&gt;
			if trackVal == nil then&lt;br /&gt;
				track[k] = v&lt;br /&gt;
				pairCounts[k] = 1&lt;br /&gt;
			elseif trackVal == v then&lt;br /&gt;
				pairCounts[k] = pairCounts[k] + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	for k, v in pairs(track) do&lt;br /&gt;
		if pairCounts[k] == lim then&lt;br /&gt;
			ret[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- valueIntersection&lt;br /&gt;
--&lt;br /&gt;
-- This returns the intersection of the values of n tables, as an array. For&lt;br /&gt;
-- example, for the tables {1, 3, 4, 5, foo = 7} and {2, bar = 3, 5, 6}, &lt;br /&gt;
-- intersection will return {3, 5}.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
function p.valueIntersection(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;valueIntersection&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local isNan = tableTools.isNan&lt;br /&gt;
	local vals, ret = {}, {}&lt;br /&gt;
	local isSameTable = true -- Tracks table equality.&lt;br /&gt;
	local tableTemp -- Used to store the table from the previous loop so that we can check table equality.&lt;br /&gt;
	for i = 1, lim do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;valueIntersection&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		if tableTemp and t ~= tableTemp then&lt;br /&gt;
			isSameTable = false&lt;br /&gt;
		end&lt;br /&gt;
		tableTemp = t&lt;br /&gt;
		t = makeValueSet(t) -- Remove duplicates&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			-- NaNs are never equal to any other value, so they can&#039;t be in the intersection.&lt;br /&gt;
			-- Which is lucky, as they also can&#039;t be table keys.&lt;br /&gt;
			if not isNan(v) then&lt;br /&gt;
				local valCount = vals[v] or 0&lt;br /&gt;
				vals[v] = valCount + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if isSameTable then&lt;br /&gt;
		-- If all the tables are equal, then the intersection is that table (including NaNs).&lt;br /&gt;
		-- All we need to do is convert it to an array and remove duplicate values.&lt;br /&gt;
		return makeValueSet(tableTemp)&lt;br /&gt;
	end&lt;br /&gt;
	for val, count in pairs(vals) do&lt;br /&gt;
		if count == lim then&lt;br /&gt;
			ret[#ret + 1] = val&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- complement&lt;br /&gt;
--&lt;br /&gt;
-- This returns the relative complement of t1, t2, ..., in tn. The complement&lt;br /&gt;
-- is of key/value pairs. This is equivalent to all the key/value pairs that are in&lt;br /&gt;
-- tn but are not in t1, t2, ... tn-1.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
function p.complement(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;complement&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Now we know that we have at least two sets.&lt;br /&gt;
	-- First, get all the key/value pairs in tn. We can&#039;t simply make ret equal to tn,&lt;br /&gt;
	-- as that will affect the value of tn for the whole module.&lt;br /&gt;
	--]]&lt;br /&gt;
	local tn = select(lim, ...)&lt;br /&gt;
	checkType(&#039;complement&#039;, lim, tn, &#039;table&#039;)&lt;br /&gt;
	local ret = tableTools.shallowClone(tn)&lt;br /&gt;
	-- Remove all the key/value pairs in t1, t2, ..., tn-1.&lt;br /&gt;
	for i = 1, lim - 1 do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;complement&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			if ret[k] == v then&lt;br /&gt;
				ret[k] = nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- valueComplement&lt;br /&gt;
--&lt;br /&gt;
-- This returns an array containing the relative complement of t1, t2, ..., in tn.&lt;br /&gt;
-- The complement is of values only. This is equivalent to all the values that are&lt;br /&gt;
-- in tn but are not in t1, t2, ... tn-1.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
--]]&lt;br /&gt;
function p.valueComplement(...)&lt;br /&gt;
	local lim = select(&#039;#&#039;, ...) &lt;br /&gt;
	if lim &amp;lt; 2 then&lt;br /&gt;
		error(&amp;quot;too few arguments to &#039;valueComplement&#039; (minimum is 2, received &amp;quot; .. lim .. &#039;)&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local isNan = tableTools.isNan&lt;br /&gt;
	local ret, exists = {}, {}&lt;br /&gt;
	for i = 1, lim - 1 do&lt;br /&gt;
		local t = select(i, ...)&lt;br /&gt;
		checkType(&#039;valueComplement&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		t = makeValueSet(t) -- Remove duplicates&lt;br /&gt;
		for k, v in pairs(t) do&lt;br /&gt;
			if not isNan(v) then&lt;br /&gt;
				-- NaNs cannot be table keys, and they are also unique so cannot be equal to anything in tn.&lt;br /&gt;
				exists[v] = true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local tn = select(lim, ...)&lt;br /&gt;
	checkType(&#039;valueComplement&#039;, lim, tn, &#039;table&#039;)&lt;br /&gt;
	tn = makeValueSet(tn) -- Remove duplicates&lt;br /&gt;
	for k, v in pairs(tn) do&lt;br /&gt;
		if isNan(v) or exists[v] == nil then&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.contains(set, element)&lt;br /&gt;
	checkType(&#039;insert&#039;, 1, set, &#039;table&#039;, false)&lt;br /&gt;
	for k,v in pairs(set) do&lt;br /&gt;
		if v == element then return true end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.insert(set, element)&lt;br /&gt;
	checkType(&#039;insert&#039;, 1, set, &#039;table&#039;, false)&lt;br /&gt;
	if not p.contains(set, element) then&lt;br /&gt;
		table.insert(set, element)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Transliteration/langdata&amp;diff=346</id>
		<title>Modul:Transliteration/langdata</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Transliteration/langdata&amp;diff=346"/>
		<updated>2024-07-14T20:22:01Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local map = { 	[&amp;#039;sr&amp;#039;] = { 		[&amp;#039;а&amp;#039;] = &amp;#039;a&amp;#039;, [&amp;#039;б&amp;#039;] = &amp;#039;b&amp;#039;, [&amp;#039;в&amp;#039;] = &amp;#039;v&amp;#039;, [&amp;#039;г&amp;#039;] = &amp;#039;g&amp;#039;, [&amp;#039;д&amp;#039;] = &amp;#039;d&amp;#039;, [&amp;#039;ђ&amp;#039;] = &amp;#039;đ&amp;#039;, 		[&amp;#039;е&amp;#039;] = &amp;#039;e&amp;#039;, [&amp;#039;ж&amp;#039;] = &amp;#039;ž&amp;#039;, [&amp;#039;з&amp;#039;] = &amp;#039;z&amp;#039;, [&amp;#039;и&amp;#039;] = &amp;#039;i&amp;#039;, [&amp;#039;ј&amp;#039;] = &amp;#039;j&amp;#039;, [&amp;#039;к&amp;#039;] = &amp;#039;k&amp;#039;, 		[&amp;#039;л&amp;#039;] = &amp;#039;l&amp;#039;, [&amp;#039;љ&amp;#039;] = &amp;#039;lj&amp;#039;, [&amp;#039;м&amp;#039;] = &amp;#039;m&amp;#039;, [&amp;#039;н&amp;#039;] = &amp;#039;n&amp;#039;, [&amp;#039;њ&amp;#039;] = &amp;#039;nj&amp;#039;, [&amp;#039;о&amp;#039;] = &amp;#039;o&amp;#039;, 		[&amp;#039;п&amp;#039;] = &amp;#039;p&amp;#039;, [&amp;#039;р&amp;#039;] = &amp;#039;r&amp;#039;, [&amp;#039;с&amp;#039;] = &amp;#039;s&amp;#039;, [&amp;#039;т&amp;#039;] = &amp;#039;t&amp;#039;, [&amp;#039;ћ&amp;#039;] = &amp;#039;ć&amp;#039;, [&amp;#039;у&amp;#039;] = &amp;#039;u&amp;#039;, 		[&amp;#039;ф&amp;#039;] = &amp;#039;f&amp;#039;, [&amp;#039;х&amp;#039;] = &amp;#039;h&amp;#039;, [&amp;#039;ц&amp;#039;] = &amp;#039;c&amp;#039;, [&amp;#039;ч&amp;#039;] = &amp;#039;č&amp;#039;, [&amp;#039;џ&amp;#039;] = &amp;#039;dž&amp;#039;, [&amp;#039;ш&amp;#039;] = &amp;#039;š&amp;#039; 	}, 	[&amp;#039;mk&amp;#039;] = {...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local map = {&lt;br /&gt;
	[&#039;sr&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;г&#039;] = &#039;g&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;ђ&#039;] = &#039;đ&#039;,&lt;br /&gt;
		[&#039;е&#039;] = &#039;e&#039;, [&#039;ж&#039;] = &#039;ž&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;и&#039;] = &#039;i&#039;, [&#039;ј&#039;] = &#039;j&#039;, [&#039;к&#039;] = &#039;k&#039;,&lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;љ&#039;] = &#039;lj&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;њ&#039;] = &#039;nj&#039;, [&#039;о&#039;] = &#039;o&#039;,&lt;br /&gt;
		[&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;, [&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;ћ&#039;] = &#039;ć&#039;, [&#039;у&#039;] = &#039;u&#039;,&lt;br /&gt;
		[&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;ц&#039;] = &#039;c&#039;, [&#039;ч&#039;] = &#039;č&#039;, [&#039;џ&#039;] = &#039;dž&#039;, [&#039;ш&#039;] = &#039;š&#039;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;mk&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;г&#039;] = &#039;g&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;ђ&#039;] = &#039;đ&#039;,&lt;br /&gt;
		[&#039;е&#039;] = &#039;e&#039;, [&#039;ж&#039;] = &#039;ž&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;и&#039;] = &#039;i&#039;, [&#039;ј&#039;] = &#039;j&#039;, [&#039;к&#039;] = &#039;k&#039;,&lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;љ&#039;] = &#039;lj&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;њ&#039;] = &#039;nj&#039;, [&#039;о&#039;] = &#039;o&#039;,&lt;br /&gt;
		[&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;, [&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;ћ&#039;] = &#039;ć&#039;, [&#039;у&#039;] = &#039;u&#039;,&lt;br /&gt;
		[&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;ц&#039;] = &#039;c&#039;, [&#039;ч&#039;] = &#039;č&#039;, [&#039;џ&#039;] = &#039;dž&#039;, [&#039;ш&#039;] = &#039;š&#039;,&lt;br /&gt;
		[&#039;ѓ&#039;] = &#039;ǵ&#039;, [&#039;ѕ&#039;] = &#039;dz&#039;, [&#039;ќ&#039;] = &#039;ḱ&#039;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;uk&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;г&#039;] = &#039;h&#039;, [&#039;е&#039;] = &#039;e&#039;,&lt;br /&gt;
		[&#039;ж&#039;] = &#039;j&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;и&#039;] = &#039;î&#039;, [&#039;й&#039;] = &#039;i&#039;, [&#039;і&#039;] = &#039;i&#039;, [&#039;к&#039;] = &#039;k&#039;,&lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;о&#039;] = &#039;o&#039;, [&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;,&lt;br /&gt;
		[&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;у&#039;] = &#039;u&#039;, [&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;ц&#039;] = &#039;ț&#039;,&lt;br /&gt;
		[&#039;ш&#039;] = &#039;ș&#039;, [&#039;ю&#039;] = &#039;iu&#039;, [&#039;ʼ&#039;] = &#039;&#039;, [&#039;є&#039;] = &#039;ie&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;ґ&#039;] = { [&#039;def&#039;] = &#039;g&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;gh&#039;, [&#039;і&#039;] = &#039;gh&#039;, [&#039;ї&#039;] = &#039;gh&#039;, [&#039;є&#039;] = &#039;gh&#039;, [&#039;я&#039;] = &#039;gh&#039; } },&lt;br /&gt;
		[&#039;ї&#039;] = { [&#039;def&#039;] = &#039;ii&#039;, [&#039;bh&#039;] = { [&#039;і&#039;] = &#039;i&#039; } },&lt;br /&gt;
		[&#039;ч&#039;] = { [&#039;def&#039;] = &#039;ci&#039;, [&#039;ah&#039;] = { [&#039;а&#039;] = &#039;ce&#039;, [&#039;е&#039;] = &#039;c&#039;, [&#039;і&#039;] = &#039;c&#039;, [&#039;ї&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039;, [&#039;я&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039; } },&lt;br /&gt;
		[&#039;щ&#039;] = { [&#039;def&#039;] = &#039;șci&#039;, [&#039;ah&#039;] = { [&#039;а&#039;] = &#039;șce&#039;, [&#039;е&#039;] = &#039;șc&#039;, [&#039;і&#039;] = &#039;șc&#039;, [&#039;ї&#039;] = &#039;șc&#039;, [&#039;є&#039;] = &#039;șc&#039;, [&#039;я&#039;] = &#039;șc&#039;, [&#039;є&#039;] = &#039;șc&#039; } },&lt;br /&gt;
		[&#039;я&#039;] = { [&#039;def&#039;] = &#039;ea&#039;, [&#039;bh&#039;] = { [&#039;&#039;] = &#039;ia&#039;, [&#039; &#039;] = &#039;ia&#039;, [&#039;а&#039;] = &#039;ia&#039;, [&#039;е&#039;] = &#039;ia&#039;, [&#039;и&#039;] = &#039;ia&#039;, [&#039;й&#039;] = &#039;ia&#039;, [&#039;і&#039;] = &#039;a&#039;, [&#039;о&#039;] = &#039;ia&#039;, [&#039;у&#039;] = &#039;ia&#039;, [&#039;я&#039;] = &#039;ia&#039;, [&#039;є&#039;] = &#039;ia&#039;, [&#039;ь&#039;] = &#039;ia&#039; } },&lt;br /&gt;
		[&#039;ь&#039;] = { [&#039;def&#039;] = &#039;&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;i&#039; } },&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ru&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;е&#039;] = &#039;e&#039;, [&#039;ё&#039;] = &#039;io&#039;,&lt;br /&gt;
		[&#039;ж&#039;] = &#039;j&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;и&#039;] = &#039;i&#039;, [&#039;к&#039;] = &#039;k&#039;, [&#039;э&#039;] = &#039;ie&#039;, [&#039;ы&#039;] = &#039;î&#039;,&lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;о&#039;] = &#039;o&#039;, [&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;,&lt;br /&gt;
		[&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;у&#039;] = &#039;u&#039;, [&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;ц&#039;] = &#039;ț&#039;,&lt;br /&gt;
		[&#039;ш&#039;] = &#039;ș&#039;, [&#039;ю&#039;] = &#039;iu&#039;, [&#039;ъ&#039;] = &#039;&#039;, [&#039;є&#039;] = &#039;ie&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;й&#039;] = { [&#039;def&#039;] = &#039;i&#039;, [&#039;ah&#039;] = { [&#039;&#039;] = { [&#039;bh&#039;] = { [&#039;и&#039;] = &#039;&#039; } }, [&#039; &#039;] = { [&#039;bh&#039;] = { [&#039;и&#039;] = &#039;&#039; } } } }, &lt;br /&gt;
		[&#039;г&#039;] = { [&#039;def&#039;] = &#039;g&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;gh&#039;, [&#039;і&#039;] = &#039;gh&#039;, [&#039;ї&#039;] = &#039;gh&#039;, [&#039;є&#039;] = &#039;gh&#039;, [&#039;я&#039;] = &#039;gh&#039; } },&lt;br /&gt;
		[&#039;ч&#039;] = { [&#039;def&#039;] = &#039;ci&#039;, [&#039;ah&#039;] = { [&#039;а&#039;] = &#039;ce&#039;, [&#039;е&#039;] = &#039;c&#039;, [&#039;и&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039;, [&#039;я&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039; } },&lt;br /&gt;
		[&#039;щ&#039;] = { [&#039;def&#039;] = &#039;șci&#039;, [&#039;ah&#039;] = { [&#039;а&#039;] = &#039;șce&#039;, [&#039;е&#039;] = &#039;șc&#039;, [&#039;і&#039;] = &#039;șc&#039;, [&#039;ї&#039;] = &#039;șc&#039;, [&#039;є&#039;] = &#039;șc&#039;, [&#039;я&#039;] = &#039;șc&#039;, [&#039;є&#039;] = &#039;șc&#039; } },&lt;br /&gt;
		[&#039;я&#039;] = { [&#039;def&#039;] = &#039;ea&#039;, [&#039;bh&#039;] = { [&#039;&#039;] = &#039;ia&#039;, [&#039; &#039;] = &#039;ia&#039;, [&#039;а&#039;] = &#039;ia&#039;, [&#039;е&#039;] = &#039;ia&#039;, [&#039;и&#039;] = &#039;a&#039;, [&#039;й&#039;] = &#039;ia&#039;, [&#039;і&#039;] = &#039;a&#039;, [&#039;о&#039;] = &#039;ia&#039;, [&#039;у&#039;] = &#039;ia&#039;, [&#039;я&#039;] = &#039;ia&#039;, [&#039;є&#039;] = &#039;ia&#039;, [&#039;ь&#039;] = &#039;ia&#039; } },&lt;br /&gt;
		[&#039;ь&#039;] = { [&#039;def&#039;] = &#039;&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;i&#039; } },&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;bg&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;е&#039;] = &#039;e&#039;,&lt;br /&gt;
		[&#039;ж&#039;] = &#039;j&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;и&#039;] = &#039;i&#039;, [&#039;э&#039;] = &#039;ie&#039;, [&#039;щ&#039;] = &#039;șt&#039;, &lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;о&#039;] = &#039;o&#039;, [&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;,&lt;br /&gt;
		[&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;у&#039;] = &#039;u&#039;, [&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;ц&#039;] = &#039;ț&#039;,&lt;br /&gt;
		[&#039;ш&#039;] = &#039;ș&#039;, [&#039;ю&#039;] = &#039;iu&#039;, [&#039;ъ&#039;] = &#039;ă&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;й&#039;] = { [&#039;def&#039;] = &#039;i&#039;, [&#039;ah&#039;] = { [&#039;&#039;] = { [&#039;bh&#039;] = { [&#039;и&#039;] = &#039;&#039; } }, [&#039; &#039;] = { [&#039;bh&#039;] = { [&#039;и&#039;] = &#039;&#039; } } } }, &lt;br /&gt;
		[&#039;г&#039;] = { [&#039;def&#039;] = &#039;g&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;gh&#039;, [&#039;и&#039;] = &#039;gh&#039;, [&#039;є&#039;] = &#039;gh&#039;, [&#039;я&#039;] = &#039;gh&#039;, [&#039;ь&#039;] = &#039;ghi&#039; } },&lt;br /&gt;
		[&#039;к&#039;] = { [&#039;def&#039;] = &#039;k&#039;, [&#039;ah&#039;] = { [&#039;ь&#039;] = &#039;chi&#039; } },&lt;br /&gt;
		[&#039;ч&#039;] = { [&#039;def&#039;] = &#039;ci&#039;, [&#039;ah&#039;] = { [&#039;а&#039;] = &#039;ce&#039;, [&#039;е&#039;] = &#039;c&#039;, [&#039;и&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039;, [&#039;я&#039;] = &#039;c&#039;, [&#039;є&#039;] = &#039;c&#039; } },&lt;br /&gt;
		[&#039;я&#039;] = { [&#039;def&#039;] = &#039;ea&#039;, [&#039;bh&#039;] = { [&#039;&#039;] = &#039;ia&#039;, [&#039; &#039;] = &#039;ia&#039;, [&#039;а&#039;] = &#039;ia&#039;, [&#039;е&#039;] = &#039;ia&#039;, [&#039;и&#039;] = &#039;a&#039;, [&#039;й&#039;] = &#039;ia&#039;, [&#039;о&#039;] = &#039;ia&#039;, [&#039;у&#039;] = &#039;ia&#039;, [&#039;я&#039;] = &#039;ia&#039;, [&#039;ъ&#039;] = &#039;ia&#039;, [&#039;ь&#039;] = &#039;ia&#039; } },&lt;br /&gt;
		[&#039;ь&#039;] = { [&#039;def&#039;] = &#039;&#039;, [&#039;ah&#039;] = { [&#039;е&#039;] = &#039;i&#039; } },&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;el&#039;] = {&lt;br /&gt;
		[&#039;α&#039;] = &#039;a&#039;, [&#039;β&#039;] = &#039;v&#039;, [&#039;δ&#039;] = &#039;d&#039;, [&#039;ε&#039;] = &#039;e&#039;, [&#039;ζ&#039;] = &#039;z&#039;, [&#039;η&#039;] = &#039;i&#039;,&lt;br /&gt;
		[&#039;θ&#039;] = &#039;th&#039;, [&#039;ι&#039;] = &#039;i&#039;, [&#039;κ&#039;] = &#039;k&#039;, [&#039;λ&#039;] = &#039;l&#039;, [&#039;ν&#039;] = &#039;n&#039;, [&#039;ξ&#039;] = &#039;x&#039;,&lt;br /&gt;
		[&#039;ο&#039;] = &#039;o&#039;, [&#039;ρ&#039;] = &#039;r&#039;, [&#039;σ&#039;] = &#039;s&#039;, [&#039;ς&#039;] = &#039;s&#039;, [&#039;τ&#039;] = &#039;t&#039;, [&#039;φ&#039;] = &#039;f&#039;,&lt;br /&gt;
		[&#039;χ&#039;] = &#039;ch&#039;, [&#039;ψ&#039;] = &#039;ps&#039;, [&#039;ω&#039;] = &#039;o&#039;, [&#039;ή&#039;] = &#039;i&#039;, [&#039;ά&#039;] = &#039;a&#039;, [&#039;ί&#039;] = &#039;i&#039;,&lt;br /&gt;
		[&#039;ύ&#039;] = &#039;ý&#039;, [&#039;έ&#039;] = &#039;e&#039;, [&#039;ώ&#039;] = &#039;o&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;γ&#039;] = { def = &#039;g&#039;, ah = { [&#039;γ&#039;] = &#039;n&#039;, [&#039;ξ&#039;] = &#039;n&#039;, [&#039;χ&#039;] = &#039;n&#039;} },&lt;br /&gt;
		[&#039;υ&#039;] = { def = &#039;y&#039;, bh = { [&#039;ο&#039;] = &#039;u&#039;, [&#039;α&#039;] = &#039;f&#039;, [&#039;ε&#039;] = &#039;f&#039;, [&#039;η&#039;] = &#039;f&#039; } },&lt;br /&gt;
		[&#039;ύ&#039;] = { def = &#039;ý&#039;, bh = { [&#039;ο&#039;] = &#039;ù&#039;, [&#039;α&#039;] = &#039;f&#039;, [&#039;ε&#039;] = &#039;f&#039;, [&#039;η&#039;] = &#039;f&#039; } },&lt;br /&gt;
		[&#039;μ&#039;] = { def = &#039;m&#039;, ah = { [&#039;π&#039;] = { def = &#039;m&#039;, bh = { [&#039;&#039;] = &#039;B\226\140\166&#039;, [&#039; &#039;] = &#039;B\226\140\166&#039; } } } },&lt;br /&gt;
		[&#039;π&#039;] = { def = &#039;p&#039;, bh = { [&#039;μ&#039;] = { def = &#039;p&#039;, ah = { [&#039;&#039;] = &#039;\226\140\171b&#039;, [&#039; &#039;] = &#039;\226\140\171b&#039; } } } },&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;be&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;в&#039;] = &#039;v&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;г&#039;] = &#039;h&#039;, [&#039;ь&#039;] = &#039;\204\129&#039;,&lt;br /&gt;
		[&#039;ж&#039;] = &#039;ž&#039;, [&#039;з&#039;] = &#039;z&#039;, [&#039;й&#039;] = &#039;j&#039;, [&#039;і&#039;] = &#039;i&#039;, [&#039;к&#039;] = &#039;k&#039;, [&#039;ы&#039;] = &#039;y&#039;,&lt;br /&gt;
		[&#039;л&#039;] = &#039;l&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;, [&#039;о&#039;] = &#039;o&#039;, [&#039;п&#039;] = &#039;p&#039;, [&#039;р&#039;] = &#039;r&#039;,&lt;br /&gt;
		[&#039;с&#039;] = &#039;s&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;у&#039;] = &#039;u&#039;, [&#039;ў&#039;] = &#039;ŭ&#039;, [&#039;ф&#039;] = &#039;f&#039;, [&#039;х&#039;] = &#039;ch&#039;, [&#039;ц&#039;] = &#039;c&#039;,&lt;br /&gt;
		[&#039;ш&#039;] = &#039;š&#039;, [&#039;ч&#039;] = &#039;č&#039; , [&#039;э&#039;] = &#039;e&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;ю&#039;] = { def = &#039;iu&#039;, bh = { [&#039;&#039;] = &#039;ju&#039;, [&#039; &#039;] = &#039;ju&#039;, [&#039;э&#039;] = &#039;ju&#039;, [&#039;а&#039;] = &#039;ju&#039;, [&#039;й&#039;] = &#039;ju&#039;, [&#039;і&#039;] = &#039;ju&#039;, [&#039;о&#039;] = &#039;ju&#039;, [&#039;у&#039;] = &#039;ju&#039;, [&#039;ў&#039;] = &#039;ju&#039;, [&#039;ы&#039;] = &#039;ju&#039;, [&#039;ь&#039;] = &#039;ju&#039;, [&#039;ю&#039;] = &#039;ju&#039;, [&#039;я&#039;] = &#039;ju&#039;, [&#039;е&#039;] = &#039;ju&#039;, [&#039;ё&#039;] = &#039;ju&#039; } },&lt;br /&gt;
		[&#039;я&#039;] = { def = &#039;ia&#039;, bh = { [&#039;&#039;] = &#039;ja&#039;, [&#039; &#039;] = &#039;ja&#039;, [&#039;э&#039;] = &#039;ja&#039;, [&#039;а&#039;] = &#039;ja&#039;, [&#039;й&#039;] = &#039;ja&#039;, [&#039;і&#039;] = &#039;ja&#039;, [&#039;о&#039;] = &#039;ja&#039;, [&#039;у&#039;] = &#039;ja&#039;, [&#039;ў&#039;] = &#039;ja&#039;, [&#039;ы&#039;] = &#039;ja&#039;, [&#039;ь&#039;] = &#039;ja&#039;, [&#039;ю&#039;] = &#039;ja&#039;, [&#039;я&#039;] = &#039;ja&#039;, [&#039;е&#039;] = &#039;ja&#039;, [&#039;ё&#039;] = &#039;ja&#039; } }, &lt;br /&gt;
		[&#039;е&#039;] = { def = &#039;ie&#039;, bh = { [&#039;&#039;] = &#039;je&#039;, [&#039; &#039;] = &#039;je&#039;, [&#039;э&#039;] = &#039;je&#039;, [&#039;а&#039;] = &#039;je&#039;, [&#039;й&#039;] = &#039;je&#039;, [&#039;і&#039;] = &#039;je&#039;, [&#039;о&#039;] = &#039;je&#039;, [&#039;у&#039;] = &#039;je&#039;, [&#039;ў&#039;] = &#039;je&#039;, [&#039;ы&#039;] = &#039;je&#039;, [&#039;ь&#039;] = &#039;je&#039;, [&#039;ю&#039;] = &#039;je&#039;, [&#039;я&#039;] = &#039;je&#039;, [&#039;е&#039;] = &#039;je&#039;, [&#039;ё&#039;] = &#039;je&#039; } }, &lt;br /&gt;
		[&#039;ё&#039;] = { def = &#039;io&#039;, bh = { [&#039;&#039;] = &#039;jo&#039;, [&#039; &#039;] = &#039;jo&#039;, [&#039;э&#039;] = &#039;jo&#039;, [&#039;а&#039;] = &#039;jo&#039;, [&#039;й&#039;] = &#039;jo&#039;, [&#039;і&#039;] = &#039;jo&#039;, [&#039;о&#039;] = &#039;jo&#039;, [&#039;у&#039;] = &#039;jo&#039;, [&#039;ў&#039;] = &#039;jo&#039;, [&#039;ы&#039;] = &#039;jo&#039;, [&#039;ь&#039;] = &#039;jo&#039;, [&#039;ю&#039;] = &#039;jo&#039;, [&#039;я&#039;] = &#039;jo&#039;, [&#039;е&#039;] = &#039;jo&#039;, [&#039;ё&#039;] = &#039;jo&#039; } }, &lt;br /&gt;
	},&lt;br /&gt;
	[&#039;kk&#039;] = {&lt;br /&gt;
		[&#039;а&#039;] = &#039;a&#039;, [&#039;ә&#039;] = &#039;ä&#039;, [&#039;б&#039;] = &#039;b&#039;, [&#039;д&#039;] = &#039;d&#039;, [&#039;е&#039;] = &#039;e&#039;, [&#039;ф&#039;] = &#039;f&#039;,&lt;br /&gt;
		[&#039;г&#039;] = &#039;g&#039;, [&#039;ғ&#039;] = &#039;ğ&#039;, [&#039;х&#039;] = &#039;h&#039;, [&#039;һ&#039;] = &#039;h&#039;, [&#039;і&#039;] = &#039;ı&#039;, [&#039;и&#039;] = &#039;i&#039;,&lt;br /&gt;
		[&#039;й&#039;] = &#039;i&#039;, [&#039;ж&#039;] = &#039;j&#039;, [&#039;к&#039;] = &#039;k&#039;, [&#039;л&#039;] = &#039;l&#039;, [&#039;м&#039;] = &#039;m&#039;, [&#039;н&#039;] = &#039;n&#039;,&lt;br /&gt;
		[&#039;ң&#039;] = &#039;ŋ&#039;, [&#039;о&#039;] = &#039;o&#039;, [&#039;ө&#039;] = &#039;ö&#039;, [&#039;п&#039;] = &#039;p&#039;, [&#039;қ&#039;] = &#039;q&#039;, [&#039;р&#039;] = &#039;r&#039;,&lt;br /&gt;
		[&#039;с&#039;] = &#039;s&#039;, [&#039;ш&#039;] = &#039;ş&#039;, [&#039;т&#039;] = &#039;t&#039;, [&#039;у&#039;] = &#039;u&#039;, [&#039;ұ&#039;] = &#039;ū&#039;, [&#039;ү&#039;] = &#039;ü&#039;,&lt;br /&gt;
		[&#039;в&#039;] = &#039;v&#039;, [&#039;ы&#039;] = &#039;y&#039;, [&#039;з&#039;] = &#039;z&#039;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;hy&#039;] = {&lt;br /&gt;
		[&#039;ա&#039;] = &#039;a&#039;, [&#039;բ&#039;] = &#039;b&#039;, [&#039;գ&#039;] = &#039;g&#039;, [&#039;դ&#039;] = &#039;d&#039;, [&#039;ե&#039;] = &#039;e&#039;, [&#039;է&#039;] = &#039;ē&#039;,&lt;br /&gt;
		[&#039;ը&#039;] = &#039;ë&#039;, [&#039;թ&#039;] = &#039;t’&#039;, [&#039;ժ&#039;] = &#039;ž&#039;, [&#039;զ&#039;] = &#039;z&#039;, [&#039;ի&#039;] = &#039;i&#039;, [&#039;լ&#039;] = &#039;l&#039;,&lt;br /&gt;
		[&#039;խ&#039;] = &#039;x&#039;, [&#039;ծ&#039;] = &#039;ç&#039;, [&#039;կ&#039;] = &#039;k&#039;, [&#039;հ&#039;] = &#039;h&#039;, [&#039;ձ&#039;] = &#039;j&#039;, [&#039;ղ&#039;] = &#039;ġ&#039;,&lt;br /&gt;
		[&#039;մ&#039;] = &#039;m&#039;, [&#039;յ&#039;] = &#039;y&#039;, [&#039;ն&#039;] = &#039;n&#039;, [&#039;շ&#039;] = &#039;š&#039;, [&#039;ո&#039;] = &#039;o&#039;, [&#039;չ&#039;] = &#039;č&#039;,&lt;br /&gt;
		[&#039;պ&#039;] = &#039;p&#039;, [&#039;ջ&#039;] = &#039;ǰ&#039;, [&#039;ռ&#039;] = &#039;ṙ&#039;, [&#039;ս&#039;] = &#039;s&#039;, [&#039;վ&#039;] = &#039;v&#039;, [&#039;տ&#039;] = &#039;t&#039;,&lt;br /&gt;
		[&#039;ր&#039;] = &#039;r&#039;, [&#039;ց&#039;] = &#039;c’&#039;, [&#039;ւ&#039;] = &#039;w&#039;, [&#039;փ&#039;] = &#039;p’&#039;, [&#039;ք&#039;] = &#039;k’&#039;, [&#039;օ&#039;] = &#039;ò&#039;,&lt;br /&gt;
		[&#039;ֆ&#039;] = &#039;f&#039;, [&#039;և&#039;] = &#039;ew&#039;, [&#039;ճ&#039;] = &#039;č\204\163&#039;,&lt;br /&gt;
		&lt;br /&gt;
		[&#039;Ջ&#039;] = &#039;J̌&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ka&#039;] = {&lt;br /&gt;
		[&#039;ა&#039;] = &#039;a&#039;, [&#039;ბ&#039;] = &#039;b&#039;, [&#039;გ&#039;] = &#039;g&#039;, [&#039;დ&#039;] = &#039;d&#039;, [&#039;ე&#039;] = &#039;e&#039;, [&#039;ვ&#039;] = &#039;v&#039;,&lt;br /&gt;
		[&#039;ზ&#039;] = &#039;z&#039;, [&#039;ჱ&#039;] = &#039;ē&#039;, [&#039;თ&#039;] = &#039;t\204\149&#039;, [&#039;ი&#039;] = &#039;i&#039;, [&#039;კ&#039;] = &#039;k&#039;,&lt;br /&gt;
		[&#039;ლ&#039;] = &#039;l&#039;, [&#039;მ&#039;] = &#039;m&#039;, [&#039;ნ&#039;] = &#039;n&#039;, [&#039;ჲ&#039;] = &#039;y&#039;, [&#039;ო&#039;] = &#039;o&#039;, [&#039;პ&#039;] = &#039;p&#039;,&lt;br /&gt;
		[&#039;ჟ&#039;] = &#039;ž&#039;, [&#039;რ&#039;] = &#039;r&#039;, [&#039;ს&#039;] = &#039;s&#039;, [&#039;ტ&#039;] = &#039;t&#039;, [&#039;ჳ&#039;] = &#039;w&#039;, [&#039;უ&#039;] = &#039;u&#039;,&lt;br /&gt;
		[&#039;ფ&#039;] = &#039;p\204\149&#039;, [&#039;ქ&#039;] = &#039;k\204\149&#039;, [&#039;ღ&#039;] = &#039;ḡ&#039;, [&#039;ყ&#039;] = &#039;q&#039;, [&#039;შ&#039;] = &#039;š&#039;,&lt;br /&gt;
		[&#039;ჩ&#039;] = &#039;č\204\149&#039;, [&#039;ც&#039;] = &#039;c\204\149&#039;, [&#039;ძ&#039;] = &#039;j&#039;, [&#039;წ&#039;] = &#039;c&#039;, [&#039;ჭ&#039;] = &#039;č&#039;,&lt;br /&gt;
		[&#039;ხ&#039;] = &#039;x&#039;, [&#039;ჴ&#039;] = &#039;ẖ&#039;, [&#039;ჯ&#039;] = &#039;ǰ&#039;, [&#039;ჰ&#039;] = &#039;h&#039;, [&#039;ჵ&#039;] = &#039;ō&#039;&lt;br /&gt;
	},&lt;br /&gt;
--[[&lt;br /&gt;
	[&#039;hi&#039;] = {&lt;br /&gt;
		[&#039;अ&#039;] = &#039;a&#039;, [&#039;\224\164\134&#039;] = &#039;ā&#039;, [&#039;इ&#039;] = &#039;i&#039;, [&#039;ई&#039;] = &#039;ī&#039;, [&#039;उ&#039;] = &#039;u&#039;,&lt;br /&gt;
		[&#039;ऊ&#039;] = &#039;ū&#039;, [&#039;ए&#039;] = &#039;e&#039;, [&#039;ऐ&#039;] = &#039;ai&#039;, [&#039;ओ&#039;] = &#039;o&#039;, [&#039;औ&#039;] = &#039;au&#039;,&lt;br /&gt;
		[&#039;ऋ&#039;] = &#039;ṛ&#039;, [&#039;ॠ&#039;] = &#039;ṝ&#039;, [&#039;ऌ&#039;] = &#039;ḷ&#039;, [&#039;ॡ&#039;] = &#039;ḹ&#039;, [&#039;अं&#039;] = &#039;ṃ&#039;, [&#039;अः&#039;] = &#039;ḥ&#039;,&lt;br /&gt;
		[&#039;अँ&#039;] = &#039;&#039;, [&#039;ऽ&#039;] = &amp;quot;&#039;&amp;quot;, [&#039;क&#039;] = &#039;k&#039;, [&#039;ख&#039;] = &#039;kh&#039;, [&#039;ग&#039;] = &#039;g&#039;, [&#039;घ&#039;] = &#039;gh&#039;,&lt;br /&gt;
		[&#039;ङ&#039;] = &#039;ṅ&#039;, [&#039;च&#039;] = &#039;c&#039;, [&#039;छ&#039;] = &#039;ch&#039;, [&#039;ज&#039;] = &#039;j&#039;, [&#039;झ&#039;] = &#039;jh&#039;, [&#039;ञ&#039;] = &#039;ñ&#039;,&lt;br /&gt;
		[&#039;ट&#039;] = &#039;ṭ&#039;, [&#039;ठ&#039;] = &#039;ṭh&#039;, [&#039;ड&#039;] = &#039;ḍ&#039;, [&#039;ढ&#039;] = &#039;ḍh&#039;, [&#039;ण&#039;] = &#039;ṇ&#039;, [&#039;त&#039;] = &#039;t&#039;,&lt;br /&gt;
		[&#039;थ&#039;] = &#039;th&#039;, [&#039;द&#039;] = &#039;d&#039;, [&#039;ध&#039;] = &#039;dh&#039;, [&#039;न&#039;] = &#039;n&#039;, [&#039;प&#039;] = &#039;p&#039;, [&#039;फ&#039;] = &#039;ph&#039;,&lt;br /&gt;
		[&#039;ब&#039;] = &#039;b&#039;, [&#039;भ&#039;] = &#039;bh&#039;, [&#039;म&#039;] = &#039;m&#039;, [&#039;य&#039;] = &#039;y&#039;, [&#039;र&#039;] = &#039;r&#039;, [&#039;ल&#039;] = &#039;l&#039;,&lt;br /&gt;
		[&#039;व&#039;] = &#039;v&#039;, [&#039;श&#039;] = &#039;ś&#039;, [&#039;ष&#039;] = &#039;ṣ&#039;, [&#039;स&#039;] = &#039;s&#039;, [&#039;ह&#039;] = &#039;h&#039;, [&#039;क्ष&#039;] = &#039;kṣ&#039;,&lt;br /&gt;
		[&#039;त्र&#039;] = &#039;tr&#039;, [&#039;ज्ञ&#039;] = &#039;jñ&#039;, [&#039;श्र&#039;] = &#039;śr&#039;,&lt;br /&gt;
		[&#039;क़&#039;] = &#039;q&#039;, [&#039;ख़&#039;] = &#039;k͟h&#039;, [&#039;ग़&#039;] = &#039;ġ&#039;,&lt;br /&gt;
		[&#039;ज़&#039;] = &#039;z&#039;, [&#039;फ़&#039;] = &#039;f&#039;, [&#039;ड़&#039;] = &#039;ṛ&#039;, &lt;br /&gt;
		[&#039;ढ़&#039;] = &#039;ṛh&#039;,&lt;br /&gt;
	}&lt;br /&gt;
]]--&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
map[&#039;sr-Cyrl&#039;] = map[&#039;sr&#039;]&lt;br /&gt;
&lt;br /&gt;
return map&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Transliteration&amp;diff=345</id>
		<title>Modul:Transliteration</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Transliteration&amp;diff=345"/>
		<updated>2024-07-14T20:21:18Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local transliterationMaps = mw.loadData(&amp;#039;Modul:Transliteration/langdata&amp;#039;)  local function isTransliterationSupported(langCode) 	if transliterationMaps[langCode] then return true end 	return false end p.isTransliterationSupported = isTransliterationSupported  local function postProcess(str)  	local chars = {} 	local idx = 1 	while idx &amp;lt;= mw.ustring.len(str) do 		local crtChar = mw.ustring.sub(str, idx, idx) 		if c...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local transliterationMaps = mw.loadData(&#039;Modul:Transliteration/langdata&#039;)&lt;br /&gt;
&lt;br /&gt;
local function isTransliterationSupported(langCode)&lt;br /&gt;
	if transliterationMaps[langCode] then return true end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isTransliterationSupported = isTransliterationSupported&lt;br /&gt;
&lt;br /&gt;
local function postProcess(str) &lt;br /&gt;
	local chars = {}&lt;br /&gt;
	local idx = 1&lt;br /&gt;
	while idx &amp;lt;= mw.ustring.len(str) do&lt;br /&gt;
		local crtChar = mw.ustring.sub(str, idx, idx)&lt;br /&gt;
		if crtChar == &#039;\226\140\166&#039; then &lt;br /&gt;
			idx = idx + 1&lt;br /&gt;
		elseif crtChar == &#039;\226\140\171&#039; and #table &amp;gt; 1 then&lt;br /&gt;
			table.remove(chars, #chars)&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(chars, crtChar)&lt;br /&gt;
		end&lt;br /&gt;
		idx = idx + 1&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(chars)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function applyConversionRule(conversionRule, crtChar, prevChar, nextChar)&lt;br /&gt;
	if not conversionRule then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if type(conversionRule) == &#039;string&#039; then&lt;br /&gt;
		return conversionRule&lt;br /&gt;
	end&lt;br /&gt;
	if type(conversionRule) == &#039;table&#039; then&lt;br /&gt;
		return prevChar and conversionRule[&#039;bh&#039;] and applyConversionRule(conversionRule[&#039;bh&#039;][prevChar], crtChar, prevChar, nextChar)&lt;br /&gt;
			or nextChar and conversionRule[&#039;ah&#039;] and applyConversionRule(conversionRule[&#039;ah&#039;][nextChar], crtChar, prevChar, nextChar)&lt;br /&gt;
			or conversionRule[&#039;def&#039;]&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function transliterate(text, langCode)&lt;br /&gt;
	if text == nil then return nil end&lt;br /&gt;
	local map = transliterationMaps[langCode]&lt;br /&gt;
	local lang = mw.language.new(langCode)&lt;br /&gt;
	if not map then &lt;br /&gt;
		error(&#039;Transliteration from language &#039; .. langCode .. &#039; not supported&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local out = &#039;&#039;&lt;br /&gt;
	for strIdx = 1,mw.ustring.len(text) do&lt;br /&gt;
		local crtChar = mw.ustring.sub(text, strIdx, strIdx)&lt;br /&gt;
		local prevChar = strIdx &amp;gt; 1 and lang:lc(mw.ustring.sub(text, strIdx - 1, strIdx - 1)) or &#039;&#039;&lt;br /&gt;
		local nextChar = strIdx &amp;lt; mw.ustring.len(text) and lang:lc(mw.ustring.sub(text, strIdx + 1, strIdx + 1)) or &#039;&#039;&lt;br /&gt;
		&lt;br /&gt;
		local convertedChar = applyConversionRule(map[crtChar], crtChar, prevChar, nextChar)&lt;br /&gt;
		if not convertedChar then&lt;br /&gt;
			local lcCrtChar = lang:lc(crtChar)&lt;br /&gt;
			local ucConvertedChar = applyConversionRule(map[lcCrtChar], lcCrtChar, prevChar, nextChar)&lt;br /&gt;
			convertedChar = ucConvertedChar and lang:ucfirst(ucConvertedChar)&lt;br /&gt;
		end&lt;br /&gt;
		out = out .. (convertedChar or crtChar)&lt;br /&gt;
	end&lt;br /&gt;
	return postProcess(out)&lt;br /&gt;
end&lt;br /&gt;
p.transliterate = transliterate&lt;br /&gt;
&lt;br /&gt;
local function transliterateFromFrame(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local text = args.text or args[1]&lt;br /&gt;
	local lang = args.lang or args[2]&lt;br /&gt;
	return transliterate(text, lang)&lt;br /&gt;
end&lt;br /&gt;
p.transliterateFromFrame = transliterateFromFrame&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Plural&amp;diff=344</id>
		<title>Modul:Plural</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Plural&amp;diff=344"/>
		<updated>2024-07-14T20:20:19Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs local lang = mw.getLanguage(&amp;quot;ro&amp;quot;) local p = {}  function p.build_first_plural(singular)   local plural = mw.loadData(&amp;quot;Modul:Plural/data&amp;quot;).plural   if plural[singular] ~= nil then     return plural[singular]   else     return string.format(&amp;quot;%si&amp;quot;, singular)   end end  function p.build_plural(count, singular, first_plural, second_plural) 	local form   if count == 1 then     form = singular   elseif count == 0 or count ~= nil an...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
local lang = mw.getLanguage(&amp;quot;ro&amp;quot;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.build_first_plural(singular)&lt;br /&gt;
  local plural = mw.loadData(&amp;quot;Modul:Plural/data&amp;quot;).plural&lt;br /&gt;
  if plural[singular] ~= nil then&lt;br /&gt;
    return plural[singular]&lt;br /&gt;
  else&lt;br /&gt;
    return string.format(&amp;quot;%si&amp;quot;, singular)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.build_plural(count, singular, first_plural, second_plural)&lt;br /&gt;
	local form&lt;br /&gt;
  if count == 1 then&lt;br /&gt;
    form = singular&lt;br /&gt;
  elseif count == 0 or count ~= nil and (count%100 &amp;gt; 0 and count%100 &amp;lt; 20) then&lt;br /&gt;
  	if first_plural == nil then&lt;br /&gt;
        form = p.build_first_plural(singular)&lt;br /&gt;
    else&lt;br /&gt;
    	form = first_plural&lt;br /&gt;
    end&lt;br /&gt;
  else&lt;br /&gt;
  	if second_plural == nil and first_plural == nil then&lt;br /&gt;
    	form = &amp;quot;de &amp;quot; .. p.build_first_plural(singular)&lt;br /&gt;
    elseif first_plural ~= nil then&lt;br /&gt;
    	form = &amp;quot;de &amp;quot; .. first_plural&lt;br /&gt;
    else&lt;br /&gt;
    	form = second_plural&lt;br /&gt;
  	end&lt;br /&gt;
  end&lt;br /&gt;
  return string.format(&amp;quot;%s %s&amp;quot;, lang:formatNum(count), form)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.get_plural(frame)&lt;br /&gt;
  -- if we don&#039;t have any args, try to get them from the template&lt;br /&gt;
  if frame.args[1] == nil then&lt;br /&gt;
  	origArgs = getArgs(frame, { wrappers = { &#039;Format:Plural&#039; } })&lt;br /&gt;
  else&lt;br /&gt;
  	origArgs = frame.args&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  local form = &amp;quot;&amp;quot;&lt;br /&gt;
  local count = lang:parseFormattedNumber(origArgs[1])&lt;br /&gt;
  local singular = origArgs[2]&lt;br /&gt;
  local first_plural = nil&lt;br /&gt;
  local second_plural = nil&lt;br /&gt;
  if origArgs[3] ~= nil then&lt;br /&gt;
  	first_plural = origArgs[3]&lt;br /&gt;
  end&lt;br /&gt;
  if origArgs[4] ~= nil then&lt;br /&gt;
  	local first_plural = origArgs[4]&lt;br /&gt;
  end&lt;br /&gt;
  &lt;br /&gt;
  return p.build_plural(count, singular, first_plural, second_plural)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.get_first_plural(frame)&lt;br /&gt;
  if frame.args or frame.args[1] == nil then&lt;br /&gt;
  	origArgs = getArgs(frame, { wrappers = { &#039;Format:Plural&#039; } })&lt;br /&gt;
  else&lt;br /&gt;
  	origArgs = frame.args&lt;br /&gt;
  end&lt;br /&gt;
  return p.build_first_plural(origArgs[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:LangUtils&amp;diff=343</id>
		<title>Modul:LangUtils</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:LangUtils&amp;diff=343"/>
		<updated>2024-07-14T20:18:02Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: -- This module contains various utility code for use with language-related modules  local langCodes = { [&amp;quot;Q188&amp;quot;] = &amp;quot;de&amp;quot;, [&amp;quot;Q1860&amp;quot;] = &amp;quot;en&amp;quot;, [&amp;quot;Q7913&amp;quot;] = &amp;quot;ro&amp;quot;, [&amp;quot;Q7737&amp;quot;] = &amp;quot;ru&amp;quot;, }  return langCodes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module contains various utility code for use with language-related modules&lt;br /&gt;
&lt;br /&gt;
local langCodes = {&lt;br /&gt;
[&amp;quot;Q188&amp;quot;] = &amp;quot;de&amp;quot;,&lt;br /&gt;
[&amp;quot;Q1860&amp;quot;] = &amp;quot;en&amp;quot;,&lt;br /&gt;
[&amp;quot;Q7913&amp;quot;] = &amp;quot;ro&amp;quot;,&lt;br /&gt;
[&amp;quot;Q7737&amp;quot;] = &amp;quot;ru&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return langCodes&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Citation/CS1&amp;diff=342</id>
		<title>Modul:Citation/CS1</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Citation/CS1&amp;diff=342"/>
		<updated>2024-07-14T20:17:28Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă:  local cs1 ={};  ----------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------   local dates, year_date_check, reformat_dates, date_hyphen_to_dash,				-- functions in Module:Citation/CS1/Date_validation 	date_name_xlate  local is_set, in_array, substitute, error_comment, set_error, select_one,		-- functions in Module:Citation/CS1/Utilities 	add_maint_cat, wrap_style, safe_for_italics, is_wikilink, make_wikilink;  local z ={}...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local cs1 ={};&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local dates, year_date_check, reformat_dates, date_hyphen_to_dash,				-- functions in Module:Citation/CS1/Date_validation&lt;br /&gt;
	date_name_xlate&lt;br /&gt;
&lt;br /&gt;
local is_set, in_array, substitute, error_comment, set_error, select_one,		-- functions in Module:Citation/CS1/Utilities&lt;br /&gt;
	add_maint_cat, wrap_style, safe_for_italics, is_wikilink, make_wikilink;&lt;br /&gt;
&lt;br /&gt;
local z ={};																	-- tables in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
local extract_ids, extract_id_access_levels, build_id_list, is_embargoed;		-- functions in Module:Citation/CS1/Identifiers&lt;br /&gt;
&lt;br /&gt;
local make_coins_title, get_coins_pages, COinS;									-- functions in Module:Citation/CS1/COinS&lt;br /&gt;
&lt;br /&gt;
local cfg = {};																	-- table of configuration tables that are defined in Module:Citation/CS1/Configuration&lt;br /&gt;
local whitelist = {};															-- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P A G E   S C O P E   V A R I A B L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
delare variables here that have page-wide scope that are not brought in from other modules; thatare created here&lt;br /&gt;
and used here&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local added_deprecated_cat;														-- boolean flag so that the category is added only once&lt;br /&gt;
local added_prop_cats = {};														-- list of property categories that have been added to z.properties_cats&lt;br /&gt;
local added_vanc_errs;															-- boolean flag so we only emit one Vancouver error / category&lt;br /&gt;
&lt;br /&gt;
local Frame;																	-- holds the module&#039;s frame table&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F I R S T _ S E T &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Locates and returns the first set value in a table of values where the order established in the table,&lt;br /&gt;
left-to-right (or top-to-bottom), is the order in which the values are evaluated.  Returns nil if none are set.&lt;br /&gt;
&lt;br /&gt;
This version replaces the original &#039;for _, val in pairs do&#039; and a similar version that used ipairs.  With the pairs&lt;br /&gt;
version the order of evaluation could not be guaranteed.  With the ipairs version, a nil value would terminate&lt;br /&gt;
the for-loop before it reached the actual end of the list.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function first_set (list, count)&lt;br /&gt;
	local i = 1;&lt;br /&gt;
	while i &amp;lt;= count do															-- loop through all items in list&lt;br /&gt;
		if is_set( list[i] ) then&lt;br /&gt;
			return list[i];														-- return the first set list member&lt;br /&gt;
		end&lt;br /&gt;
		i = i + 1;																-- point to next&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A D D _ P R O P _ C A T &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds a category to z.properties_cats using names from the configuration file with additional text if any.&lt;br /&gt;
&lt;br /&gt;
foreign_lang_source and foreign_lang_source_2 keys have a language code appended to them so that multiple languages&lt;br /&gt;
may be categorized but multiples of the same language are not categorized.&lt;br /&gt;
&lt;br /&gt;
added_prop_cats is a table declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function add_prop_cat (key, arguments)&lt;br /&gt;
	if not added_prop_cats [key] then&lt;br /&gt;
		added_prop_cats [key] = true;											-- note that we&#039;ve added this category&lt;br /&gt;
		key = key:gsub (&#039;(foreign_lang_source_?2?)%a%a%a?&#039;, &#039;%1&#039;);				-- strip lang code from keyname&lt;br /&gt;
		table.insert( z.properties_cats, substitute (cfg.prop_cats [key], arguments));		-- make name then add to table&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A D D _ V A N C _ E R R O R &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds a single Vancouver system error message to the template&#039;s output regardless of how many error actually exist.&lt;br /&gt;
To prevent duplication, added_vanc_errs is nil until an error message is emitted.&lt;br /&gt;
&lt;br /&gt;
added_vanc_errs is a boolean declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function add_vanc_error (source)&lt;br /&gt;
	if not added_vanc_errs then&lt;br /&gt;
		added_vanc_errs = true;													-- note that we&#039;ve added this category&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;vancouver&#039;, {source}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ S C H E M E &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
does this thing that purports to be a uri scheme seem to be a valid scheme?  The scheme is checked to see if it&lt;br /&gt;
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:&lt;br /&gt;
	Scheme names consist of a sequence of characters beginning with a&lt;br /&gt;
   letter and followed by any combination of letters, digits, plus&lt;br /&gt;
   (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
returns true if it does, else false&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_scheme (scheme)&lt;br /&gt;
	return scheme and scheme:match (&#039;^%a[%a%d%+%.%-]*:&#039;);						-- true if scheme is set and matches the pattern&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ D O M A I N _ N A M E &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Does this thing that purports to be a domain name seem to be a valid domain name?&lt;br /&gt;
&lt;br /&gt;
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5&lt;br /&gt;
BNF defined here: https://tools.ietf.org/html/rfc4234&lt;br /&gt;
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;&lt;br /&gt;
	see also [[Single-letter second-level domain]]&lt;br /&gt;
list of tlds: https://www.iana.org/domains/root/db&lt;br /&gt;
&lt;br /&gt;
rfc952 (modified by rfc 1123) requires the first and last character of a hostname to be a letter or a digit.  Between&lt;br /&gt;
the first and last characters the name may use letters, digits, and the hyphen.&lt;br /&gt;
&lt;br /&gt;
Also allowed are IPv4 addresses. IPv6 not supported&lt;br /&gt;
&lt;br /&gt;
domain is expected to be stripped of any path so that the last character in the last character of the tld.  tld&lt;br /&gt;
is two or more alpha characters.  Any preceding &#039;//&#039; (from splitting a url with a scheme) will be stripped&lt;br /&gt;
here.  Perhaps not necessary but retained incase it is necessary for IPv4 dot decimal.&lt;br /&gt;
&lt;br /&gt;
There are several tests:&lt;br /&gt;
	the first character of the whole domain name including subdomains must be a letter or a digit&lt;br /&gt;
	internationalized domain name (ascii characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the tld) see https://tools.ietf.org/html/rfc3490&lt;br /&gt;
	single-letter/digit second-level domains in the .org and .cash TLDs&lt;br /&gt;
	q, x, and z SL domains in the .com TLD&lt;br /&gt;
	i and q SL domains in the .net TLD&lt;br /&gt;
	single-letter SL domains in the ccTLDs (where the ccTLD is two letters)&lt;br /&gt;
	two-character SL domains in gTLDs (where the gTLD is two or more letters)&lt;br /&gt;
	three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)&lt;br /&gt;
	IPv4 dot-decimal address format; TLD not allowed&lt;br /&gt;
&lt;br /&gt;
returns true if domain appears to be a proper name and tld or IPv4 address, else false&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_domain_name (domain)&lt;br /&gt;
	if not domain then&lt;br /&gt;
		return false;															-- if not set, abandon&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	domain = domain:gsub (&#039;^//&#039;, &#039;&#039;);											-- strip &#039;//&#039; from domain name if present; done here so we only have to do it once&lt;br /&gt;
	&lt;br /&gt;
	if not domain:match (&#039;^[%a%d]&#039;) then										-- first character must be letter or digit&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
																				-- Do most common case first&lt;br /&gt;
	if domain:match (&#039;%f[%a%d][%a%d][%a%d%-]+[%a%d]%.%a%a+$&#039;) then				-- three or more character hostname.hostname or hostname.tld&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d][%a%d%-]+[%a%d]%.xn%-%-[%a%d]+$&#039;) then	-- internationalized domain name with ACE prefix&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.cash$&#039;) then							-- one character/digit .cash hostname&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.org$&#039;) then							-- one character/digit .org hostname&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a][qxz]%.com$&#039;) then								-- assigned one character .com hostname (x.com times out 2015-12-10)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a][iq]%.net$&#039;) then								-- assigned one character .net hostname (q.net registered but not active 2015-12-10)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.%a%a$&#039;) then							-- one character hostname and cctld (2 chars)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d][%a%d]%.%a%a+$&#039;) then					-- two character hostname and tld&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?&#039;) then		-- IPv4 address&lt;br /&gt;
		return true;&lt;br /&gt;
	else&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ U R L &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true if the scheme and domain parts of a url appear to be a valid url; else false.&lt;br /&gt;
&lt;br /&gt;
This function is the last step in the validation process.  This function is separate because there are cases that&lt;br /&gt;
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external&lt;br /&gt;
wikilinks.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_url (scheme, domain)&lt;br /&gt;
	if is_set (scheme) then														-- if scheme is set check it and domain&lt;br /&gt;
		return is_scheme (scheme) and is_domain_name (domain);&lt;br /&gt;
	else&lt;br /&gt;
		return is_domain_name (domain);											-- scheme not set when url is protocol relative&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S P L I T _ U R L &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Split a url into a scheme, authority indicator, and domain.&lt;br /&gt;
&lt;br /&gt;
First remove Fully Qualified Domain Name terminator (a dot following tld) (if any) and any path(/), query(?) or fragment(#).&lt;br /&gt;
&lt;br /&gt;
If protocol relative url, return nil scheme and domain else return nil for both scheme and domain.&lt;br /&gt;
&lt;br /&gt;
When not protocol relative, get scheme, authority indicator, and domain.  If there is an authority indicator (one&lt;br /&gt;
or more &#039;/&#039; characters immediately following the scheme&#039;s colon), make sure that there are only 2.&lt;br /&gt;
&lt;br /&gt;
Strip off any port and path;&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function split_url (url_str)&lt;br /&gt;
	local scheme, authority, domain;&lt;br /&gt;
	&lt;br /&gt;
	url_str = url_str:gsub (&#039;([%a%d])%.?[/%?#].*$&#039;, &#039;%1&#039;);						-- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of &#039;//&#039;)&lt;br /&gt;
&lt;br /&gt;
	if url_str:match (&#039;^//%S*&#039;) then											-- if there is what appears to be a protocol relative url&lt;br /&gt;
		domain = url_str:match (&#039;^//(%S*)&#039;)&lt;br /&gt;
	elseif url_str:match (&#039;%S-:/*%S+&#039;) then										-- if there is what appears to be a scheme, optional authority indicator, and domain name&lt;br /&gt;
		scheme, authority, domain = url_str:match (&#039;(%S-:)(/*)(%S+)&#039;);			-- extract the scheme, authority indicator, and domain portions&lt;br /&gt;
		authority = authority:gsub (&#039;//&#039;, &#039;&#039;, 1);								-- replace place 1 pair of &#039;/&#039; with nothing;&lt;br /&gt;
		if is_set(authority) then												-- if anything left (1 or 3+ &#039;/&#039; where authority should be) then&lt;br /&gt;
			return scheme;														-- return scheme only making domain nil which will cause an error message&lt;br /&gt;
		end&lt;br /&gt;
		domain = domain:gsub (&#039;(%a):%d+&#039;, &#039;%1&#039;);								-- strip port number if present&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return scheme, domain;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I N K _ P A R A M _ O K &amp;gt;---------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
checks the content of |title-link=, |series-link=, |author-link= etc for properly formatted content: no wikilinks, no urls&lt;br /&gt;
&lt;br /&gt;
Link parameters are to hold the title of a wikipedia article so none of the WP:TITLESPECIALCHARACTERS are allowed:&lt;br /&gt;
	# &amp;lt; &amp;gt; [ ] | { } _&lt;br /&gt;
except the underscore which is used as a space in wiki urls and # which is used for section links&lt;br /&gt;
&lt;br /&gt;
returns false when the value contains any of these characters.&lt;br /&gt;
&lt;br /&gt;
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid url (the&lt;br /&gt;
|&amp;lt;param&amp;gt;-link= parameter is ok); else false when value appears to be a valid url (the |&amp;lt;param&amp;gt;-link= parameter is NOT ok).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function link_param_ok (value)&lt;br /&gt;
	local scheme, domain;&lt;br /&gt;
	if value:find (&#039;[&amp;lt;&amp;gt;%[%]|{}]&#039;) then											-- if any prohibited characters&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	scheme, domain = split_url (value);											-- get scheme or nil and domain or nil from url; &lt;br /&gt;
	return not is_url (scheme, domain);											-- return true if value DOES NOT appear to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I N K _ T I T L E _ O K &amp;gt;---------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Use link_param_ok() to validate |&amp;lt;param&amp;gt;-link= value and its matching |&amp;lt;title&amp;gt;= value.&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;title&amp;gt;= may be wikilinked but not when |&amp;lt;param&amp;gt;-link= has a value.  This function emits an error message when&lt;br /&gt;
that condition exists&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function link_title_ok (link, lorig, title, torig)&lt;br /&gt;
local orig;&lt;br /&gt;
&lt;br /&gt;
	if is_set (link) then 														-- don&#039;t bother if &amp;lt;param&amp;gt;-link doesn&#039;t have a value&lt;br /&gt;
		if not link_param_ok (link) then										-- check |&amp;lt;param&amp;gt;-link= markup&lt;br /&gt;
			orig = lorig;														-- identify the failing link parameter&lt;br /&gt;
		elseif title:find (&#039;%[%[&#039;) then											-- check |title= for wikilink markup&lt;br /&gt;
			orig = torig;														-- identify the failing |title= parameter&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (orig) then&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;bad_paramlink&#039;, orig)});	-- url or wikilink in |title= with |title-link=;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C H E C K _ U R L &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines whether a URL string appears to be valid.&lt;br /&gt;
&lt;br /&gt;
First we test for space characters.  If any are found, return false.  Then split the url into scheme and domain&lt;br /&gt;
portions, or for protocol relative (//example.com) urls, just the domain.  Use is_url() to validate the two&lt;br /&gt;
portions of the url.  If both are valid, or for protocol relative if domain is valid, return true, else false.&lt;br /&gt;
&lt;br /&gt;
Because it is different from a standard url, and because this module used external_link() to make external links&lt;br /&gt;
that work for standard and news: links, we validate newsgroup names here.  The specification for a newsgroup name&lt;br /&gt;
is at https://tools.ietf.org/html/rfc5536#section-3.1.4&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function check_url( url_str )&lt;br /&gt;
	if nil == url_str:match (&amp;quot;^%S+$&amp;quot;) then										-- if there are any spaces in |url=value it can&#039;t be a proper url&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
	local scheme, domain;&lt;br /&gt;
&lt;br /&gt;
	scheme, domain = split_url (url_str);										-- get scheme or nil and domain or nil from url;&lt;br /&gt;
	&lt;br /&gt;
	if &#039;news:&#039; == scheme then													-- special case for newsgroups&lt;br /&gt;
		return domain:match(&#039;^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$&#039;);&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return is_url (scheme, domain);												-- return true if value appears to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ P A R A M E T E R _ E X T _ W I K I L I N K &amp;gt;----------------------------&lt;br /&gt;
&lt;br /&gt;
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first&lt;br /&gt;
non-space characters following the opening bracket appear to be a url.  The test will also find external wikilinks&lt;br /&gt;
that use protocol relative urls. Also finds bare urls.&lt;br /&gt;
&lt;br /&gt;
The frontier pattern prevents a match on interwiki links which are similar to scheme:path urls.  The tests that&lt;br /&gt;
find bracketed urls are required because the parameters that call this test (currently |title=, |chapter=, |work=,&lt;br /&gt;
and |publisher=) may have wikilinks and there are articles or redirects like &#039;//Hus&#039; so, while uncommon, |title=[[//Hus]]&lt;br /&gt;
is possible as might be [[en://Hus]].&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_parameter_ext_wikilink (value)&lt;br /&gt;
local scheme, domain;&lt;br /&gt;
&lt;br /&gt;
	if value:match (&#039;%f[%[]%[%a%S*:%S+.*%]&#039;) then								-- if ext wikilink with scheme and domain: [xxxx://yyyyy.zzz]&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;%f[%[]%[(%a%S*:%S+).*%]&#039;));&lt;br /&gt;
	elseif value:match (&#039;%f[%[]%[//%S+.*%]&#039;) then								-- if protocol relative ext wikilink: [//yyyyy.zzz]&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;%f[%[]%[(//%S+).*%]&#039;));&lt;br /&gt;
	elseif value:match (&#039;%a%S*:%S+&#039;) then										-- if bare url with scheme; may have leading or trailing plain text&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;(%a%S*:%S+)&#039;));&lt;br /&gt;
	elseif value:match (&#039;//%S+&#039;) then											-- if protocol relative bare url: //yyyyy.zzz; may have leading or trailing plain text&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;(//%S+)&#039;));					-- what is left should be the domain&lt;br /&gt;
	else&lt;br /&gt;
		return false;															-- didn&#039;t find anything that is obviously a url&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return is_url (scheme, domain);												-- return true if value appears to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; C H E C K _ F O R _ U R L &amp;gt;-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
loop through a list of parameters and their values.  Look at the value and if it has an external link, emit an error message.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function check_for_url (parameter_list)&lt;br /&gt;
local error_message = &#039;&#039;;&lt;br /&gt;
	for k, v in pairs (parameter_list) do										-- for each parameter in the list&lt;br /&gt;
		if is_parameter_ext_wikilink (v) then									-- look at the value; if there is a url add an error message&lt;br /&gt;
			if is_set(error_message) then										-- once we&#039;ve added the first portion of the error message ...&lt;br /&gt;
				error_message=error_message .. &amp;quot;, &amp;quot;;							-- ... add a comma space separator&lt;br /&gt;
			end&lt;br /&gt;
			error_message=error_message .. &amp;quot;&amp;amp;#124;&amp;quot; .. k .. &amp;quot;=&amp;quot;;				-- add the failed parameter&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (error_message) then												-- done looping, if there is an error message, display it&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;param_has_ext_link&#039;, {error_message}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S A F E _ F O R _ U R L &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Escape sequences for content that will be used for URL descriptions&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function safe_for_url( str )&lt;br /&gt;
	if str:match( &amp;quot;%[%[.-%]%]&amp;quot; ) ~= nil then &lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;wikilink_in_url&#039;, {}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return str:gsub( &#039;[%[%]\n]&#039;, {	&lt;br /&gt;
		[&#039;[&#039;] = &#039;&amp;amp;#91;&#039;,&lt;br /&gt;
		[&#039;]&#039;] = &#039;&amp;amp;#93;&#039;,&lt;br /&gt;
		[&#039;\n&#039;] = &#039; &#039; } );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T E R N A L _ L I N K &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format an external link with error checking&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function external_link( URL, label, source, access)&lt;br /&gt;
	local error_str = &amp;quot;&amp;quot;;&lt;br /&gt;
	local domain;&lt;br /&gt;
	local path;&lt;br /&gt;
	local base_url;&lt;br /&gt;
	&lt;br /&gt;
	if not is_set( label ) then&lt;br /&gt;
		label = URL;&lt;br /&gt;
		if is_set( source ) then&lt;br /&gt;
			error_str = set_error( &#039;bare_url_missing_title&#039;, { wrap_style (&#039;parameter&#039;, source) }, false, &amp;quot; &amp;quot; );&lt;br /&gt;
		else&lt;br /&gt;
			error( cfg.messages[&amp;quot;bare_url_no_origin&amp;quot;] );&lt;br /&gt;
		end			&lt;br /&gt;
	end&lt;br /&gt;
	if not check_url( URL ) then&lt;br /&gt;
		error_str = set_error( &#039;bad_url&#039;, {wrap_style (&#039;parameter&#039;, source)}, false, &amp;quot; &amp;quot; ) .. error_str;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	domain, path = URL:match (&#039;^([/%.%-%+:%a%d]+)([/%?#].*)$&#039;);					-- split the url into scheme plus domain and path&lt;br /&gt;
	if path then																-- if there is a path portion&lt;br /&gt;
		path = path:gsub (&#039;[%[%]]&#039;, {[&#039;[&#039;]=&#039;%5b&#039;,[&#039;]&#039;]=&#039;%5d&#039;});					-- replace &#039;[&#039; and &#039;]&#039; with their percent encoded values&lt;br /&gt;
		URL=domain..path;														-- and reassemble&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set (access) then														-- access level (subscription, registration, limited)&lt;br /&gt;
		label = safe_for_url (label);											-- replace square brackets and newlines&lt;br /&gt;
&lt;br /&gt;
		base_url = table.concat (												-- assemble external link with access signal&lt;br /&gt;
			{&lt;br /&gt;
			&#039;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[&#039;,										-- opening css and url markup&lt;br /&gt;
			URL,																-- the url&lt;br /&gt;
			&#039; &#039;,																-- the required space&lt;br /&gt;
			label,&lt;br /&gt;
			&#039;&amp;lt;span style=&amp;quot;padding-left:0.15em&amp;quot;&amp;gt;&#039;,								-- signal spacing css&lt;br /&gt;
			cfg.presentation[access],											-- the appropriate icon&lt;br /&gt;
			&#039;&amp;lt;/span&amp;gt;&#039;,															-- close signal spacing span&lt;br /&gt;
			&#039;]&amp;lt;/span&amp;gt;&#039;															-- close url markup and plain links span&lt;br /&gt;
			});&lt;br /&gt;
	else&lt;br /&gt;
		base_url = table.concat({ &amp;quot;[&amp;quot;, URL, &amp;quot; &amp;quot;, safe_for_url( label ), &amp;quot;]&amp;quot; });	-- no signal markup&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return table.concat({ base_url, error_str });&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D E P R E C A T E D _ P A R A M E T E R &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Categorize and emit an error message when the citation contains one or more deprecated parameters.  The function includes the&lt;br /&gt;
offending parameter name to the error message.  Only one error message is emitted regardless of the number of deprecated&lt;br /&gt;
parameters in the citation.&lt;br /&gt;
&lt;br /&gt;
added_deprecated_cat is a boolean declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function deprecated_parameter(name)&lt;br /&gt;
	if not added_deprecated_cat then&lt;br /&gt;
		added_deprecated_cat = true;											-- note that we&#039;ve added this category&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;deprecated_params&#039;, {name}, true ) } );		-- add error message&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; K E R N _ Q U O T E S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Apply kerning to open the space between the quote mark provided by the Module and a leading or trailing quote&lt;br /&gt;
mark contained in a |title= or |chapter= parameter&#039;s value.&lt;br /&gt;
&lt;br /&gt;
This function will positive kern either single or double quotes:&lt;br /&gt;
	&amp;quot;&#039;Unkerned title with leading and trailing single quote marks&#039;&amp;quot;&lt;br /&gt;
	&amp;quot; &#039;Kerned title with leading and trailing single quote marks&#039; &amp;quot; (in real life the kerning isn&#039;t as wide as this example)&lt;br /&gt;
Double single quotes (italic or bold wikimarkup) are not kerned.&lt;br /&gt;
&lt;br /&gt;
Replaces unicode quotemarks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter&lt;br /&gt;
quote marks regardless of the need for kerning.  Unicode quote marks are not replaced in simple [[D]] wikilinks.&lt;br /&gt;
&lt;br /&gt;
Call this function for chapter titles, for website titles, etc; not for book titles.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function kern_quotes (str)&lt;br /&gt;
	local cap=&#039;&#039;;&lt;br /&gt;
	local cap2=&#039;&#039;;&lt;br /&gt;
	local wl_type, label, link;&lt;br /&gt;
&lt;br /&gt;
	wl_type, label, link = is_wikilink (str);									-- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]&lt;br /&gt;
	&lt;br /&gt;
	if 1 == wl_type then														-- [[D]] simple wikilink with or without quote marks&lt;br /&gt;
		if mw.ustring.match (str, &#039;%[%[[\&amp;quot;“”\&#039;‘’].+[\&amp;quot;“”\&#039;‘’]%]%]&#039;) then		-- leading and trailing quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-both&#039;], str);&lt;br /&gt;
		elseif mw.ustring.match (str, &#039;%[%[[\&amp;quot;“”\&#039;‘’].+%]%]&#039;)	then			-- leading quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-left&#039;], str);&lt;br /&gt;
		elseif mw.ustring.match (str, &#039;%[%[.+[\&amp;quot;“”\&#039;‘’]%]%]&#039;) then				-- trailing quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-right&#039;], str);&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	else																		-- plain text or [[L|D]]; text in label variable&lt;br /&gt;
		label= mw.ustring.gsub (label, &#039;[“”]&#039;, &#039;\&amp;quot;&#039;);							-- replace “” (U+201C &amp;amp; U+201D) with &amp;quot; (typewriter double quote mark)&lt;br /&gt;
		label= mw.ustring.gsub (label, &#039;[‘’]&#039;, &#039;\&#039;&#039;);							-- replace ‘’ (U+2018 &amp;amp; U+2019) with &#039; (typewriter single quote mark)&lt;br /&gt;
&lt;br /&gt;
		cap, cap2 = mw.ustring.match (label, &amp;quot;^([\&amp;quot;\&#039;])([^\&#039;].+)&amp;quot;);				-- match leading double or single quote but not doubled single quotes (italic markup)&lt;br /&gt;
		if is_set (cap) then&lt;br /&gt;
			label = substitute (cfg.presentation[&#039;kern-left&#039;], {cap, cap2});&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		cap, cap2 = mw.ustring.match (label, &amp;quot;^(.+[^\&#039;])([\&amp;quot;\&#039;])$&amp;quot;)				-- match trailing double or single quote but not doubled single quotes (italic markup)&lt;br /&gt;
		if is_set (cap) then&lt;br /&gt;
			label = substitute (cfg.presentation[&#039;kern-right&#039;], {cap, cap2});&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if 2 == wl_type then&lt;br /&gt;
			str = make_wikilink (link, label);									-- reassemble the wikilink&lt;br /&gt;
		else&lt;br /&gt;
			str = label;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R M A T _ S C R I P T _ V A L U E &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
|script-title= holds title parameters that are not written in Latin based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should&lt;br /&gt;
not be italicized and may be written right-to-left.  The value supplied by |script-title= is concatenated onto Title after Title has been wrapped&lt;br /&gt;
in italic markup.&lt;br /&gt;
&lt;br /&gt;
Regardless of language, all values provided by |script-title= are wrapped in &amp;lt;bdi&amp;gt;...&amp;lt;/bdi&amp;gt; tags to isolate rtl languages from the English left to right.&lt;br /&gt;
&lt;br /&gt;
|script-title= provides a unique feature.  The value in |script-title= may be prefixed with a two-character ISO639-1 language code and a colon:&lt;br /&gt;
	|script-title=ja:*** *** (where * represents a Japanese character)&lt;br /&gt;
Spaces between the two-character code and the colon and the colon and the first script character are allowed:&lt;br /&gt;
	|script-title=ja : *** ***&lt;br /&gt;
	|script-title=ja: *** ***&lt;br /&gt;
	|script-title=ja :*** ***&lt;br /&gt;
Spaces preceding the prefix are allowed: |script-title = ja:*** ***&lt;br /&gt;
&lt;br /&gt;
The prefix is checked for validity.  If it is a valid ISO639-1 language code, the lang attribute (lang=&amp;quot;ja&amp;quot;) is added to the &amp;lt;bdi&amp;gt; tag so that browsers can&lt;br /&gt;
know the language the tag contains.  This may help the browser render the script more correctly.  If the prefix is invalid, the lang attribute&lt;br /&gt;
is not added.  At this time there is no error message for this condition.&lt;br /&gt;
&lt;br /&gt;
Supports |script-title= and |script-chapter=&lt;br /&gt;
&lt;br /&gt;
TODO: error messages when prefix is invalid ISO639-1 code; when script_value has prefix but no script;&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_script_value (script_value)&lt;br /&gt;
	local lang=&#039;&#039;;																-- initialize to empty string&lt;br /&gt;
	local name;&lt;br /&gt;
	if script_value:match(&#039;^%l%l%s*:&#039;) then										-- if first 3 non-space characters are script language prefix&lt;br /&gt;
		lang = script_value:match(&#039;^(%l%l)%s*:%s*%S.*&#039;);						-- get the language prefix or nil if there is no script&lt;br /&gt;
		if not is_set (lang) then&lt;br /&gt;
			return &#039;&#039;;															-- script_value was just the prefix so return empty string&lt;br /&gt;
		end&lt;br /&gt;
																				-- if we get this far we have prefix and script&lt;br /&gt;
		name = mw.language.fetchLanguageName( lang, &amp;quot;ro&amp;quot; );						-- get language name so that we can use it to categorize&lt;br /&gt;
		if is_set (name) then													-- is prefix a proper ISO 639-1 language code?&lt;br /&gt;
			script_value = script_value:gsub (&#039;^%l%l%s*:%s*&#039;, &#039;&#039;);				-- strip prefix from script&lt;br /&gt;
																				-- is prefix one of these language codes?&lt;br /&gt;
			if in_array (lang, cfg.script_lang_codes) then&lt;br /&gt;
				add_prop_cat (&#039;script_with_name&#039;, {name, lang})&lt;br /&gt;
			else&lt;br /&gt;
				add_prop_cat (&#039;script&#039;)&lt;br /&gt;
			end&lt;br /&gt;
			lang = &#039; lang=&amp;quot;&#039; .. lang .. &#039;&amp;quot; &#039;;									-- convert prefix into a lang attribute&lt;br /&gt;
		else&lt;br /&gt;
			lang = &#039;&#039;;															-- invalid so set lang to empty string&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	script_value = substitute (cfg.presentation[&#039;bdi&#039;], {lang, script_value});	-- isolate in case script is rtl&lt;br /&gt;
&lt;br /&gt;
	return script_value;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S C R I P T _ C O N C A T E N A T E &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script value has been &lt;br /&gt;
wrapped in &amp;lt;bdi&amp;gt; tags.&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function script_concatenate (title, script)&lt;br /&gt;
	if is_set (script) then&lt;br /&gt;
		script = format_script_value (script);									-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; returns empty string on error&lt;br /&gt;
		if is_set (script) then&lt;br /&gt;
			title = title .. &#039; &#039; .. script;										-- concatenate title and script title&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return title;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; W R A P _ M S G &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list&lt;br /&gt;
configuration taking one argument.  Supports lower case text for {{citation}} templates.  Additional text taken&lt;br /&gt;
from citation_config.messages - the reason this function is similar to but separate from wrap_style().&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function wrap_msg (key, str, lower)&lt;br /&gt;
	if not is_set( str ) then&lt;br /&gt;
		return &amp;quot;&amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
	if true == lower then&lt;br /&gt;
		local msg;&lt;br /&gt;
		msg = cfg.messages[key]:lower();										-- set the message to lower case before &lt;br /&gt;
		return substitute( msg, str );										-- including template text&lt;br /&gt;
	else&lt;br /&gt;
		return substitute( cfg.messages[key], str );&lt;br /&gt;
	end		&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R M A T _ C H A P T E R _ T I T L E &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=, and |chapter-url= into a single Chapter meta-&lt;br /&gt;
parameter (chapter_url_source used for error messages).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_chapter_title (scriptchapter, chapter, transchapter, chapterurl, chapter_url_source, no_quotes, access)&lt;br /&gt;
	local chapter_error = &#039;&#039;;&lt;br /&gt;
	&lt;br /&gt;
	if not is_set (chapter) then&lt;br /&gt;
		chapter = &#039;&#039;;															-- to be safe for concatenation&lt;br /&gt;
	else&lt;br /&gt;
		if false == no_quotes then&lt;br /&gt;
			chapter = kern_quotes (chapter);									-- if necessary, separate chapter title&#039;s leading and trailing quote marks from Module provided quote marks&lt;br /&gt;
			chapter = wrap_style (&#039;quoted-title&#039;, chapter);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	chapter = script_concatenate (chapter, scriptchapter)						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
&lt;br /&gt;
	if is_set (transchapter) then&lt;br /&gt;
		transchapter = wrap_style (&#039;trans-quoted-title&#039;, transchapter);&lt;br /&gt;
		if is_set (chapter) then&lt;br /&gt;
			chapter = chapter ..  &#039; &#039; .. transchapter;&lt;br /&gt;
		else																	-- here when transchapter without chapter or script-chapter&lt;br /&gt;
			chapter = transchapter;												-- &lt;br /&gt;
			chapter_error = &#039; &#039; .. set_error (&#039;trans_missing_title&#039;, {&#039;chapter&#039;});&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (chapterurl) then&lt;br /&gt;
		chapter = external_link (chapterurl, chapter, chapter_url_source, access);		-- adds bare_url_missing_title error if appropriate&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return chapter .. chapter_error;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H A S _ I N V I S I B L E _ C H A R S &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function searches a parameter&#039;s value for nonprintable or invisible characters.  The search stops at the&lt;br /&gt;
first match.&lt;br /&gt;
&lt;br /&gt;
This function will detect the visible replacement character when it is part of the wikisource.&lt;br /&gt;
&lt;br /&gt;
Detects but ignores nowiki and math stripmarkers.  Also detects other named stripmarkers (gallery, math, pre, ref)&lt;br /&gt;
and identifies them with a slightly different error message.  See also coins_cleanup().&lt;br /&gt;
&lt;br /&gt;
Detects but ignores the character pattern that results from the transclusion of {{&#039;}} templates.&lt;br /&gt;
&lt;br /&gt;
Output of this function is an error message that identifies the character or the Unicode group, or the stripmarker&lt;br /&gt;
that was detected along with its position (or, for multi-byte characters, the position of its first byte) in the&lt;br /&gt;
parameter value.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function has_invisible_chars (param, v)&lt;br /&gt;
	local position = &#039;&#039;;														-- position of invisible char or starting position of stripmarker&lt;br /&gt;
	local dummy;																-- end of matching string; not used but required to hold end position when a capture is returned&lt;br /&gt;
	local capture;																-- used by stripmarker detection to hold name of the stripmarker&lt;br /&gt;
	local i=1;&lt;br /&gt;
	local stripmarker, apostrophe;&lt;br /&gt;
	&lt;br /&gt;
	capture = string.match (v, &#039;[%w%p ]*&#039;);										-- Test for values that are simple ASCII text and bypass other tests if true&lt;br /&gt;
	if capture == v then														-- if same there are no unicode characters&lt;br /&gt;
		return;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	while cfg.invisible_chars[i] do&lt;br /&gt;
		local char=cfg.invisible_chars[i][1]									-- the character or group name&lt;br /&gt;
		local pattern=cfg.invisible_chars[i][2]									-- the pattern used to find it&lt;br /&gt;
		position, dummy, capture = mw.ustring.find (v, pattern)					-- see if the parameter value contains characters that match the pattern&lt;br /&gt;
		&lt;br /&gt;
		if position and (char == &#039;zero width joiner&#039;) then						-- if we found a zero width joiner character&lt;br /&gt;
			if mw.ustring.find (v, cfg.indic_script) then						-- its ok if one of the indic scripts&lt;br /&gt;
				position = nil;													-- unset position&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if position then&lt;br /&gt;
			if &#039;nowiki&#039; == capture or &#039;math&#039; == capture then 					-- nowiki, math stripmarker (not an error condition)&lt;br /&gt;
				stripmarker = true;												-- set a flag&lt;br /&gt;
			elseif true == stripmarker and &#039;delete&#039; == char then				-- because stripmakers begin and end with the delete char, assume that we&#039;ve found one end of a stripmarker&lt;br /&gt;
				position = nil;													-- unset&lt;br /&gt;
			else&lt;br /&gt;
				local err_msg;&lt;br /&gt;
				if capture then&lt;br /&gt;
					err_msg = capture .. &#039; &#039; .. char;&lt;br /&gt;
				else&lt;br /&gt;
					err_msg = char .. &#039; &#039; .. &#039;character&#039;;&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;invisible_char&#039;, {err_msg, wrap_style (&#039;parameter&#039;, param), position}, true ) } );	-- add error message&lt;br /&gt;
				return;															-- and done with this parameter&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		i=i+1;																	-- bump our index&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A R G U M E N T _ W R A P P E R &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Argument wrapper.  This function provides support for argument mapping defined in the configuration file so that&lt;br /&gt;
multiple names can be transparently aliased to single internal variable.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function argument_wrapper( args )&lt;br /&gt;
	local origin = {};&lt;br /&gt;
	&lt;br /&gt;
	return setmetatable({&lt;br /&gt;
		ORIGIN = function( self, k )&lt;br /&gt;
			local dummy = self[k]; --force the variable to be loaded.&lt;br /&gt;
			return origin[k];&lt;br /&gt;
		end&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		__index = function ( tbl, k )&lt;br /&gt;
			if origin[k] ~= nil then&lt;br /&gt;
				return nil;&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local args, list, v = args, cfg.aliases[k];&lt;br /&gt;
			&lt;br /&gt;
			if type( list ) == &#039;table&#039; then&lt;br /&gt;
				v, origin[k] = select_one( args, list, &#039;redundant_parameters&#039; );&lt;br /&gt;
				if origin[k] == nil then&lt;br /&gt;
					origin[k] = &#039;&#039;; -- Empty string, not nil&lt;br /&gt;
				end&lt;br /&gt;
			elseif list ~= nil then&lt;br /&gt;
				v, origin[k] = args[list], list;&lt;br /&gt;
			else&lt;br /&gt;
				-- maybe let through instead of raising an error?&lt;br /&gt;
				-- v, origin[k] = args[k], k;&lt;br /&gt;
				error( cfg.messages[&#039;unknown_argument_map&#039;] );&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			-- Empty strings, not nil;&lt;br /&gt;
			if v == nil then&lt;br /&gt;
				v = cfg.defaults[k] or &#039;&#039;;&lt;br /&gt;
				origin[k] = &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			tbl = rawset( tbl, k, v );&lt;br /&gt;
			return v;&lt;br /&gt;
		end,&lt;br /&gt;
	});&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; V A L I D A T E &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Looks for a parameter&#039;s name in one of several whitelists.&lt;br /&gt;
&lt;br /&gt;
Parameters in the whitelist can have three values:&lt;br /&gt;
	true - active, supported parameters&lt;br /&gt;
	false - deprecated, supported parameters&lt;br /&gt;
	nil - unsupported parameters&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function validate( name, cite_class )&lt;br /&gt;
	local name = tostring( name );&lt;br /&gt;
	local state;&lt;br /&gt;
	&lt;br /&gt;
	if in_array (cite_class, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then			-- limited parameter sets allowed for these templates&lt;br /&gt;
		state = whitelist.basic_arguments[ name ];								-- TODO: temporary workaround, we need to support limited_basic_arguments at some point&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if &#039;arxiv&#039; == cite_class then											-- basic parameters unique to these templates&lt;br /&gt;
			state = whitelist.arxiv_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
		if &#039;biorxiv&#039; == cite_class then&lt;br /&gt;
			state = whitelist.biorxiv_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
		if &#039;citeseerx&#039; == cite_class then&lt;br /&gt;
			state = whitelist.citeseerx_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
																				-- limited enumerated parameters list&lt;br /&gt;
		name = name:gsub( &amp;quot;%d+&amp;quot;, &amp;quot;#&amp;quot; );											-- replace digit(s) with # (last25 becomes last#)&lt;br /&gt;
		state = whitelist.numbered_arguments[ name ];							-- TODO: temporary workaround, we need to support limited_numbered_arguments at some point&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		return false;															-- not supported because not found or name is set to nil&lt;br /&gt;
	end																			-- end limited parameter-set templates&lt;br /&gt;
		&lt;br /&gt;
	state = whitelist.basic_arguments[ name ];									-- all other templates; all normal parameters allowed&lt;br /&gt;
											&lt;br /&gt;
	if true == state then return true; end										-- valid actively supported parameter&lt;br /&gt;
	if false == state then&lt;br /&gt;
		deprecated_parameter (name);											-- parameter is deprecated but still supported&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
																				-- all enumerated parameters allowed&lt;br /&gt;
	name = name:gsub( &amp;quot;%d+&amp;quot;, &amp;quot;#&amp;quot; );												-- replace digit(s) with # (last25 becomes last#&lt;br /&gt;
	state = whitelist.numbered_arguments[ name ];&lt;br /&gt;
&lt;br /&gt;
	if true == state then return true; end										-- valid actively supported parameter&lt;br /&gt;
	if false == state then&lt;br /&gt;
		deprecated_parameter (name);											-- parameter is deprecated but still supported&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return false;																-- not supported because not found or name is set to nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N O W R A P _ D A T E &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
When date is YYYY-MM-DD format wrap in nowrap span: &amp;lt;span ...&amp;gt;YYYY-MM-DD&amp;lt;/span&amp;gt;.  When date is DD MMMM YYYY or is&lt;br /&gt;
MMMM DD, YYYY then wrap in nowrap span: &amp;lt;span ...&amp;gt;DD MMMM&amp;lt;/span&amp;gt; YYYY or &amp;lt;span ...&amp;gt;MMMM DD,&amp;lt;/span&amp;gt; YYYY&lt;br /&gt;
&lt;br /&gt;
DOES NOT yet support MMMM YYYY or any of the date ranges.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function nowrap_date (date)&lt;br /&gt;
	local cap=&#039;&#039;;&lt;br /&gt;
	local cap2=&#039;&#039;;&lt;br /&gt;
&lt;br /&gt;
	if date:match(&amp;quot;^%d%d%d%d%-%d%d%-%d%d$&amp;quot;) then&lt;br /&gt;
		date = substitute (cfg.presentation[&#039;nowrap1&#039;], date);&lt;br /&gt;
	&lt;br /&gt;
	elseif date:match(&amp;quot;^%a+%s*%d%d?,%s+%d%d%d%d$&amp;quot;) or date:match (&amp;quot;^%d%d?%s*%a+%s+%d%d%d%d$&amp;quot;) then&lt;br /&gt;
		cap, cap2 = string.match (date, &amp;quot;^(.*)%s+(%d%d%d%d)$&amp;quot;);&lt;br /&gt;
		date = substitute (cfg.presentation[&#039;nowrap2&#039;], {cap, cap2});&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return date;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ T I T L E T Y P E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function sets default title types (equivalent to the citation including |type=&amp;lt;default value&amp;gt;) for those templates that have defaults.&lt;br /&gt;
Also handles the special case where it is desirable to omit the title type from the rendered citation (|type=none).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_titletype (cite_class, title_type)&lt;br /&gt;
	if is_set(title_type) then&lt;br /&gt;
		if &amp;quot;none&amp;quot; == title_type then&lt;br /&gt;
			title_type = &amp;quot;&amp;quot;;													-- if |type=none then type parameter not displayed&lt;br /&gt;
		end&lt;br /&gt;
		return title_type;														-- if |type= has been set to any other value use that value&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return cfg.title_types [cite_class] or &#039;&#039;;									-- set template&#039;s default title type; else empty string for concatenation&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H Y P H E N _ T O _ D A S H &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Converts a hyphen to a dash&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function hyphen_to_dash( str )&lt;br /&gt;
	if not is_set(str) or str:match( &amp;quot;[%[%]{}&amp;lt;&amp;gt;]&amp;quot; ) ~= nil then&lt;br /&gt;
		return str;&lt;br /&gt;
	end	&lt;br /&gt;
	return str:gsub( &#039;-&#039;, &#039;–&#039; );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S A F E _ J O I N &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Joins a sequence of strings together while checking for duplicate separation characters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function safe_join( tbl, duplicate_char )&lt;br /&gt;
	--[[&lt;br /&gt;
	Note: we use string functions here, rather than ustring functions.&lt;br /&gt;
	&lt;br /&gt;
	This has considerably faster performance and should work correctly as &lt;br /&gt;
	long as the duplicate_char is strict ASCII.  The strings&lt;br /&gt;
	in tbl may be ASCII or UTF8.&lt;br /&gt;
	]]&lt;br /&gt;
	&lt;br /&gt;
	local str = &#039;&#039;;																-- the output string&lt;br /&gt;
	local comp = &#039;&#039;;															-- what does &#039;comp&#039; mean?&lt;br /&gt;
	local end_chr = &#039;&#039;;&lt;br /&gt;
	local trim;&lt;br /&gt;
	for _, value in ipairs( tbl ) do&lt;br /&gt;
		if value == nil then value = &#039;&#039;; end&lt;br /&gt;
		&lt;br /&gt;
		if str == &#039;&#039; then														-- if output string is empty&lt;br /&gt;
			str = value;														-- assign value to it (first time through the loop)&lt;br /&gt;
		elseif value ~= &#039;&#039; then&lt;br /&gt;
			if value:sub(1,1) == &#039;&amp;lt;&#039; then										-- Special case of values enclosed in spans and other markup.&lt;br /&gt;
				comp = value:gsub( &amp;quot;%b&amp;lt;&amp;gt;&amp;quot;, &amp;quot;&amp;quot; );								-- remove html markup (&amp;lt;span&amp;gt;string&amp;lt;/span&amp;gt; -&amp;gt; string)&lt;br /&gt;
			else&lt;br /&gt;
				comp = value;&lt;br /&gt;
			end&lt;br /&gt;
																				-- typically duplicate_char is sepc&lt;br /&gt;
			if comp:sub(1,1) == duplicate_char then								-- is first charactier same as duplicate_char? why test first character?&lt;br /&gt;
																				--   Because individual string segments often (always?) begin with terminal punct for th&lt;br /&gt;
																				--   preceding segment: &#039;First element&#039; .. &#039;sepc next element&#039; .. etc?&lt;br /&gt;
				trim = false;&lt;br /&gt;
				end_chr = str:sub(-1,-1);										-- get the last character of the output string&lt;br /&gt;
				-- str = str .. &amp;quot;&amp;lt;HERE(enchr=&amp;quot; .. end_chr.. &amp;quot;)&amp;quot;					-- debug stuff?&lt;br /&gt;
				if end_chr == duplicate_char then								-- if same as separator&lt;br /&gt;
					str = str:sub(1,-2);										-- remove it&lt;br /&gt;
				elseif end_chr == &amp;quot;&#039;&amp;quot; then										-- if it might be wikimarkup&lt;br /&gt;
					if str:sub(-3,-1) == duplicate_char .. &amp;quot;&#039;&#039;&amp;quot; then			-- if last three chars of str are sepc&#039;&#039; &lt;br /&gt;
						str = str:sub(1, -4) .. &amp;quot;&#039;&#039;&amp;quot;;							-- remove them and add back &#039;&#039;&lt;br /&gt;
					elseif str:sub(-5,-1) == duplicate_char .. &amp;quot;]]&#039;&#039;&amp;quot; then		-- if last five chars of str are sepc]]&#039;&#039; &lt;br /&gt;
						trim = true;											-- why? why do this and next differently from previous?&lt;br /&gt;
					elseif str:sub(-4,-1) == duplicate_char .. &amp;quot;]&#039;&#039;&amp;quot; then		-- if last four chars of str are sepc]&#039;&#039; &lt;br /&gt;
						trim = true;											-- same question&lt;br /&gt;
					end&lt;br /&gt;
				elseif end_chr == &amp;quot;]&amp;quot; then										-- if it might be wikimarkup&lt;br /&gt;
					if str:sub(-3,-1) == duplicate_char .. &amp;quot;]]&amp;quot; then			-- if last three chars of str are sepc]] wikilink &lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-3,-1) == duplicate_char .. &#039;&amp;quot;]&#039; then		-- if last three chars of str are sepc&amp;quot;] quoted external link &lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-2,-1) == duplicate_char .. &amp;quot;]&amp;quot; then			-- if last two chars of str are sepc] external link&lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-4,-1) == duplicate_char .. &amp;quot;&#039;&#039;]&amp;quot; then		-- normal case when |url=something &amp;amp; |title=Title.&lt;br /&gt;
						trim = true;&lt;br /&gt;
					end&lt;br /&gt;
				elseif end_chr == &amp;quot; &amp;quot; then										-- if last char of output string is a space&lt;br /&gt;
					if str:sub(-2,-1) == duplicate_char .. &amp;quot; &amp;quot; then				-- if last two chars of str are &amp;lt;sepc&amp;gt;&amp;lt;space&amp;gt;&lt;br /&gt;
						str = str:sub(1,-3);									-- remove them both&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				if trim then&lt;br /&gt;
					if value ~= comp then 										-- value does not equal comp when value contains html markup&lt;br /&gt;
						local dup2 = duplicate_char;&lt;br /&gt;
						if dup2:match( &amp;quot;%A&amp;quot; ) then dup2 = &amp;quot;%&amp;quot; .. dup2; end		-- if duplicate_char not a letter then escape it&lt;br /&gt;
						&lt;br /&gt;
						value = value:gsub( &amp;quot;(%b&amp;lt;&amp;gt;)&amp;quot; .. dup2, &amp;quot;%1&amp;quot;, 1 )			-- remove duplicate_char if it follows html markup&lt;br /&gt;
					else&lt;br /&gt;
						value = value:sub( 2, -1 );								-- remove duplicate_char when it is first character&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			str = str .. value;													--add it to the output string&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str;&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ S U F F I X &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true is suffix is properly formed Jr, Sr, or ordinal in the range 2–9.  Puncutation not allowed.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_suffix (suffix)&lt;br /&gt;
	if in_array (suffix, {&#039;Jr&#039;, &#039;Sr&#039;, &#039;2nd&#039;, &#039;3rd&#039;}) or suffix:match (&#039;^%dth$&#039;) then&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
	return false;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ G O O D _ V A N C _ N A M E &amp;gt;--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
For Vancouver Style, author/editor names are supposed to be rendered in Latin (read ASCII) characters.  When a name&lt;br /&gt;
uses characters that contain diacritical marks, those characters are to converted to the corresponding Latin character.&lt;br /&gt;
When a name is written using a non-Latin alphabet or logogram, that name is to be transliterated into Latin characters.&lt;br /&gt;
These things are not currently possible in this module so are left to the editor to do.&lt;br /&gt;
&lt;br /&gt;
This test allows |first= and |last= names to contain any of the letters defined in the four Unicode Latin character sets&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F&lt;br /&gt;
&lt;br /&gt;
|lastn= also allowed to contain hyphens, spaces, and apostrophes. (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)&lt;br /&gt;
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods&lt;br /&gt;
&lt;br /&gt;
This original test:&lt;br /&gt;
	if nil == mw.ustring.find (last, &amp;quot;^[A-Za-zÀ-ÖØ-öø-ƿǄ-ɏ%-%s%&#039;]*$&amp;quot;) or nil == mw.ustring.find (first, &amp;quot;^[A-Za-zÀ-ÖØ-öø-ƿǄ-ɏ%-%s%&#039;%.]+[2-6%a]*$&amp;quot;) then&lt;br /&gt;
was written ouside of the code editor and pasted here because the code editor gets confused between character insertion point and cursor position.&lt;br /&gt;
The test has been rewritten to use decimal character escape sequence for the individual bytes of the unicode characters so that it is not necessary&lt;br /&gt;
to use an external editor to maintain this code.&lt;br /&gt;
&lt;br /&gt;
	\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)&lt;br /&gt;
	\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)&lt;br /&gt;
	\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A &amp;amp; B)&lt;br /&gt;
	\199\132-\201\143 – Ǆ-ɏ (U+01C4-U+024F – Latin extended B)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_good_vanc_name (last, first)&lt;br /&gt;
	local first, suffix = first:match (&#039;(.-),?%s*([%dJS][%drndth]+)%.?$&#039;) or first;		-- if first has something that looks like a generational suffix, get it&lt;br /&gt;
&lt;br /&gt;
	if is_set (suffix) then&lt;br /&gt;
		if not is_suffix (suffix) then&lt;br /&gt;
			add_vanc_error (&#039;suffix&#039;);&lt;br /&gt;
			return false;														-- not a name with an appropriate suffix&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if nil == mw.ustring.find (last, &amp;quot;^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%&#039;]*$&amp;quot;) or&lt;br /&gt;
		nil == mw.ustring.find (first, &amp;quot;^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%&#039;%.]*$&amp;quot;) then&lt;br /&gt;
			add_vanc_error (&#039;non-Latin character&#039;);&lt;br /&gt;
			return false;														-- not a string of latin characters; Vancouver requires Romanization&lt;br /&gt;
	end;&lt;br /&gt;
	return true;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; R E D U C E _ T O _ I N I T I A L S &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Attempts to convert names to initials in support of |name-list-format=vanc.  &lt;br /&gt;
&lt;br /&gt;
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.&lt;br /&gt;
&lt;br /&gt;
Vancouver style requires family rank designations (Jr, II, III, etc) to be rendered as Jr, 2nd, 3rd, etc.  See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.&lt;br /&gt;
This code only accepts and understands generational suffix in the Vancouver format because Roman numerals look like, and can be mistaken for, initials.&lt;br /&gt;
&lt;br /&gt;
This function uses ustring functions because firstname initials may be any of the unicode Latin characters accepted by is_good_vanc_name ().&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function reduce_to_initials(first)&lt;br /&gt;
	local name, suffix = mw.ustring.match(first, &amp;quot;^(%u+) ([%dJS][%drndth]+)$&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
	if not name then															-- if not initials and a suffix&lt;br /&gt;
		name = mw.ustring.match(first, &amp;quot;^(%u+)$&amp;quot;);								-- is it just intials?&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if name then																-- if first is initials with or without suffix&lt;br /&gt;
		if 3 &amp;gt; mw.ustring.len (name) then										-- if one or two initials&lt;br /&gt;
			if suffix then														-- if there is a suffix&lt;br /&gt;
				if is_suffix (suffix) then										-- is it legitimate?&lt;br /&gt;
					return first;												-- one or two initials and a valid suffix so nothing to do&lt;br /&gt;
				else&lt;br /&gt;
					add_vanc_error (&#039;suffix&#039;);									-- one or two initials with invalid suffix so error message&lt;br /&gt;
					return first;												-- and return first unmolested&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				return first;													-- one or two initials without suffix; nothing to do&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end																			-- if here then name has 3 or more uppercase letters so treat them as a word&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	local initials, names = {}, {};												-- tables to hold name parts and initials&lt;br /&gt;
	local i = 1;																-- counter for number of initials&lt;br /&gt;
&lt;br /&gt;
	names = mw.text.split (first, &#039;[%s,]+&#039;);									-- split into a table of names and possible suffix&lt;br /&gt;
&lt;br /&gt;
	while names[i] do															-- loop through the table&lt;br /&gt;
		if 1 &amp;lt; i and names[i]:match (&#039;[%dJS][%drndth]+%.?$&#039;) then				-- if not the first name, and looks like a suffix (may have trailing dot)&lt;br /&gt;
			names[i] = names[i]:gsub (&#039;%.&#039;, &#039;&#039;);								-- remove terminal dot if present&lt;br /&gt;
			if is_suffix (names[i]) then										-- if a legitimate suffix&lt;br /&gt;
				table.insert (initials, &#039; &#039; .. names[i]);						-- add a separator space, insert at end of initials table&lt;br /&gt;
				break;															-- and done because suffix must fall at the end of a name&lt;br /&gt;
			end																	-- no error message if not a suffix; possibly because of Romanization&lt;br /&gt;
		end&lt;br /&gt;
		if 3 &amp;gt; i then&lt;br /&gt;
			table.insert (initials, mw.ustring.sub(names[i],1,1));				-- insert the intial at end of initials table&lt;br /&gt;
		end&lt;br /&gt;
		i = i+1;																-- bump the counter&lt;br /&gt;
	end&lt;br /&gt;
			&lt;br /&gt;
	return table.concat(initials)												-- Vancouver format does not include spaces.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I S T  _ P E O P L E &amp;gt;-------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a list of people (e.g. authors / editors) &lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function list_people(control, people, etal)&lt;br /&gt;
	local sep;&lt;br /&gt;
	local namesep;&lt;br /&gt;
	local format = control.format&lt;br /&gt;
	local maximum = control.maximum&lt;br /&gt;
	local lastauthoramp = control.lastauthoramp;&lt;br /&gt;
	local text = {}&lt;br /&gt;
&lt;br /&gt;
	if &#039;vanc&#039; == format then													-- Vancouver-like author/editor name styling?&lt;br /&gt;
		sep = &#039;,&#039;;																-- name-list separator between authors is a comma&lt;br /&gt;
		namesep = &#039; &#039;;															-- last/first separator is a space&lt;br /&gt;
	else&lt;br /&gt;
		sep = &#039;;&#039;																-- name-list separator between authors is a semicolon&lt;br /&gt;
		namesep = &#039;, &#039;															-- last/first separator is &amp;lt;comma&amp;gt;&amp;lt;space&amp;gt;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if sep:sub(-1,-1) ~= &amp;quot; &amp;quot; then sep = sep .. &amp;quot; &amp;quot; end&lt;br /&gt;
	if is_set (maximum) and maximum &amp;lt; 1 then return &amp;quot;&amp;quot;, 0; end					-- returned 0 is for EditorCount; not used for authors&lt;br /&gt;
	&lt;br /&gt;
	for i,person in ipairs(people) do&lt;br /&gt;
		if is_set(person.last) then&lt;br /&gt;
			local mask = person.mask&lt;br /&gt;
			local one&lt;br /&gt;
			local sep_one = sep;&lt;br /&gt;
			if is_set (maximum) and i &amp;gt; maximum then&lt;br /&gt;
				etal = true;&lt;br /&gt;
				break;&lt;br /&gt;
			elseif (mask ~= nil) then&lt;br /&gt;
				local n = tonumber(mask)&lt;br /&gt;
				if (n ~= nil) then&lt;br /&gt;
					one = string.rep(&amp;quot;&amp;amp;mdash;&amp;quot;,n)&lt;br /&gt;
				else&lt;br /&gt;
					one = mask;&lt;br /&gt;
					sep_one = &amp;quot; &amp;quot;;&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				one = person.last&lt;br /&gt;
				local first = person.first&lt;br /&gt;
				if is_set(first) then&lt;br /&gt;
					if ( &amp;quot;vanc&amp;quot; == format ) then								-- if vancouver format&lt;br /&gt;
						one = one:gsub (&#039;%.&#039;, &#039;&#039;);								-- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)&lt;br /&gt;
						if not person.corporate and is_good_vanc_name (one, first) then		-- and name is all Latin characters; corporate authors not tested&lt;br /&gt;
							first = reduce_to_initials(first)					-- attempt to convert first name(s) to initials&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					one = one .. namesep .. first;&lt;br /&gt;
				end&lt;br /&gt;
				if is_set(person.link) and person.link ~= control.page_name then&lt;br /&gt;
					one = make_wikilink (person.link, one);						-- link author/editor if this page is not the author&#039;s/editor&#039;s page&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			table.insert( text, one )&lt;br /&gt;
			table.insert( text, sep_one )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local count = #text / 2;													-- (number of names + number of separators) divided by 2&lt;br /&gt;
	if count &amp;gt; 0 then &lt;br /&gt;
		if count &amp;gt; 1 and is_set(lastauthoramp) and not etal then&lt;br /&gt;
			text[#text-2] = &amp;quot; &amp;amp; &amp;quot;;												-- replace last separator with ampersand text&lt;br /&gt;
		end&lt;br /&gt;
		text[#text] = nil;														-- erase the last separator&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local result = table.concat(text)											-- construct list&lt;br /&gt;
	if etal and is_set (result) then											-- etal may be set by |display-authors=etal but we might not have a last-first list&lt;br /&gt;
		result = result .. sep .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];					-- we&#039;ve go a last-first list and etal so add et al.&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return result, count&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A N C H O R _ I D &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Generates a CITEREF anchor ID if we have at least one name or a date.  Otherwise returns an empty string.&lt;br /&gt;
&lt;br /&gt;
namelist is one of the contributor-, author-, or editor-name lists chosen in that order.  year is Year or anchor_year.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
local function anchor_id (namelist, year)&lt;br /&gt;
	local names={};																-- a table for the one to four names and year&lt;br /&gt;
	for i,v in ipairs (namelist) do												-- loop through the list and take up to the first four last names&lt;br /&gt;
		names[i] = v.last &lt;br /&gt;
		if i == 4 then break end												-- if four then done&lt;br /&gt;
	end&lt;br /&gt;
	table.insert (names, year);													-- add the year at the end&lt;br /&gt;
	local id = table.concat(names);												-- concatenate names and year for CITEREF id&lt;br /&gt;
	if is_set (id) then															-- if concatenation is not an empty string&lt;br /&gt;
		return &amp;quot;CITEREF&amp;quot; .. id;													-- add the CITEREF portion&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;;																-- return an empty string; no reason to include CITEREF id in this citation&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ E T A L &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor name parameters for variations on the theme of et al.  If found,&lt;br /&gt;
the et al. is removed, a flag is set to true and the function returns the modified name and the flag.&lt;br /&gt;
&lt;br /&gt;
This function never sets the flag to false but returns it&#039;s previous state because it may have been set by&lt;br /&gt;
previous passes through this function or by the parameters |display-authors=etal or |display-editors=etal&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_etal (name, etal, nocat)&lt;br /&gt;
&lt;br /&gt;
	if is_set (name) then														-- name can be nil in which case just return&lt;br /&gt;
		local etal_pattern = &amp;quot;[;,]? *[\&amp;quot;&#039;]*%f[%a][Ee][Tt] *[Aa][Ll][%.\&amp;quot;&#039;]*$&amp;quot;	-- variations on the &#039;et al&#039; theme&lt;br /&gt;
		local others_pattern = &amp;quot;[;,]? *%f[%a]and [Oo]thers&amp;quot;;					-- and alternate to et al.&lt;br /&gt;
		&lt;br /&gt;
		if name:match (etal_pattern) then										-- variants on et al.&lt;br /&gt;
			name = name:gsub (etal_pattern, &#039;&#039;);								-- if found, remove&lt;br /&gt;
			etal = true;														-- set flag (may have been set previously here or by |display-authors=etal)&lt;br /&gt;
			if not nocat then													-- no categorization for |vauthors=&lt;br /&gt;
				add_maint_cat (&#039;etal&#039;);											-- and add a category if not already added&lt;br /&gt;
			end&lt;br /&gt;
		elseif name:match (others_pattern) then									-- if not &#039;et al.&#039;, then &#039;and others&#039;?&lt;br /&gt;
			name = name:gsub (others_pattern, &#039;&#039;);								-- if found, remove&lt;br /&gt;
			etal = true;														-- set flag (may have been set previously here or by |display-authors=etal)&lt;br /&gt;
			if not nocat then													-- no categorization for |vauthors=&lt;br /&gt;
				add_maint_cat (&#039;etal&#039;);											-- and add a category if not already added&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name, etal;															-- &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ E D _ M A R K U P &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor parameters for extranious editor annotations: ed, ed., eds, (Ed.), etc.&lt;br /&gt;
These annotation do not belong in author parameters and are redundant in editor parameters.  If found, the function&lt;br /&gt;
adds the editor markup maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_ed_markup (name, list_name)&lt;br /&gt;
	local _, pattern;&lt;br /&gt;
	local patterns = {															-- these patterns match annotations at end of name&lt;br /&gt;
		&#039;%f[%(%[][%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]?$&#039;,							-- (ed) or (eds): leading &#039;(&#039;, case insensitive &#039;ed&#039;, optional &#039;s&#039;, &#039;.&#039; and/or &#039;)&#039;&lt;br /&gt;
		&#039;[,%.%s]%f[e]eds?%.?$&#039;,													-- ed or eds: without &#039;(&#039;or &#039;)&#039;; case sensitive (ED could be initials Ed could be name)&lt;br /&gt;
		&#039;%f[%(%[][%(%[]%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?%s*[%)%]]?$&#039;,			-- (editor) or (editors): leading &#039;(&#039;, case insensitive, optional &#039;.&#039; and/or &#039;)&#039;&lt;br /&gt;
		&#039;[,%.%s]%f[Ee][Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?$&#039;,						-- editor or editors: without &#039;(&#039;or &#039;)&#039;; case insensitive&lt;br /&gt;
		&lt;br /&gt;
																				-- these patterns match annotations at beginning of name&lt;br /&gt;
		&#039;^eds?[%.,;]&#039;,															-- ed. or eds.: lower case only, optional &#039;s&#039;, requires &#039;.&#039;&lt;br /&gt;
		&#039;^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]&#039;,									-- (ed) or (eds): also sqare brackets, case insensitive, optional &#039;s&#039;, &#039;.&#039;&lt;br /&gt;
		&#039;^[%(%[]?%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%A&#039;,							-- (editor or (editors: also sq brackets, case insensitive, optional brackets, &#039;s&#039;&lt;br /&gt;
		&#039;^[%(%[]?%s*[Ee][Dd][Ii][Tt][Ee][Dd]%A&#039;,								-- (edited: also sq brackets, case insensitive, optional brackets&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	if is_set (name) then&lt;br /&gt;
		for _, pattern in ipairs (patterns) do									-- spin through patterns table and&lt;br /&gt;
			if name:match (pattern) then&lt;br /&gt;
				add_maint_cat (&#039;extra_text_names&#039;, cfg.special_case_translation [list_name]);	-- add a maint cat for this template&lt;br /&gt;
				break;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name;																-- and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ M U L T _ N A M E S &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor (surnames only) parameters for multiple names.  Multiple names are&lt;br /&gt;
indicated if there is more than one comma and or semicolon.  If found, the function adds the multiple name&lt;br /&gt;
(author or editor) maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_mult_names (name, list_name)&lt;br /&gt;
local count, _;&lt;br /&gt;
	if is_set (name) then&lt;br /&gt;
		_, count = name:gsub (&#039;[;,]&#039;, &#039;&#039;);										-- count the number of separator-like characters&lt;br /&gt;
		&lt;br /&gt;
		if 1 &amp;lt; count then														-- param could be |author= or |editor= so one separator character is acceptable&lt;br /&gt;
			add_maint_cat (&#039;mult_names&#039;, cfg.special_case_translation [list_name]);	-- more than one separator indicates multiple names so add a maint cat for this template&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name;																-- and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ C H E C K S &amp;gt;--------------------------------------------------------&lt;br /&gt;
This function calls various name checking functions used to validate the content of the various name-holding&lt;br /&gt;
parameters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_checks (last, first, list_name)&lt;br /&gt;
	if is_set (last) then&lt;br /&gt;
		if last:match (&#039;^%(%(.*%)%)$&#039;) then										-- if wrapped in doubled parentheses, accept as written &lt;br /&gt;
			last = last:match (&#039;^%(%((.*)%)%)$&#039;);								-- strip parens&lt;br /&gt;
		else&lt;br /&gt;
			last = name_has_mult_names (last, list_name);						-- check for multiple names in the parameter (last only)&lt;br /&gt;
			last = name_has_ed_markup (last, list_name);						-- check for extraneous &#039;editor&#039; annotation&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (first) then&lt;br /&gt;
		if first:match (&#039;^%(%(.*%)%)$&#039;) then									-- if wrapped in doubled parentheses, accept as written &lt;br /&gt;
			first = first:match (&#039;^%(%((.*)%)%)$&#039;);								-- strip parens&lt;br /&gt;
		else&lt;br /&gt;
			first = name_has_ed_markup (first, list_name);						-- check for extraneous &#039;editor&#039; annotation&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return last, first;															-- done&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A C T _ N A M E S &amp;gt;----------------------------------------------------&lt;br /&gt;
Gets name list from the input arguments&lt;br /&gt;
&lt;br /&gt;
Searches through args in sequential order to find |lastn= and |firstn= parameters (or their aliases), and their matching link and mask parameters.&lt;br /&gt;
Stops searching when both |lastn= and |firstn= are not found in args after two sequential attempts: found |last1=, |last2=, and |last3= but doesn&#039;t&lt;br /&gt;
find |last4= and |last5= then the search is done.&lt;br /&gt;
&lt;br /&gt;
This function emits an error message when there is a |firstn= without a matching |lastn=.  When there are &#039;holes&#039; in the list of last names, |last1= and |last3=&lt;br /&gt;
are present but |last2= is missing, an error message is emitted. |lastn= is not required to have a matching |firstn=.&lt;br /&gt;
&lt;br /&gt;
When an author or editor parameter contains some form of &#039;et al.&#039;, the &#039;et al.&#039; is stripped from the parameter and a flag (etal) returned&lt;br /&gt;
that will cause list_people() to add the static &#039;et al.&#039; text from Module:Citation/CS1/Configuration.  This keeps &#039;et al.&#039; out of the &lt;br /&gt;
template&#039;s metadata.  When this occurs, the page is added to a maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extract_names(args, list_name)&lt;br /&gt;
	local names = {};			-- table of names&lt;br /&gt;
	local last;					-- individual name components&lt;br /&gt;
	local first;&lt;br /&gt;
	local link;&lt;br /&gt;
	local mask;&lt;br /&gt;
	local i = 1;				-- loop counter/indexer&lt;br /&gt;
	local n = 1;				-- output table indexer&lt;br /&gt;
	local count = 0;			-- used to count the number of times we haven&#039;t found a |last= (or alias for authors, |editor-last or alias for editors)&lt;br /&gt;
	local etal=false;			-- return value set to true when we find some form of et al. in an author parameter&lt;br /&gt;
&lt;br /&gt;
	local err_msg_list_name = list_name:match (&amp;quot;(%w+)List&amp;quot;) .. &#039;s list&#039;;		-- modify AuthorList or EditorList for use in error messages if necessary&lt;br /&gt;
	while true do&lt;br /&gt;
		last = select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;redundant_parameters&#039;, i );		-- search through args for name components beginning at 1&lt;br /&gt;
		first = select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		link = select_one( args, cfg.aliases[list_name .. &#039;-Link&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		mask = select_one( args, cfg.aliases[list_name .. &#039;-Mask&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
&lt;br /&gt;
		last, etal = name_has_etal (last, etal, false);							-- find and remove variations on et al.&lt;br /&gt;
		first, etal = name_has_etal (first, etal, false);						-- find and remove variations on et al.&lt;br /&gt;
		last, first= name_checks (last, first, list_name);						-- multiple names, extraneous annotation, etc checks&lt;br /&gt;
		&lt;br /&gt;
		if first and not last then												-- if there is a firstn without a matching lastn&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;first_missing_last&#039;, {err_msg_list_name, i}, true ) } );	-- add this error message&lt;br /&gt;
		elseif not first and not last then										-- if both firstn and lastn aren&#039;t found, are we done?&lt;br /&gt;
			count = count + 1;													-- number of times we haven&#039;t found last and first&lt;br /&gt;
			if 2 &amp;lt;= count then													-- two missing names and we give up&lt;br /&gt;
				break;															-- normal exit or there is a two-name hole in the list; can&#039;t tell which&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- we have last with or without a first&lt;br /&gt;
			link_title_ok (link, list_name:match (&amp;quot;(%w+)List&amp;quot;):lower() .. &#039;-link&#039; .. i, last, list_name:match (&amp;quot;(%w+)List&amp;quot;):lower() .. &#039;-last&#039; .. i);	-- check for improper wikimarkup&lt;br /&gt;
&lt;br /&gt;
			names[n] = {last = last, first = first, link = link, mask = mask, corporate=false};	-- add this name to our names list (corporate for |vauthors= only)&lt;br /&gt;
			n = n + 1;															-- point to next location in the names table&lt;br /&gt;
			if 1 == count then													-- if the previous name was missing&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;missing_name&#039;, {err_msg_list_name, i-1}, true ) } );		-- add this error message&lt;br /&gt;
			end&lt;br /&gt;
			count = 0;															-- reset the counter, we&#039;re looking for two consecutive missing names&lt;br /&gt;
		end&lt;br /&gt;
		i = i + 1;																-- point to next args location&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return names, etal;															-- all done, return our list of names&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ I S O 6 3 9 _ C O D E &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validates language names provided in |language= parameter if not an ISO639-1 or 639-2 code.&lt;br /&gt;
&lt;br /&gt;
Returns the language name and associated two- or three-character code.  Because case of the source may be incorrect&lt;br /&gt;
or different from the case that WikiMedia uses, the name comparisons are done in lower case and when a match is&lt;br /&gt;
found, the Wikimedia version (assumed to be correct) is returned along with the code.  When there is no match, we&lt;br /&gt;
return the original language name string.&lt;br /&gt;
&lt;br /&gt;
mw.language.fetchLanguageNames(&amp;lt;local wiki language&amp;gt;, &#039;all&#039;) return a list of languages that in some cases may include&lt;br /&gt;
extensions. For example, code &#039;cbk-zam&#039; and its associated name &#039;Chavacano de Zamboanga&#039; (MediaWiki does not support&lt;br /&gt;
code &#039;cbk&#039; or name &#039;Chavacano&#039;.&lt;br /&gt;
&lt;br /&gt;
Names but that are included in the list will be found if that name is provided in the |language= parameter.  For example,&lt;br /&gt;
if |language=Chavacano de Zamboanga, that name will be found with the associated code &#039;cbk-zam&#039;.  When names are found&lt;br /&gt;
and the associated code is not two or three characters, this function returns only the Wikimedia language name.&lt;br /&gt;
&lt;br /&gt;
Adapted from code taken from Module:Check ISO 639-1.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_iso639_code (lang, this_wiki_code)&lt;br /&gt;
	if &#039;bangla&#039; == lang:lower() then											-- special case related to Wikimedia remap of code &#039;bn&#039; at mw:Extension:CLDR&lt;br /&gt;
		return &#039;Bengali&#039;, &#039;bn&#039;;													-- make sure rendered version is properly capitalized&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local languages = mw.language.fetchLanguageNames(this_wiki_code, &#039;all&#039;)		-- get a list of language names known to Wikimedia&lt;br /&gt;
																				-- (&#039;all&#039; is required for North Ndebele, South Ndebele, and Ojibwa)&lt;br /&gt;
	local langlc = mw.ustring.lower(lang);										-- lower case version for comparisons&lt;br /&gt;
	&lt;br /&gt;
	for code, name in pairs(languages) do										-- scan the list to see if we can find our language&lt;br /&gt;
		if langlc == mw.ustring.lower(name) then&lt;br /&gt;
			if 2 ~= code:len() and 3 ~= code:len() then							-- two- or three-character codes only; extensions not supported&lt;br /&gt;
				return name;													-- so return the name but not the code&lt;br /&gt;
			end&lt;br /&gt;
			return name, code;													-- found it, return name to ensure proper capitalization and the the code&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return lang;																-- not valid language; return language in original case and nil for the code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L A N G U A G E _ P A R A M E T E R &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Gets language name from a provided two- or three-character ISO 639 code.  If a code is recognized by MediaWiki,&lt;br /&gt;
use the returned name; if not, then use the value that was provided with the language parameter.&lt;br /&gt;
&lt;br /&gt;
When |language= contains a recognized language (either code or name), the page is assigned to the category for&lt;br /&gt;
that code: Category:Norwegian-language sources (no).  For valid three-character code languages, the page is assigned&lt;br /&gt;
to the single category for &#039;639-2&#039; codes: Category:CS1 ISO 639-2 language sources.&lt;br /&gt;
&lt;br /&gt;
Languages that are the same as the local wiki are not categorized.  MediaWiki does not recognize three-character&lt;br /&gt;
equivalents of two-character codes: code &#039;ar&#039; is recognized bit code &#039;ara&#039; is not.&lt;br /&gt;
&lt;br /&gt;
This function supports multiple languages in the form |language=nb, French, th where the language names or codes are&lt;br /&gt;
separated from each other by commas.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function language_parameter (lang)&lt;br /&gt;
	local code;																	-- the two- or three-character language code&lt;br /&gt;
	local name;																	-- the language name&lt;br /&gt;
	local language_list = {};													-- table of language names to be rendered&lt;br /&gt;
	local names_table = {};														-- table made from the value assigned to |language=&lt;br /&gt;
&lt;br /&gt;
	local this_wiki = mw.getContentLanguage();									-- get a language object for this wiki&lt;br /&gt;
	local this_wiki_code = this_wiki:getCode()									-- get this wiki&#039;s language code&lt;br /&gt;
	local this_wiki_name = mw.language.fetchLanguageName(this_wiki_code, this_wiki_code);	-- get this wiki&#039;s language name&lt;br /&gt;
&lt;br /&gt;
	names_table = mw.text.split (lang, &#039;%s*,%s*&#039;);								-- names should be a comma separated list&lt;br /&gt;
&lt;br /&gt;
	for _, lang in ipairs (names_table) do										-- reuse lang&lt;br /&gt;
&lt;br /&gt;
		if lang:match (&#039;^%a%a%-&#039;) then											-- strip ietf language tags from code; TODO: is there a need to support 3-char with tag?&lt;br /&gt;
			lang = lang:match (&#039;(%a%a)%-&#039;)										-- keep only 639-1 code portion to lang; TODO: do something with 3166 alpha 2 country code?&lt;br /&gt;
		end&lt;br /&gt;
		if 2 == lang:len() or 3 == lang:len() then								-- if two-or three-character code&lt;br /&gt;
			name = mw.language.fetchLanguageName( lang:lower(), this_wiki_code);	-- get language name if |language= is a proper code&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		if is_set (name) then													-- if |language= specified a valid code&lt;br /&gt;
			code = lang:lower();												-- save it&lt;br /&gt;
		else&lt;br /&gt;
			name, code = get_iso639_code (lang, this_wiki_code);				-- attempt to get code from name (assign name here so that we are sure of proper capitalization)&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		if is_set (code) then													-- only 2- or 3-character codes&lt;br /&gt;
			if &#039;bn&#039; == code then name = &#039;Bengali&#039; end;							-- override wikimedia when code is &#039;bn&#039;&lt;br /&gt;
			if this_wiki_code ~= code then										-- when the language is not the same as this wiki&#039;s language&lt;br /&gt;
				if 2 == code:len() then											-- and is a two-character code&lt;br /&gt;
					add_prop_cat (&#039;foreign_lang_source&#039; .. code, {name, code})			-- categorize it&lt;br /&gt;
				else															-- or is a recognized language (but has a three-character code)&lt;br /&gt;
					add_prop_cat (&#039;foreign_lang_source_2&#039; .. code, {code})				-- categorize it differently TODO: support mutliple three-character code categories per cs1|2 template&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			add_maint_cat (&#039;unknown_lang&#039;);										-- add maint category if not already added&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		table.insert (language_list, name);&lt;br /&gt;
		name = &#039;&#039;;																-- so we can reuse it&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	code = #language_list														-- reuse code as number of languages in the list&lt;br /&gt;
	if 2 &amp;gt;= code then&lt;br /&gt;
		name = table.concat (language_list, &#039; și &#039;)							-- insert &#039;&amp;lt;space&amp;gt;and&amp;lt;space&amp;gt;&#039; between two language names&lt;br /&gt;
	elseif 2 &amp;lt; code then&lt;br /&gt;
		language_list[code] = &#039;și &#039; .. language_list[code];					-- prepend last name with &#039;and&amp;lt;space&amp;gt;&#039;&lt;br /&gt;
		name = table.concat (language_list, &#039;, &#039;)								-- and concatenate with &#039;&amp;lt;comma&amp;gt;&amp;lt;space&amp;gt;&#039; separators&lt;br /&gt;
	end&lt;br /&gt;
	if this_wiki_name == name then&lt;br /&gt;
		return &#039;&#039;;																-- if one language and that language is this wiki&#039;s return an empty string (no annotation)&lt;br /&gt;
	end&lt;br /&gt;
	return (&amp;quot; &amp;quot; .. wrap_msg (&#039;language&#039;, name));								-- otherwise wrap with &#039;(in ...)&#039;&lt;br /&gt;
	--[[ TODO: should only return blank or name rather than full list&lt;br /&gt;
	so we can clean up the bunched parenthetical elements Language, Type, Format&lt;br /&gt;
	]]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ C S 1 _ S T Y L E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Set style settings for CS1 citation templates. Returns separator and postscript settings&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_cs1_style (ps)&lt;br /&gt;
	if not is_set (ps) then														-- unless explicitely set to something&lt;br /&gt;
		ps = &#039;.&#039;;																-- terminate the rendered citation with a period&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;.&#039;, ps;																-- separator is a full stop&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ C S 2 _ S T Y L E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Set style settings for CS2 citation templates. Returns separator, postscript, ref settings&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_cs2_style (ps, ref)&lt;br /&gt;
	if not is_set (ps) then														-- if |postscript= has not been set, set cs2 default&lt;br /&gt;
		ps = &#039;&#039;;																-- make sure it isn&#039;t nil&lt;br /&gt;
	end&lt;br /&gt;
	if not is_set (ref) then													-- if |ref= is not set&lt;br /&gt;
		ref = &amp;quot;harv&amp;quot;;															-- set default |ref=harv&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;,&#039;, ps, ref;														-- separator is a comma&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ S E T T I N G S _ F R O M _ C I T E _ C L A S S &amp;gt;----------------------&lt;br /&gt;
&lt;br /&gt;
When |mode= is not set or when its value is invalid, use config.CitationClass and parameter values to establish&lt;br /&gt;
rendered style.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_settings_from_cite_class (ps, ref, cite_class)&lt;br /&gt;
	local sep;&lt;br /&gt;
	if (cite_class == &amp;quot;citation&amp;quot;) then											-- for citation templates (CS2)&lt;br /&gt;
		sep, ps, ref = set_cs2_style (ps, ref);&lt;br /&gt;
	else																		-- not a citation template so CS1&lt;br /&gt;
		sep, ps = set_cs1_style (ps);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return sep, ps, ref															-- return them all&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S T Y L E &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Establish basic style settings to be used when rendering the citation.  Uses |mode= if set and valid or uses&lt;br /&gt;
config.CitationClass from the template&#039;s #invoke: to establish style.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_style (mode, ps, ref, cite_class)&lt;br /&gt;
	local sep;&lt;br /&gt;
	if &#039;cs2&#039; == mode then														-- if this template is to be rendered in CS2 (citation) style&lt;br /&gt;
		sep, ps, ref = set_cs2_style (ps, ref);&lt;br /&gt;
	elseif &#039;cs1&#039; == mode then													-- if this template is to be rendered in CS1 (cite xxx) style&lt;br /&gt;
		sep, ps = set_cs1_style (ps);&lt;br /&gt;
	else																		-- anything but cs1 or cs2&lt;br /&gt;
		sep, ps, ref = get_settings_from_cite_class (ps, ref, cite_class);		-- get settings based on the template&#039;s CitationClass&lt;br /&gt;
	end&lt;br /&gt;
	if &#039;none&#039; == ps:lower() then												-- if assigned value is &#039;none&#039; then&lt;br /&gt;
		ps = &#039;&#039;;																-- set to empty string&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return sep, ps, ref&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ P D F &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines if a url has the file extension that is one of the pdf file extensions used by [[MediaWiki:Common.css]] when&lt;br /&gt;
applying the pdf icon to external links.&lt;br /&gt;
&lt;br /&gt;
returns true if file extension is one of the recognized extensions, else false&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_pdf (url)&lt;br /&gt;
	return url:match (&#039;%.pdf$&#039;) or url:match (&#039;%.PDF$&#039;) or url:match (&#039;%.pdf[%?#]&#039;) or url:match (&#039;%.PDF[%?#]&#039;);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S T Y L E _ F O R M A T &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Applies css style to |format=, |chapter-format=, etc.  Also emits an error message if the format parameter does&lt;br /&gt;
not have a matching url parameter.  If the format parameter is not set and the url contains a file extension that&lt;br /&gt;
is recognized as a pdf document by MediaWiki&#039;s commons.css, this code will set the format parameter to (PDF) with&lt;br /&gt;
the appropriate styling.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function style_format (format, url, fmt_param, url_param)&lt;br /&gt;
	if is_set (format) then&lt;br /&gt;
		format = wrap_style (&#039;format&#039;, format);									-- add leading space, parentheses, resize&lt;br /&gt;
		if not is_set (url) then&lt;br /&gt;
			format = format .. set_error( &#039;format_missing_url&#039;, {fmt_param, url_param} );	-- add an error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_pdf (url) then													-- format is not set so if url is a pdf file then&lt;br /&gt;
		format = wrap_style (&#039;format&#039;, &#039;PDF&#039;);									-- set format to pdf&lt;br /&gt;
	else&lt;br /&gt;
		format = &#039;&#039;;															-- empty string for concatenation&lt;br /&gt;
	end&lt;br /&gt;
	return format;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ D I S P L A Y _ A U T H O R S _ E D I T O R S &amp;gt;------------------------&lt;br /&gt;
&lt;br /&gt;
Returns a number that defines the number of names displayed for author and editor name lists and a boolean flag&lt;br /&gt;
to indicate when et al. should be appended to the name list.&lt;br /&gt;
&lt;br /&gt;
When the value assigned to |display-xxxxors= is a number greater than or equal to zero, return the number and&lt;br /&gt;
the previous state of the &#039;etal&#039; flag (false by default but may have been set to true if the name list contains&lt;br /&gt;
some variant of the text &#039;et al.&#039;).&lt;br /&gt;
&lt;br /&gt;
When the value assigned to |display-xxxxors= is the keyword &#039;etal&#039;, return a number that is one greater than the&lt;br /&gt;
number of authors in the list and set the &#039;etal&#039; flag true.  This will cause the list_people() to display all of&lt;br /&gt;
the names in the name list followed by &#039;et al.&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases, returns nil and the previous state of the &#039;etal&#039; flag.&lt;br /&gt;
&lt;br /&gt;
inputs:&lt;br /&gt;
	max: A[&#039;DisplayAuthors&#039;] or A[&#039;DisplayEditors&#039;]; a number or some flavor of etal&lt;br /&gt;
	count: #a or #e&lt;br /&gt;
	list_name: &#039;authors&#039; or &#039;editors&#039;&lt;br /&gt;
	etal: author_etal or editor_etal&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_display_authors_editors (max, count, list_name, etal)&lt;br /&gt;
	if is_set (max) then&lt;br /&gt;
		if &#039;etal&#039; == max:lower():gsub(&amp;quot;[ &#039;%.]&amp;quot;, &#039;&#039;) then						-- the :gsub() portion makes &#039;etal&#039; from a variety of &#039;et al.&#039; spellings and stylings&lt;br /&gt;
			max = count + 1;													-- number of authors + 1 so display all author name plus et al.&lt;br /&gt;
			etal = true;														-- overrides value set by extract_names()&lt;br /&gt;
		elseif max:match (&#039;^%d+$&#039;) then											-- if is a string of numbers&lt;br /&gt;
			max = tonumber (max);												-- make it a number&lt;br /&gt;
			if max &amp;gt;= count then												-- if |display-xxxxors= value greater than or equal to number of authors/editors&lt;br /&gt;
				add_maint_cat (&#039;disp_auth_ed&#039;, cfg.special_case_translation [list_name]);&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- not a valid keyword or number&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;invalid_param_val&#039;, {&#039;display-&#039; .. list_name, max}, true ) } );		-- add error message&lt;br /&gt;
			max = nil;															-- unset; as if |display-xxxxors= had not been set&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return max, etal;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A _ T E X T _ I N _ P A G E _ C H E C K &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds page to Category:CS1 maint: extra text if |page= or |pages= has what appears to be some form of p. or pp. &lt;br /&gt;
abbreviation in the first characters of the parameter content.&lt;br /&gt;
&lt;br /&gt;
check Page and Pages for extraneous p, p., pp, and pp. at start of parameter value:&lt;br /&gt;
	good pattern: &#039;^P[^%.P%l]&#039; matches when |page(s)= begins PX or P# but not Px where x and X are letters and # is a dgiit&lt;br /&gt;
	bad pattern: &#039;^[Pp][Pp]&#039; matches matches when |page(s)= begins pp or pP or Pp or PP&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extra_text_in_page_check (page)&lt;br /&gt;
	local good_pattern = &#039;^P[^%.Pp]&#039;;											-- ok to begin with uppercase P: P7 (pg 7 of section P) but not p123 (page 123) TODO: add Gg for PG or Pg?&lt;br /&gt;
	local bad_pattern = &#039;^[Pp]?[Pp]%.?[ %d]&#039;;&lt;br /&gt;
&lt;br /&gt;
	if not page:match (good_pattern) and (page:match (bad_pattern) or  page:match (&#039;^[Pp]ages?&#039;)) then&lt;br /&gt;
		add_maint_cat (&#039;extra_text&#039;);&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; G E T _ V _ N A M E _ T A B L E &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
split apart a |vauthors= or |veditors= parameter.  This function allows for corporate names, wrapped in doubled&lt;br /&gt;
parentheses to also have commas; in the old version of the code, the doubled parnetheses were included in the&lt;br /&gt;
rendered citation and in the metadata.  Individual author names may be wikilinked&lt;br /&gt;
&lt;br /&gt;
	|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function get_v_name_table (vparam, output_table, output_link_table)&lt;br /&gt;
	local name_table = mw.text.split(vparam, &amp;quot;%s*,%s*&amp;quot;);						-- names are separated by commas&lt;br /&gt;
	local wl_type, label, link;													-- wl_type not used here; just a place holder&lt;br /&gt;
	&lt;br /&gt;
	local i = 1;&lt;br /&gt;
	&lt;br /&gt;
	while name_table[i] do&lt;br /&gt;
		if name_table[i]:match (&#039;^%(%(.*[^%)][^%)]$&#039;) then						-- first segment of corporate with one or more commas; this segment has the opening doubled parens&lt;br /&gt;
			local name = name_table[i];&lt;br /&gt;
			i=i+1;																-- bump indexer to next segment&lt;br /&gt;
			while name_table[i] do&lt;br /&gt;
				name = name .. &#039;, &#039; .. name_table[i];							-- concatenate with previous segments&lt;br /&gt;
				if name_table[i]:match (&#039;^.*%)%)$&#039;) then						-- if this table member has the closing doubled parens&lt;br /&gt;
					break;														-- and done reassembling so&lt;br /&gt;
				end&lt;br /&gt;
				i=i+1;															-- bump indexer&lt;br /&gt;
			end&lt;br /&gt;
			table.insert (output_table, name);									-- and add corporate name to the output table&lt;br /&gt;
			table.insert (output_link_table, &#039;&#039;);								-- no wikilink&lt;br /&gt;
		else&lt;br /&gt;
			wl_type, label, link = is_wikilink (name_table[i]);					-- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]&lt;br /&gt;
			table.insert (output_table, label);									-- add this name&lt;br /&gt;
			if 1 == wl_type then&lt;br /&gt;
				table.insert (output_link_table, label);						-- simple wikilink [[D]]&lt;br /&gt;
			else&lt;br /&gt;
				table.insert (output_link_table, link);							-- no wikilink or [[L|D]]; add this link if there is one, else empty string&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		i = i+1;&lt;br /&gt;
	end	&lt;br /&gt;
	return output_table;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P A R S E _ V A U T H O R S _ V E D I T O R S &amp;gt;--------------------------------&lt;br /&gt;
&lt;br /&gt;
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and&lt;br /&gt;
|xxxxor-linkn= in args.  It then returns a table of assembled names just as extract_names() does.&lt;br /&gt;
&lt;br /&gt;
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names&lt;br /&gt;
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance&lt;br /&gt;
tests, are wrapped in doubled paranethese ((corporate name)) to suppress the format tests.&lt;br /&gt;
&lt;br /&gt;
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.&lt;br /&gt;
&lt;br /&gt;
This function sets the vancouver error when a reqired comma is missing and when there is a space between an author&#039;s initials.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function parse_vauthors_veditors (args, vparam, list_name)&lt;br /&gt;
	local names = {};															-- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=&lt;br /&gt;
	local v_name_table = {};&lt;br /&gt;
	local v_link_table = {};													-- when name is wikilinked, targets go in this table&lt;br /&gt;
	local etal = false;															-- return value set to true when we find some form of et al. vauthors parameter&lt;br /&gt;
	local last, first, link, mask, suffix;&lt;br /&gt;
	local corporate = false;&lt;br /&gt;
&lt;br /&gt;
	vparam, etal = name_has_etal (vparam, etal, true);							-- find and remove variations on et al. do not categorize (do it here because et al. might have a period)&lt;br /&gt;
	v_name_table = get_v_name_table (vparam, v_name_table, v_link_table);						-- names are separated by commas&lt;br /&gt;
&lt;br /&gt;
	for i, v_name in ipairs(v_name_table) do&lt;br /&gt;
		if v_name:match (&#039;^%(%(.+%)%)$&#039;) then									-- corporate authors are wrapped in doubled parentheses to supress vanc formatting and error detection&lt;br /&gt;
			first = &#039;&#039;;															-- set to empty string for concatenation and because it may have been set for previous author/editor&lt;br /&gt;
			last = v_name:match (&#039;^%(%((.+)%)%)$&#039;)								-- remove doubled parntheses&lt;br /&gt;
			corporate = true;													-- flag used in list_people()&lt;br /&gt;
		elseif string.find(v_name, &amp;quot;%s&amp;quot;) then&lt;br /&gt;
			if v_name:find(&#039;[;%.]&#039;) then										-- look for commonly occurring punctuation characters; &lt;br /&gt;
				add_vanc_error (&#039;punctuation&#039;);&lt;br /&gt;
			end&lt;br /&gt;
			local lastfirstTable = {}&lt;br /&gt;
			lastfirstTable = mw.text.split(v_name, &amp;quot;%s&amp;quot;)&lt;br /&gt;
			first = table.remove(lastfirstTable);								-- removes and returns value of last element in table which should be author intials&lt;br /&gt;
			if is_suffix (first) then											-- if a valid suffix&lt;br /&gt;
				suffix = first													-- save it as a suffix and&lt;br /&gt;
				first = table.remove(lastfirstTable);							-- get what should be the initials from the table&lt;br /&gt;
			end																	-- no suffix error message here because letter combination may be result of Romanization; check for digits?&lt;br /&gt;
			last = table.concat(lastfirstTable, &amp;quot; &amp;quot;)							-- returns a string that is the concatenation of all other names that are not initials&lt;br /&gt;
			if mw.ustring.match (last, &#039;%a+%s+%u+%s+%a+&#039;) then&lt;br /&gt;
				add_vanc_error (&#039;missing comma&#039;);								-- matches last II last; the case when a comma is missing&lt;br /&gt;
			end&lt;br /&gt;
			if mw.ustring.match (v_name, &#039; %u %u$&#039;) then						-- this test is in the wrong place TODO: move or replace with a more appropriate test&lt;br /&gt;
				add_vanc_error (&#039;name&#039;);										-- matches a space between two intiials&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			first = &#039;&#039;;															-- set to empty string for concatenation and because it may have been set for previous author/editor&lt;br /&gt;
			last = v_name;														-- last name or single corporate name?  Doesn&#039;t support multiword corporate names? do we need this?&lt;br /&gt;
		end&lt;br /&gt;
																&lt;br /&gt;
		if is_set (first) then&lt;br /&gt;
			if not mw.ustring.match (first, &amp;quot;^%u?%u$&amp;quot;) then						-- first shall contain one or two upper-case letters, nothing else&lt;br /&gt;
				add_vanc_error (&#039;initials&#039;);									-- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials&lt;br /&gt;
			end&lt;br /&gt;
			is_good_vanc_name (last, first);									-- check first and last before restoring the suffix which may have a non-Latin digit&lt;br /&gt;
			if is_set (suffix) then&lt;br /&gt;
				first = first .. &#039; &#039; .. suffix;									-- if there was a suffix concatenate with the initials&lt;br /&gt;
				suffix = &#039;&#039;;													-- unset so we don&#039;t add this suffix to all subsequent names&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if not corporate then&lt;br /&gt;
				is_good_vanc_name (last, &#039;&#039;);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		link = select_one( args, cfg.aliases[list_name .. &#039;-Link&#039;], &#039;redundant_parameters&#039;, i ) or v_link_table[i];&lt;br /&gt;
		mask = select_one( args, cfg.aliases[list_name .. &#039;-Mask&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		names[i] = {last = last, first = first, link = link, mask = mask, corporate=corporate};		-- add this assembled name to our names list&lt;br /&gt;
	end&lt;br /&gt;
	return names, etal;															-- all done, return our list of names&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E &amp;gt;------------------------&lt;br /&gt;
&lt;br /&gt;
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or&lt;br /&gt;
select one of |editors=, |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.&lt;br /&gt;
&lt;br /&gt;
Only one of these appropriate three will be used.  The hierarchy is: |authorn= (and aliases) highest and |authors= lowest and&lt;br /&gt;
similarly, |editorn= (and aliases) highest and |editors= lowest&lt;br /&gt;
&lt;br /&gt;
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second&lt;br /&gt;
test which mimicks the test used in extract_names() when looking for a hole in the author name list.  There may be a better&lt;br /&gt;
way to do this, I just haven&#039;t discovered what that way is.&lt;br /&gt;
&lt;br /&gt;
Emits an error message when more than one xxxxor name source is provided.&lt;br /&gt;
&lt;br /&gt;
In this function, vxxxxors = vauthors or veditors; xxxxors = authors or editors as appropriate.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)&lt;br /&gt;
local lastfirst = false;&lt;br /&gt;
	if select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;none&#039;, 1 ) or		-- do this twice incase we have a |first1= without a |last1=; this ...&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;none&#039;, 1 ) or	-- ... also catches the case where |first= is used with |vauthors=&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;none&#039;, 2 ) or&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;none&#039;, 2 ) then&lt;br /&gt;
			lastfirst=true;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (is_set (vxxxxors) and true == lastfirst) or								-- these are the three error conditions&lt;br /&gt;
		(is_set (vxxxxors) and is_set (xxxxors)) or&lt;br /&gt;
		(true == lastfirst and is_set (xxxxors)) then&lt;br /&gt;
			local err_name;&lt;br /&gt;
			if &#039;AuthorList&#039; == list_name then									-- figure out which name should be used in error message&lt;br /&gt;
				err_name = &#039;author&#039;;&lt;br /&gt;
			else&lt;br /&gt;
				err_name = &#039;editor&#039;;&lt;br /&gt;
			end&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;,&lt;br /&gt;
				{err_name .. &#039;-name-list parameters&#039;}, true ) } );				-- add error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if true == lastfirst then return 1 end;										-- return a number indicating which author name source to use&lt;br /&gt;
	if is_set (vxxxxors) then return 2 end;&lt;br /&gt;
	if is_set (xxxxors) then return 3 end;&lt;br /&gt;
	return 1;																	-- no authors so return 1; this allows missing author name test to run in case there is a first without last &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ P A R A M E T E R _ V A L U E &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
This function is used to validate a parameter&#039;s assigned value for those parameters that have only a limited number&lt;br /&gt;
of allowable values (yes, y, true, no, etc).  When the parameter value has not been assigned a value (missing or empty&lt;br /&gt;
in the source template) the function returns true.  If the parameter value is one of the list of allowed values returns&lt;br /&gt;
true; else, emits an error message and returns false.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_parameter_value (value, name, possible)&lt;br /&gt;
	if not is_set (value) then&lt;br /&gt;
		return true;															-- an empty parameter is ok&lt;br /&gt;
	elseif in_array(value:lower(), possible) then&lt;br /&gt;
		return true;&lt;br /&gt;
	else&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;invalid_param_val&#039;, {name, value}, true ) } );	-- not an allowed value so add error message&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; T E R M I N A T E _ N A M E _ L I S T &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space&lt;br /&gt;
when the last character is not a sepc character or when the last three characters are not sepc followed by two&lt;br /&gt;
closing square brackets (close of a wikilink).  When either of these is true, the name_list is terminated with a&lt;br /&gt;
single space character.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function terminate_name_list (name_list, sepc)&lt;br /&gt;
	if (string.sub (name_list,-3,-1) == sepc .. &#039;. &#039;) then						-- if already properly terminated&lt;br /&gt;
		return name_list;														-- just return the name list&lt;br /&gt;
	elseif (string.sub (name_list,-1,-1) == sepc) or (string.sub (name_list,-3,-1) == sepc .. &#039;]]&#039;) then	-- if last name in list ends with sepc char&lt;br /&gt;
		return name_list .. &amp;quot; &amp;quot;;												-- don&#039;t add another&lt;br /&gt;
	else&lt;br /&gt;
		return name_list .. sepc .. &#039; &#039;;										-- otherwise terninate the name list&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; F O R M A T _ V O L U M E _ I S S U E &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns the concatenation of the formatted volume and issue parameters as a single string; or formatted volume&lt;br /&gt;
or formatted issue, or an empty string if neither are set.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
	&lt;br /&gt;
local function format_volume_issue (volume, issue, cite_class, origin, sepc, lower)&lt;br /&gt;
	if not is_set (volume) and not is_set (issue) then&lt;br /&gt;
		return &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if &#039;magazine&#039; == cite_class or (in_array (cite_class, {&#039;citation&#039;, &#039;map&#039;}) and &#039;magazine&#039; == origin) then&lt;br /&gt;
		if is_set (volume) and is_set (issue) then&lt;br /&gt;
			return wrap_msg (&#039;vol-no&#039;, {sepc, volume, issue}, lower);&lt;br /&gt;
		elseif is_set (volume) then&lt;br /&gt;
			return wrap_msg (&#039;vol&#039;, {sepc, volume}, lower);&lt;br /&gt;
		else&lt;br /&gt;
			return wrap_msg (&#039;issue&#039;, {sepc, issue}, lower);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local vol = &#039;&#039;;&lt;br /&gt;
		&lt;br /&gt;
	if is_set (volume) then&lt;br /&gt;
		if (4 &amp;lt; mw.ustring.len(volume)) then&lt;br /&gt;
			vol = substitute (cfg.messages[&#039;j-vol&#039;], {sepc, volume});&lt;br /&gt;
		else&lt;br /&gt;
			vol = substitute (cfg.presentation[&#039;vol-bold&#039;], {sepc, hyphen_to_dash(volume)});&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (issue) then&lt;br /&gt;
		return vol .. substitute (cfg.messages[&#039;j-issue&#039;], issue);&lt;br /&gt;
	end&lt;br /&gt;
	return vol;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; F O R M A T _ P A G E S _ S H E E T S &amp;gt;-----------------------------------------&lt;br /&gt;
&lt;br /&gt;
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.&lt;br /&gt;
The return order is:&lt;br /&gt;
	page, pages, sheet, sheets&lt;br /&gt;
&lt;br /&gt;
Singular has priority over plural when both are provided.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)&lt;br /&gt;
	if &#039;map&#039; == cite_class then													-- only cite map supports sheet(s) as in-source locators&lt;br /&gt;
		if is_set (sheet) then&lt;br /&gt;
			if &#039;journal&#039; == origin then&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, wrap_msg (&#039;j-sheet&#039;, sheet, lower), &#039;&#039;;&lt;br /&gt;
			else&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, wrap_msg (&#039;sheet&#039;, {sepc, sheet}, lower), &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set (sheets) then&lt;br /&gt;
			if &#039;journal&#039; == origin then&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, &#039;&#039;, wrap_msg (&#039;j-sheets&#039;, sheets, lower);&lt;br /&gt;
			else&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, &#039;&#039;, wrap_msg (&#039;sheets&#039;, {sepc, sheets}, lower);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local is_journal = &#039;journal&#039; == cite_class or (in_array (cite_class, {&#039;citation&#039;, &#039;map&#039;}) and &#039;journal&#039; == origin);&lt;br /&gt;
	&lt;br /&gt;
	if is_set (page) then&lt;br /&gt;
		if is_journal then&lt;br /&gt;
			return substitute (cfg.messages[&#039;j-page(s)&#039;], page), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif not nopp then&lt;br /&gt;
			return substitute (cfg.messages[&#039;p-prefix&#039;], {sepc, page}), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return substitute (cfg.messages[&#039;nopp&#039;], {sepc, page}), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set(pages) then&lt;br /&gt;
		if is_journal then&lt;br /&gt;
			return substitute (cfg.messages[&#039;j-page(s)&#039;], pages), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif tonumber(pages) ~= nil and not nopp then										-- if pages is only digits, assume a single page number&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;p-prefix&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif not nopp then&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;pp-prefix&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;nopp&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return &#039;&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;;														-- return empty strings&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; A R C H I V E _ U R L _ C H E C K &amp;gt;--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Check archive.org urls to make sure they at least look like they are pointing at valid archives and not to the &lt;br /&gt;
save snapshot url or to calendar pages.  When the archive url is &#039;https://web.archive.org/save/&#039; (or http://...)&lt;br /&gt;
archive.org saves a snapshot of the target page in the url.  That is something that Wikipedia should not allow&lt;br /&gt;
unwitting readers to do.&lt;br /&gt;
&lt;br /&gt;
When the archive.org url does not have a complete timestamp, archive.org chooses a snapshot according to its own&lt;br /&gt;
algorithm or provides a calendar &#039;search&#039; result.  [[WP:ELNO]] discourages links to search results.&lt;br /&gt;
&lt;br /&gt;
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and&lt;br /&gt;
|archive-date= and an error message when:&lt;br /&gt;
	|archive-url= holds an archive.org save command url&lt;br /&gt;
	|archive-url= is an archive.org url that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the&lt;br /&gt;
		correct place&lt;br /&gt;
otherwise returns |archive-url= and |archive-date=&lt;br /&gt;
&lt;br /&gt;
There are two mostly compatible archive.org urls:&lt;br /&gt;
	//web.archive.org/&amp;lt;timestamp&amp;gt;...		-- the old form&lt;br /&gt;
	//web.archive.org/web/&amp;lt;timestamp&amp;gt;...	-- the new form&lt;br /&gt;
&lt;br /&gt;
The old form does not support or map to the new form when it contains a display flag.  There are four identified flags&lt;br /&gt;
(&#039;id_&#039;, &#039;js_&#039;, &#039;cs_&#039;, &#039;im_&#039;) but since archive.org ignores others following the same form (two letters and an underscore)&lt;br /&gt;
we don&#039;t check for these specific flags but we do check the form.&lt;br /&gt;
&lt;br /&gt;
This function supports a preview mode.  When the article is rendered in preview mode, this funct may return a modified&lt;br /&gt;
archive url:&lt;br /&gt;
	for save command errors, return undated wildcard (/*/)&lt;br /&gt;
	for timestamp errors when the timestamp has a wildcard, return the url unmodified&lt;br /&gt;
	for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function archive_url_check (url, date)&lt;br /&gt;
	local err_msg = &#039;&#039;;															-- start with the error message empty&lt;br /&gt;
	local path, timestamp, flag;												-- portions of the archive.or url&lt;br /&gt;
	&lt;br /&gt;
	if (not url:match(&#039;//web%.archive%.org/&#039;)) and (not url:match(&#039;//liveweb%.archive%.org/&#039;)) then		-- also deprecated liveweb Wayback machine url&lt;br /&gt;
		return url, date;														-- not an archive.org archive, return ArchiveURL and ArchiveDate&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if url:match(&#039;//web%.archive%.org/save/&#039;) then								-- if a save command url, we don&#039;t want to allow saving of the target page &lt;br /&gt;
		err_msg = &#039;save command&#039;;&lt;br /&gt;
		url = url:gsub (&#039;(//web%.archive%.org)/save/&#039;, &#039;%1/*/&#039;, 1);				-- for preview mode: modify ArchiveURL&lt;br /&gt;
	elseif url:match(&#039;//liveweb%.archive%.org/&#039;) then&lt;br /&gt;
		err_msg = &#039;liveweb&#039;;&lt;br /&gt;
	else&lt;br /&gt;
		path, timestamp, flag = url:match(&#039;//web%.archive%.org/([^%d]*)(%d+)([^/]*)/&#039;);		-- split out some of the url parts for evaluation&lt;br /&gt;
		&lt;br /&gt;
		if not is_set(timestamp) or 14 ~= timestamp:len() then					-- path and flag optional, must have 14-digit timestamp here&lt;br /&gt;
			err_msg = &#039;timestamp&#039;;&lt;br /&gt;
			if &#039;*&#039; ~= flag then&lt;br /&gt;
				url=url:gsub (&#039;(//web%.archive%.org/[^%d]*%d?%d?%d?%d?%d?%d?)[^/]*&#039;, &#039;%1*&#039;, 1)	-- for preview, modify ts to be yearmo* max (0-6 digits plus splat)&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set(path) and &#039;web/&#039; ~= path then								-- older archive urls do not have the extra &#039;web/&#039; path element&lt;br /&gt;
			err_msg = &#039;path&#039;;&lt;br /&gt;
		elseif is_set (flag) and not is_set (path) then							-- flag not allowed with the old form url (without the &#039;web/&#039; path element)&lt;br /&gt;
			err_msg = &#039;flag&#039;;&lt;br /&gt;
		elseif is_set (flag) and not flag:match (&#039;%a%a_&#039;) then					-- flag if present must be two alpha characters and underscore (requires &#039;web/&#039; path element)&lt;br /&gt;
			err_msg = &#039;flag&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return url, date;													-- return archiveURL and ArchiveDate&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
																				-- if here, something not right so&lt;br /&gt;
	table.insert( z.message_tail, { set_error( &#039;archive_url&#039;, {err_msg}, true ) } );	-- add error message and&lt;br /&gt;
	if is_set (mw.getCurrentFrame():preprocess(&#039;{{REVISIONID}}&#039;)) then&lt;br /&gt;
		return &#039;&#039;, &#039;&#039;;															-- return empty strings for archiveURL and ArchiveDate&lt;br /&gt;
	else&lt;br /&gt;
		return url, date;														-- preview mode so return archiveURL and ArchiveDate&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M I S S I N G _ P I P E _ C H E C K &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal&lt;br /&gt;
sign, compare the alphanumeric string to the list of cs1|2 parameters.  If found, then the string is possibly a&lt;br /&gt;
parameter that is missing its pipe:&lt;br /&gt;
	{{cite ... |title=Title access-date=2016-03-17}}&lt;br /&gt;
&lt;br /&gt;
cs1|2 shares some parameter names with xml/html atributes: class=, title=, etc.  To prevent false positives xml/html&lt;br /&gt;
tags are removed before the search.&lt;br /&gt;
&lt;br /&gt;
If a missing pipe is detected, this function adds the missing pipe maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function missing_pipe_check (value)&lt;br /&gt;
	local capture;&lt;br /&gt;
	value = value:gsub (&#039;%b&amp;lt;&amp;gt;&#039;, &#039;&#039;);											-- remove xml/html tags because attributes: class=, title=, etc &lt;br /&gt;
&lt;br /&gt;
	capture = value:match (&#039;%s+(%a[%a%d]+)%s*=&#039;) or value:match (&#039;^(%a[%a%d]+)%s*=&#039;);	-- find and categorize parameters with possible missing pipes&lt;br /&gt;
	if capture and validate (capture) then								-- if the capture is a valid parameter name&lt;br /&gt;
		add_maint_cat (&#039;missing_pipe&#039;);&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T A T I O N 0 &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This is the main function doing the majority of the citation formatting.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function citation0( config, args)&lt;br /&gt;
	--[[ &lt;br /&gt;
	Load Input Parameters&lt;br /&gt;
	The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.&lt;br /&gt;
	]]&lt;br /&gt;
	local A = argument_wrapper( args );&lt;br /&gt;
	local i &lt;br /&gt;
&lt;br /&gt;
	-- Pick out the relevant fields from the arguments.  Different citation templates&lt;br /&gt;
	-- define different field names for the same underlying things.	&lt;br /&gt;
&lt;br /&gt;
-- set default parameter values defined by |mode= parameter.&lt;br /&gt;
	local Mode = A[&#039;Mode&#039;];&lt;br /&gt;
	if not is_valid_parameter_value (Mode, &#039;mode&#039;, cfg.keywords[&#039;mode&#039;]) then&lt;br /&gt;
		Mode = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local author_etal;&lt;br /&gt;
	local a	= {};																-- authors list from |lastn= / |firstn= pairs or |vauthors=&lt;br /&gt;
	local Authors;&lt;br /&gt;
	local NameListFormat = A[&#039;NameListFormat&#039;];&lt;br /&gt;
	local Collaboration = A[&#039;Collaboration&#039;];&lt;br /&gt;
&lt;br /&gt;
	do																			-- to limit scope of selected&lt;br /&gt;
		local selected = select_author_editor_source (A[&#039;Vauthors&#039;], A[&#039;Authors&#039;], args, &#039;AuthorList&#039;);&lt;br /&gt;
		if 1 == selected then&lt;br /&gt;
			a, author_etal = extract_names (args, &#039;AuthorList&#039;);				-- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=&lt;br /&gt;
		elseif 2 == selected then&lt;br /&gt;
			NameListFormat = &#039;vanc&#039;;											-- override whatever |name-list-format= might be&lt;br /&gt;
			a, author_etal = parse_vauthors_veditors (args, args.vauthors, &#039;AuthorList&#039;);	-- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=&lt;br /&gt;
		elseif 3 == selected then&lt;br /&gt;
			Authors = A[&#039;Authors&#039;];												-- use content of |authors=&lt;br /&gt;
			if &#039;authors&#039; == A:ORIGIN(&#039;Authors&#039;) then							-- but add a maint cat if the parameter is |authors=&lt;br /&gt;
				add_maint_cat (&#039;authors&#039;);										-- because use of this parameter is discouraged; what to do about the aliases is a TODO:&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (Collaboration) then&lt;br /&gt;
			author_etal = true;													-- so that |display-authors=etal not required&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Others = A[&#039;Others&#039;];&lt;br /&gt;
&lt;br /&gt;
	local editor_etal;&lt;br /&gt;
	local e	= {};																-- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=&lt;br /&gt;
	local Editors;&lt;br /&gt;
&lt;br /&gt;
	do																			-- to limit scope of selected&lt;br /&gt;
		local selected = select_author_editor_source (A[&#039;Veditors&#039;], A[&#039;Editors&#039;], args, &#039;EditorList&#039;);&lt;br /&gt;
		if 1 == selected then&lt;br /&gt;
			e, editor_etal = extract_names (args, &#039;EditorList&#039;);				-- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=&lt;br /&gt;
		elseif 2 == selected then&lt;br /&gt;
			NameListFormat = &#039;vanc&#039;;											-- override whatever |name-list-format= might be&lt;br /&gt;
			e, editor_etal = parse_vauthors_veditors (args, args.veditors, &#039;EditorList&#039;);	-- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=&lt;br /&gt;
		elseif 3 == selected then&lt;br /&gt;
			Editors = A[&#039;Editors&#039;];												-- use content of |editors=&lt;br /&gt;
			add_maint_cat (&#039;editors&#039;);											-- but add a maint cat because use of this parameter is discouraged&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local t = {};																-- translators list from |translator-lastn= / translator-firstn= pairs&lt;br /&gt;
	local Translators;															-- assembled translators name list&lt;br /&gt;
	t = extract_names (args, &#039;TranslatorList&#039;);									-- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=&lt;br /&gt;
&lt;br /&gt;
	local interviewers_list = {};&lt;br /&gt;
	local Interviewers = A[&#039;Interviewers&#039;]&lt;br /&gt;
	if is_set (Interviewers) then												-- add a maint cat if the |interviewers= is used&lt;br /&gt;
		add_maint_cat (&#039;interviewers&#039;);											-- because use of this parameter is discouraged&lt;br /&gt;
	else&lt;br /&gt;
		interviewers_list = extract_names (args, &#039;InterviewerList&#039;);			-- else, process preferred interviewers parameters&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local c = {};																-- contributors list from |contributor-lastn= / contributor-firstn= pairs&lt;br /&gt;
	local Contributors;															-- assembled contributors name list&lt;br /&gt;
	local Contribution = A[&#039;Contribution&#039;];&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;book&amp;quot;,&amp;quot;citation&amp;quot;}) and not is_set(A[&#039;Periodical&#039;]) then	-- |contributor= and |contribution= only supported in book cites&lt;br /&gt;
		c = extract_names (args, &#039;ContributorList&#039;);							-- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=&lt;br /&gt;
		&lt;br /&gt;
		if 0 &amp;lt; #c then&lt;br /&gt;
			if not is_set (Contribution) then									-- |contributor= requires |contribution=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;contributor_missing_required_param&#039;, &#039;contribution&#039;)});	-- add missing contribution error message&lt;br /&gt;
				c = {};															-- blank the contributors&#039; table; it is used as a flag later&lt;br /&gt;
			end&lt;br /&gt;
			if 0 == #a then														-- |contributor= requires |author=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;contributor_missing_required_param&#039;, &#039;author&#039;)});	-- add missing author error message&lt;br /&gt;
				c = {};															-- blank the contributors&#039; table; it is used as a flag later&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else																		-- if not a book cite&lt;br /&gt;
		if select_one (args, cfg.aliases[&#039;ContributorList-Last&#039;], &#039;redundant_parameters&#039;, 1 ) then	-- are there contributor name list parameters?&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;contributor_ignored&#039;)});	-- add contributor ignored error message&lt;br /&gt;
		end&lt;br /&gt;
		Contribution = nil;														-- unset&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_valid_parameter_value (NameListFormat, &#039;name-list-format&#039;, cfg.keywords[&#039;name-list-format&#039;]) then			-- only accepted value for this parameter is &#039;vanc&#039;&lt;br /&gt;
		NameListFormat = &#039;&#039;;													-- anything else, set to empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Year = A[&#039;Year&#039;];&lt;br /&gt;
	local PublicationDate = A[&#039;PublicationDate&#039;];&lt;br /&gt;
	local OrigYear = A[&#039;OrigYear&#039;];&lt;br /&gt;
	local Date = A[&#039;Date&#039;];&lt;br /&gt;
	local LayDate = A[&#039;LayDate&#039;];&lt;br /&gt;
	------------------------------------------------- Get title data&lt;br /&gt;
	local Title = A[&#039;Title&#039;];&lt;br /&gt;
	local ScriptTitle = A[&#039;ScriptTitle&#039;];&lt;br /&gt;
	local BookTitle = A[&#039;BookTitle&#039;];&lt;br /&gt;
	local Conference = A[&#039;Conference&#039;];&lt;br /&gt;
	local TransTitle = A[&#039;TransTitle&#039;];&lt;br /&gt;
	local TitleNote = A[&#039;TitleNote&#039;];&lt;br /&gt;
	local TitleLink = A[&#039;TitleLink&#039;];&lt;br /&gt;
			link_title_ok (TitleLink, A:ORIGIN (&#039;TitleLink&#039;), Title, &#039;title&#039;);	-- check for wikimarkup in |title-link= or wikimarkup in |title= when |title-link= is set&lt;br /&gt;
&lt;br /&gt;
	local Chapter = A[&#039;Chapter&#039;];&lt;br /&gt;
	local ScriptChapter = A[&#039;ScriptChapter&#039;];&lt;br /&gt;
	local ChapterLink	-- = A[&#039;ChapterLink&#039;];									-- deprecated as a parameter but still used internally by cite episode&lt;br /&gt;
	local TransChapter = A[&#039;TransChapter&#039;];&lt;br /&gt;
	local TitleType = A[&#039;TitleType&#039;];&lt;br /&gt;
	local Degree = A[&#039;Degree&#039;];&lt;br /&gt;
	local Docket = A[&#039;Docket&#039;];&lt;br /&gt;
	local ArchiveFormat = A[&#039;ArchiveFormat&#039;];&lt;br /&gt;
&lt;br /&gt;
	local ArchiveDate;&lt;br /&gt;
	local ArchiveURL;&lt;br /&gt;
&lt;br /&gt;
	ArchiveURL, ArchiveDate = archive_url_check (A[&#039;ArchiveURL&#039;], A[&#039;ArchiveDate&#039;])&lt;br /&gt;
	&lt;br /&gt;
	local DeadURL = A[&#039;DeadURL&#039;]&lt;br /&gt;
		if not is_valid_parameter_value (DeadURL, &#039;dead-url&#039;, cfg.keywords [&#039;deadurl&#039;]) then	-- set in config.defaults to &#039;yes&#039;&lt;br /&gt;
			DeadURL = &#039;&#039;;														-- anything else, set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local URL = A[&#039;URL&#039;]&lt;br /&gt;
	local URLorigin = A:ORIGIN(&#039;URL&#039;);											-- get name of parameter that holds URL&lt;br /&gt;
	local ChapterURL = A[&#039;ChapterURL&#039;];&lt;br /&gt;
	local ChapterURLorigin = A:ORIGIN(&#039;ChapterURL&#039;);							-- get name of parameter that holds ChapterURL&lt;br /&gt;
	local ConferenceFormat = A[&#039;ConferenceFormat&#039;];&lt;br /&gt;
	local ConferenceURL = A[&#039;ConferenceURL&#039;];&lt;br /&gt;
	local ConferenceURLorigin = A:ORIGIN(&#039;ConferenceURL&#039;);						-- get name of parameter that holds ConferenceURL&lt;br /&gt;
	local Periodical = A[&#039;Periodical&#039;];&lt;br /&gt;
	local Periodical_origin = A:ORIGIN(&#039;Periodical&#039;);							-- get the name of the periodical parameter&lt;br /&gt;
&lt;br /&gt;
	local Series = A[&#039;Series&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local Volume;&lt;br /&gt;
	local Issue;&lt;br /&gt;
	local Page;&lt;br /&gt;
	local Pages;&lt;br /&gt;
	local At;&lt;br /&gt;
&lt;br /&gt;
	if in_array (config.CitationClass, cfg.templates_using_volume) then&lt;br /&gt;
		Volume = A[&#039;Volume&#039;];&lt;br /&gt;
	end&lt;br /&gt;
																				-- conference &amp;amp; map books do not support issue&lt;br /&gt;
	if in_array (config.CitationClass, cfg.templates_using_issue) and not (in_array (config.CitationClass, {&#039;conference&#039;, &#039;map&#039;}) and not is_set (Periodical))then&lt;br /&gt;
		Issue = A[&#039;Issue&#039;];&lt;br /&gt;
	end&lt;br /&gt;
	local Position = &#039;&#039;;&lt;br /&gt;
	if not in_array (config.CitationClass, cfg.templates_not_using_page) then&lt;br /&gt;
		Page = A[&#039;Page&#039;];&lt;br /&gt;
		Pages = hyphen_to_dash( A[&#039;Pages&#039;] );	&lt;br /&gt;
		At = A[&#039;At&#039;];&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Edition = A[&#039;Edition&#039;];&lt;br /&gt;
	local PublicationPlace = A[&#039;PublicationPlace&#039;]&lt;br /&gt;
	local Place = A[&#039;Place&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local PublisherName = A[&#039;PublisherName&#039;];&lt;br /&gt;
	local RegistrationRequired = A[&#039;RegistrationRequired&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (RegistrationRequired, &#039;registration&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			RegistrationRequired=nil;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local SubscriptionRequired = A[&#039;SubscriptionRequired&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (SubscriptionRequired, &#039;subscription&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			SubscriptionRequired=nil;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local UrlAccess = A[&#039;UrlAccess&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (UrlAccess, &#039;url-access&#039;, cfg.keywords [&#039;url-access&#039;]) then&lt;br /&gt;
			UrlAccess = nil;&lt;br /&gt;
		end&lt;br /&gt;
		if not is_set(URL) and is_set(UrlAccess) then&lt;br /&gt;
			UrlAccess = nil;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;param_access_requires_param&#039;, {&#039;url&#039;}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_set (UrlAccess) and is_set (SubscriptionRequired) then			-- while not aliases, these are much the same so if both are set&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;url-access&#039;) .. &#039; și &#039; .. wrap_style (&#039;parameter&#039;, &#039;subscription&#039;)}, true ) } );		-- add error message&lt;br /&gt;
			SubscriptionRequired = nil;											-- unset; prefer |access= over |subscription=&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (UrlAccess) and is_set (RegistrationRequired) then			-- these are not the same but contradictory so if both are set&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;url-access&#039;) .. &#039; și &#039; .. wrap_style (&#039;parameter&#039;, &#039;registration&#039;)}, true ) } );		-- add error message&lt;br /&gt;
			RegistrationRequired = nil;											-- unset; prefer |access= over |registration=&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local ChapterUrlAccess = A[&#039;ChapterUrlAccess&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (ChapterUrlAccess, &#039;chapter-url-access&#039;, cfg.keywords [&#039;url-access&#039;]) then	-- same as url-access&lt;br /&gt;
			ChapterUrlAccess = nil;&lt;br /&gt;
		end&lt;br /&gt;
		if not is_set(ChapterURL) and is_set(ChapterUrlAccess) then&lt;br /&gt;
			ChapterUrlAccess = nil;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;param_access_requires_param&#039;, {&#039;chapter-url&#039;}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local Via = A[&#039;Via&#039;];&lt;br /&gt;
	local AccessDate = A[&#039;AccessDate&#039;];&lt;br /&gt;
	local Agency = A[&#039;Agency&#039;];&lt;br /&gt;
&lt;br /&gt;
	local Language = A[&#039;Language&#039;];&lt;br /&gt;
	local Format = A[&#039;Format&#039;];&lt;br /&gt;
	local ChapterFormat = A[&#039;ChapterFormat&#039;];&lt;br /&gt;
	local DoiBroken = A[&#039;DoiBroken&#039;];&lt;br /&gt;
	local ID = A[&#039;ID&#039;];&lt;br /&gt;
	local ASINTLD = A[&#039;ASINTLD&#039;];&lt;br /&gt;
	local IgnoreISBN = A[&#039;IgnoreISBN&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (IgnoreISBN, &#039;ignore-isbn-error&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			IgnoreISBN = nil;													-- anything else, set to empty string&lt;br /&gt;
		end&lt;br /&gt;
	local ISBNLink = A[&#039;ISBNLink&#039;];&lt;br /&gt;
	if is_set (ISBNLink) and is_valid_parameter_value (ISBNLink, &#039;isbn-link&#039;, cfg.keywords [&#039;no_false_n&#039;]) then&lt;br /&gt;
		ISBNLink = false;&lt;br /&gt;
	else&lt;br /&gt;
		ISBNLink = true;&lt;br /&gt;
	end&lt;br /&gt;
	local ISSNLink = A[&#039;ISSNLink&#039;];&lt;br /&gt;
	if is_set (ISSNLink) and is_valid_parameter_value (ISSNLink, &#039;issn-link&#039;, cfg.keywords [&#039;no_false_n&#039;]) then&lt;br /&gt;
		ISSNLink = false;&lt;br /&gt;
	else&lt;br /&gt;
		ISSNLink = true;&lt;br /&gt;
	end&lt;br /&gt;
	local Embargo = A[&#039;Embargo&#039;];&lt;br /&gt;
	local Class = A[&#039;Class&#039;];													-- arxiv class identifier&lt;br /&gt;
&lt;br /&gt;
	local ID_list = extract_ids( args );&lt;br /&gt;
	local ID_access_levels = extract_id_access_levels( args, ID_list );&lt;br /&gt;
&lt;br /&gt;
	local Quote = A[&#039;Quote&#039;];&lt;br /&gt;
&lt;br /&gt;
	local LayFormat = A[&#039;LayFormat&#039;];&lt;br /&gt;
	local LayURL = A[&#039;LayURL&#039;];&lt;br /&gt;
	local LaySource = A[&#039;LaySource&#039;];&lt;br /&gt;
	local Transcript = A[&#039;Transcript&#039;];&lt;br /&gt;
	local TranscriptFormat = A[&#039;TranscriptFormat&#039;];&lt;br /&gt;
	local TranscriptURL = A[&#039;TranscriptURL&#039;] &lt;br /&gt;
	local TranscriptURLorigin = A:ORIGIN(&#039;TranscriptURL&#039;);						-- get name of parameter that holds TranscriptURL&lt;br /&gt;
&lt;br /&gt;
	local LastAuthorAmp = A[&#039;LastAuthorAmp&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (LastAuthorAmp, &#039;last-author-amp&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			LastAuthorAmp = nil;												-- set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local no_tracking_cats = A[&#039;NoTracking&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (no_tracking_cats, &#039;no-tracking&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			no_tracking_cats = nil;												-- set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	--local variables that are not cs1 parameters&lt;br /&gt;
	local use_lowercase;														-- controls capitalization of certain static text&lt;br /&gt;
	local this_page = mw.title.getCurrentTitle();								-- also used for COinS and for language&lt;br /&gt;
	local anchor_year;															-- used in the CITEREF identifier&lt;br /&gt;
	local COinS_date = {};														-- holds date info extracted from |date= for the COinS metadata by Module:Date verification&lt;br /&gt;
&lt;br /&gt;
	local DF = A[&#039;DF&#039;];															-- date format set in cs1|2 template&lt;br /&gt;
	if not is_valid_parameter_value (DF, &#039;df&#039;, cfg.keywords[&#039;date-format&#039;]) then	-- validate reformatting keyword&lt;br /&gt;
		DF = &#039;&#039;;																-- not valid, set to empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local sepc;											-- separator between citation elements for CS1 a period, for CS2, a comma&lt;br /&gt;
	local PostScript;&lt;br /&gt;
	local Ref;&lt;br /&gt;
	sepc, PostScript, Ref = set_style (Mode:lower(), A[&#039;PostScript&#039;], A[&#039;Ref&#039;], config.CitationClass);&lt;br /&gt;
	use_lowercase = ( sepc == &#039;,&#039; );					-- used to control capitalization for certain static text&lt;br /&gt;
&lt;br /&gt;
	--check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories&lt;br /&gt;
	if not is_set (no_tracking_cats) then										-- ignore if we are already not going to categorize this page&lt;br /&gt;
		if in_array (this_page.nsText, cfg.uncategorized_namespaces) then&lt;br /&gt;
			no_tracking_cats = &amp;quot;true&amp;quot;;											-- set no_tracking_cats&lt;br /&gt;
		end&lt;br /&gt;
		for _,v in ipairs (cfg.uncategorized_subpages) do						-- cycle through page name patterns&lt;br /&gt;
			if this_page.text:match (v) then									-- test page name against each pattern&lt;br /&gt;
				no_tracking_cats = &amp;quot;true&amp;quot;;										-- set no_tracking_cats&lt;br /&gt;
				break;															-- bail out if one is found&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we&#039;re at it)&lt;br /&gt;
	select_one( args, {&#039;page&#039;, &#039;p&#039;, &#039;pp&#039;, &#039;pages&#039;, &#039;at&#039;, &#039;sheet&#039;, &#039;sheets&#039;}, &#039;redundant_parameters&#039; );		-- this is a dummy call simply to get the error message and category&lt;br /&gt;
&lt;br /&gt;
	local NoPP = A[&#039;NoPP&#039;] &lt;br /&gt;
	if is_set (NoPP) and is_valid_parameter_value (NoPP, &#039;nopp&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
		NoPP = true;&lt;br /&gt;
	else&lt;br /&gt;
		NoPP = nil;																-- unset, used as a flag later&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Page) then&lt;br /&gt;
		if is_set(Pages) or is_set(At) then&lt;br /&gt;
			Pages = &#039;&#039;;															-- unset the others&lt;br /&gt;
			At = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
		extra_text_in_page_check (Page);										-- add this page to maint cat if |page= value begins with what looks like p. or pp.&lt;br /&gt;
	elseif is_set(Pages) then&lt;br /&gt;
		if is_set(At) then&lt;br /&gt;
			At = &#039;&#039;;															-- unset&lt;br /&gt;
		end&lt;br /&gt;
		extra_text_in_page_check (Pages);										-- add this page to maint cat if |pages= value begins with what looks like p. or pp.&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	-- both |publication-place= and |place= (|location=) allowed if different&lt;br /&gt;
	if not is_set(PublicationPlace) and is_set(Place) then&lt;br /&gt;
		PublicationPlace = Place;							-- promote |place= (|location=) to |publication-place&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if PublicationPlace == Place then Place = &#039;&#039;; end		-- don&#039;t need both if they are the same&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	Parameter remapping for cite encyclopedia:&lt;br /&gt;
	When the citation has these parameters:&lt;br /&gt;
		|encyclopedia and |title then map |title to |article and |encyclopedia to |title&lt;br /&gt;
		|encyclopedia and |article then map |encyclopedia to |title&lt;br /&gt;
		|encyclopedia then map |encyclopedia to |title&lt;br /&gt;
	&lt;br /&gt;
		|trans_title maps to |trans_chapter when |title is re-mapped&lt;br /&gt;
		|url maps to |chapterurl when |title is remapped&lt;br /&gt;
	&lt;br /&gt;
	All other combinations of |encyclopedia, |title, and |article are not modified&lt;br /&gt;
	&lt;br /&gt;
	]]&lt;br /&gt;
&lt;br /&gt;
local Encyclopedia = A[&#039;Encyclopedia&#039;];&lt;br /&gt;
&lt;br /&gt;
	if ( config.CitationClass == &amp;quot;encyclopaedia&amp;quot; ) or ( config.CitationClass == &amp;quot;citation&amp;quot; and is_set (Encyclopedia)) then	-- test code for citation&lt;br /&gt;
		if is_set(Periodical) then												-- Periodical is set when |encyclopedia is set&lt;br /&gt;
			if is_set(Title) or is_set (ScriptTitle) then&lt;br /&gt;
				if not is_set(Chapter) then&lt;br /&gt;
					Chapter = Title;											-- |encyclopedia and |title are set so map |title to |article and |encyclopedia to |title&lt;br /&gt;
					ScriptChapter = ScriptTitle;&lt;br /&gt;
					TransChapter = TransTitle;&lt;br /&gt;
					ChapterURL = URL;&lt;br /&gt;
					ChapterUrlAccess = UrlAccess;&lt;br /&gt;
&lt;br /&gt;
					if not is_set (ChapterURL) and is_set (TitleLink) then&lt;br /&gt;
						Chapter = make_wikilink (TitleLink, Chapter);&lt;br /&gt;
					end&lt;br /&gt;
					Title = Periodical;&lt;br /&gt;
					ChapterFormat = Format;&lt;br /&gt;
					Periodical = &#039;&#039;;											-- redundant so unset&lt;br /&gt;
					TransTitle = &#039;&#039;;&lt;br /&gt;
					URL = &#039;&#039;;&lt;br /&gt;
					Format = &#039;&#039;;&lt;br /&gt;
					TitleLink = &#039;&#039;;&lt;br /&gt;
					ScriptTitle = &#039;&#039;;&lt;br /&gt;
				end&lt;br /&gt;
			else																-- |title not set&lt;br /&gt;
				Title = Periodical;												-- |encyclopedia set and |article set or not set so map |encyclopedia to |title&lt;br /&gt;
				Periodical = &#039;&#039;;												-- redundant so unset&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Special case for cite techreport.&lt;br /&gt;
	if (config.CitationClass == &amp;quot;techreport&amp;quot;) then								-- special case for cite techreport&lt;br /&gt;
		if is_set(A[&#039;Number&#039;]) then												-- cite techreport uses &#039;number&#039;, which other citations alias to &#039;issue&#039;&lt;br /&gt;
			if not is_set(ID) then												-- can we use ID for the &amp;quot;number&amp;quot;?&lt;br /&gt;
				ID = A[&#039;Number&#039;];												-- yes, use it&lt;br /&gt;
			else																-- ID has a value so emit error message&lt;br /&gt;
				table.insert( z.message_tail, { set_error(&#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;id&#039;) .. &#039; și &#039; .. wrap_style (&#039;parameter&#039;, &#039;number&#039;)}, true )});&lt;br /&gt;
			end&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- special case for cite mailing list&lt;br /&gt;
	if (config.CitationClass == &amp;quot;mailinglist&amp;quot;) then&lt;br /&gt;
		Periodical = A [&#039;MailingList&#039;];&lt;br /&gt;
	elseif &#039;mailinglist&#039; == A:ORIGIN(&#039;Periodical&#039;) then&lt;br /&gt;
		Periodical = &#039;&#039;;														-- unset because mailing list is only used for cite mailing list&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddity that is {{cite conference}}, before generation of COinS data.&lt;br /&gt;
	if &#039;conference&#039; == config.CitationClass then&lt;br /&gt;
		if is_set(BookTitle) then&lt;br /&gt;
			Chapter = Title;&lt;br /&gt;
--			ChapterLink = TitleLink;											-- |chapterlink= is deprecated&lt;br /&gt;
			ChapterURL = URL;&lt;br /&gt;
			ChapterUrlAccess = UrlAccess;&lt;br /&gt;
			ChapterURLorigin = URLorigin;&lt;br /&gt;
			URLorigin = &#039;&#039;;&lt;br /&gt;
			ChapterFormat = Format;&lt;br /&gt;
			TransChapter = TransTitle;&lt;br /&gt;
			Title = BookTitle;&lt;br /&gt;
			Format = &#039;&#039;;&lt;br /&gt;
--			TitleLink = &#039;&#039;;&lt;br /&gt;
			TransTitle = &#039;&#039;;&lt;br /&gt;
			URL = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	elseif &#039;speech&#039; ~= config.CitationClass then&lt;br /&gt;
		Conference = &#039;&#039;;														-- not cite conference or cite speech so make sure this is empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- cite map oddities&lt;br /&gt;
	local Cartography = &amp;quot;&amp;quot;;&lt;br /&gt;
	local Scale = &amp;quot;&amp;quot;;&lt;br /&gt;
	local Sheet = A[&#039;Sheet&#039;] or &#039;&#039;;&lt;br /&gt;
	local Sheets = A[&#039;Sheets&#039;] or &#039;&#039;;&lt;br /&gt;
	if config.CitationClass == &amp;quot;map&amp;quot; then&lt;br /&gt;
		Chapter = A[&#039;Map&#039;];&lt;br /&gt;
		ChapterURL = A[&#039;MapURL&#039;];&lt;br /&gt;
		ChapterUrlAccess = UrlAccess;&lt;br /&gt;
		TransChapter = A[&#039;TransMap&#039;];&lt;br /&gt;
		ChapterURLorigin = A:ORIGIN(&#039;MapURL&#039;);&lt;br /&gt;
		ChapterFormat = A[&#039;MapFormat&#039;];&lt;br /&gt;
		&lt;br /&gt;
		Cartography = A[&#039;Cartography&#039;];&lt;br /&gt;
		if is_set( Cartography ) then&lt;br /&gt;
			Cartography = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;cartography&#039;, Cartography, use_lowercase);&lt;br /&gt;
		end		&lt;br /&gt;
		Scale = A[&#039;Scale&#039;];&lt;br /&gt;
		if is_set( Scale ) then&lt;br /&gt;
			Scale = sepc .. &amp;quot; &amp;quot; .. Scale;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.&lt;br /&gt;
	if &#039;episode&#039; == config.CitationClass or &#039;serial&#039; == config.CitationClass then&lt;br /&gt;
		local AirDate = A[&#039;AirDate&#039;];&lt;br /&gt;
		local SeriesLink = A[&#039;SeriesLink&#039;];&lt;br /&gt;
&lt;br /&gt;
		link_title_ok (SeriesLink, A:ORIGIN (&#039;SeriesLink&#039;), Series, &#039;series&#039;);	-- check for wikimarkup in |series-link= or wikimarkup in |series= when |series-link= is set&lt;br /&gt;
&lt;br /&gt;
		local Network = A[&#039;Network&#039;];&lt;br /&gt;
		local Station = A[&#039;Station&#039;];&lt;br /&gt;
		local s, n = {}, {};&lt;br /&gt;
																				-- do common parameters first&lt;br /&gt;
		if is_set(Network) then table.insert(n, Network); end&lt;br /&gt;
		if is_set(Station) then table.insert(n, Station); end&lt;br /&gt;
		ID = table.concat(n, sepc .. &#039; &#039;);&lt;br /&gt;
		&lt;br /&gt;
		if not is_set (Date) and is_set (AirDate) then							-- promote airdate to date&lt;br /&gt;
			Date = AirDate;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if &#039;episode&#039; == config.CitationClass then								-- handle the oddities that are strictly {{cite episode}}&lt;br /&gt;
			local Season = A[&#039;Season&#039;];&lt;br /&gt;
			local SeriesNumber = A[&#039;SeriesNumber&#039;];&lt;br /&gt;
&lt;br /&gt;
			if is_set (Season) and is_set (SeriesNumber) then					-- these are mutually exclusive so if both are set&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;season&#039;) .. &#039; și &#039; .. wrap_style (&#039;parameter&#039;, &#039;seriesno&#039;)}, true ) } );		-- add error message&lt;br /&gt;
				SeriesNumber = &#039;&#039;;												-- unset; prefer |season= over |seriesno=&lt;br /&gt;
			end&lt;br /&gt;
																				-- assemble a table of parts concatenated later into Series&lt;br /&gt;
			if is_set(Season) then table.insert(s, wrap_msg (&#039;season&#039;, Season, use_lowercase)); end&lt;br /&gt;
			if is_set(SeriesNumber) then table.insert(s, wrap_msg (&#039;series&#039;, SeriesNumber, use_lowercase)); end&lt;br /&gt;
			if is_set(Issue) then table.insert(s, wrap_msg (&#039;episode&#039;, Issue, use_lowercase)); end&lt;br /&gt;
			Issue = &#039;&#039;;															-- unset because this is not a unique parameter&lt;br /&gt;
	&lt;br /&gt;
			Chapter = Title;													-- promote title parameters to chapter&lt;br /&gt;
			ScriptChapter = ScriptTitle;&lt;br /&gt;
			ChapterLink = TitleLink;											-- alias episodelink&lt;br /&gt;
			TransChapter = TransTitle;&lt;br /&gt;
			ChapterURL = URL;&lt;br /&gt;
			ChapterUrlAccess = UrlAccess;&lt;br /&gt;
			ChapterURLorigin = A:ORIGIN(&#039;URL&#039;);&lt;br /&gt;
			&lt;br /&gt;
			Title = Series;														-- promote series to title&lt;br /&gt;
			TitleLink = SeriesLink;&lt;br /&gt;
			Series = table.concat(s, sepc .. &#039; &#039;);								-- this is concatenation of season, seriesno, episode number&lt;br /&gt;
&lt;br /&gt;
			if is_set (ChapterLink) and not is_set (ChapterURL) then			-- link but not URL&lt;br /&gt;
				Chapter = make_wikilink (ChapterLink, Chapter);&lt;br /&gt;
			elseif is_set (ChapterLink) and is_set (ChapterURL) then			-- if both are set, URL links episode;&lt;br /&gt;
				Series = make_wikilink (ChapterLink, Series);&lt;br /&gt;
			end&lt;br /&gt;
			URL = &#039;&#039;;															-- unset&lt;br /&gt;
			TransTitle = &#039;&#039;;&lt;br /&gt;
			ScriptTitle = &#039;&#039;;&lt;br /&gt;
			&lt;br /&gt;
		else																	-- now oddities that are cite serial&lt;br /&gt;
			Issue = &#039;&#039;;															-- unset because this parameter no longer supported by the citation/core version of cite serial&lt;br /&gt;
			Chapter = A[&#039;Episode&#039;];												-- TODO: make |episode= available to cite episode someday?&lt;br /&gt;
			if is_set (Series) and is_set (SeriesLink) then&lt;br /&gt;
				Series = make_wikilink (SeriesLink, Series);&lt;br /&gt;
			end&lt;br /&gt;
			Series = wrap_style (&#039;italic-title&#039;, Series);						-- series is italicized&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
	-- end of {{cite episode}} stuff&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, before generation of COinS data.&lt;br /&gt;
	do&lt;br /&gt;
		if in_array (config.CitationClass, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then&lt;br /&gt;
			if not is_set (ID_list[config.CitationClass:upper()]) then			-- |arxiv= or |eprint= required for cite arxiv; |biorxiv= &amp;amp; |citeseerx= required for their templates&lt;br /&gt;
				table.insert( z.message_tail, { set_error( config.CitationClass .. &#039;_missing&#039;, {}, true ) } );		-- add error message&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if &#039;arxiv&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;arXiv&#039;;											-- set to arXiv for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if &#039;biorxiv&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;bioRxiv&#039;;											-- set to bioRxiv for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if &#039;citeseerx&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;CiteSeerX&#039;;										-- set to CiteSeerX for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- handle type parameter for those CS1 citations that have default values&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;AV-media-notes&amp;quot;, &amp;quot;interview&amp;quot;, &amp;quot;mailinglist&amp;quot;, &amp;quot;map&amp;quot;, &amp;quot;podcast&amp;quot;, &amp;quot;pressrelease&amp;quot;, &amp;quot;report&amp;quot;, &amp;quot;techreport&amp;quot;, &amp;quot;thesis&amp;quot;}) then&lt;br /&gt;
		TitleType = set_titletype (config.CitationClass, TitleType);&lt;br /&gt;
		if is_set(Degree) and &amp;quot;Thesis&amp;quot; == TitleType then						-- special case for cite thesis&lt;br /&gt;
			TitleType = cfg.title_types [&#039;thesis&#039;]:lower() .. &#039; de &#039; .. Degree;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(TitleType) then													-- if type parameter is specified&lt;br /&gt;
		TitleType = substitute( cfg.messages[&#039;type&#039;], TitleType);				-- display it in parentheses&lt;br /&gt;
	-- TODO: Hack on TitleType to fix bunched parentheses problem&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- legacy: promote PublicationDate to Date if neither Date nor Year are set.&lt;br /&gt;
	if not is_set (Date) then&lt;br /&gt;
		Date = Year;															-- promote Year to Date&lt;br /&gt;
		Year = nil;																-- make nil so Year as empty string isn&#039;t used for CITEREF&lt;br /&gt;
		if not is_set (Date) and is_set(PublicationDate) then					-- use PublicationDate when |date= and |year= are not set&lt;br /&gt;
			Date = PublicationDate;												-- promote PublicationDate to Date&lt;br /&gt;
			PublicationDate = &#039;&#039;;												-- unset, no longer needed&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if PublicationDate == Date then PublicationDate = &#039;&#039;; end					-- if PublicationDate is same as Date, don&#039;t display in rendered citation&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where&lt;br /&gt;
	we get the date used in the metadata.&lt;br /&gt;
	&lt;br /&gt;
	Date validation supporting code is in Module:Citation/CS1/Date_validation&lt;br /&gt;
	]]&lt;br /&gt;
	do	-- create defined block to contain local variables error_message, date_parameters_list, mismatch&lt;br /&gt;
		local error_message = &#039;&#039;;&lt;br /&gt;
																				-- AirDate has been promoted to Date so not necessary to check it&lt;br /&gt;
		local date_parameters_list = {[&#039;access-date&#039;]=AccessDate, [&#039;archive-date&#039;]=ArchiveDate, [&#039;date&#039;]=Date, [&#039;doi-broken-date&#039;]=DoiBroken,&lt;br /&gt;
				[&#039;embargo&#039;]=Embargo, [&#039;lay-date&#039;]=LayDate, [&#039;publication-date&#039;]=PublicationDate, [&#039;year&#039;]=Year};&lt;br /&gt;
&lt;br /&gt;
		anchor_year, Embargo, error_message = dates(date_parameters_list, COinS_date);&lt;br /&gt;
&lt;br /&gt;
		if is_set (Year) and is_set (Date) then									-- both |date= and |year= not normally needed; &lt;br /&gt;
			local mismatch = year_date_check (Year, Date)&lt;br /&gt;
			if 0 == mismatch then												-- |year= does not match a year-value in |date=&lt;br /&gt;
				if is_set (error_message) then									-- if there is already an error message&lt;br /&gt;
					error_message = error_message .. &#039;, &#039;;						-- tack on this additional message&lt;br /&gt;
				end&lt;br /&gt;
				error_message = error_message .. &#039;&amp;amp;#124;year= / &amp;amp;#124;date= mismatch&#039;;&lt;br /&gt;
			elseif 1 == mismatch then											-- |year= matches year-value in |date=&lt;br /&gt;
				add_maint_cat (&#039;date_year&#039;);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if not is_set(error_message) then										-- error free dates only&lt;br /&gt;
			local modified = false;												-- flag&lt;br /&gt;
			&lt;br /&gt;
			modified = reformat_dates (date_parameters_list, DF, false);	-- reformat to DF format, use long month names if appropriate&lt;br /&gt;
&lt;br /&gt;
			if true == date_hyphen_to_dash (date_parameters_list) then			-- convert hyphens to dashes where appropriate&lt;br /&gt;
				modified = true;&lt;br /&gt;
				add_maint_cat (&#039;date_format&#039;);									-- hyphens were converted so add maint category&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
	-- for those wikis that can and want to have English date names translated to the local language,&lt;br /&gt;
	-- uncomment these three lines.  Not supported by en.wiki (for obvious reasons)&lt;br /&gt;
--			if date_name_xlate (date_parameters_list) then&lt;br /&gt;
--				modified = true;&lt;br /&gt;
--			end&lt;br /&gt;
&lt;br /&gt;
			if modified then													-- if the date_parameters_list values were modified&lt;br /&gt;
				AccessDate = date_parameters_list[&#039;access-date&#039;];				-- overwrite date holding parameters with modified values&lt;br /&gt;
				ArchiveDate = date_parameters_list[&#039;archive-date&#039;];&lt;br /&gt;
				Date = date_parameters_list[&#039;date&#039;];&lt;br /&gt;
				DoiBroken = date_parameters_list[&#039;doi-broken-date&#039;];&lt;br /&gt;
				LayDate = date_parameters_list[&#039;lay-date&#039;];&lt;br /&gt;
				PublicationDate = date_parameters_list[&#039;publication-date&#039;];&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;bad_date&#039;, {error_message}, true ) } );	-- add this error message&lt;br /&gt;
		end&lt;br /&gt;
	end	-- end of do&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddity that is {{cite journal}} with |pmc= set and |url= not set.  Do this after date check but before COInS.&lt;br /&gt;
	-- Here we unset Embargo if PMC not embargoed (|embargo= not set in the citation) or if the embargo time has expired. Otherwise, holds embargo date&lt;br /&gt;
	Embargo = is_embargoed (Embargo);&lt;br /&gt;
&lt;br /&gt;
	if config.CitationClass == &amp;quot;journal&amp;quot; and not is_set(URL) and is_set(ID_list[&#039;PMC&#039;]) then&lt;br /&gt;
		if not is_set (Embargo) then											-- if not embargoed or embargo has expired&lt;br /&gt;
			URL=cfg.id_handlers[&#039;PMC&#039;].prefix .. ID_list[&#039;PMC&#039;];				-- set url to be the same as the PMC external link if not embargoed&lt;br /&gt;
			URLorigin = cfg.id_handlers[&#039;PMC&#039;].parameters[1];					-- set URLorigin to parameter name for use in error message if citation is missing a |title=&lt;br /&gt;
			if is_set(AccessDate) then											-- access date requires |url=; pmc created url is not |url=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;accessdate_missing_url&#039;, {}, true ) } );&lt;br /&gt;
				AccessDate = &#039;&#039;;												-- unset&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- At this point fields may be nil if they weren&#039;t specified in the template use.  We can use that fact.&lt;br /&gt;
	-- Test if citation has no title&lt;br /&gt;
	if	not is_set(Title) and&lt;br /&gt;
		not is_set(TransTitle) and&lt;br /&gt;
		not is_set(ScriptTitle) then&lt;br /&gt;
			if &#039;episode&#039; == config.CitationClass then							-- special case for cite episode; TODO: is there a better way to do this?&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;citation_missing_title&#039;, {&#039;series&#039;}, true ) } );&lt;br /&gt;
			else&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;citation_missing_title&#039;, {&#039;title&#039;}, true ) } );&lt;br /&gt;
			end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if &#039;none&#039; == Title and in_array (config.CitationClass, {&#039;journal&#039;, &#039;citation&#039;}) and is_set (Periodical) and &#039;journal&#039; == A:ORIGIN(&#039;Periodical&#039;) then	-- special case for journal cites&lt;br /&gt;
		Title = &#039;&#039;;																-- set title to empty string&lt;br /&gt;
		add_maint_cat (&#039;untitled&#039;);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	check_for_url ({															-- add error message when any of these parameters contains a URL&lt;br /&gt;
		[&#039;title&#039;]=Title,&lt;br /&gt;
		[A:ORIGIN(&#039;Chapter&#039;)]=Chapter,&lt;br /&gt;
		[A:ORIGIN(&#039;Periodical&#039;)]=Periodical,&lt;br /&gt;
		[A:ORIGIN(&#039;PublisherName&#039;)] = PublisherName&lt;br /&gt;
		});&lt;br /&gt;
&lt;br /&gt;
	-- COinS metadata (see &amp;lt;http://ocoins.info/&amp;gt;) for automated parsing of citation information.&lt;br /&gt;
	-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that&lt;br /&gt;
	-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title&lt;br /&gt;
	-- is the article title, and Chapter is a section within the article.  So, we remap &lt;br /&gt;
	&lt;br /&gt;
	local coins_chapter = Chapter;												-- default assuming that remapping not required&lt;br /&gt;
	local coins_title = Title;													-- et tu&lt;br /&gt;
	if &#039;encyclopaedia&#039; == config.CitationClass or (&#039;citation&#039; == config.CitationClass and is_set (Encyclopedia)) then&lt;br /&gt;
		if is_set (Chapter) and is_set (Title) and is_set (Periodical) then		-- if all are used then&lt;br /&gt;
			coins_chapter = Title;												-- remap&lt;br /&gt;
			coins_title = Periodical;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local coins_author = a;														-- default for coins rft.au &lt;br /&gt;
	if 0 &amp;lt; #c then																-- but if contributor list&lt;br /&gt;
		coins_author = c;														-- use that instead&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- this is the function call to COinS()&lt;br /&gt;
	local OCinSoutput = COinS({&lt;br /&gt;
		[&#039;Periodical&#039;] = Periodical,&lt;br /&gt;
		[&#039;Encyclopedia&#039;] = Encyclopedia,&lt;br /&gt;
		[&#039;Chapter&#039;] = make_coins_title (coins_chapter, ScriptChapter),			-- Chapter and ScriptChapter stripped of bold / italic wikimarkup&lt;br /&gt;
		[&#039;Degree&#039;] = Degree;													-- cite thesis only&lt;br /&gt;
		[&#039;Title&#039;] = make_coins_title (coins_title, ScriptTitle),				-- Title and ScriptTitle stripped of bold / italic wikimarkup&lt;br /&gt;
		[&#039;PublicationPlace&#039;] = PublicationPlace,&lt;br /&gt;
		[&#039;Date&#039;] = COinS_date.rftdate,											-- COinS_date has correctly formatted date if Date is valid;&lt;br /&gt;
		[&#039;Season&#039;] = COinS_date.rftssn,&lt;br /&gt;
		[&#039;Chron&#039;] =  COinS_date.rftchron or (not COinS_date.rftdate and Date) or &#039;&#039;,	-- chron but if not set and invalid date format use Date; keep this last bit?&lt;br /&gt;
		[&#039;Series&#039;] = Series,&lt;br /&gt;
		[&#039;Volume&#039;] = Volume,&lt;br /&gt;
		[&#039;Issue&#039;] = Issue,&lt;br /&gt;
		[&#039;Pages&#039;] = get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At}, 5)),				-- pages stripped of external links&lt;br /&gt;
		[&#039;Edition&#039;] = Edition,&lt;br /&gt;
		[&#039;PublisherName&#039;] = PublisherName,&lt;br /&gt;
		[&#039;URL&#039;] = first_set ({ChapterURL, URL}, 2),&lt;br /&gt;
		[&#039;Authors&#039;] = coins_author,&lt;br /&gt;
		[&#039;ID_list&#039;] = ID_list,&lt;br /&gt;
		[&#039;RawPage&#039;] = this_page.prefixedText,&lt;br /&gt;
	}, config.CitationClass);&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, and {{cite citeseerx}} AFTER generation of COinS data.&lt;br /&gt;
	if in_array (config.CitationClass, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then	-- we have set rft.jtitle in COinS to arXiv, bioRxiv, or CiteSeerX now unset so it isn&#039;t displayed&lt;br /&gt;
		Periodical = &#039;&#039;;														-- periodical not allowed in these templates; if article has been published, use cite journal&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- special case for cite newsgroup.  Do this after COinS because we are modifying Publishername to include some static text&lt;br /&gt;
	if &#039;newsgroup&#039; == config.CitationClass then&lt;br /&gt;
		if is_set (PublisherName) then&lt;br /&gt;
			PublisherName = substitute (cfg.messages[&#039;newsgroup&#039;], external_link( &#039;news:&#039; .. PublisherName, PublisherName, A:ORIGIN(&#039;PublisherName&#039;), nil ));&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	-- Now perform various field substitutions.&lt;br /&gt;
	-- We also add leading spaces and surrounding markup and punctuation to the&lt;br /&gt;
	-- various parts of the citation, but only when they are non-nil.&lt;br /&gt;
	local EditorCount;															-- used only for choosing {ed.) or (eds.) annotation at end of editor name-list&lt;br /&gt;
	do&lt;br /&gt;
		local last_first_list;&lt;br /&gt;
		local control = { &lt;br /&gt;
			format = NameListFormat,											-- empty string or &#039;vanc&#039;&lt;br /&gt;
			maximum = nil,														-- as if display-authors or display-editors not set&lt;br /&gt;
			lastauthoramp = LastAuthorAmp,&lt;br /&gt;
			page_name = this_page.text,											-- get current page name so that we don&#039;t wikilink to it via editorlinkn&lt;br /&gt;
			mode = Mode&lt;br /&gt;
		};&lt;br /&gt;
&lt;br /&gt;
		do																		-- do editor name list first because the now unsupported coauthors used to modify control table&lt;br /&gt;
			control.maximum , editor_etal = get_display_authors_editors (A[&#039;DisplayEditors&#039;], #e, &#039;editors&#039;, editor_etal);&lt;br /&gt;
			last_first_list, EditorCount = list_people(control, e, editor_etal);&lt;br /&gt;
&lt;br /&gt;
			if is_set (Editors) then&lt;br /&gt;
				if editor_etal then&lt;br /&gt;
					Editors = Editors .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];			-- add et al. to editors parameter beause |display-editors=etal&lt;br /&gt;
					EditorCount = 2;											-- with et al., |editors= is multiple names; spoof to display (eds.) annotation&lt;br /&gt;
				else&lt;br /&gt;
					EditorCount = 2;											-- we don&#039;t know but assume |editors= is multiple names; spoof to display (eds.) annotation&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				Editors = last_first_list;										-- either an author name list or an empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if 1 == EditorCount and (true == editor_etal or 1 &amp;lt; #e) then		-- only one editor displayed but includes etal then &lt;br /&gt;
				EditorCount = 2;												-- spoof to display (eds.) annotation&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do interviewers&lt;br /&gt;
			control.maximum = #interviewers_list;							-- number of interviewerss&lt;br /&gt;
			Interviewers = list_people(control, interviewers_list, false);	-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do translators&lt;br /&gt;
			control.maximum = #t;												-- number of translators&lt;br /&gt;
			Translators = list_people(control, t, false);						-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do contributors&lt;br /&gt;
			control.maximum = #c;												-- number of contributors&lt;br /&gt;
			Contributors = list_people(control, c, false);						-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do authors&lt;br /&gt;
			control.maximum , author_etal = get_display_authors_editors (A[&#039;DisplayAuthors&#039;], #a, &#039;authors&#039;, author_etal);&lt;br /&gt;
&lt;br /&gt;
			last_first_list = list_people(control, a, author_etal);&lt;br /&gt;
&lt;br /&gt;
			if is_set (Authors) then&lt;br /&gt;
				Authors, author_etal = name_has_etal (Authors, author_etal, false);	-- find and remove variations on et al.&lt;br /&gt;
				if author_etal then&lt;br /&gt;
					Authors = Authors .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];			-- add et al. to authors parameter&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				Authors = last_first_list;										-- either an author name list or an empty string&lt;br /&gt;
			end&lt;br /&gt;
		end																		-- end of do&lt;br /&gt;
	&lt;br /&gt;
		if is_set (Authors) and is_set (Collaboration) then&lt;br /&gt;
			Authors = Authors .. &#039; (&#039; .. Collaboration .. &#039;)&#039;;					-- add collaboration after et al.&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- apply |[xx-]format= styling; at the end, these parameters hold correctly styled format annotation,&lt;br /&gt;
	-- an error message if the associated url is not set, or an empty string for concatenation&lt;br /&gt;
	ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, &#039;archive-format&#039;, &#039;archive-url&#039;);&lt;br /&gt;
	ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, &#039;conference-format&#039;, &#039;conference-url&#039;);&lt;br /&gt;
	Format = style_format (Format, URL, &#039;format&#039;, &#039;url&#039;);&lt;br /&gt;
	LayFormat = style_format (LayFormat, LayURL, &#039;lay-format&#039;, &#039;lay-url&#039;);&lt;br /&gt;
	TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, &#039;transcript-format&#039;, &#039;transcripturl&#039;);&lt;br /&gt;
&lt;br /&gt;
	-- special case for chapter format so no error message or cat when chapter not supported&lt;br /&gt;
	if not (in_array(config.CitationClass, {&#039;web&#039;, &#039;news&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia))) then&lt;br /&gt;
			ChapterFormat = style_format (ChapterFormat, ChapterURL, &#039;chapter-format&#039;, &#039;chapter-url&#039;);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set(URL) then&lt;br /&gt;
		if in_array(config.CitationClass, {&amp;quot;web&amp;quot;,&amp;quot;podcast&amp;quot;, &amp;quot;mailinglist&amp;quot;}) then	-- |url= required for cite web, cite podcast, and cite mailinglist&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;cite_web_url&#039;, {}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- do we have |accessdate= without either |url= or |chapter-url=?&lt;br /&gt;
		if is_set(AccessDate) and not is_set(ChapterURL)then					-- ChapterURL may be set when URL is not set;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;accessdate_missing_url&#039;, {}, true ) } );&lt;br /&gt;
			AccessDate = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local OriginalURL, OriginalURLorigin, OriginalFormat, OriginalAccess;&lt;br /&gt;
	DeadURL = DeadURL:lower();													-- used later when assembling archived text&lt;br /&gt;
	if is_set( ArchiveURL ) then&lt;br /&gt;
		if is_set (ChapterURL) then 											-- URL not set so if chapter-url is set apply archive url to it&lt;br /&gt;
			OriginalURL = ChapterURL;											-- save copy of source chapter&#039;s url for archive text&lt;br /&gt;
			OriginalURLorigin = ChapterURLorigin;								-- name of chapter-url parameter for error messages&lt;br /&gt;
			OriginalFormat = ChapterFormat;										-- and original |format=&lt;br /&gt;
			if &#039;no&#039; ~= DeadURL then&lt;br /&gt;
				ChapterURL = ArchiveURL											-- swap-in the archive&#039;s url&lt;br /&gt;
				ChapterURLorigin = A:ORIGIN(&#039;ArchiveURL&#039;)						-- name of archive-url parameter for error messages&lt;br /&gt;
				ChapterFormat = ArchiveFormat or &#039;&#039;;							-- swap in archive&#039;s format&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set (URL) then&lt;br /&gt;
			OriginalURL = URL;													-- save copy of original source URL&lt;br /&gt;
			OriginalURLorigin = URLorigin;										-- name of url parameter for error messages&lt;br /&gt;
			OriginalFormat = Format; 											-- and original |format=&lt;br /&gt;
			OriginalAccess = UrlAccess;&lt;br /&gt;
			if &#039;no&#039; ~= DeadURL then												-- if URL set then archive-url applies to it&lt;br /&gt;
				URL = ArchiveURL												-- swap-in the archive&#039;s url&lt;br /&gt;
				URLorigin = A:ORIGIN(&#039;ArchiveURL&#039;)								-- name of archive url parameter for error messages&lt;br /&gt;
				Format = ArchiveFormat or &#039;&#039;;									-- swap in archive&#039;s format&lt;br /&gt;
				UrlAccess = nil;												-- restricted access levels do not make sense for archived urls&lt;br /&gt;
			end&lt;br /&gt;
 		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if in_array(config.CitationClass, {&#039;web&#039;,&#039;news&#039;,&#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or	-- if any of the &#039;periodical&#039; cites except encyclopedia&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) then&lt;br /&gt;
			local chap_param;&lt;br /&gt;
			if is_set (Chapter) then											-- get a parameter name from one of these chapter related meta-parameters&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;Chapter&#039;)&lt;br /&gt;
			elseif is_set (TransChapter) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;TransChapter&#039;)&lt;br /&gt;
			elseif is_set (ChapterURL) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ChapterURL&#039;)&lt;br /&gt;
			elseif is_set (ScriptChapter) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ScriptChapter&#039;)&lt;br /&gt;
			else is_set (ChapterFormat)&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ChapterFormat&#039;)&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if is_set (chap_param) then											-- if we found one&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;chapter_ignored&#039;, {chap_param}, true ) } );		-- add error message&lt;br /&gt;
				Chapter = &#039;&#039;;													-- and set them to empty string to be safe with concatenation&lt;br /&gt;
				TransChapter = &#039;&#039;;&lt;br /&gt;
				ChapterURL = &#039;&#039;;&lt;br /&gt;
				ScriptChapter = &#039;&#039;;&lt;br /&gt;
				ChapterFormat = &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
	else																		-- otherwise, format chapter / article title&lt;br /&gt;
		local no_quotes = false;												-- default assume that we will be quoting the chapter parameter value&lt;br /&gt;
		if is_set (Contribution) and 0 &amp;lt; #c then								-- if this is a contribution with contributor(s)&lt;br /&gt;
			if in_array (Contribution:lower(), cfg.keywords.contribution) then	-- and a generic contribution title&lt;br /&gt;
				no_quotes = true;												-- then render it unquoted&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		Chapter = format_chapter_title (ScriptChapter, Chapter, TransChapter, ChapterURL, ChapterURLorigin, no_quotes, ChapterUrlAccess);		-- Contribution is also in Chapter&lt;br /&gt;
		if is_set (Chapter) then&lt;br /&gt;
			Chapter = Chapter .. ChapterFormat ;&lt;br /&gt;
			if &#039;map&#039; == config.CitationClass and is_set (TitleType) then&lt;br /&gt;
				Chapter = Chapter .. &#039; &#039; .. TitleType;							-- map annotation here; not after title&lt;br /&gt;
			end&lt;br /&gt;
			Chapter = Chapter.. sepc .. &#039; &#039;;&lt;br /&gt;
		elseif is_set (ChapterFormat) then										-- |chapter= not set but |chapter-format= is so ...&lt;br /&gt;
			Chapter = ChapterFormat .. sepc .. &#039; &#039;;								-- ... ChapterFormat has error message, we want to see it&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Format main title.&lt;br /&gt;
	Title = mw.ustring.gsub(Title, &#039;%&#039;..sepc..&#039;$&#039;, &#039;&#039;);							-- remove any trailing separator character&lt;br /&gt;
	if is_set(TitleLink) and is_set(Title) then&lt;br /&gt;
		Title = make_wikilink (TitleLink, Title);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if in_array(config.CitationClass, {&#039;web&#039;, &#039;news&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;mailinglist&#039;, &#039;interview&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) or&lt;br /&gt;
		(&#039;map&#039; == config.CitationClass and is_set (Periodical)) then			-- special case for cite map when the map is in a periodical treat as an article&lt;br /&gt;
			Title = kern_quotes (Title);										-- if necessary, separate title&#039;s leading and trailing quote marks from Module provided quote marks&lt;br /&gt;
			Title = wrap_style (&#039;quoted-title&#039;, Title);&lt;br /&gt;
			Title = script_concatenate (Title, ScriptTitle);					-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
			TransTitle= wrap_style (&#039;trans-quoted-title&#039;, TransTitle );&lt;br /&gt;
	elseif &#039;report&#039; == config.CitationClass then								-- no styling for cite report&lt;br /&gt;
		Title = script_concatenate (Title, ScriptTitle);						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
		TransTitle= wrap_style (&#039;trans-quoted-title&#039;, TransTitle );				-- for cite report, use this form for trans-title&lt;br /&gt;
	else&lt;br /&gt;
		Title = wrap_style (&#039;italic-title&#039;, Title);&lt;br /&gt;
		Title = script_concatenate (Title, ScriptTitle);						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
		TransTitle = wrap_style (&#039;trans-italic-title&#039;, TransTitle);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local TransError = &amp;quot;&amp;quot;;&lt;br /&gt;
	if is_set(TransTitle) then&lt;br /&gt;
		if is_set(Title) then&lt;br /&gt;
			TransTitle = &amp;quot; &amp;quot; .. TransTitle;&lt;br /&gt;
		else&lt;br /&gt;
			TransError = &amp;quot; &amp;quot; .. set_error( &#039;trans_missing_title&#039;, {&#039;title&#039;} );&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(Title) then&lt;br /&gt;
		if not is_set(TitleLink) and is_set(URL) then&lt;br /&gt;
			&lt;br /&gt;
			Title = external_link( URL, Title, URLorigin, UrlAccess ) .. TransTitle .. TransError .. Format;&lt;br /&gt;
			URL = &#039;&#039;;															-- unset these because no longer needed&lt;br /&gt;
			Format = &amp;quot;&amp;quot;;&lt;br /&gt;
		else&lt;br /&gt;
			Title = Title .. TransTitle .. TransError;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		Title = TransTitle .. TransError;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Place) then&lt;br /&gt;
		Place = &amp;quot; &amp;quot; .. wrap_msg (&#039;written&#039;, Place, use_lowercase) .. sepc .. &amp;quot; &amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (Conference) then&lt;br /&gt;
		if is_set (ConferenceURL) then&lt;br /&gt;
			Conference = external_link( ConferenceURL, Conference, ConferenceURLorigin, nil );&lt;br /&gt;
		end&lt;br /&gt;
		Conference = sepc .. &amp;quot; &amp;quot; .. Conference .. ConferenceFormat;&lt;br /&gt;
	elseif is_set(ConferenceURL) then&lt;br /&gt;
		Conference = sepc .. &amp;quot; &amp;quot; .. external_link( ConferenceURL, nil, ConferenceURLorigin, nil );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set(Position) then&lt;br /&gt;
		local Minutes = A[&#039;Minutes&#039;];&lt;br /&gt;
		local Time = A[&#039;Time&#039;];&lt;br /&gt;
&lt;br /&gt;
		if is_set(Minutes) then&lt;br /&gt;
			if is_set (Time) then&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;minutes&#039;) .. &#039; și &#039; .. wrap_style (&#039;parameter&#039;, &#039;time&#039;)}, true ) } );&lt;br /&gt;
			end&lt;br /&gt;
			Position = &amp;quot; &amp;quot; .. Minutes .. &amp;quot; &amp;quot; .. cfg.messages[&#039;minutes&#039;];&lt;br /&gt;
		else&lt;br /&gt;
			if is_set(Time) then&lt;br /&gt;
				local TimeCaption = A[&#039;TimeCaption&#039;]&lt;br /&gt;
				if not is_set(TimeCaption) then&lt;br /&gt;
					TimeCaption = cfg.messages[&#039;event&#039;];&lt;br /&gt;
					if sepc ~= &#039;.&#039; then&lt;br /&gt;
						TimeCaption = TimeCaption:lower();&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				Position = &amp;quot; &amp;quot; .. TimeCaption .. &amp;quot; &amp;quot; .. Time;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		Position = &amp;quot; &amp;quot; .. Position;&lt;br /&gt;
		At = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);&lt;br /&gt;
&lt;br /&gt;
	At = is_set(At) and (sepc .. &amp;quot; &amp;quot; .. At) or &amp;quot;&amp;quot;;&lt;br /&gt;
	Position = is_set(Position) and (sepc .. &amp;quot; &amp;quot; .. Position) or &amp;quot;&amp;quot;;&lt;br /&gt;
	if config.CitationClass == &#039;map&#039; then&lt;br /&gt;
		local Section = A[&#039;Section&#039;];&lt;br /&gt;
		local Sections = A[&#039;Sections&#039;];&lt;br /&gt;
		local Inset = A[&#039;Inset&#039;];&lt;br /&gt;
		&lt;br /&gt;
		if is_set( Inset ) then&lt;br /&gt;
			Inset = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;inset&#039;, Inset, use_lowercase);&lt;br /&gt;
		end			&lt;br /&gt;
&lt;br /&gt;
		if is_set( Sections ) then&lt;br /&gt;
			Section = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;sections&#039;, Sections, use_lowercase);&lt;br /&gt;
		elseif is_set( Section ) then&lt;br /&gt;
			Section = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;section&#039;, Section, use_lowercase);&lt;br /&gt;
		end&lt;br /&gt;
		At = At .. Inset .. Section;		&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	if is_set (Language) then&lt;br /&gt;
		Language = language_parameter (Language);								-- format, categories, name from ISO639-1, etc&lt;br /&gt;
	else&lt;br /&gt;
		Language=&amp;quot;&amp;quot;;															-- language not specified so make sure this is an empty string;&lt;br /&gt;
	--[[ TODO: need to extract the wrap_msg from language_parameter&lt;br /&gt;
	so that we can solve parentheses bunching problem with Format/Language/TitleType&lt;br /&gt;
	]]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Others = is_set(Others) and (sepc .. &amp;quot; &amp;quot; .. Others) or &amp;quot;&amp;quot;;&lt;br /&gt;
	&lt;br /&gt;
	if is_set (Translators) then&lt;br /&gt;
		Others = sepc .. &#039; &#039; .. wrap_msg (&#039;translated&#039;, Translators, use_lowercase) .. Others;&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (Interviewers) then&lt;br /&gt;
		Others = sepc .. &#039; &#039; .. wrap_msg (&#039;interview&#039;, Interviewers, use_lowercase) .. Others;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	TitleNote = is_set(TitleNote) and (sepc .. &amp;quot; &amp;quot; .. TitleNote) or &amp;quot;&amp;quot;;&lt;br /&gt;
	if is_set (Edition) then&lt;br /&gt;
		if Edition:match (&#039;%f[%a][Ee]d%.?$&#039;) or Edition:match (&#039;%f[%a][Ee]dition$&#039;) then&lt;br /&gt;
			add_maint_cat (&#039;extra_text&#039;, &#039;edition&#039;);&lt;br /&gt;
		end&lt;br /&gt;
		Edition = &amp;quot; &amp;quot; .. wrap_msg (&#039;edition&#039;, Edition);&lt;br /&gt;
	else&lt;br /&gt;
		Edition = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Series = is_set(Series) and (sepc .. &amp;quot; &amp;quot; .. Series) or &amp;quot;&amp;quot;;&lt;br /&gt;
		OrigYear = is_set(OrigYear) and (&amp;quot; [&amp;quot; .. OrigYear .. &amp;quot;]&amp;quot;) or &amp;quot;&amp;quot;;		-- TODO: presentation&lt;br /&gt;
&lt;br /&gt;
	Agency = is_set(Agency) and (sepc .. &amp;quot; &amp;quot; .. Agency) or &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	Volume = format_volume_issue (Volume, Issue, config.CitationClass, Periodical_origin, sepc, use_lowercase);&lt;br /&gt;
&lt;br /&gt;
	------------------------------------ totally unrelated data&lt;br /&gt;
	if is_set(Via) then&lt;br /&gt;
		Via = &amp;quot; &amp;quot; .. wrap_msg (&#039;via&#039;, Via);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Subscription implies paywall; Registration does not.  If both are used in a citation, the subscription required link&lt;br /&gt;
	note is displayed. There are no error messages for this condition.&lt;br /&gt;
	&lt;br /&gt;
	]]&lt;br /&gt;
	if is_set (SubscriptionRequired) then&lt;br /&gt;
		SubscriptionRequired = sepc .. &amp;quot; &amp;quot; .. cfg.messages[&#039;subscription&#039;];		-- subscription required message&lt;br /&gt;
	elseif is_set (RegistrationRequired) then&lt;br /&gt;
		SubscriptionRequired = sepc .. &amp;quot; &amp;quot; .. cfg.messages[&#039;registration&#039;];		-- registration required message&lt;br /&gt;
	else&lt;br /&gt;
		SubscriptionRequired = &#039;&#039;;												-- either or both might be set to something other than yes true y&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(AccessDate) then&lt;br /&gt;
		local retrv_text = &amp;quot; &amp;quot; .. cfg.messages[&#039;retrieved&#039;]&lt;br /&gt;
		AccessDate = mw.getCurrentFrame():preprocess(&amp;quot;{{#iferror:{{#time:j F Y|&amp;quot; .. AccessDate .. &amp;quot;}}|&amp;quot; .. AccessDate .. &amp;quot;}}&amp;quot;)&lt;br /&gt;
		AccessDate = nowrap_date (AccessDate);									-- wrap in nowrap span if date in appropriate format&lt;br /&gt;
		if (sepc ~= &amp;quot;.&amp;quot;) then retrv_text = retrv_text:lower() end				-- if mode is cs2, lower case&lt;br /&gt;
		AccessDate = substitute (retrv_text, AccessDate);						-- add retrieved text&lt;br /&gt;
&lt;br /&gt;
		AccessDate = substitute (cfg.presentation[&#039;accessdate&#039;], {sepc, AccessDate});	-- allow editors to hide accessdates&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(ID) then ID = sepc ..&amp;quot; &amp;quot;.. ID; end&lt;br /&gt;
   	if &amp;quot;thesis&amp;quot; == config.CitationClass and is_set(Docket) then&lt;br /&gt;
		ID = sepc ..&amp;quot; Docket &amp;quot;.. Docket .. ID;&lt;br /&gt;
	end&lt;br /&gt;
   	if &amp;quot;report&amp;quot; == config.CitationClass and is_set(Docket) then					-- for cite report when |docket= is set&lt;br /&gt;
		ID = sepc .. &#039; &#039; .. Docket;												-- overwrite ID even if |id= is set&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	ID_list = build_id_list( ID_list, {IdAccessLevels=ID_access_levels, DoiBroken = DoiBroken, ASINTLD = ASINTLD, IgnoreISBN = IgnoreISBN, Embargo=Embargo, Class = Class, ISBNLink = ISBNLink, ISSNLink = ISSNLink} );&lt;br /&gt;
&lt;br /&gt;
	if is_set(URL) then&lt;br /&gt;
		URL = &amp;quot; &amp;quot; .. external_link( URL, nil, URLorigin, UrlAccess );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Quote) then&lt;br /&gt;
		if Quote:sub(1,1) == &#039;&amp;quot;&#039; and Quote:sub(-1,-1) == &#039;&amp;quot;&#039; then				-- if first and last characters of quote are quote marks&lt;br /&gt;
			Quote = Quote:sub(2,-2);											-- strip them off&lt;br /&gt;
		end&lt;br /&gt;
		Quote = sepc ..&amp;quot; &amp;quot; .. wrap_style (&#039;quoted-text&#039;, Quote ); 				-- wrap in &amp;lt;q&amp;gt;...&amp;lt;/q&amp;gt; tags&lt;br /&gt;
		PostScript = &amp;quot;&amp;quot;;														-- cs1|2 does not supply terminal punctuation when |quote= is set&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local Archived&lt;br /&gt;
	if is_set(ArchiveURL) then&lt;br /&gt;
		if not is_set(ArchiveDate) then&lt;br /&gt;
			ArchiveDate = set_error(&#039;archive_missing_date&#039;);&lt;br /&gt;
		end&lt;br /&gt;
		if &amp;quot;no&amp;quot; == DeadURL then&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			Archived = sepc .. &amp;quot; &amp;quot; .. substitute( cfg.messages[&#039;archived-not-dead&#039;],&lt;br /&gt;
				{ external_link( ArchiveURL, arch_text, A:ORIGIN(&#039;ArchiveURL&#039;), nil ) .. ArchiveFormat, ArchiveDate } );&lt;br /&gt;
			if not is_set(OriginalURL) then&lt;br /&gt;
				Archived = Archived .. &amp;quot; &amp;quot; .. set_error(&#039;archive_missing_url&#039;);							   &lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set(OriginalURL) then											-- DeadURL is empty, &#039;yes&#039;, &#039;true&#039;, &#039;y&#039;, &#039;unfit&#039;, &#039;usurped&#039;&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived-dead&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			if in_array (DeadURL, {&#039;unfit&#039;, &#039;usurped&#039;, &#039;bot: unknown&#039;}) then&lt;br /&gt;
				Archived = sepc .. &amp;quot; &amp;quot; .. &#039;Arhivat din original în &#039; .. ArchiveDate;	-- format already styled&lt;br /&gt;
				if &#039;bot: unknown&#039; == DeadURL then&lt;br /&gt;
					add_maint_cat (&#039;bot:_unknown&#039;);								-- and add a category if not already added&lt;br /&gt;
				else&lt;br /&gt;
					add_maint_cat (&#039;unfit&#039;);									-- and add a category if not already added&lt;br /&gt;
				end&lt;br /&gt;
			else																-- DeadURL is empty, &#039;yes&#039;, &#039;true&#039;, or &#039;y&#039;&lt;br /&gt;
				Archived = sepc .. &amp;quot; &amp;quot; .. substitute( arch_text,&lt;br /&gt;
					{ external_link( OriginalURL, cfg.messages[&#039;original&#039;], OriginalURLorigin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );	-- format already styled&lt;br /&gt;
			end	&lt;br /&gt;
		else&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived-missing&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			Archived = sepc .. &amp;quot; &amp;quot; .. substitute( arch_text, &lt;br /&gt;
				{ set_error(&#039;archive_missing_url&#039;), ArchiveDate } );&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set (ArchiveFormat) then&lt;br /&gt;
		Archived = ArchiveFormat;												-- if set and ArchiveURL not set ArchiveFormat has error message&lt;br /&gt;
	else&lt;br /&gt;
		Archived = &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local Lay = &#039;&#039;;&lt;br /&gt;
	if is_set(LayURL) then&lt;br /&gt;
		if is_set(LayDate) then LayDate = &amp;quot; (&amp;quot; .. LayDate .. &amp;quot;)&amp;quot; end&lt;br /&gt;
		if is_set(LaySource) then &lt;br /&gt;
			LaySource = &amp;quot; &amp;amp;ndash; &#039;&#039;&amp;quot; .. safe_for_italics(LaySource) .. &amp;quot;&#039;&#039;&amp;quot;;&lt;br /&gt;
		else&lt;br /&gt;
			LaySource = &amp;quot;&amp;quot;;&lt;br /&gt;
		end&lt;br /&gt;
		if sepc == &#039;.&#039; then&lt;br /&gt;
			Lay = sepc .. &amp;quot; &amp;quot; .. external_link( LayURL, cfg.messages[&#039;lay summary&#039;], A:ORIGIN(&#039;LayURL&#039;), nil ) .. LayFormat .. LaySource .. LayDate&lt;br /&gt;
		else&lt;br /&gt;
			Lay = sepc .. &amp;quot; &amp;quot; .. external_link( LayURL, cfg.messages[&#039;lay summary&#039;]:lower(), A:ORIGIN(&#039;LayURL&#039;), nil ) .. LayFormat .. LaySource .. LayDate&lt;br /&gt;
		end			&lt;br /&gt;
	elseif is_set (LayFormat) then												-- Test if |lay-format= is given without giving a |lay-url=&lt;br /&gt;
		Lay = sepc .. LayFormat;												-- if set and LayURL not set, then LayFormat has error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Transcript) then&lt;br /&gt;
		if is_set(TranscriptURL) then&lt;br /&gt;
			Transcript = external_link( TranscriptURL, Transcript, TranscriptURLorigin, nil );&lt;br /&gt;
		end&lt;br /&gt;
		Transcript = sepc .. &#039; &#039; .. Transcript .. TranscriptFormat;&lt;br /&gt;
	elseif is_set(TranscriptURL) then&lt;br /&gt;
		Transcript = external_link( TranscriptURL, nil, TranscriptURLorigin, nil );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Publisher;&lt;br /&gt;
	if is_set(PublicationDate) then&lt;br /&gt;
		PublicationDate = wrap_msg (&#039;published&#039;, PublicationDate);&lt;br /&gt;
	end&lt;br /&gt;
	if is_set(PublisherName) then&lt;br /&gt;
		if is_set(PublicationPlace) then&lt;br /&gt;
			Publisher = sepc .. &amp;quot; &amp;quot; .. PublicationPlace .. &amp;quot;: &amp;quot; .. PublisherName .. PublicationDate;&lt;br /&gt;
		else&lt;br /&gt;
			Publisher = sepc .. &amp;quot; &amp;quot; .. PublisherName .. PublicationDate;  &lt;br /&gt;
		end			&lt;br /&gt;
	elseif is_set(PublicationPlace) then &lt;br /&gt;
		Publisher= sepc .. &amp;quot; &amp;quot; .. PublicationPlace .. PublicationDate;&lt;br /&gt;
	else &lt;br /&gt;
		Publisher = PublicationDate;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Several of the above rely upon detecting this as nil, so do it last.&lt;br /&gt;
	if is_set(Periodical) then&lt;br /&gt;
		if is_set(Title) or is_set(TitleNote) then &lt;br /&gt;
			Periodical = sepc .. &amp;quot; &amp;quot; .. wrap_style (&#039;italic-title&#039;, Periodical) &lt;br /&gt;
		else &lt;br /&gt;
			Periodical = wrap_style (&#039;italic-title&#039;, Periodical)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Handle the oddity that is cite speech.  This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be &amp;quot; (Speech)&amp;quot; so that&lt;br /&gt;
	the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).&lt;br /&gt;
	]]&lt;br /&gt;
	if &amp;quot;speech&amp;quot; == config.CitationClass then				-- cite speech only&lt;br /&gt;
		TitleNote = &amp;quot; (Discurs)&amp;quot;;							-- annotate the citation&lt;br /&gt;
		if is_set (Periodical) then							-- if Periodical, perhaps because of an included |website= or |journal= parameter &lt;br /&gt;
			if is_set (Conference) then						-- and if |event= is set&lt;br /&gt;
				Conference = Conference .. sepc .. &amp;quot; &amp;quot;;		-- then add appropriate punctuation to the end of the Conference variable before rendering&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Piece all bits together at last.  Here, all should be non-nil.&lt;br /&gt;
	-- We build things this way because it is more efficient in LUA&lt;br /&gt;
	-- not to keep reassigning to the same string variable over and over.&lt;br /&gt;
&lt;br /&gt;
	local tcommon;&lt;br /&gt;
	local tcommon2;																-- used for book cite when |contributor= is set&lt;br /&gt;
	&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;journal&amp;quot;,&amp;quot;citation&amp;quot;}) and is_set(Periodical) then&lt;br /&gt;
		if is_set(Others) then Others = Others .. sepc .. &amp;quot; &amp;quot; end&lt;br /&gt;
		tcommon = safe_join( {Others, Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Edition, Publisher, Agency, Volume}, sepc );&lt;br /&gt;
	elseif in_array(config.CitationClass, {&amp;quot;book&amp;quot;,&amp;quot;citation&amp;quot;}) and not is_set(Periodical) then		-- special cases for book cites&lt;br /&gt;
		if is_set (Contributors) then											-- when we are citing foreword, preface, introduction, etc&lt;br /&gt;
			tcommon = safe_join( {Title, TitleNote}, sepc );					-- author and other stuff will come after this and before tcommon2&lt;br /&gt;
			tcommon2 = safe_join( {Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif &#039;map&#039; == config.CitationClass then									-- special cases for cite map&lt;br /&gt;
		if is_set (Chapter) then												-- map in a book; TitleType is part of Chapter&lt;br /&gt;
			tcommon = safe_join( {Title, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );&lt;br /&gt;
		elseif is_set (Periodical) then											-- map in a periodical&lt;br /&gt;
			tcommon = safe_join( {Title, TitleType, Format, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );&lt;br /&gt;
		else																	-- a sheet or stand-alone map&lt;br /&gt;
			tcommon = safe_join( {Title, TitleType, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
	elseif &#039;episode&#039; == config.CitationClass then								-- special case for cite episode&lt;br /&gt;
		tcommon = safe_join( {Title, TitleNote, TitleType, Series, Transcript, Language, Edition, Publisher}, sepc );&lt;br /&gt;
&lt;br /&gt;
	else																		-- all other CS1 templates&lt;br /&gt;
		tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, &lt;br /&gt;
			Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if #ID_list &amp;gt; 0 then&lt;br /&gt;
		ID_list = safe_join( { sepc .. &amp;quot; &amp;quot;,  table.concat( ID_list, sepc .. &amp;quot; &amp;quot; ), ID }, sepc );&lt;br /&gt;
	else&lt;br /&gt;
		ID_list = ID;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, SubscriptionRequired, Lay, Quote }, sepc );&lt;br /&gt;
	local text;&lt;br /&gt;
	local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;&lt;br /&gt;
&lt;br /&gt;
	if is_set(Date) then&lt;br /&gt;
		if is_set (Authors) or is_set (Editors) then							-- date follows authors or editors when authors not set&lt;br /&gt;
			Date = &amp;quot; (&amp;quot; .. Date ..&amp;quot;)&amp;quot; .. OrigYear .. sepc .. &amp;quot; &amp;quot;;				-- in paranetheses&lt;br /&gt;
		else																	-- neither of authors and editors set&lt;br /&gt;
			if (string.sub(tcommon,-1,-1) == sepc) then							-- if the last character of tcommon is sepc&lt;br /&gt;
				Date = &amp;quot; &amp;quot; .. Date .. OrigYear;									-- Date does not begin with sepc&lt;br /&gt;
			else&lt;br /&gt;
				Date = sepc .. &amp;quot; &amp;quot; .. Date .. OrigYear;							-- Date begins with sepc&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end	&lt;br /&gt;
	if is_set(Authors) then&lt;br /&gt;
		if (not is_set (Date)) then												-- when date is set it&#039;s in parentheses; no Authors termination&lt;br /&gt;
			Authors = terminate_name_list (Authors, sepc);						-- when no date, terminate with 0 or 1 sepc and a space&lt;br /&gt;
		end&lt;br /&gt;
		if is_set(Editors) then&lt;br /&gt;
			local in_text = &amp;quot; &amp;quot;;&lt;br /&gt;
			local post_text = &amp;quot;&amp;quot;;&lt;br /&gt;
			if is_set(Chapter) and 0 == #c then&lt;br /&gt;
				in_text = in_text .. cfg.messages[&#039;in&#039;] .. &amp;quot; &amp;quot;&lt;br /&gt;
				if (sepc ~= &#039;.&#039;) then&lt;br /&gt;
					in_text = in_text:lower()									-- lowercase for cs2&lt;br /&gt;
				 end&lt;br /&gt;
			else&lt;br /&gt;
				if EditorCount &amp;lt;= 1 then&lt;br /&gt;
					post_text = &amp;quot;, &amp;quot; .. cfg.messages[&#039;editor&#039;];&lt;br /&gt;
				else&lt;br /&gt;
					post_text = &amp;quot;, &amp;quot; .. cfg.messages[&#039;editors&#039;];&lt;br /&gt;
				end&lt;br /&gt;
			end &lt;br /&gt;
			Editors = terminate_name_list (in_text .. Editors .. post_text, sepc);	-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (Contributors) then											-- book cite and we&#039;re citing the intro, preface, etc&lt;br /&gt;
			local by_text = sepc .. &#039; &#039; .. cfg.messages[&#039;by&#039;] .. &#039; &#039;;&lt;br /&gt;
			if (sepc ~= &#039;.&#039;) then by_text = by_text:lower() end					-- lowercase for cs2&lt;br /&gt;
			Authors = by_text .. Authors;										-- author follows title so tweak it here&lt;br /&gt;
			if is_set (Editors) and is_set (Date) then							-- when Editors make sure that Authors gets terminated&lt;br /&gt;
				Authors = terminate_name_list (Authors, sepc);					-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
			end&lt;br /&gt;
			if (not is_set (Date)) then											-- when date is set it&#039;s in parentheses; no Contributors termination&lt;br /&gt;
				Contributors = terminate_name_list (Contributors, sepc);		-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
			end&lt;br /&gt;
			text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set(Editors) then&lt;br /&gt;
		if is_set(Date) then&lt;br /&gt;
			if EditorCount &amp;lt;= 1 then&lt;br /&gt;
				Editors = Editors .. &amp;quot;, &amp;quot; .. cfg.messages[&#039;editor&#039;];&lt;br /&gt;
			else&lt;br /&gt;
				Editors = Editors .. &amp;quot;, &amp;quot; .. cfg.messages[&#039;editors&#039;];&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if EditorCount &amp;lt;= 1 then&lt;br /&gt;
				Editors = Editors .. &amp;quot; (&amp;quot; .. cfg.messages[&#039;editor&#039;] .. &amp;quot;)&amp;quot; .. sepc .. &amp;quot; &amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				Editors = Editors .. &amp;quot; (&amp;quot; .. cfg.messages[&#039;editors&#039;] .. &amp;quot;)&amp;quot; .. sepc .. &amp;quot; &amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );&lt;br /&gt;
	else&lt;br /&gt;
		if in_array(config.CitationClass, {&amp;quot;journal&amp;quot;,&amp;quot;citation&amp;quot;}) and is_set(Periodical) then&lt;br /&gt;
			text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(PostScript) and PostScript ~= sepc then&lt;br /&gt;
		text = safe_join( {text, sepc}, sepc );  --Deals with italics, spaces, etc.&lt;br /&gt;
		text = text:sub(1,-sepc:len()-1);&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
	text = safe_join( {text, PostScript}, sepc );&lt;br /&gt;
&lt;br /&gt;
	-- Now enclose the whole thing in a &amp;lt;cite/&amp;gt; element&lt;br /&gt;
	local options = {};&lt;br /&gt;
	&lt;br /&gt;
	if is_set(config.CitationClass) and config.CitationClass ~= &amp;quot;citation&amp;quot; then&lt;br /&gt;
		options.class = config.CitationClass;&lt;br /&gt;
		options.class = &amp;quot;citation &amp;quot; .. config.CitationClass;					-- class=citation required for blue highlight when used with |ref=&lt;br /&gt;
	else&lt;br /&gt;
		options.class = &amp;quot;citation&amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(Ref) and Ref:lower() ~= &amp;quot;none&amp;quot; then								-- set reference anchor if appropriate&lt;br /&gt;
		local id = Ref&lt;br /&gt;
		if (&#039;harv&#039; == Ref ) then&lt;br /&gt;
			local namelist = {};												-- holds selected contributor, author, editor name list&lt;br /&gt;
			local year = first_set ({Year, anchor_year}, 2);					-- Year first for legacy citations and for YMD dates that require disambiguation&lt;br /&gt;
&lt;br /&gt;
			if #c &amp;gt; 0 then														-- if there is a contributor list&lt;br /&gt;
				namelist = c;													-- select it&lt;br /&gt;
			elseif #a &amp;gt; 0 then													-- or an author list&lt;br /&gt;
				namelist = a;&lt;br /&gt;
			elseif #e &amp;gt; 0 then													-- or an editor list&lt;br /&gt;
				namelist = e;&lt;br /&gt;
			end&lt;br /&gt;
			if #namelist &amp;gt; 0 then												-- if there are names in namelist&lt;br /&gt;
				id = anchor_id (namelist, year);								-- go make the CITEREF anchor&lt;br /&gt;
			else&lt;br /&gt;
				id = &#039;&#039;;														-- unset&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		options.id = id;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if string.len(text:gsub(&amp;quot;&amp;lt;span[^&amp;gt;/]*&amp;gt;(.-)&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;%1&amp;quot;):gsub(&amp;quot;%b&amp;lt;&amp;gt;&amp;quot;,&amp;quot;&amp;quot;)) &amp;lt;= 2 then	-- remove &amp;lt;span&amp;gt; tags and other html-like markup; then get length of what remains&lt;br /&gt;
		z.error_categories = {};&lt;br /&gt;
		text = set_error(&#039;empty_citation&#039;);&lt;br /&gt;
		z.message_tail = {};&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local render = {};															-- here we collect the final bits for concatenation into the rendered citation&lt;br /&gt;
&lt;br /&gt;
	if is_set(options.id) then													-- here we wrap the rendered citation in &amp;lt;cite ...&amp;gt;...&amp;lt;/cite&amp;gt; tags&lt;br /&gt;
		table.insert (render, substitute (cfg.presentation[&#039;cite-id&#039;], {mw.uri.anchorEncode(options.id), mw.text.nowiki(options.class), text}));	-- when |ref= is set&lt;br /&gt;
	else&lt;br /&gt;
		table.insert (render, substitute (cfg.presentation[&#039;cite&#039;], {mw.text.nowiki(options.class), text}));	-- all other cases&lt;br /&gt;
	end		&lt;br /&gt;
&lt;br /&gt;
	table.insert (render, substitute (cfg.presentation[&#039;ocins&#039;], {OCinSoutput}));		-- append metadata to the citation&lt;br /&gt;
&lt;br /&gt;
	if #z.message_tail ~= 0 then&lt;br /&gt;
		table.insert (render, &#039; &#039;);&lt;br /&gt;
		for i,v in ipairs( z.message_tail ) do&lt;br /&gt;
			if is_set(v[1]) then&lt;br /&gt;
				if i == #z.message_tail then&lt;br /&gt;
					table.insert (render, error_comment( v[1], v[2] ));&lt;br /&gt;
				else&lt;br /&gt;
					table.insert (render, error_comment( v[1] .. &amp;quot;; &amp;quot;, v[2] ));&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if #z.maintenance_cats ~= 0 then&lt;br /&gt;
		table.insert (render, &#039;&amp;lt;span class=&amp;quot;citation-comment&amp;quot; style=&amp;quot;display:none; color:#33aa33; margin-left:0.3em&amp;quot;&amp;gt;&#039;);&lt;br /&gt;
		for _, v in ipairs( z.maintenance_cats ) do								-- append maintenance categories&lt;br /&gt;
			table.insert (render, v);&lt;br /&gt;
			table.insert (render, &#039; (&#039;);&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;:Categorie:&#039; .. v, &#039;link&#039;));&lt;br /&gt;
			table.insert (render, &#039;) &#039;);&lt;br /&gt;
		end&lt;br /&gt;
		table.insert (render, &#039;&amp;lt;/span&amp;gt;&#039;);&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	no_tracking_cats = no_tracking_cats:lower();&lt;br /&gt;
	if in_array(no_tracking_cats, {&amp;quot;&amp;quot;, &amp;quot;no&amp;quot;, &amp;quot;false&amp;quot;, &amp;quot;n&amp;quot;}) then&lt;br /&gt;
		for _, v in ipairs( z.error_categories ) do&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Categorie:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in ipairs( z.maintenance_cats ) do								-- append maintenance categories&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Categorie:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in ipairs( z.properties_cats ) do								-- append properties categories&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Categorie:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat (render);	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cs1.citationTemplateFromArgs(parentArgs)&lt;br /&gt;
	local template = &amp;quot;{{citation\n&amp;quot;&lt;br /&gt;
	for k,v in pairs(parentArgs) do&lt;br /&gt;
		template = template .. &amp;quot;| &amp;quot; .. k .. &amp;quot; = &amp;quot; .. v .. &amp;quot;\n&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	template = template .. &amp;quot;}}&amp;quot;&lt;br /&gt;
	return template&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C S 1 . C I T A T I O N &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This is used by templates such as {{cite book}} to create the actual citation text.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function cs1.citation(frame)&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local sandboxed = nil ~= string.find (frame:getTitle(), &#039;sandbox&#039;, 1, true)&lt;br /&gt;
	&lt;br /&gt;
	local citation, tstyle = cs1.citationFromArgs(pframe and pframe.args or {}, frame and frame.args or {}, sandboxed)&lt;br /&gt;
	return table.concat({citation, tstyle})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- returns both the citation and the templatedata&lt;br /&gt;
function cs1.citationFromArgs(parentArgs, citationArgs, sandboxed)&lt;br /&gt;
	local validation, utilities, identifiers, metadata, styles;&lt;br /&gt;
	&lt;br /&gt;
	if sandboxed then			-- did the {{#invoke:}} use sandbox version?&lt;br /&gt;
		cfg = mw.loadData (&#039;Module:Citation/CS1/Configuration/sandbox&#039;);		-- load sandbox versions of support modules&lt;br /&gt;
		whitelist = mw.loadData (&#039;Module:Citation/CS1/Whitelist/sandbox&#039;);&lt;br /&gt;
		utilities = require (&#039;Module:Citation/CS1/Utilities/sandbox&#039;);&lt;br /&gt;
		validation = require (&#039;Module:Citation/CS1/Date_validation/sandbox&#039;);&lt;br /&gt;
		identifiers = require (&#039;Module:Citation/CS1/Identifiers/sandbox&#039;);&lt;br /&gt;
		metadata = require (&#039;Module:Citation/CS1/COinS/sandbox&#039;);&lt;br /&gt;
		styles = &#039;Module:Citation/CS1/sandbox/styles.css&#039;;&lt;br /&gt;
	else																		-- otherwise&lt;br /&gt;
		cfg = mw.loadData (&#039;Module:Citation/CS1/Configuration&#039;);				-- load live versions of support modules&lt;br /&gt;
		whitelist = mw.loadData (&#039;Module:Citation/CS1/Whitelist&#039;);&lt;br /&gt;
		utilities = require (&#039;Module:Citation/CS1/Utilities&#039;);&lt;br /&gt;
		utilities.initZ()&lt;br /&gt;
		validation = require (&#039;Module:Citation/CS1/Date_validation&#039;);&lt;br /&gt;
		identifiers = require (&#039;Module:Citation/CS1/Identifiers&#039;);&lt;br /&gt;
		metadata = require (&#039;Module:Citation/CS1/COinS&#039;);&lt;br /&gt;
		styles = &#039;Module:Citation/CS1/styles.css&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	utilities.set_selected_modules (cfg);										-- so that functions in Utilities can see the cfg tables&lt;br /&gt;
	identifiers.set_selected_modules (cfg, utilities);							-- so that functions in Identifiers can see the selected cfg tables and selected Utilities module&lt;br /&gt;
	validation.set_selected_modules (cfg, utilities);							-- so that functions in Date validataion can see selected cfg tables and the selected Utilities module&lt;br /&gt;
	metadata.set_selected_modules (cfg, utilities);								-- so that functions in COinS can see the selected cfg tables and selected Utilities module&lt;br /&gt;
&lt;br /&gt;
	dates = validation.dates;													-- imported functions from Module:Citation/CS1/Date validation&lt;br /&gt;
	year_date_check = validation.year_date_check;&lt;br /&gt;
	reformat_dates = validation.reformat_dates;&lt;br /&gt;
	date_hyphen_to_dash = validation.date_hyphen_to_dash;&lt;br /&gt;
	date_name_xlate = validation.date_name_xlate;&lt;br /&gt;
&lt;br /&gt;
	is_set = utilities.is_set;													-- imported functions from Module:Citation/CS1/Utilities&lt;br /&gt;
	in_array = utilities.in_array;&lt;br /&gt;
	substitute = utilities.substitute;&lt;br /&gt;
	error_comment = utilities.error_comment;&lt;br /&gt;
	set_error = utilities.set_error;&lt;br /&gt;
	select_one = utilities.select_one;&lt;br /&gt;
	add_maint_cat = utilities.add_maint_cat;&lt;br /&gt;
	wrap_style = utilities.wrap_style;&lt;br /&gt;
	safe_for_italics = utilities.safe_for_italics;&lt;br /&gt;
	is_wikilink = utilities.is_wikilink;&lt;br /&gt;
	make_wikilink = utilities.make_wikilink;&lt;br /&gt;
&lt;br /&gt;
	z = utilities.z;															-- table of error and category tables in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
	extract_ids = identifiers.extract_ids;										-- imported functions from Module:Citation/CS1/Identifiers&lt;br /&gt;
	build_id_list = identifiers.build_id_list;&lt;br /&gt;
	is_embargoed = identifiers.is_embargoed;&lt;br /&gt;
	extract_id_access_levels = identifiers.extract_id_access_levels;&lt;br /&gt;
	&lt;br /&gt;
	make_coins_title = metadata.make_coins_title;								-- imported functions from Module:Citation/CS1/COinS&lt;br /&gt;
	get_coins_pages = metadata.get_coins_pages;&lt;br /&gt;
	COinS = metadata.COinS;&lt;br /&gt;
&lt;br /&gt;
	local args = {};															-- table where we store all of the template&#039;s arguments&lt;br /&gt;
	local suggestions = {};														-- table where we store suggestions if we need to loadData them&lt;br /&gt;
	local error_text, error_state;&lt;br /&gt;
&lt;br /&gt;
	local config = {};															-- table to store parameters from the module {{#invoke:}}&lt;br /&gt;
	for k, v in pairs( citationArgs ) do&lt;br /&gt;
		config[k] = v;&lt;br /&gt;
--		args[k] = v;															-- debug tool that allows us to render a citation from module {{#invoke:}}&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	local capture;																-- the single supported capture when matching unknown parameters using patterns&lt;br /&gt;
	for k, v in pairs( parentArgs ) do&lt;br /&gt;
		if v ~= &#039;&#039; then&lt;br /&gt;
			if not validate( k, config.CitationClass ) then			&lt;br /&gt;
				error_text = &amp;quot;&amp;quot;;&lt;br /&gt;
				if type( k ) ~= &#039;string&#039; then&lt;br /&gt;
					-- Exclude empty numbered parameters&lt;br /&gt;
					if v:match(&amp;quot;%S+&amp;quot;) ~= nil then&lt;br /&gt;
						error_text, error_state = set_error( &#039;text_ignored&#039;, {v}, true );&lt;br /&gt;
					end&lt;br /&gt;
				elseif validate( k:lower(), config.CitationClass ) then &lt;br /&gt;
					error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, k:lower()}, true );&lt;br /&gt;
				else&lt;br /&gt;
					if nil == suggestions.suggestions then						-- if this table is nil then we need to load it&lt;br /&gt;
						if sandboxed then			-- did the {{#invoke:}} use sandbox version?&lt;br /&gt;
							suggestions = mw.loadData( &#039;Module:Citation/CS1/Suggestions/sandbox&#039; );	-- use the sandbox version&lt;br /&gt;
						else&lt;br /&gt;
							suggestions = mw.loadData( &#039;Module:Citation/CS1/Suggestions&#039; );			-- use the live version&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					for pattern, param in pairs (suggestions.patterns) do		-- loop through the patterns to see if we can suggest a proper parameter&lt;br /&gt;
						capture = k:match (pattern);							-- the whole match if no caputre in pattern else the capture if a match&lt;br /&gt;
						if capture then											-- if the pattern matches &lt;br /&gt;
							param = substitute( param, capture );				-- add the capture to the suggested parameter (typically the enumerator)&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, param}, true );	-- set the error message&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					if not is_set (error_text) then								-- couldn&#039;t match with a pattern, is there an expicit suggestion?&lt;br /&gt;
						if suggestions.suggestions[ k:lower() ] ~= nil then&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, suggestions.suggestions[ k:lower() ]}, true );&lt;br /&gt;
						else&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored&#039;, {k}, true );&lt;br /&gt;
							v = &#039;&#039;;												-- unset value assigned to unrecognized parameters (this for the limited parameter lists)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end				  &lt;br /&gt;
				if error_text ~= &#039;&#039; then&lt;br /&gt;
					table.insert( z.message_tail, {error_text, error_state} );&lt;br /&gt;
				end				&lt;br /&gt;
			end&lt;br /&gt;
			missing_pipe_check (v);												-- do we think that there is a parameter that is missing a pipe?&lt;br /&gt;
			&lt;br /&gt;
			args[k] = v;&lt;br /&gt;
		elseif args[k] ~= nil or (k == &#039;postscript&#039;) then&lt;br /&gt;
			args[k] = v;&lt;br /&gt;
		end		&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs( args ) do&lt;br /&gt;
		if &#039;string&#039; == type (k) then											-- don&#039;t evaluate positional parameters&lt;br /&gt;
			has_invisible_chars (k, v);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return citation0( config, args), mw.getCurrentFrame():extensionTag (&#039;templatestyles&#039;, &#039;&#039;, {src=styles});&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return cs1;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:GregorianDate/data&amp;diff=341</id>
		<title>Modul:GregorianDate/data</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:GregorianDate/data&amp;diff=341"/>
		<updated>2024-07-14T20:16:50Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local limitDates = { 	{year = 4, month = 3, day = 3, calendar = &amp;#039;julian&amp;#039; }, 	{year = 100, month = 3, day = 2, calendar = &amp;#039;julian&amp;#039; }, 	{year = 200, month = 3, day = 1, calendar = &amp;#039;julian&amp;#039; }, 	{year = 300, month = 2, day = 29, calendar = &amp;#039;julian&amp;#039; }, 	{year = 500, month = 2, day = 28, calendar = &amp;#039;julian&amp;#039; }, 	{year = 600, month = 2, day = 27, calendar = &amp;#039;julian&amp;#039; }, 	{year = 700, month = 2, day = 26, calendar = &amp;#039;julian&amp;#039; }, 	{year = 900, month = 2, day = 25, calendar = &amp;#039;julian&amp;#039; },...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local limitDates = {&lt;br /&gt;
	{year = 4, month = 3, day = 3, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 100, month = 3, day = 2, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 200, month = 3, day = 1, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 300, month = 2, day = 29, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 500, month = 2, day = 28, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 600, month = 2, day = 27, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 700, month = 2, day = 26, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 900, month = 2, day = 25, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1000, month = 2, day = 24, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1100, month = 2, day = 23, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1300, month = 2, day = 22, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1400, month = 2, day = 21, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1500, month = 2, day = 20, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1700, month = 2, day = 19, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1800, month = 2, day = 18, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 1900, month = 2, day = 17, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 2100, month = 2, day = 16, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 2200, month = 2, day = 15, calendar = &#039;julian&#039; },&lt;br /&gt;
	{year = 2300, month = 2, day = 14, calendar = &#039;julian&#039; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	limitDates = limitDates,&lt;br /&gt;
	limitDatesSize = 19,&lt;br /&gt;
	julianDateOfGregorianStart = {year = 1582, month = 10, day = 5}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:GregorianDate&amp;diff=340</id>
		<title>Modul:GregorianDate</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:GregorianDate&amp;diff=340"/>
		<updated>2024-07-14T20:16:07Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {}  local DateUtils = require(&amp;#039;Modul:DateUtils&amp;#039;) local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local data = mw.loadData(&amp;#039;Modul:GregorianDate/data&amp;#039;)  local compareDates = function(date1, date2) 	if date1.year &amp;lt; date2.year then return 1 end 	if date2.year &amp;lt; date1.year then return -1 end  	if date1.month &amp;lt; date2.month then return 1 end 	if date2.month &amp;lt; date1.month then return -1 end  	if date1.day &amp;lt; date2.day then return 1 end 	if date2.day &amp;lt; date1.day then retur...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local data = mw.loadData(&#039;Modul:GregorianDate/data&#039;)&lt;br /&gt;
&lt;br /&gt;
local compareDates = function(date1, date2)&lt;br /&gt;
	if date1.year &amp;lt; date2.year then return 1 end&lt;br /&gt;
	if date2.year &amp;lt; date1.year then return -1 end&lt;br /&gt;
&lt;br /&gt;
	if date1.month &amp;lt; date2.month then return 1 end&lt;br /&gt;
	if date2.month &amp;lt; date1.month then return -1 end&lt;br /&gt;
&lt;br /&gt;
	if date1.day &amp;lt; date2.day then return 1 end&lt;br /&gt;
	if date2.day &amp;lt; date1.day then return -1 end&lt;br /&gt;
	&lt;br /&gt;
	return 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local initialOffset = -3&lt;br /&gt;
local limitDates = data.limitDates&lt;br /&gt;
local julianDateOfGregorianStart = data.julianDateOfGregorianStart&lt;br /&gt;
&lt;br /&gt;
p.julianToGregorian = function(indate)&lt;br /&gt;
	if indate.calendarmodel ~= &#039;http://www.wikidata.org/entity/Q1985786&#039; and indate.calendarmodel ~= &#039;http://www.wikidata.org/entity/Q11184&#039;&lt;br /&gt;
		and indate.calendar ~= &#039;julian&#039; then&lt;br /&gt;
			return indate&lt;br /&gt;
	end&lt;br /&gt;
	local offset = initialOffset&lt;br /&gt;
	local limitDateIdx = 1&lt;br /&gt;
	while limitDateIdx &amp;lt; data.limitDatesSize and compareDates(limitDates[limitDateIdx], indate) &amp;gt;= 0 do&lt;br /&gt;
		limitDateIdx = limitDateIdx + 1&lt;br /&gt;
		offset = offset + 1&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local outputDate = DateUtils.addDaysToDate(indate, offset)&lt;br /&gt;
	outputDate.calendar = &#039;gregorian&#039;&lt;br /&gt;
	outputDate.calendarmodel = &#039;http://www.wikidata.org/entity/Q1985727&#039;&lt;br /&gt;
	&lt;br /&gt;
	return outputDate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function extractDateFromFrame(frame)&lt;br /&gt;
	local outdate = {}&lt;br /&gt;
	local frameargs = getArgs(frame)&lt;br /&gt;
	outdate.year = tonumber(frameargs[1] or frameargs[&#039;year&#039;] or 1)&lt;br /&gt;
	outdate.month = tonumber(frameargs[2] or frameargs[&#039;month&#039;] or 1)&lt;br /&gt;
	outdate.day = tonumber(frameargs[3] or frameargs[&#039;day&#039;] or 1)&lt;br /&gt;
	outdate.precision = 8&lt;br /&gt;
	if frameargs[1] or frameargs[&#039;year&#039;] then&lt;br /&gt;
		if frameargs[2] or frameargs[&#039;month&#039;] then&lt;br /&gt;
			if frameargs[3] or frameargs[&#039;day&#039;] then&lt;br /&gt;
				outdate.precision = outdate.precision + 1&lt;br /&gt;
			end&lt;br /&gt;
			outdate.precision = outdate.precision + 1&lt;br /&gt;
		end&lt;br /&gt;
		outdate.precision = outdate.precision + 1&lt;br /&gt;
	end&lt;br /&gt;
	outdate.calendar = mw.ustring.lower(mw.text.trim(frameargs[&#039;calendar&#039;] or &#039;gregorian&#039;))&lt;br /&gt;
	return outdate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.julianToGregorianFromFrame = function(frame)&lt;br /&gt;
	local indate = extractDateFromFrame(frame)&lt;br /&gt;
	indate.calendar = &#039;julian&#039;&lt;br /&gt;
	return DateUtils.formatDate(p.julianToGregorian(indate))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.convertToGregorianIfInInterval = function(indate)&lt;br /&gt;
	local outdate = indate&lt;br /&gt;
	if compareDates(julianDateOfGregorianStart, indate) &amp;gt;= 0 then&lt;br /&gt;
		outdate = p.julianToGregorian(indate)&lt;br /&gt;
	end&lt;br /&gt;
	return outdate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayDualDateIfInInterval = function(indate, link, dateFormat, julianFormat)&lt;br /&gt;
	local outdate = p.convertToGregorianIfInInterval(indate)&lt;br /&gt;
	local gregoriandate = compareDates(julianDateOfGregorianStart, indate) &amp;lt; 0 and p.julianToGregorian(indate) or outdate&lt;br /&gt;
	local linkstat = { old = false, new = false }&lt;br /&gt;
	if (type(link) == &#039;boolean&#039;) and link or link == &#039;both&#039; or link == &#039;ambele&#039; then&lt;br /&gt;
		linkstat.old = true&lt;br /&gt;
		linkstat.new = true&lt;br /&gt;
	elseif link == &#039;old&#039; then&lt;br /&gt;
		linkstat.old = true&lt;br /&gt;
	elseif link == &#039;new&#039; then&lt;br /&gt;
		linkstat.new = true&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local fullDate&lt;br /&gt;
	if outdate.year ~= indate.year then&lt;br /&gt;
		fullDate = DateUtils.formatDate(indate, linkstat.old, true, julianFormat or dateFormat) .. &#039;/&#039; .. DateUtils.formatDate(outdate, linkstat.new, true, dateFormat)&lt;br /&gt;
	elseif outdate.month ~= indate.month then&lt;br /&gt;
		fullDate = DateUtils.formatDate(indate, linkstat.old, true, julianFormat or dateFormat or linkstat.old and &#039;[[j F]]&#039; or &#039;j F&#039;) .. &#039;/&#039; .. DateUtils.formatDate(outdate, linkstat.new, true, dateFormat)&lt;br /&gt;
	elseif outdate.day ~= indate.day then&lt;br /&gt;
		fullDate = DateUtils.formatDate(indate, linkstat.old, true, julianFormat or dateFormat or linkstat.old and &#039;[[j F|j]]&#039; or &#039;j&#039;) .. &#039;/&#039; .. DateUtils.formatDate(outdate, linkstat.new, true, dateFormat)&lt;br /&gt;
	else&lt;br /&gt;
		fullDate = DateUtils.formatDate(outdate, linkstat.new or linkstat.old, true, dateFormat)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return indate.precision &amp;gt;= 11 and DateUtils.surroundWithTimeTag(fullDate, gregoriandate) or fullDate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayDualDateIfInIntervalFromFrame = function(frame)&lt;br /&gt;
	local indate = extractDateFromFrame(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	indate.calendar = indate.calendar or (frame.args[&#039;julian&#039;] and &#039;julian&#039; or &#039;gregorian&#039;)&lt;br /&gt;
	local link = args[&#039;link&#039;]&lt;br /&gt;
	local argslink = args[&#039;link&#039;]&lt;br /&gt;
	if argslink == &#039;yes&#039; or argslink == &#039;y&#039; or argslink == &#039;da&#039; or argslink == &#039;true&#039; or argslink == &#039;d&#039; then link = &#039;both&#039; end&lt;br /&gt;
	&lt;br /&gt;
	local dateFormat = args[&#039;format&#039;] or args[&#039;date_format&#039;] or args[&#039;dateFormat&#039;]&lt;br /&gt;
	&lt;br /&gt;
	return p.displayDualDateIfInInterval(indate, link, dateFormat)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:DateUtils/data&amp;diff=339</id>
		<title>Modul:DateUtils/data</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:DateUtils/data&amp;diff=339"/>
		<updated>2024-07-14T20:15:25Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local months = {  		[&amp;#039;ianuarie&amp;#039;] = 1, [&amp;#039;februarie&amp;#039;] = 2, [&amp;#039;martie&amp;#039;] = 3, [&amp;#039;aprilie&amp;#039;] = 4, [&amp;#039;mai&amp;#039;] = 5, [&amp;#039;iunie&amp;#039;] = 6, [&amp;#039;iulie&amp;#039;] = 7, [&amp;#039;august&amp;#039;] = 8, [&amp;#039;septembrie&amp;#039;] = 9, [&amp;#039;octombrie&amp;#039;] = 10, [&amp;#039;noiembrie&amp;#039;] = 11, [&amp;#039;decembrie&amp;#039;] = 12, 		[&amp;#039;January&amp;#039;] = 1, [&amp;#039;February&amp;#039;] = 2, [&amp;#039;March&amp;#039;] = 3, [&amp;#039;April&amp;#039;] = 4, [&amp;#039;May&amp;#039;] = 5, [&amp;#039;June&amp;#039;] = 6, [&amp;#039;July&amp;#039;] = 7, [&amp;#039;August&amp;#039;] = 8, [&amp;#039;September&amp;#039;] = 9, [&amp;#039;October&amp;#039;] = 10, [&amp;#039;November&amp;#039;] = 11, [&amp;#039;December&amp;#039;] = 12, 		[&amp;#039;janvier&amp;#039;] = 1, [&amp;#039;février&amp;#039;] = 2, [&amp;#039;mars&amp;#039;] = 3, [...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local months = { &lt;br /&gt;
		[&#039;ianuarie&#039;] = 1, [&#039;februarie&#039;] = 2, [&#039;martie&#039;] = 3, [&#039;aprilie&#039;] = 4, [&#039;mai&#039;] = 5, [&#039;iunie&#039;] = 6, [&#039;iulie&#039;] = 7, [&#039;august&#039;] = 8, [&#039;septembrie&#039;] = 9, [&#039;octombrie&#039;] = 10, [&#039;noiembrie&#039;] = 11, [&#039;decembrie&#039;] = 12,&lt;br /&gt;
		[&#039;January&#039;] = 1, [&#039;February&#039;] = 2, [&#039;March&#039;] = 3, [&#039;April&#039;] = 4, [&#039;May&#039;] = 5, [&#039;June&#039;] = 6, [&#039;July&#039;] = 7, [&#039;August&#039;] = 8, [&#039;September&#039;] = 9, [&#039;October&#039;] = 10, [&#039;November&#039;] = 11, [&#039;December&#039;] = 12,&lt;br /&gt;
		[&#039;janvier&#039;] = 1, [&#039;février&#039;] = 2, [&#039;mars&#039;] = 3, [&#039;avril&#039;] = 4, [&#039;juin&#039;] = 6, [&#039;juillet&#039;] = 7, [&#039;août&#039;] = 8, [&#039;septembre&#039;] = 9, [&#039;octobre&#039;] = 10, [&#039;novembre&#039;] = 11, [&#039;décembre&#039;] = 12,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	months = months&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Roman&amp;diff=338</id>
		<title>Modul:Roman</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Roman&amp;diff=338"/>
		<updated>2024-07-14T20:09:41Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: -- This module implements {{Roman}}.  local p = {}  -- This function implements the {{overline}} template. local function overline(s)     return mw.ustring.format( &amp;#039;&amp;lt;span style=&amp;quot;text-decoration:overline;&amp;quot;&amp;gt;%s&amp;lt;/span&amp;gt;&amp;#039;, s ) end  -- Gets the Roman numerals for a given numeral table. Returns both the string of -- numerals and the value of the number after it is finished being processed. local function getLetters(num, t)     local ret = {}     for _, v in ipairs(t) do         local...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{Roman}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- This function implements the {{overline}} template.&lt;br /&gt;
local function overline(s)&lt;br /&gt;
    return mw.ustring.format( &#039;&amp;lt;span style=&amp;quot;text-decoration:overline;&amp;quot;&amp;gt;%s&amp;lt;/span&amp;gt;&#039;, s )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Gets the Roman numerals for a given numeral table. Returns both the string of&lt;br /&gt;
-- numerals and the value of the number after it is finished being processed.&lt;br /&gt;
local function getLetters(num, t)&lt;br /&gt;
    local ret = {}&lt;br /&gt;
    for _, v in ipairs(t) do&lt;br /&gt;
        local val, letter = unpack(v)&lt;br /&gt;
        while num &amp;gt;= val do&lt;br /&gt;
            num = num - val&lt;br /&gt;
            table.insert(ret, letter)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return table.concat(ret), num&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- The main control flow of the module.&lt;br /&gt;
function p._main(args)&lt;br /&gt;
    -- Get input and exit displaying nothing if the input is empty.&lt;br /&gt;
    if args[1] == nil then return end&lt;br /&gt;
    local num = tonumber(args[1])&lt;br /&gt;
    if not num or num &amp;lt; 0 or num == math.huge then&lt;br /&gt;
    	error(&#039;Invalid number &#039; .. args[1], 2)&lt;br /&gt;
    elseif num == 0 then&lt;br /&gt;
        return &#039;N&#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Return a message for numbers too big to be expressed in Roman numerals.&lt;br /&gt;
    if num &amp;gt;= 5000000 then&lt;br /&gt;
        return args[2] or &#039;N/A&#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local ret = &#039;&#039;&lt;br /&gt;
    -- Find the Roman numerals for the large part of numbers.&lt;br /&gt;
    -- 23 April 2016 - tweaked to &amp;gt;= 4000 to accept big Roman &#039;IV&#039;&lt;br /&gt;
    -- The if statement is not strictly necessary, but makes the algorithm &lt;br /&gt;
    -- more efficient for smaller numbers.&lt;br /&gt;
    if num &amp;gt;= 4000 then&lt;br /&gt;
        local bigRomans = {&lt;br /&gt;
            { 1000000, &#039;M&#039; },&lt;br /&gt;
            { 900000, &#039;CM&#039; }, { 500000, &#039;D&#039; }, { 400000, &#039;CD&#039; }, { 100000, &#039;C&#039; },&lt;br /&gt;
            {  90000, &#039;XC&#039; }, {  50000, &#039;L&#039; }, {  40000, &#039;XL&#039; }, {  10000, &#039;X&#039; },&lt;br /&gt;
            {   9000, &#039;IX&#039; }, {   5000, &#039;V&#039; }, {   4000, &#039;IV&#039; },&lt;br /&gt;
        }&lt;br /&gt;
        local bigLetters&lt;br /&gt;
        bigLetters, num = getLetters(num, bigRomans)&lt;br /&gt;
        ret = overline(bigLetters)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Find the Roman numerals for numbers less than the big Roman threshold.&lt;br /&gt;
    local smallRomans = {&lt;br /&gt;
        { 1000, &#039;M&#039; },&lt;br /&gt;
        { 900, &#039;CM&#039; }, { 500, &#039;D&#039; }, { 400, &#039;CD&#039; }, { 100, &#039;C&#039; },&lt;br /&gt;
        {  90, &#039;XC&#039; }, {  50, &#039;L&#039; }, {  40, &#039;XL&#039; }, {  10, &#039;X&#039; },&lt;br /&gt;
        {   9, &#039;IX&#039; }, {   5, &#039;V&#039; }, {   4, &#039;IV&#039; }, {   1, &#039;I&#039; }&lt;br /&gt;
    }&lt;br /&gt;
    local smallLetters = getLetters( num, smallRomans )&lt;br /&gt;
    ret = ret .. smallLetters&lt;br /&gt;
&lt;br /&gt;
    if args.fraction == &#039;yes&#039; then&lt;br /&gt;
        -- Find the Roman numerals for the fractional parts of numbers.&lt;br /&gt;
        -- If num is not a whole number, add half of 1/1728 (the smallest unit) to equate to rounding.&lt;br /&gt;
        -- Ensure we&#039;re not less than the smallest unit or larger than 1 - smallest unit&lt;br /&gt;
        -- to avoid getting two &amp;quot;half&amp;quot; symbols or no symbols at all&lt;br /&gt;
        num = num - math.floor(num)&lt;br /&gt;
        if num ~= 0 then&lt;br /&gt;
            num = math.max(1.1/1728, math.min(1727.1/1728, num + 1/3456))&lt;br /&gt;
        end&lt;br /&gt;
        local fractionalRomans = {&lt;br /&gt;
            { 1/2, &#039;S&#039; }, { 5/12, &amp;quot;&#039;&#039;&#039;:&#039;&#039;&#039;•&#039;&#039;&#039;:&#039;&#039;&#039;&amp;quot; }, { 1/3, &amp;quot;&#039;&#039;&#039;::&#039;&#039;&#039;&amp;quot; },&lt;br /&gt;
            { 1/4, &amp;quot;&#039;&#039;&#039;:&#039;&#039;&#039;•&amp;quot; }, { 1/6, &amp;quot;&#039;&#039;&#039;:&#039;&#039;&#039;&amp;quot; }, { 1/12, &#039;•&#039; },&lt;br /&gt;
            { 1/24, &#039;Є&#039; }, { 1/36, &#039;ƧƧ&#039; }, { 1/48, &#039;Ɔ&#039; }, { 1/72, &#039;Ƨ&#039; }, { 1/144, &#039;ƻ&#039; },&lt;br /&gt;
            { 1/288, &#039;℈&#039; }, { 1/1728, &#039;»&#039; },&lt;br /&gt;
        }&lt;br /&gt;
        local fractionalLetters = getLetters(num, fractionalRomans)&lt;br /&gt;
        &lt;br /&gt;
        ret = ret .. fractionalLetters&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    -- If called via #invoke, use the args passed into the invoking&lt;br /&gt;
    -- template, or the args passed to #invoke if any exist. Otherwise&lt;br /&gt;
    -- assume args are being passed directly in from the debug console&lt;br /&gt;
    -- or from another Lua module.&lt;br /&gt;
    local origArgs&lt;br /&gt;
    if frame == mw.getCurrentFrame() then&lt;br /&gt;
        origArgs = frame:getParent().args&lt;br /&gt;
        for k, v in pairs(frame.args) do&lt;br /&gt;
            origArgs = frame.args&lt;br /&gt;
            break&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        origArgs = frame&lt;br /&gt;
    end&lt;br /&gt;
    -- Trim whitespace and remove blank arguments.&lt;br /&gt;
    local args = {}&lt;br /&gt;
    for k, v in pairs(origArgs) do&lt;br /&gt;
        if type( v ) == &#039;string&#039; then&lt;br /&gt;
            v = mw.text.trim(v)&lt;br /&gt;
        end&lt;br /&gt;
        if v ~= &#039;&#039; then&lt;br /&gt;
            args[k] = v&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- exit if not given anything&lt;br /&gt;
    if args == nil or args == {} then return end&lt;br /&gt;
    -- Given mathematical expression, simplify to a number&lt;br /&gt;
    if type(args[1]) == &#039;string&#039; then&lt;br /&gt;
        args[1] = mw.ext.ParserFunctions.expr(args[1])&lt;br /&gt;
    end&lt;br /&gt;
    return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:DateUtils&amp;diff=337</id>
		<title>Modul:DateUtils</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:DateUtils&amp;diff=337"/>
		<updated>2024-07-14T20:08:59Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local maxDaysInMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} local roman = require(&amp;#039;Modul:Roman&amp;#039;) local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local defaultPostfixYear = { bc = &amp;#039;î.Hr.&amp;#039;, ad = &amp;#039;d.Hr.&amp;#039; } local linkingPostfixYear = { bc = &amp;#039;î.Hr.&amp;#039;, ad = &amp;#039;d.Hr.&amp;#039; } local months = mw.loadData(&amp;#039;Modul:DateUtils/data&amp;#039;).months  local suffixFormatYear = function(y, postFixYear) 	local postFixYear = postFixYear or defaultPostfixYear 	return (y &amp;lt; 0 and (&amp;#039; &amp;#039; ....&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local maxDaysInMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}&lt;br /&gt;
local roman = require(&#039;Modul:Roman&#039;)&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local defaultPostfixYear = { bc = &#039;î.Hr.&#039;, ad = &#039;d.Hr.&#039; }&lt;br /&gt;
local linkingPostfixYear = { bc = &#039;î.Hr.&#039;, ad = &#039;d.Hr.&#039; }&lt;br /&gt;
local months = mw.loadData(&#039;Modul:DateUtils/data&#039;).months&lt;br /&gt;
&lt;br /&gt;
local suffixFormatYear = function(y, postFixYear)&lt;br /&gt;
	local postFixYear = postFixYear or defaultPostfixYear&lt;br /&gt;
	return (y &amp;lt; 0 and (&#039; &#039; .. postFixYear.bc) or (y &amp;lt; 1000 and (&#039; &#039; .. postFixYear.ad) or &#039;&#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.formatYear = function(y, link)&lt;br /&gt;
	local out = &#039;&#039;&lt;br /&gt;
	local yearLink = tostring(math.abs(y)) .. (y &amp;lt; 0 and suffixFormatYear(y, linkingPostfixYear) or &#039;&#039;)&lt;br /&gt;
	local yearLabel = tostring(math.abs(y)) .. suffixFormatYear(y, defaultPostfixYear)&lt;br /&gt;
	if link then&lt;br /&gt;
		out = out .. &#039;[[&#039;&lt;br /&gt;
		if yearLabel == yearLink then out = out .. yearLink&lt;br /&gt;
		else out = out .. yearLink .. &#039;|&#039; .. yearLabel end&lt;br /&gt;
		out = out .. &#039;]]&#039;&lt;br /&gt;
	else&lt;br /&gt;
		out = yearLabel&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.surroundWithTimeTag = function(out, tagDate)&lt;br /&gt;
	local timeTag = mw.html.create(&#039;time&#039;)&lt;br /&gt;
	if tagDate.year &amp;gt; 0 then &lt;br /&gt;
		local datetimeFormat = &#039;Y-m-d&#039;&lt;br /&gt;
		if tagDate.precision == 10 then&lt;br /&gt;
			datetimeFormat = &#039;Y-m&#039;&lt;br /&gt;
			tagDate.day = 1&lt;br /&gt;
		end&lt;br /&gt;
		local intermediateFormatDate =  os.date(&#039;%d %B %Y&#039;, os.time(tagDate))&lt;br /&gt;
		timeTag:attr(&#039;datetime&#039;, mw.language.getContentLanguage():formatDate(datetimeFormat, intermediateFormatDate))&lt;br /&gt;
	end&lt;br /&gt;
	timeTag:wikitext(out)&lt;br /&gt;
	&lt;br /&gt;
	return tostring(timeTag)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.formatDate = function(indate, link, notimetag, dateFormat)&lt;br /&gt;
	if not indate then return nil end&lt;br /&gt;
	if indate.precision == 6 then&lt;br /&gt;
		local out = &#039;mileniul &#039;&lt;br /&gt;
		if indate.year &amp;gt;= 2000 or indate.year &amp;lt;= -2000 then out = out .. &#039;al &#039; end&lt;br /&gt;
		out = out .. roman.main({tostring(1 + math.floor((math.abs(indate.year) - 1) / 1000))})&lt;br /&gt;
		if indate.year &amp;gt;= 2000 or indate.year &amp;lt;= -2000 then out = out .. &#039;-lea&#039; end&lt;br /&gt;
		out = out .. suffixFormatYear(indate.year)&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	if indate.precision == 7 then&lt;br /&gt;
		local out = &#039;secolul &#039;&lt;br /&gt;
		if indate.year &amp;gt;= 200 or indate.year &amp;lt;= -200 then out = out .. &#039;al &#039; end&lt;br /&gt;
		out = out .. roman.main({tostring(1 + math.floor((math.abs(indate.year) - 1) / 100))})&lt;br /&gt;
		if indate.year &amp;gt;= 200 or indate.year &amp;lt;= -200 then out = out .. &#039;-lea&#039; end&lt;br /&gt;
		out = out .. suffixFormatYear(indate.year)&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	if indate.precision == 8 then&lt;br /&gt;
		return &#039;anii &#039; .. tostring(math.floor(math.abs(indate.year) / 10) * 10) .. suffixFormatYear(indate.year)&lt;br /&gt;
	end&lt;br /&gt;
	if indate.precision == 9 then&lt;br /&gt;
		if notimetag then return p.formatYear(indate.year, link) end&lt;br /&gt;
		local timeTag = mw.html.create(&#039;time&#039;)&lt;br /&gt;
		if indate.year &amp;gt; 0 then timeTag:attr(&#039;datetime&#039;, tostring(indate.year)) end&lt;br /&gt;
		timeTag:wikitext(p.formatYear(indate.year, link))&lt;br /&gt;
		return tostring(timeTag)&lt;br /&gt;
	end&lt;br /&gt;
	if indate.precision and indate.precision &amp;gt; 9  then&lt;br /&gt;
		local d1 = {}&lt;br /&gt;
		d1.day = indate.day&lt;br /&gt;
		if not d1.day or d1.day == 0 then d1.day = 1 end&lt;br /&gt;
		d1.month = indate.month&lt;br /&gt;
		if not d1.month or d1.month == 0 then d1.month = 1 end&lt;br /&gt;
		d1.year = math.abs(indate.year)&lt;br /&gt;
		local out = &#039;&#039;&lt;br /&gt;
		local intermediateFormatDate = os.date(&#039;%d %B %Y&#039;, os.time(d1))&lt;br /&gt;
		if dateFormat then&lt;br /&gt;
			out = out .. mw.language.getContentLanguage():formatDate(dateFormat, intermediateFormatDate)&lt;br /&gt;
		else&lt;br /&gt;
			out = out .. mw.language.getContentLanguage():formatDate((indate.precision &amp;gt;= 11) and (link and &#039;[[j F]]&#039; or &#039;j F&#039;) or (link and &#039;[[F]]&#039; or &#039;F&#039;), intermediateFormatDate)&lt;br /&gt;
			out = out .. &#039; &#039; .. p.formatYear(indate.year, link)&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if notimetag or indate.precision &amp;lt; 11 then return out end&lt;br /&gt;
		&lt;br /&gt;
		return p.surroundWithTimeTag(out, indate)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.formatDateFromFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local dateObj = {}&lt;br /&gt;
	if args[1] then&lt;br /&gt;
		dateObj = p.parseDate(args[1])&lt;br /&gt;
	end&lt;br /&gt;
	if args[2] then&lt;br /&gt;
		dateObj.month = tonumber(months[args[2]] or args[2])&lt;br /&gt;
		if args[3] then dateObj.day = tonumber(args[3]) end&lt;br /&gt;
	end&lt;br /&gt;
	dateObj.calendar = &#039;gregorian&#039;&lt;br /&gt;
	if not dateObj.precision then&lt;br /&gt;
		dateObj.precision = 9&lt;br /&gt;
	end&lt;br /&gt;
	if args[2] ~= nil then&lt;br /&gt;
		dateObj.precision = 10&lt;br /&gt;
		if args[3] ~= nil then&lt;br /&gt;
			dateObj.precision = 11&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return p.formatDate(dateObj, args[&#039;link&#039;] ~= nil, args[&#039;notimetag&#039;] ~= nil)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isDateGregorian = function(indate)&lt;br /&gt;
	return indate.calendarmodel == &#039;http://www.wikidata.org/entity/Q1985727&#039; or indate.calendarmodel == &#039;http://www.wikidata.org/entity/Q12138&#039; or indate.calendar == &#039;gregorian&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isDateJulian = function(indate)&lt;br /&gt;
	return indate.calendarmodel == &#039;http://www.wikidata.org/entity/Q1985786&#039; or indate.calendarmodel == &#039;http://www.wikidata.org/entity/Q11184&#039; or indate.calendar == &#039;julian&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isLeapYearGregorian = function(year)&lt;br /&gt;
	if (year % 4 ~= 0) then return false&lt;br /&gt;
	elseif (year % 100 ~= 0) then return true&lt;br /&gt;
	elseif (year % 400 ~= 0) then return false&lt;br /&gt;
	end&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isDateInLeapYear = function(indate)&lt;br /&gt;
	if p.isDateJulian(indate) then&lt;br /&gt;
		return 0 == indate.year % 4&lt;br /&gt;
	end&lt;br /&gt;
	return p.isLeapYearGregorian(indate.year)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.addDaysToDate = function(indate, days)&lt;br /&gt;
	local outdate = mw.clone(indate)&lt;br /&gt;
&lt;br /&gt;
	if outdate.day == nil then return outdate end -- incompletely specified dates&lt;br /&gt;
	outdate.day = outdate.day + days&lt;br /&gt;
	local lastDayOfMonth = maxDaysInMonth[math.fmod(outdate.month-1, 12)+1]&lt;br /&gt;
	while outdate.day &amp;gt; lastDayOfMonth do&lt;br /&gt;
	    mw.logObject(outdate, &amp;quot;outdate&amp;quot;)&lt;br /&gt;
		lastDayOfMonth = maxDaysInMonth[math.fmod(outdate.month-1, 12)+1]&lt;br /&gt;
		if outdate.month == 2 and p.isDateInLeapYear(outdate) then lastDayOfMonth = 29 end&lt;br /&gt;
		outdate.month = outdate.month + 1&lt;br /&gt;
		outdate.day = outdate.day - lastDayOfMonth&lt;br /&gt;
	end&lt;br /&gt;
	while outdate.month &amp;gt; 12 do&lt;br /&gt;
		outdate.year = outdate.year + 1&lt;br /&gt;
		outdate.month = outdate.month - 12&lt;br /&gt;
	end&lt;br /&gt;
	return outdate&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.parseCentury = function(datetext)&lt;br /&gt;
	if datetext and mw.ustring.len(datetext) &amp;lt; 9 then return nil end&lt;br /&gt;
	local centuryPrefixExpected = mw.ustring.sub(mw.ustring.lower(datetext), 1, 7)&lt;br /&gt;
	if centuryPrefixExpected == &#039;secolul&#039; then&lt;br /&gt;
		local alLeaMatcherFunction = mw.ustring.gmatch(mw.ustring.lower(datetext), &#039;%s+al%s+([xivlcm]+)%-lea&#039;)&lt;br /&gt;
		local centNum = nil&lt;br /&gt;
		local centStr = nil&lt;br /&gt;
		if alLeaMatcherFunction then&lt;br /&gt;
			centStr = alLeaMatcherFunction()&lt;br /&gt;
		end&lt;br /&gt;
		if not centStr then&lt;br /&gt;
			local nonAlLEaMatcherFunction = mw.ustring.gmatch(mw.ustring.lower(datetext), &#039;%s+([xivlcm]+)%s*&#039;)&lt;br /&gt;
			if nonAlLEaMatcherFunction then&lt;br /&gt;
				centStr = nonAlLEaMatcherFunction()&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if not centStr then return nil end&lt;br /&gt;
		local romanTestIdx = 1&lt;br /&gt;
		while romanTestIdx &amp;lt; 30 do&lt;br /&gt;
			if mw.ustring.lower(roman.main({tostring(romanTestIdx)})) == mw.ustring.lower(centStr) then&lt;br /&gt;
				centNum = romanTestIdx&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			romanTestIdx = romanTestIdx + 1&lt;br /&gt;
		end&lt;br /&gt;
		if not centNum then return nil end&lt;br /&gt;
		local bcPatterns = {}&lt;br /&gt;
		table.insert(bcPatterns, &#039;î%.e%.n%.?&#039;)&lt;br /&gt;
		table.insert(bcPatterns, &#039;î%.%s*Hr%.&#039;)&lt;br /&gt;
		for _,eachBCPattern in ipairs(bcPatterns) do&lt;br /&gt;
			local eraMatchFunction = mw.ustring.gmatch(datetext, eachBCPattern)&lt;br /&gt;
			if eraMatchFunction then&lt;br /&gt;
				local eraMatch = eraMatchFunction()&lt;br /&gt;
				if eraMatch and eraMatch ~= &#039;&#039; then&lt;br /&gt;
					if centNum &amp;gt; 0 then centNum = -centNum end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return centNum&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
p.parseYear = function(datetxt)&lt;br /&gt;
	if (not mw.ustring.gmatch(datetxt, &#039;^[%d%sîd%.HrenADBC]+$&#039;)) then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local yearPattern = &#039;%d+&#039;&lt;br /&gt;
	local bcPatterns = {&#039;î%.e%.n%.?&#039;, &#039;î%.%s*Hr%.&#039;, &#039;BC&#039;}&lt;br /&gt;
	&lt;br /&gt;
	local yearMatchFunction = mw.ustring.gmatch(datetxt, yearPattern)&lt;br /&gt;
	if not yearMatchFunction then return nil end&lt;br /&gt;
	local d = {}&lt;br /&gt;
	local yearMatch = yearMatchFunction()&lt;br /&gt;
	if not yearMatch or yearMatch == &#039;&#039; then return nil end&lt;br /&gt;
	d.year = tonumber(yearMatch)&lt;br /&gt;
	d.precision = 9&lt;br /&gt;
	for _,eachBCPattern in ipairs(bcPatterns) do&lt;br /&gt;
		local eraMatchFunction = mw.ustring.gmatch(datetxt, eachBCPattern)&lt;br /&gt;
		if eraMatchFunction then&lt;br /&gt;
			local eraMatch = eraMatchFunction()&lt;br /&gt;
			if eraMatch and eraMatch ~= &#039;&#039; then&lt;br /&gt;
				if d.year &amp;gt; 0 then d.year = -d.year end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return d&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.parseDate = function(datetxt)&lt;br /&gt;
	if not datetxt then return nil end&lt;br /&gt;
	&lt;br /&gt;
	local parsers = {}&lt;br /&gt;
	local stdDateParser = {&lt;br /&gt;
			pattern = &#039;((%d%d%d%d)-(%d%d?)-(%d%d?))&#039;,&lt;br /&gt;
			patternIsMatched = function(matchArray)&lt;br /&gt;
				return tonumber(matchArray[2]) &amp;lt; 13 and tonumber(matchArray[3]) &amp;lt; 32&lt;br /&gt;
			end,&lt;br /&gt;
			extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.day = tonumber(matchArray[3])&lt;br /&gt;
				d.month = tonumber(matchArray[2])&lt;br /&gt;
				d.year = tonumber(matchArray[1])&lt;br /&gt;
				d.precision = 11&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, stdDateParser)&lt;br /&gt;
	&lt;br /&gt;
	local noHyphensStdDateParser = {&lt;br /&gt;
		pattern = &#039;((%d%d%d%d)(%d%d)(%d%d))&#039;,&lt;br /&gt;
		patternIsMatched = stdDateParser.patternIsMatched,&lt;br /&gt;
		extractDateFromText = stdDateParser.extractDateFromText&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, noHyphensStdDateParser)&lt;br /&gt;
	&lt;br /&gt;
	local roDateParser = {&lt;br /&gt;
			pattern = &#039;((%d+)%s+(%a+)%s+(%d+))&#039;,&lt;br /&gt;
			patternIsMatched = function(matchArray)&lt;br /&gt;
				return matchArray[1] and mw.ustring.len(mw.text.trim(matchArray[1])) &amp;gt; 0 and matchArray[2] and months[matchArray[2]] ~= nil&lt;br /&gt;
			end,&lt;br /&gt;
			extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.day = tonumber(matchArray[1])&lt;br /&gt;
				d.month = tonumber(months[matchArray[2]])&lt;br /&gt;
				d.year = tonumber(matchArray[3])&lt;br /&gt;
				d.precision = 11&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, roDateParser)&lt;br /&gt;
&lt;br /&gt;
	local slashedDateParser = {&lt;br /&gt;
		pattern = &#039;((%d%d)/(%d%d)/(%d%d%d%d))&#039;,&lt;br /&gt;
		patternIsMatched = function(matchArray)&lt;br /&gt;
			return matchArray[1] and tonumber(matchArray[1]) &amp;lt; 32 and matchArray[2] and tonumber(matchArray[2]) &amp;lt; 13 &lt;br /&gt;
		end,&lt;br /&gt;
		extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.day = tonumber(matchArray[1])&lt;br /&gt;
				d.month = tonumber(matchArray[2])&lt;br /&gt;
				d.year = tonumber(matchArray[3])&lt;br /&gt;
				d.precision = 11&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, slashedDateParser)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
	local enDateParser = {&lt;br /&gt;
			pattern = &#039;((%a+)%s+(%d+),%s+(%d+))&#039;,&lt;br /&gt;
			patternIsMatched = function(matchArray)&lt;br /&gt;
				return matchArray[2] and mw.ustring.len(mw.text.trim(matchArray[2])) &amp;gt; 0 and matchArray[1] and months[matchArray[1]] ~= nil&lt;br /&gt;
			end,&lt;br /&gt;
			extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.day = tonumber(matchArray[2])&lt;br /&gt;
				d.month = tonumber(months[matchArray[1]])&lt;br /&gt;
				d.year = tonumber(matchArray[3])&lt;br /&gt;
				d.precision = 11&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, enDateParser)&lt;br /&gt;
&lt;br /&gt;
	local monthOnlyParser = {	&lt;br /&gt;
			pattern = &#039;((%a+)%s+(%d+))&#039;,&lt;br /&gt;
			patternIsMatched = function(matchArray)&lt;br /&gt;
				return matchArray[1] and months[matchArray[1]] ~= nil&lt;br /&gt;
			end,&lt;br /&gt;
			extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.month = tonumber(months[matchArray[1]])&lt;br /&gt;
				d.year = tonumber(matchArray[2])&lt;br /&gt;
				d.precision = 10&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, monthOnlyParser)&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	local monthOnlyNumericParser = {	&lt;br /&gt;
			pattern = &#039;((%d+)-(%d+))&#039;,&lt;br /&gt;
			patternIsMatched = function(matchArray)&lt;br /&gt;
				return matchArray[1] and matchArray[2]&lt;br /&gt;
			end,&lt;br /&gt;
			extractDateFromText = function(matchArray)&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.month = tonumber(matchArray[2])&lt;br /&gt;
				d.year = tonumber(matchArray[1])&lt;br /&gt;
				d.precision = 10&lt;br /&gt;
				return d&lt;br /&gt;
			end&lt;br /&gt;
	}&lt;br /&gt;
	table.insert(parsers, monthOnlyNumericParser)&lt;br /&gt;
	&lt;br /&gt;
	for _,eachParser in ipairs(parsers) do&lt;br /&gt;
		local eachMatchSet = {mw.ustring.gmatch(datetxt, eachParser.pattern)()}&lt;br /&gt;
		if eachMatchSet[1] == datetxt then&lt;br /&gt;
			table.remove(eachMatchSet, 1)&lt;br /&gt;
			if eachParser.patternIsMatched(eachMatchSet) then&lt;br /&gt;
				local d = eachParser.extractDateFromText(eachMatchSet)&lt;br /&gt;
				if d ~= nil then&lt;br /&gt;
					return d&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local yr = p.parseYear(datetxt)&lt;br /&gt;
	if yr ~= nil then&lt;br /&gt;
		return yr&lt;br /&gt;
	end&lt;br /&gt;
	local cent = p.parseCentury(datetxt)&lt;br /&gt;
	if cent ~= nil then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		d.year = tonumber(cent * 100)&lt;br /&gt;
		d.precision = 7&lt;br /&gt;
		return d&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.parseWikidataDate = function(datetxt, precision)&lt;br /&gt;
	if not datetxt then return nil end&lt;br /&gt;
	if precision == nil then precision = 11 end&lt;br /&gt;
	local iSOTimeSign = mw.ustring.sub(datetxt, 1, 1)&lt;br /&gt;
	local datePattern = &#039;(%d+)-(%d+)-(%d+)&#039;&lt;br /&gt;
	local matchesIterator = mw.ustring.gmatch(mw.ustring.sub(datetxt, 2), datePattern)&lt;br /&gt;
	local yearSign = 1&lt;br /&gt;
	--local timePattern = &#039;(%d+):(%d+):(%d+)&#039;&lt;br /&gt;
	--local matchestimeIterator = mw.ustring.gmatch(datetxt, timePattern)&lt;br /&gt;
	&lt;br /&gt;
	local yearStr, monthStr, dayStr = matchesIterator()&lt;br /&gt;
	if dayStr and tonumber(dayStr) == 0 then dayStr = &amp;quot;01&amp;quot; end&lt;br /&gt;
	if monthStr and tonumber(monthStr) == 0 then monthStr = &amp;quot;01&amp;quot; end&lt;br /&gt;
	if iSOTimeSign == &amp;quot;-&amp;quot; then yearSign = -1 end&lt;br /&gt;
&lt;br /&gt;
	if precision &amp;gt;= 11 and dayStr and monthStr and yearStr then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		d.day = tonumber(dayStr)&lt;br /&gt;
		d.month = tonumber(monthStr)&lt;br /&gt;
		d.year = tonumber(yearStr) * yearSign&lt;br /&gt;
		d.precision = precision&lt;br /&gt;
		return d&lt;br /&gt;
	end&lt;br /&gt;
	if precision == 10 and monthStr and yearStr then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		d.day = 1 --this is a &amp;quot;valid 0&amp;quot;&lt;br /&gt;
		d.month = tonumber(monthStr)&lt;br /&gt;
		d.year = tonumber(yearStr) * yearSign&lt;br /&gt;
		d.precision = precision&lt;br /&gt;
		return d&lt;br /&gt;
	end&lt;br /&gt;
	if precision &amp;lt;= 9 and yearStr then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		d.day = 1 --this is a &amp;quot;valid 0&amp;quot;&lt;br /&gt;
		d.month = 1 --this is a &amp;quot;valid 0&amp;quot;&lt;br /&gt;
		d.year = tonumber(yearStr) * yearSign&lt;br /&gt;
		d.precision = precision&lt;br /&gt;
		return d&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.compare = function(d1, d2)&lt;br /&gt;
	if not d1.year and d2.year then return 1 end&lt;br /&gt;
	if not d2.year and d1.year then return -1 end&lt;br /&gt;
	if not d1.month and d2.month then&lt;br /&gt;
		if d1.year == d2.year then&lt;br /&gt;
			return 1&lt;br /&gt;
		else &lt;br /&gt;
			return d1.year - d2.year&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not d2.month and d1.month then&lt;br /&gt;
		if d1.year == d2.year then&lt;br /&gt;
			return -1&lt;br /&gt;
		else &lt;br /&gt;
			return d1.year - d2.year&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not d1.day and d2.day then &lt;br /&gt;
		if d1.year == d2.year then&lt;br /&gt;
			if d1.month == d2.month then&lt;br /&gt;
				return 1&lt;br /&gt;
			else &lt;br /&gt;
				return d1.month - d2.month&lt;br /&gt;
			end&lt;br /&gt;
		else &lt;br /&gt;
			return d1.year - d2.year&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not d2.day and d1.day then&lt;br /&gt;
		if d1.year == d2.year then&lt;br /&gt;
			if d1.month == d2.month then&lt;br /&gt;
				return -1&lt;br /&gt;
			else &lt;br /&gt;
				return d1.month - d2.month&lt;br /&gt;
			end&lt;br /&gt;
		else &lt;br /&gt;
			return d1.year - d2.year&lt;br /&gt;
		end&lt;br /&gt;
	 end&lt;br /&gt;
	if d1.year == d2.year then&lt;br /&gt;
		if d1.month == d2.month then&lt;br /&gt;
			if d1.day == d2.day then&lt;br /&gt;
				return 0&lt;br /&gt;
			else return (d1.day - d2.day) / math.abs(d1.day - d2.day)&lt;br /&gt;
			end&lt;br /&gt;
		else return (d1.month - d2.month) / math.abs(d1.month - d2.month)&lt;br /&gt;
		end&lt;br /&gt;
	else return (d1.year - d2.year) / math.abs(d1.year - d2.year)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.extractDateFromWikidataSnak = function(snak)&lt;br /&gt;
	if snak.snaktype ~= &#039;value&#039; or not snak.datavalue then return nil end&lt;br /&gt;
	local timestamp = snak.datavalue.value.time&lt;br /&gt;
	local precision = snak.datavalue.value.precision&lt;br /&gt;
	return p.parseWikidataDate(timestamp, precision)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.toISO8601 = function(s)&lt;br /&gt;
	if not s then return nil end&lt;br /&gt;
	local d = type(s) == &#039;string&#039; and p.parseDate(s) or s&lt;br /&gt;
	return mw.language.getContentLanguage():formatDate(&#039;Y-m-d&#039;, os.date(&#039;%d %B %Y&#039;, os.time(d)))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.addDaysToDateFromFrame = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local days = args.delta and tonumber(args.delta) or 1&lt;br /&gt;
	local today&lt;br /&gt;
	if args.referenceDate then&lt;br /&gt;
		today = p.parseDate(args.referenceDate)&lt;br /&gt;
	else&lt;br /&gt;
		today = os.date(&amp;quot;*t&amp;quot;)&lt;br /&gt;
		today.precision = 11&lt;br /&gt;
	end&lt;br /&gt;
	local tomorrow = p.addDaysToDate(today, days)&lt;br /&gt;
	return p.formatDate(tomorrow, false, args.notimetag ~= nil, args.dateFormat)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.daysBetween(d1, d2)&lt;br /&gt;
	if d1.precision &amp;lt; 10 then&lt;br /&gt;
		d1.month = 1&lt;br /&gt;
	end&lt;br /&gt;
	if d1.precision &amp;lt; 11 then&lt;br /&gt;
		d1.day = 1&lt;br /&gt;
	end&lt;br /&gt;
	if d2.precision &amp;lt; 10 then&lt;br /&gt;
		d2.month = 12&lt;br /&gt;
	end&lt;br /&gt;
	if d2.precision &amp;lt; 11 then&lt;br /&gt;
		d2.day = maxDaysInMonth[d1.month]&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local time1 = os.time(d1)&lt;br /&gt;
	local time2 = os.time(d2)&lt;br /&gt;
	local secsdiff = os.difftime(time2, time1)&lt;br /&gt;
	return secsdiff / 3600 / 24&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:StringUtils&amp;diff=336</id>
		<title>Modul:StringUtils</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:StringUtils&amp;diff=336"/>
		<updated>2024-07-14T19:55:51Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local arguments = require(&amp;#039;Modul:Arguments&amp;#039;) local TableTools = require(&amp;#039;Modul:TableTools&amp;#039;)  local function makeInvokeFunc(funcName) 	return function (frame) 		local args = arguments.getArgs(frame, { wrappers = &amp;#039;Format:Ifempty&amp;#039; }) 		local firstRet,secondRet = p[funcName](args) 		return firstRet 	end end  -- Adaugă la începutul unui șir un prefix, dacă nu există deja acolo el sau unul dintre cele listate în ultimul argument function p._prependIfMissing(...)...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local arguments = require(&#039;Modul:Arguments&#039;)&lt;br /&gt;
local TableTools = require(&#039;Modul:TableTools&#039;)&lt;br /&gt;
&lt;br /&gt;
local function makeInvokeFunc(funcName)&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		local args = arguments.getArgs(frame, { wrappers = &#039;Format:Ifempty&#039; })&lt;br /&gt;
		local firstRet,secondRet = p[funcName](args)&lt;br /&gt;
		return firstRet&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Adaugă la începutul unui șir un prefix, dacă nu există deja acolo el sau unul dintre cele listate în ultimul argument&lt;br /&gt;
function p._prependIfMissing(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1] and tostring(args[1]) or nil&lt;br /&gt;
	local prefix = args[2]&lt;br /&gt;
	local others = {}&lt;br /&gt;
	for argIdx = 2, TableTools.size(args) do&lt;br /&gt;
		table.insert(others, args[argIdx])&lt;br /&gt;
	end&lt;br /&gt;
	if str == nil then return nil end&lt;br /&gt;
	if prefix == nil then return str end&lt;br /&gt;
	&lt;br /&gt;
	for i, eachPrefix in pairs(others) do	&lt;br /&gt;
		if mw.ustring.find(str, eachPrefix, 1, true) == 1 then return str end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return prefix .. str&lt;br /&gt;
end&lt;br /&gt;
p.prependIfMissing = makeInvokeFunc(&#039;_prependIfMissing&#039;)&lt;br /&gt;
&lt;br /&gt;
-- Adaugă la sfârșitul unui șir un sufix, dacă nu există deja acolo el sau unul dintre cele listate în ultimul argument&lt;br /&gt;
function p._appendIfMissing(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = tostring(args[1])&lt;br /&gt;
	local suffix = args[2]&lt;br /&gt;
	local others = {}&lt;br /&gt;
	for argK,argV in pairs(args) do&lt;br /&gt;
		if argK &amp;gt; 1 then&lt;br /&gt;
			table.insert(others, argV)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if str == nil then return nil end&lt;br /&gt;
	if suffix == nil then return str end&lt;br /&gt;
&lt;br /&gt;
	for i, eachSuffix in pairs(others) do&lt;br /&gt;
		local suffixStart&lt;br /&gt;
		local suffixEnd&lt;br /&gt;
		suffixStart, suffixEnd = mw.ustring.find(str, eachSuffix, 1, true) &lt;br /&gt;
		if suffixEnd == mw.ustring.len(str) then return str end&lt;br /&gt;
	end&lt;br /&gt;
	return str .. suffix&lt;br /&gt;
end&lt;br /&gt;
p.appendIfMissing = makeInvokeFunc(&#039;_appendIfMissing&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._emptyToNil(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if str == &#039;&#039; then return nil end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
p.emptyToNil = makeInvokeFunc(&#039;_emptyToNil&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._capitalize(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if str == nil then return nil end&lt;br /&gt;
	return mw.ustring.upper(mw.ustring.sub(str, 1, 1)) .. mw.ustring.sub(str,2);&lt;br /&gt;
end&lt;br /&gt;
p.capitalize = makeInvokeFunc(&#039;_capitalize&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._removeStart(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if str == nil then return nil end&lt;br /&gt;
	for pfIdx = 2,TableTools.size(args) do&lt;br /&gt;
		local prefix = args[pfIdx]&lt;br /&gt;
		if prefix == nil then return str end&lt;br /&gt;
		if mw.ustring.sub(str, 1, mw.ustring.len(prefix)) == prefix then return mw.ustring.sub(str, mw.ustring.len(prefix) + 1, mw.ustring.len(str)) end&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
p.removeStart = makeInvokeFunc(&#039;_removeStart&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._removeEnd(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if str == nil then return nil end&lt;br /&gt;
	for sfIdx = 2,TableTools.size(args) do&lt;br /&gt;
		local suffix = args[sfIdx]&lt;br /&gt;
		if suffix == nil then return str end&lt;br /&gt;
		if mw.ustring.sub(str, -mw.ustring.len(suffix)) == suffix then return mw.ustring.sub(str, 1, -mw.ustring.len(suffix) - 1) end&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
p.removeEnd = makeInvokeFunc(&#039;_removeEnd&#039;)&lt;br /&gt;
&lt;br /&gt;
function p.__isEmpty(str)&lt;br /&gt;
	return str == nil or (type(str) == &#039;string&#039; and mw.ustring.len(str) == 0)&lt;br /&gt;
end&lt;br /&gt;
function p._isEmpty(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	return p.__isEmpty(str)&lt;br /&gt;
end&lt;br /&gt;
p.isEmpty = makeInvokeFunc(&#039;_isEmpty&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._trim(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if not str then return nil end&lt;br /&gt;
	return mw.text.trim(str)&lt;br /&gt;
end&lt;br /&gt;
p.trim = makeInvokeFunc(&#039;_trim&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._startsWithAny(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if not str then return false end&lt;br /&gt;
	local idx = 2&lt;br /&gt;
	while idx &amp;lt;= TableTools.size(args) do&lt;br /&gt;
		if args[idx] and mw.ustring.sub(str, 1, mw.ustring.len(args[idx])) == args[idx] then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
		idx = idx + 1&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.startsWithAny = makeInvokeFunc(&#039;_startsWithAny&#039;)&lt;br /&gt;
p._startsWith = p._startsWithAny&lt;br /&gt;
p.startsWith = makeInvokeFunc(&#039;_startsWith&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._endsWithAny(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if not str then return false end&lt;br /&gt;
	local idx = 2&lt;br /&gt;
	while idx &amp;lt;= TableTools.size(args) do&lt;br /&gt;
		if args[idx] and mw.ustring.sub(str, mw.ustring.len(str) - mw.ustring.len(args[idx]) + 1, mw.ustring.len(str)) == args[idx] then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
		idx = idx + 1&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.endsWithAny = makeInvokeFunc(&#039;_endsWith&#039;)&lt;br /&gt;
p._endsWith = p._endsWithAny&lt;br /&gt;
p.endsWith = makeInvokeFunc(&#039;_endsWith&#039;)&lt;br /&gt;
	&lt;br /&gt;
function p._substringBefore(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if not str then return nil end&lt;br /&gt;
	local idx = 2&lt;br /&gt;
	local substringEndPos = 1 + mw.ustring.len(str)&lt;br /&gt;
	local firstSep = &#039;&#039;&lt;br /&gt;
	while idx &amp;lt;= TableTools.size(args) do&lt;br /&gt;
		if args[idx] then&lt;br /&gt;
			local substringStart = mw.ustring.find(str, args[idx], 1, true)&lt;br /&gt;
			if substringStart and substringStart &amp;lt; substringEndPos then&lt;br /&gt;
				substringEndPos = substringStart&lt;br /&gt;
				firstSep = args[idx]&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		idx = idx + 1&lt;br /&gt;
	end&lt;br /&gt;
	return mw.ustring.sub(str, 1, substringEndPos-1), firstSep&lt;br /&gt;
end&lt;br /&gt;
p.substringBefore = makeInvokeFunc(&#039;_substringBefore&#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p._substringAfter(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	if not str then return nil end&lt;br /&gt;
	local idx = 2&lt;br /&gt;
	local substringStartPos = 1 + mw.ustring.len(str)&lt;br /&gt;
	local firstSep = &#039;&#039;&lt;br /&gt;
	while args[idx] ~= nil do&lt;br /&gt;
		local substringStart = mw.ustring.find(str, args[idx], 1, true)&lt;br /&gt;
		if substringStart and substringStart &amp;lt; substringStartPos then&lt;br /&gt;
			substringStartPos = substringStart + mw.ustring.len(args[idx])&lt;br /&gt;
			firstSep = args[idx]&lt;br /&gt;
		end&lt;br /&gt;
		idx = idx + 1&lt;br /&gt;
	end&lt;br /&gt;
	if substringStartPos &amp;gt; mw.ustring.len(str) then return str end&lt;br /&gt;
	return mw.ustring.sub(str, substringStartPos), firstSep&lt;br /&gt;
end&lt;br /&gt;
p.substringAfter = makeInvokeFunc(&#039;_substringAfter&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._defaultString(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local compressedArgs = TableTools.compressSparseArray(args)&lt;br /&gt;
&lt;br /&gt;
	if #compressedArgs == 0 then return &#039;&#039; end&lt;br /&gt;
	return compressedArgs[1]&lt;br /&gt;
end&lt;br /&gt;
p.defaultString = makeInvokeFunc(&#039;_defaultString&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._appendToString(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	local suffix = args[2]&lt;br /&gt;
	if str then&lt;br /&gt;
		return tostring(str) .. tostring(suffix or &#039;&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
p.appendToString = makeInvokeFunc(&#039;_appendToString&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._prependToString(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]&lt;br /&gt;
	local prefix = args[2]&lt;br /&gt;
	if str then&lt;br /&gt;
		return tostring(prefix or &#039;&#039;) .. tostring(str)&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
p.prependToString = makeInvokeFunc(&#039;_prependToString&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._encloseString(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	return p._prependToString({p._emptyToNil({p._appendToString({args[1], args[3]})}), args[2]})&lt;br /&gt;
end&lt;br /&gt;
p.encloseString = makeInvokeFunc(&#039;_encloseString&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._stripNamespace(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	s,_ = p._substringAfter({args[1],&#039;:&#039;})&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
p.stripNamespace = makeInvokeFunc(&#039;_stripNamespace&#039;)&lt;br /&gt;
&lt;br /&gt;
-- Determină dacă o secvență de text conține o legătură spre un articol anume.&lt;br /&gt;
function p._findLinkByTitle(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local str = args[1]:gsub(&#039;_&#039;, &#039; &#039;)&lt;br /&gt;
	local pattern = &#039;%[%[%s*&#039; .. p._trim({(args[2] or &#039;&#039;):gsub(&#039;_&#039;, &#039; &#039;)}):gsub(&#039;([+*?%-%(%)%%%.])&#039;, &#039;%%%1&#039;) .. &#039;%s*[%]|]&#039;&lt;br /&gt;
	if str then&lt;br /&gt;
		return str:find(pattern, 1, false) or 0&lt;br /&gt;
	end&lt;br /&gt;
	return 0&lt;br /&gt;
end&lt;br /&gt;
p.findLinkByTitle = makeInvokeFunc(&#039;_findLinkByTitle&#039;)&lt;br /&gt;
&lt;br /&gt;
function p._firstValue(...)&lt;br /&gt;
	local args = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local compactedArgs = TableTools.compressSparseArray(args)&lt;br /&gt;
	return #compactedArgs &amp;gt; 0 and compactedArgs[1] or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
p.firstValue = makeInvokeFunc(&#039;_firstValue&#039;)&lt;br /&gt;
&lt;br /&gt;
function p.isNilOrEmpty(argument)&lt;br /&gt;
	return argument == nil or argument == {} or mw.text.trim(argument) == &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Wikidata&amp;diff=335</id>
		<title>Modul:Wikidata</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Wikidata&amp;diff=335"/>
		<updated>2024-07-14T19:54:48Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs local SepEntries = require(&amp;#039;Module:Separated entries&amp;#039;) local StringUtils = require(&amp;#039;Modul:StringUtils&amp;#039;) local DateUtils = require(&amp;#039;Modul:DateUtils&amp;#039;) local GregorianDate = require(&amp;#039;Modul:GregorianDate&amp;#039;) local Citation = require(&amp;#039;Modul:Citation/CS1&amp;#039;) local TableTools = require(&amp;#039;Modul:TableTools&amp;#039;) local LangUtils = require(&amp;#039;Modul:LangUtils&amp;#039;) local plural = require(&amp;#039;Modul:Plural&amp;#039;).build_plural  local Transliteration = require(&amp;#039;M...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
local SepEntries = require(&#039;Module:Separated entries&#039;)&lt;br /&gt;
local StringUtils = require(&#039;Modul:StringUtils&#039;)&lt;br /&gt;
local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local GregorianDate = require(&#039;Modul:GregorianDate&#039;)&lt;br /&gt;
local Citation = require(&#039;Modul:Citation/CS1&#039;)&lt;br /&gt;
local TableTools = require(&#039;Modul:TableTools&#039;)&lt;br /&gt;
local LangUtils = require(&#039;Modul:LangUtils&#039;)&lt;br /&gt;
local plural = require(&#039;Modul:Plural&#039;).build_plural &lt;br /&gt;
local Transliteration = require(&#039;Modul:Transliteration&#039;)&lt;br /&gt;
local Set = require(&#039;Modul:Set&#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
local libraryUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
&lt;br /&gt;
local wdReferences = {}&lt;br /&gt;
&lt;br /&gt;
-- internationalisation&lt;br /&gt;
local i18n = {&lt;br /&gt;
    [&amp;quot;errors&amp;quot;] = {&lt;br /&gt;
        [&amp;quot;property-not-found&amp;quot;] = &amp;quot;Proprietatea nu a fost găsită.&amp;quot;,&lt;br /&gt;
        [&amp;quot;entity-not-found&amp;quot;] = &amp;quot;Itfemul Wikidata nu a fost găsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;unknown-claim-type&amp;quot;] = &amp;quot;Tip de afirmație negăsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;unknown-snak-type&amp;quot;] = &amp;quot;Tip de Snak negăsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;unknown-datavalue-type&amp;quot;] = &amp;quot;Tip de date negăsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;unknown-entity-type&amp;quot;] = &amp;quot;Tip de item negăsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;qualifier-not-found&amp;quot;] = &amp;quot;Calificator negăsit.&amp;quot;,&lt;br /&gt;
        [&amp;quot;site-not-found&amp;quot;] = &amp;quot;Proiect Wikimedia negăsit.&amp;quot;,&lt;br /&gt;
    },&lt;br /&gt;
    [&amp;quot;somevalue&amp;quot;] = &amp;quot;O valoare&amp;quot;,&lt;br /&gt;
    [&amp;quot;novalue&amp;quot;] = &amp;quot;Nicio valoare&amp;quot;,&lt;br /&gt;
    [&amp;quot;datetime&amp;quot;] =&lt;br /&gt;
	{&lt;br /&gt;
		-- $1 is a placeholder for the actual number&lt;br /&gt;
		[0] = &amp;quot;$1 miliarde de ani&amp;quot;,		-- precision: billion years&lt;br /&gt;
		[1] = &amp;quot;$100 milioane de ani&amp;quot;,	-- precision: hundred million years&lt;br /&gt;
		[2] = &amp;quot;$10 milioane de ani&amp;quot;,	-- precision: ten million years&lt;br /&gt;
		[3] = &amp;quot;$1 milioane de ani&amp;quot;,		-- precision: million years&lt;br /&gt;
		[4] = &amp;quot;$100.000 de ani&amp;quot;,	-- precision: hundred thousand years&lt;br /&gt;
		[5] = &amp;quot;$10.000 de ani&amp;quot;,		-- precision: ten thousand years&lt;br /&gt;
		[6] = &amp;quot;mileniul $1&amp;quot;, 	-- precision: millennium&lt;br /&gt;
		[7] = &amp;quot;secolul $1&amp;quot;,	-- precision: century&lt;br /&gt;
		[8] = &amp;quot;deceniul anilor $1&amp;quot;,				-- precision: decade&lt;br /&gt;
		-- the following use the format of #time parser function&lt;br /&gt;
		[9]  = &amp;quot;Y&amp;quot;,					-- precision: year, &lt;br /&gt;
		[10] = &amp;quot;F Y&amp;quot;,				-- precision: month&lt;br /&gt;
		[11] = &amp;quot;j F Y&amp;quot;,			-- precision: day&lt;br /&gt;
		[12] = &#039;j F Y, &amp;quot;orele&amp;quot; G&#039;,	-- precision: hour&lt;br /&gt;
		[13] = &amp;quot;j F Y G:i&amp;quot;,		-- precision: minute&lt;br /&gt;
		[14] = &amp;quot;j F Y G:i:s&amp;quot;,		-- precision: second&lt;br /&gt;
		[&amp;quot;beforenow&amp;quot;] = &amp;quot;acum $1&amp;quot;,	-- how to format negative numbers for precisions 0 to 5&lt;br /&gt;
		[&amp;quot;afternow&amp;quot;] = &amp;quot;peste $1&amp;quot;,		-- how to format positive numbers for precisions 0 to 5&lt;br /&gt;
		[&amp;quot;bc&amp;quot;] = &#039;$1 &amp;quot;î.e.n.&amp;quot;&#039;,		-- how print negative years&lt;br /&gt;
		[&amp;quot;ad&amp;quot;] = &amp;quot;$1&amp;quot;				-- how print positive years&lt;br /&gt;
	},&lt;br /&gt;
	[&amp;quot;monolingualtext&amp;quot;] = &#039;&amp;lt;span lang=&amp;quot;%language&amp;quot;&amp;gt;%text&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
	[&amp;quot;warnDump&amp;quot;] = &amp;quot;[[Categorie:Apel de funcție &#039;Dump&#039; din modulul Wikidata]]&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local function propAndEntity(arg1, arg2)&lt;br /&gt;
	local propId, entId&lt;br /&gt;
	for _,eachArg in ipairs({arg1, arg2}) do&lt;br /&gt;
		if mw.ustring.match(eachArg, &#039;Q%d+&#039;) == eachArg then&lt;br /&gt;
			entId = eachArg&lt;br /&gt;
		elseif mw.ustring.match(eachArg, &#039;P%d+&#039;) == eachArg then&lt;br /&gt;
			propId = eachArg&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return propId, entId&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function wrapInLangSpan(text, lang)&lt;br /&gt;
	if not text then return nil end&lt;br /&gt;
	if not lang or lang == &#039;ro&#039; then return text end&lt;br /&gt;
	local langSpan = mw.html.create(&#039;span&#039;):attr(&#039;lang&#039;, lang):wikitext(text)&lt;br /&gt;
	return tostring(langSpan)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isClaimTrue(claim)&lt;br /&gt;
	return mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(claim.rank)] &amp;gt;= mw.wikibase.entity.claimRanks.RANK_NORMAL&lt;br /&gt;
end&lt;br /&gt;
p.isClaimTrue = isClaimTrue&lt;br /&gt;
&lt;br /&gt;
--- returns true if the claim has a better (or equal) rank than the threshhold specified&lt;br /&gt;
--- threshholdRank can be &amp;quot;normal&amp;quot;, &amp;quot;preferred&amp;quot; etc.&lt;br /&gt;
local function hasBetterRank(claim, threshholdRank)&lt;br /&gt;
	return (not threshholdRank&lt;br /&gt;
			or mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(claim.rank)] &amp;gt;= mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(threshholdRank)])&lt;br /&gt;
				and isClaimTrue(claim)&lt;br /&gt;
end&lt;br /&gt;
p.hasBetterRank = hasBetterRank&lt;br /&gt;
&lt;br /&gt;
function p.descriptionIn(frame)&lt;br /&gt;
	local langcode = frame.args[1]&lt;br /&gt;
	local id = frame.args[2]&lt;br /&gt;
	-- return description of a Wikidata entity in the given language or the default language of this Wikipedia site&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject(id)&lt;br /&gt;
	if entity then&lt;br /&gt;
		return entity.descriptions[langcode or lang.code].value&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getEntityId(frame)&lt;br /&gt;
	return mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.labelIn(frame)&lt;br /&gt;
	local langcode = frame.args[1]&lt;br /&gt;
	local id = frame.args[2] or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	-- return label of a Wikidata entity in the given language or the default language of this Wikipedia site&lt;br /&gt;
	local entity&lt;br /&gt;
	if id then&lt;br /&gt;
		return mw.wikibase.getLabelByLang(id, langcode or lang.code)&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isValueSnak(snak)&lt;br /&gt;
	return snak and snak.snaktype == &#039;value&#039;&lt;br /&gt;
end&lt;br /&gt;
p.isValueSnak = isValueSnak&lt;br /&gt;
&lt;br /&gt;
local function hasValueSnak(claim)&lt;br /&gt;
	return claim and claim.type == &#039;statement&#039; and isValueSnak(claim.mainsnak)&lt;br /&gt;
end&lt;br /&gt;
p.hasValueSnak = hasValueSnak&lt;br /&gt;
&lt;br /&gt;
local function hasRankAtLeastNormal(claim)&lt;br /&gt;
	return claim and claim.rank and mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(claim.rank)] &amp;gt; mw.wikibase.entity.claimRanks.RANK_DEPRECATED&lt;br /&gt;
end&lt;br /&gt;
p.claimHasRankAtLeastNormal = hasRankAtLeastNormal&lt;br /&gt;
&lt;br /&gt;
local function isWritingSystemLatn(lId)&lt;br /&gt;
	local writingSystems = { lId }&lt;br /&gt;
	&lt;br /&gt;
	local loopIdx = 1&lt;br /&gt;
	repeat&lt;br /&gt;
		local crtWritingSystemId = table.remove(writingSystems, 1)&lt;br /&gt;
		local writingSystemInstanceOfClaims = p.findBestClaimsForProperty(crtWritingSystemId, &#039;P31&#039;)&lt;br /&gt;
		if writingSystemInstanceOfClaims then for _,eachScriptInstanceOfClaim in ipairs(writingSystemInstanceOfClaims) do&lt;br /&gt;
			if p.hasValueSnak(eachScriptInstanceOfClaim) and eachScriptInstanceOfClaim.mainsnak.datavalue.value.id == &#039;Q29575627&#039; then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end end&lt;br /&gt;
		local writingSystemClaims = p.findBestClaimsForProperty(crtWritingSystemId, &#039;P282&#039;)&lt;br /&gt;
		if writingSystemClaims then for _,eachWritingSystemClaim in ipairs(writingSystemClaims) do&lt;br /&gt;
			if p.hasValueSnak(eachWritingSystemClaim) then&lt;br /&gt;
				if eachWritingSystemClaim.mainsnak.datavalue.value.id == &#039;Q8229&#039; then&lt;br /&gt;
					return true&lt;br /&gt;
				end&lt;br /&gt;
				table.insert(writingSystems, eachWritingSystemClaim.mainsnak.datavalue.value.id)&lt;br /&gt;
			end&lt;br /&gt;
		end end&lt;br /&gt;
		loopIdx = loopIdx + 1&lt;br /&gt;
	until #writingSystems == 0 or loopIdx &amp;gt;= 20&lt;br /&gt;
&lt;br /&gt;
	return false	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function findNativeOrEnglishLabel(entityId, capitalize)&lt;br /&gt;
	local label&lt;br /&gt;
	local labelLang&lt;br /&gt;
	if not entityId then&lt;br /&gt;
		entityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	end&lt;br /&gt;
	if not entityId then return nil end&lt;br /&gt;
	local langIds = {}&lt;br /&gt;
	for _,eachLangProp in ipairs({&#039;P103&#039;, &#039;P407&#039;, &#039;P37&#039;, &#039;P364&#039;}) do&lt;br /&gt;
		for __,eachLangClaim in ipairs(mw.wikibase.getBestStatements(entityId, eachLangProp)) do&lt;br /&gt;
			if hasValueSnak(eachLangClaim) then&lt;br /&gt;
				table.insert(langIds, eachLangClaim.mainsnak.datavalue.value.id)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	for _,eachCountryProp in ipairs({&#039;P17&#039;, &#039;P27&#039;}) do&lt;br /&gt;
		for __,eachCountry in ipairs(mw.wikibase.getBestStatements(entityId, eachCountryProp)) do&lt;br /&gt;
			if hasValueSnak(eachCountry) then&lt;br /&gt;
				for ___,eachOffLang in ipairs(mw.wikibase.getBestStatements(eachCountry.mainsnak.datavalue.value.id, &#039;P37&#039;)) do&lt;br /&gt;
					if hasValueSnak(eachOffLang) then&lt;br /&gt;
						table.insert(langIds, eachOffLang.mainsnak.datavalue.value.id)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	table.insert(langIds, &#039;Q1860&#039;)&lt;br /&gt;
	langIds = TableTools.mergeSort(langIds, function(l1, l2)&lt;br /&gt;
			if l2 and not l1 then return 1 end&lt;br /&gt;
			if l1 and not l2 then return -1 end&lt;br /&gt;
			if l1 == l2 then return 0 end&lt;br /&gt;
			&lt;br /&gt;
			local l1IsLatn = isWritingSystemLatn(l1) or Transliteration.isTransliterationSupported(p.loadOneValueInChain({l1, &#039;P218&#039;}))&lt;br /&gt;
			local l2IsLatn = isWritingSystemLatn(l2) or Transliteration.isTransliterationSupported(p.loadOneValueInChain({l2, &#039;P218&#039;}))&lt;br /&gt;
			if l1IsLatn and not l2IsLatn then&lt;br /&gt;
				return -1&lt;br /&gt;
			elseif not l1IsLatn and l2IsLatn then&lt;br /&gt;
				return 1&lt;br /&gt;
			else&lt;br /&gt;
			    return 0&lt;br /&gt;
			end&lt;br /&gt;
	end)&lt;br /&gt;
	local langsToTry = {}&lt;br /&gt;
	for _,eachLangId in ipairs(langIds) do&lt;br /&gt;
		for __,eachLangCodeClaim in ipairs(mw.wikibase.getBestStatements(eachLangId, &#039;P424&#039;)) do&lt;br /&gt;
			if not labelLang and hasValueSnak(eachLangCodeClaim) then&lt;br /&gt;
				table.insert(langsToTry, eachLangCodeClaim.mainsnak.datavalue.value)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local simplifiedLangsToTry = {}&lt;br /&gt;
	for _,eachLangToTry in ipairs(langsToTry) do&lt;br /&gt;
		local simplifiedLang = StringUtils._substringBefore({StringUtils._substringBefore({eachLangToTry, &#039;_&#039;}), &#039;-&#039;})&lt;br /&gt;
		table.insert(simplifiedLangsToTry, simplifiedLang)&lt;br /&gt;
	end&lt;br /&gt;
	langsToTry = simplifiedLangsToTry&lt;br /&gt;
	for _,eachLang in ipairs(langsToTry) do&lt;br /&gt;
		if label == nil then&lt;br /&gt;
			label = mw.wikibase.getLabelByLang(entityId, eachLang)&lt;br /&gt;
			labelLang = eachLang&lt;br /&gt;
		end&lt;br /&gt;
		if label then break end&lt;br /&gt;
	end&lt;br /&gt;
	if label then&lt;br /&gt;
		if labelLang and labelLang ~= &#039;ro&#039; and not Transliteration.isTransliterationSupported(labelLang) then&lt;br /&gt;
			label = wrapInLangSpan(label, labelLang)&lt;br /&gt;
		end&lt;br /&gt;
		if Transliteration.isTransliterationSupported(labelLang) then&lt;br /&gt;
			label = wrapInLangSpan(Transliteration.transliterate(label, labelLang), labelLang .. &#039;-Latn&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		if capitalize then&lt;br /&gt;
			label = lang:ucfirst(label)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return label, labelLang&lt;br /&gt;
end&lt;br /&gt;
p.findNativeOrEnglishLabel = findNativeOrEnglishLabel&lt;br /&gt;
&lt;br /&gt;
p.getNativeOrEnglishLabel = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local label, lang = findNativeOrEnglishLabel(args[1], args[2])&lt;br /&gt;
	if label then return label else return nil end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function invisibleLinkTrail(label, description, out)&lt;br /&gt;
&lt;br /&gt;
	if mw.isSubsting() then return &amp;quot;&amp;quot; end&lt;br /&gt;
	return mw.getCurrentFrame():preprocess(&amp;quot;{{invizibil|1=[[&amp;quot; .. label ..&amp;quot; &amp;quot; .. description .. &amp;quot;|&amp;amp;#8203;]]}}&amp;quot;) .. out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function computeWikidataLinkText(qIfiedEntityId, label, description, out)&lt;br /&gt;
	return &amp;quot;[[:d:&amp;quot; .. qIfiedEntityId .. &amp;quot;|&amp;quot; .. label .. &amp;quot;]]&amp;lt;abbr title=&#039;Articolul încă nu există în acest wiki&#039;&amp;gt;[*]&amp;lt;/abbr&amp;gt;&amp;quot; .. invisibleLinkTrail(label, description, out)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function computeWikidataLinkWithIll(qIfiedEntityId, label, description, out)&lt;br /&gt;
	return mw.getCurrentFrame():preprocess(&amp;quot;{{ill-wd|&amp;quot; .. qIfiedEntityId .. &amp;quot;||3=&amp;quot; .. label .. &amp;quot;}}&amp;quot;) .. invisibleLinkTrail(label, description, out)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Handle unit snaks by possibly converting to SI&lt;br /&gt;
-- return multiplier, unitQ&lt;br /&gt;
local function computeUnitInfo(unit)&lt;br /&gt;
	return 1, mw.ustring.match(unit, &#039;Q%d+&#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- return the SI conversion and unit corresponding to the unit&lt;br /&gt;
local function computeSIUnitInfo(unit)&lt;br /&gt;
	local unitQ = mw.ustring.match(unit, &#039;Q%d+&#039;)&lt;br /&gt;
	if unitQ ~= nil then&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(unitQ, &#039;P2370&#039;)&lt;br /&gt;
		if claims and 0 &amp;lt; #claims then&lt;br /&gt;
			for _,eachClaim in ipairs(claims) do&lt;br /&gt;
				if hasValueSnak(eachClaim) and eachClaim.mainsnak.datavalue.type == &amp;quot;quantity&amp;quot; and mw.ustring.match(eachClaim.mainsnak.datavalue.value.unit, &#039;Q%d+&#039;) ~= nil then&lt;br /&gt;
					return eachClaim.mainsnak.datavalue.value.amount, mw.ustring.match(eachClaim.mainsnak.datavalue.value.unit, &#039;Q%d+&#039;)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return 1, unitQ&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
local function parseTopLevelArgs(args)&lt;br /&gt;
	if args[&#039;ill&#039;] ~= nil then computeWikidataLinkText = computeWikidataLinkWithIll end&lt;br /&gt;
	if args[&#039;si&#039;] ~= nil then computeUnitInfo = computeSIUnitInfo end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function computeLinkToItem(entityId, capitalize, callFunction, plainCallFunction)&lt;br /&gt;
	local qIfiedEntityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;})&lt;br /&gt;
	local sitelink = mw.wikibase.sitelink(qIfiedEntityId)&lt;br /&gt;
	local label = nil&lt;br /&gt;
	local labelLang = nil&lt;br /&gt;
	local object = nil&lt;br /&gt;
	local out = &amp;quot;&amp;quot;&lt;br /&gt;
	local description = nil&lt;br /&gt;
	if plainCallFunction and type(plainCallFunction) == &#039;function&#039; then&lt;br /&gt;
		label, labelLang = plainCallFunction(qIfiedEntityId)&lt;br /&gt;
	elseif callFunction and type(callFunction) == &#039;function&#039; then&lt;br /&gt;
		object = mw.wikibase.getEntityObject(qIfiedEntityId)&lt;br /&gt;
		label, labelLang = callFunction(object)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if label == nil or (labelLang and labelLang ~= lang.code) then &lt;br /&gt;
		label = mw.wikibase.getLabelByLang(qIfiedEntityId, &#039;ro&#039;)&lt;br /&gt;
		if label then labelLang = &#039;ro&#039; end&lt;br /&gt;
		description = mw.wikibase.getDescription(qIfiedEntityId)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not label then&lt;br /&gt;
		label, labelLang = findNativeOrEnglishLabel(qIfiedEntityId, capitalize)&lt;br /&gt;
	elseif capitalize then&lt;br /&gt;
		label = lang:ucfirst(label)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not label then&lt;br /&gt;
		label = qIfiedEntityId&lt;br /&gt;
		labelLang = nil&lt;br /&gt;
	end&lt;br /&gt;
	if description then description = &amp;quot;(&amp;quot; .. description .. &amp;quot;)&amp;quot; end&lt;br /&gt;
	if label == qIfiedEntityId then&lt;br /&gt;
		out = &amp;quot;[[Categorie:Articole cu legături către elemente fără etichetă]]&amp;quot;&lt;br /&gt;
	elseif labelLang ~= &#039;ro&#039; then&lt;br /&gt;
		out = &amp;quot;[[Categorie:Articole cu legături către elemente fără etichetă în limba română]]&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	description = description or &amp;quot;&amp;quot;&lt;br /&gt;
	if sitelink then&lt;br /&gt;
		return &amp;quot;[[:&amp;quot; .. sitelink .. &amp;quot;|&amp;quot; .. label .. &amp;quot;]]&amp;quot; .. out&lt;br /&gt;
	else&lt;br /&gt;
		local coextensiveWithPageId = p.loadOneValueInChain({qIfiedEntityId, &#039;P3403&#039;, &#039;raw&#039;})&lt;br /&gt;
		local listPageId = p.loadOneValueInChain({qIfiedEntityId, &#039;P2354&#039;, &#039;raw&#039;})&lt;br /&gt;
		local listPageSitelink = listPageId and mw.wikibase.sitelink(listPageId) or coextensiveWithPageId and mw.wikibase.sitelink(coextensiveWithPageId)&lt;br /&gt;
		if listPageSitelink then return &amp;quot;[[:&amp;quot; .. listPageSitelink .. &amp;quot;|&amp;quot; .. label .. &amp;quot;]]&amp;quot; end&lt;br /&gt;
		return computeWikidataLinkText(qIfiedEntityId, label, description, out)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToItemWithLabel = function(entityId, label)&lt;br /&gt;
	local sitelink = mw.wikibase.sitelink(StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;}))&lt;br /&gt;
	if sitelink then&lt;br /&gt;
		return &amp;quot;[[:&amp;quot; .. sitelink .. &amp;quot;|&amp;quot; .. label .. &amp;quot;]]&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		return computeLinkToItem(entityId, false, nil, function() return label end)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToItemWithCallback = function(entityId, capitalize, callBack, plainCallBack)&lt;br /&gt;
	return computeLinkToItem(entityId, capitalize, callBack, plainCallBack)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToItemWithLabelFromAnyClaim = function(entityId, capitalize, propertyIdsTable)&lt;br /&gt;
	local callFunction = nil&lt;br /&gt;
	if propertyIdsTable then&lt;br /&gt;
		callFunction = function(object)&lt;br /&gt;
			local returnValue = nil&lt;br /&gt;
			for propIdIdx,propertyId in pairs(propertyIdsTable) do&lt;br /&gt;
				if object and object.claims and object.claims[propertyId] and returnValue == nil then&lt;br /&gt;
					for eachClaimIdx, eachClaim in pairs(object.claims[propertyId]) do&lt;br /&gt;
						if hasValueSnak(eachClaim) and eachClaim.mainsnak.datavalue then&lt;br /&gt;
							if eachClaim.mainsnak.datavalue.type == &#039;monolingualtext&#039; then&lt;br /&gt;
								if eachClaim.mainsnak.datavalue.value.language == &#039;ro&#039; then returnValue = eachClaim.mainsnak.datavalue.value.text end&lt;br /&gt;
							elseif eachClaim.mainsnak.datavalue.type == &#039;wikibase-entityid&#039; then&lt;br /&gt;
								returnValue = mw.wikibase.label(StringUtils._prependIfMissing({tostring(eachClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;]), &#039;Q&#039;}))&lt;br /&gt;
							elseif eachClaim.mainsnak.datavalue.type == &#039;string&#039; then&lt;br /&gt;
								returnValue = eachClaim.mainsnak.datavalue.value&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			return returnValue&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return computeLinkToItem(entityId, capitalize, callFunction)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToItemWithLabelFromClaim = function(entityId, capitalize, propertyId)&lt;br /&gt;
	return p.findLinkToItemWithLabelFromAnyClaim(entityId, capitalize, { propertyId })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToItem = function(entityId, capitalize, feminine, shortestAlias)&lt;br /&gt;
	if type(entityId) == &#039;number&#039; then entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;}) end&lt;br /&gt;
	if capitalize == nil then capitalize = false end&lt;br /&gt;
	local label&lt;br /&gt;
	local returnedLang = nil&lt;br /&gt;
	local bestRanks = { [&amp;quot;ro&amp;quot;] = nil, [&amp;quot;en&amp;quot;] = nil }&lt;br /&gt;
	&lt;br /&gt;
	if shortestAlias then&lt;br /&gt;
		local returnedAlias = nil&lt;br /&gt;
		local bestShortNameClaims = mw.wikibase.getAllStatements(entityId, &#039;P1813&#039;)&lt;br /&gt;
		if bestShortNameClaims then&lt;br /&gt;
			local shortNameEn = nil&lt;br /&gt;
			for shortNameIdx,shortNameClaim in pairs(bestShortNameClaims) do&lt;br /&gt;
				if shortNameClaim.mainsnak.datavalue.value.language == &#039;en&#039; and hasBetterRank(shortNameClaim, bestRanks[&amp;quot;en&amp;quot;]) then &lt;br /&gt;
					shortNameEn = shortNameClaim.mainsnak.datavalue.value.text&lt;br /&gt;
					bestRanks[&amp;quot;en&amp;quot;] = shortNameClaim.rank&lt;br /&gt;
				end&lt;br /&gt;
				if shortNameClaim.mainsnak.datavalue.value.language == &#039;ro&#039; and hasBetterRank(shortNameClaim, bestRanks[&amp;quot;ro&amp;quot;]) then&lt;br /&gt;
					returnedAlias = shortNameClaim.mainsnak.datavalue.value.text&lt;br /&gt;
					bestRanks[&amp;quot;ro&amp;quot;] = shortNameClaim.rank&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if returnedAlias then&lt;br /&gt;
				returnedLang = &#039;ro&#039;&lt;br /&gt;
			elseif shortNameEn then&lt;br /&gt;
				returnedAlias = shortNameEn&lt;br /&gt;
				returnedLang = &#039;en&#039;&lt;br /&gt;
			end&lt;br /&gt;
			returnedAlias = capitalize and StringUtils._capitalize(returnedAlias) or returnedAlias&lt;br /&gt;
		end&lt;br /&gt;
		label = wrapInLangSpan(returnedAlias, returnedLang)&lt;br /&gt;
	end&lt;br /&gt;
	if feminine then&lt;br /&gt;
		local feminineForms = mw.wikibase.getBestStatements(entityId, &#039;P2521&#039;)&lt;br /&gt;
		if feminineForms then&lt;br /&gt;
			for _idx, eachFForm in pairs(feminineForms) do&lt;br /&gt;
				if hasValueSnak(eachFForm) and eachFForm.mainsnak.datatype == &#039;monolingualtext&#039; and eachFForm.mainsnak.datavalue.type == &#039;monolingualtext&#039; and eachFForm.mainsnak.datavalue.value and eachFForm.mainsnak.datavalue.value.language == &#039;ro&#039; then&lt;br /&gt;
					label = eachFForm.mainsnak.datavalue.value.text&lt;br /&gt;
					returnedLang = eachFForm.mainsnak.datavalue.value.language&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return computeLinkToItem(entityId, capitalize, nil, function() return label, returnedLang end)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getLinkToItem = function(frame)&lt;br /&gt;
	local args = getArgs(frame, {frameOnly=true})&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	return p.findLinkToItem(entityId, false, false, false)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function printRawValue(snak)&lt;br /&gt;
	if (isValueSnak(snak)) then&lt;br /&gt;
		if snak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot; then&lt;br /&gt;
			return snak.datavalue.value.id&lt;br /&gt;
		elseif snak.datavalue.type == &amp;quot;time&amp;quot; then&lt;br /&gt;
			return snak.datavalue.value.time&lt;br /&gt;
		elseif snak.datavalue.type == &amp;quot;monolingualtext&amp;quot; then&lt;br /&gt;
			return snak.datavalue.value.text&lt;br /&gt;
		elseif snak.datavalue.type == &amp;quot;quantity&amp;quot; then&lt;br /&gt;
			return snak.datavalue.value.amount .. &#039; &#039; .. snak.datavalue.value.unit&lt;br /&gt;
		else&lt;br /&gt;
			return snak.datavalue.value&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
-- precision: 0 - billion years, 1 - hundred million years, ..., 6 - millennia, 7 - century, 8 - decade, 9 - year, 10 - month, 11 - day, 12 - hour, 13 - minute, 14 - second&lt;br /&gt;
local function normalizeDate(date)&lt;br /&gt;
	date = mw.text.trim(date, &amp;quot;+&amp;quot;)&lt;br /&gt;
	-- extract year&lt;br /&gt;
	local yearstr = mw.ustring.match(date, &amp;quot;^\-?%d+&amp;quot;)&lt;br /&gt;
	local year = tonumber(yearstr)&lt;br /&gt;
	-- remove leading zeros of year&lt;br /&gt;
	return year .. mw.ustring.sub(date, #yearstr + 1), year&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function formatDate(indate, precision, timezone)&lt;br /&gt;
	precision = precision or 11&lt;br /&gt;
	local date, year = normalizeDate(indate)&lt;br /&gt;
	if year == 0 and precision &amp;lt;= 9 then return &amp;quot;&amp;quot; end&lt;br /&gt;
 &lt;br /&gt;
 	-- precision is 10000 years or more&lt;br /&gt;
	if precision &amp;lt;= 5 then&lt;br /&gt;
		local factor = 10 ^ ((5 - precision) + 4)&lt;br /&gt;
		local y2 = math.ceil(math.abs(year) / factor)&lt;br /&gt;
		local relative = mw.ustring.gsub(i18n.datetime[precision], &amp;quot;$1&amp;quot;, tostring(y2))&lt;br /&gt;
		if year &amp;lt; 0 then&lt;br /&gt;
			relative = mw.ustring.gsub(i18n.datetime.beforenow, &amp;quot;$1&amp;quot;, relative)&lt;br /&gt;
		else&lt;br /&gt;
			relative = mw.ustring.gsub(i18n.datetime.afternow, &amp;quot;$1&amp;quot;, relative)&lt;br /&gt;
		end			&lt;br /&gt;
		return relative&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
 	-- precision is decades, centuries and millennia&lt;br /&gt;
	local era&lt;br /&gt;
	if precision == 6 then era = mw.ustring.gsub(i18n.datetime[6], &amp;quot;$1&amp;quot;, tostring(math.floor((math.abs(year) - 1) / 1000) + 1)) end&lt;br /&gt;
	if era then&lt;br /&gt;
		if year &amp;lt; 0 then era = mw.ustring.gsub(mw.ustring.gsub(i18n.datetime.bc, &#039;&amp;quot;&#039;, &amp;quot;&amp;quot;), &amp;quot;$1&amp;quot;, era)&lt;br /&gt;
		elseif year &amp;gt; 0 then era = mw.ustring.gsub(mw.ustring.gsub(i18n.datetime.ad, &#039;&amp;quot;&#039;, &amp;quot;&amp;quot;), &amp;quot;$1&amp;quot;, era) end&lt;br /&gt;
		return era&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
 	if precision &amp;gt;= 7 then&lt;br /&gt;
 		return DateUtils.formatDate(DateUtils.parseWikidataDate(indate, precision))&lt;br /&gt;
 	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function snakToString(snak, feminine)&lt;br /&gt;
	if (isValueSnak(snak)) then&lt;br /&gt;
		if (snak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot;) then&lt;br /&gt;
			return p.findLinkToItem(snak.datavalue.value[&amp;quot;numeric-id&amp;quot;], nil, feminine)&lt;br /&gt;
		end&lt;br /&gt;
		if (snak.datavalue.type == &amp;quot;time&amp;quot;) then&lt;br /&gt;
			return formatDate(snak.datavalue.value.time, snak.datavalue.value.precision, snak.datavalue.value.timezone)&lt;br /&gt;
		end&lt;br /&gt;
		if (snak.datavalue.type == &amp;quot;monolingualtext&amp;quot;) then&lt;br /&gt;
			return snak.datavalue.value.text&lt;br /&gt;
		end&lt;br /&gt;
		if (snak.datavalue.type == &amp;quot;quantity&amp;quot;) then&lt;br /&gt;
			local unit = &#039;1&#039;&lt;br /&gt;
			local amount = snak.datavalue.value.amount&lt;br /&gt;
			local ret = nil&lt;br /&gt;
			local multiplier, unitQ = computeUnitInfo(snak.datavalue.value.unit)&lt;br /&gt;
			if unitQ ~= nil then&lt;br /&gt;
				 -- possible conversion&lt;br /&gt;
				amount = amount * multiplier&lt;br /&gt;
				-- rounding&lt;br /&gt;
				local iamount = math.floor(amount)&lt;br /&gt;
				if math.abs(amount - iamount) &amp;lt; 0.5 then amount = iamount else amount = iamount + 1 end&lt;br /&gt;
				unit = p.findLanguageText(&#039;P5061&#039;, &#039;ro&#039;, unitQ) or p.findLanguageText(&#039;P5061&#039;, &#039;ro&#039;, unitQ)&lt;br /&gt;
				if not unit or mw.ustring.len(unit) == 0 then&lt;br /&gt;
					unit = p.findLabel(unitQ, nil)&lt;br /&gt;
					if tonumber(amount) &amp;gt; 1 and unit then &lt;br /&gt;
						mw.incrementExpensiveFunctionCount()&lt;br /&gt;
						ret = plural(tonumber(amount), unit) &lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				unit = unit or &#039;1&#039;&lt;br /&gt;
			end&lt;br /&gt;
			if tonumber(amount) ~= nil then&lt;br /&gt;
				amount = mw.language.new(lang.code):formatNum(tonumber(amount))&lt;br /&gt;
			end&lt;br /&gt;
			if ret == nil then&lt;br /&gt;
		    	ret = amount .. (unit ~= &#039;1&#039; and (mw.text.decode(&#039;&amp;amp;nbsp;&#039;) .. unit) or &#039;&#039;)&lt;br /&gt;
			end&lt;br /&gt;
			return ret&lt;br /&gt;
		end&lt;br /&gt;
		return snak.datavalue.value&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.printSnak = function(snak)&lt;br /&gt;
	return snakToString(snak)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.outputReferences = function (claim)&lt;br /&gt;
	local refMapping = {}&lt;br /&gt;
	local authorityPropertiesMap = {}&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	&lt;br /&gt;
	refMapping[&amp;quot;P1433&amp;quot;] = &amp;quot;publisher&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P123&amp;quot;] = &amp;quot;publisher&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P143&amp;quot;] = &amp;quot;publisher&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P1476&amp;quot;] = &amp;quot;contribution&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P854&amp;quot;] = &amp;quot;url&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P813&amp;quot;] = &amp;quot;accessdate&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P50&amp;quot;] = &amp;quot;author&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P2093&amp;quot;] = &amp;quot;author&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P577&amp;quot;] = &amp;quot;date&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P248&amp;quot;] = &amp;quot;title&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P304&amp;quot;] = &amp;quot;page&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P958&amp;quot;] = &amp;quot;contribution&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P1810&amp;quot;] = &amp;quot;contribution&amp;quot;&lt;br /&gt;
	refMapping[&amp;quot;P212&amp;quot;] = &amp;quot;isbn&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
	authorityPropertiesMap[&#039;Q20666306&#039;] = &#039;P268&#039; -- BnF identifier&lt;br /&gt;
	authorityPropertiesMap[&#039;Q15241312&#039;] = &#039;P646&#039; -- Freebase identifier&lt;br /&gt;
	authorityPropertiesMap[&#039;Q36578&#039;] = &#039;P227&#039; -- GND identifier&lt;br /&gt;
	authorityPropertiesMap[&#039;Q37312&#039;] = &#039;P345&#039; -- IMDb identifier&lt;br /&gt;
	authorityPropertiesMap[&#039;Q278487&#039;] = &#039;P662&#039; -- PubChem identifier&lt;br /&gt;
	authorityPropertiesMap[&#039;Q1139587&#039;] = &#039;P2334&#039; -- Swedish film database identifier&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	local primaryProperties = {}&lt;br /&gt;
	primaryProperties[&amp;quot;P1433&amp;quot;] = &amp;quot;publisher&amp;quot;&lt;br /&gt;
	primaryProperties[&amp;quot;P123&amp;quot;] = &amp;quot;publisher&amp;quot;&lt;br /&gt;
	primaryProperties[&amp;quot;P1476&amp;quot;] = &amp;quot;contribution&amp;quot;&lt;br /&gt;
	primaryProperties[&amp;quot;P248&amp;quot;] = &amp;quot;title&amp;quot;&lt;br /&gt;
	primaryProperties[&amp;quot;P854&amp;quot;] = &amp;quot;url&amp;quot;&lt;br /&gt;
	primaryProperties[&amp;quot;P50&amp;quot;] = &amp;quot;author&amp;quot;&lt;br /&gt;
	local out = &amp;quot;&amp;quot;&lt;br /&gt;
	local referencesCount = 0&lt;br /&gt;
	&lt;br /&gt;
	if claim then&lt;br /&gt;
		for ref in pairs(claim.references or {}) do&lt;br /&gt;
			local citationArguments = {}&lt;br /&gt;
			local citationArgumentsFound = false&lt;br /&gt;
			local refname = &amp;quot;&amp;quot;&lt;br /&gt;
			for snakkey, snakval in pairs(claim.references[ref].snaks) do&lt;br /&gt;
				if refMapping[snakkey] ~= nil then&lt;br /&gt;
					local snakData = {}&lt;br /&gt;
					for snakIndex,snakValElement in ipairs(snakval) do&lt;br /&gt;
						local formattedSnakValElement = snakToString(snakValElement)&lt;br /&gt;
						if isValueSnak(snakValElement) and snakValElement.datatype == &#039;time&#039; then&lt;br /&gt;
							formattedSnakValElement = DateUtils.formatDate(DateUtils.parseWikidataDate(snakValElement.datavalue.value.time, snakValElement.datavalue.value.precision), false , true)&lt;br /&gt;
						elseif isValueSnak(snakValElement) and snakkey == &#039;P1476&#039; and snakValElement.datatype == &#039;monolingualtext&#039; and snakValElement.datavalue.value.language ~= &#039;ro&#039; then&lt;br /&gt;
							citationArguments[&#039;language&#039;] = snakValElement.datavalue.value.language&lt;br /&gt;
						end&lt;br /&gt;
						&lt;br /&gt;
						table.insert(snakData, formattedSnakValElement)&lt;br /&gt;
					end&lt;br /&gt;
					citationArguments[refMapping[snakkey]] = table.concat(snakData, &amp;quot;, &amp;quot;, 1, #snakData)&lt;br /&gt;
					refname = refname .. &#039;_&#039; .. refMapping[snakkey] .. &#039;_&#039; .. mw.ustring.gsub(mw.ustring.gsub(mw.text.nowiki(citationArguments[refMapping[snakkey]]), &#039;&amp;amp;#%d+;&#039;, &#039;&#039;), &#039; &#039;, &#039;&#039;)&lt;br /&gt;
					if primaryProperties[snakkey] then&lt;br /&gt;
						citationArgumentsFound = true&lt;br /&gt;
					end&lt;br /&gt;
					&lt;br /&gt;
					if snakkey == &#039;P248&#039; or snakkey == &#039;P143&#039; then -- &amp;quot;stated in&amp;quot; or &amp;quot;imported from&amp;quot;, can be an authority file&lt;br /&gt;
						if snakval[1].datavalue and snakval[1].datavalue.type == &#039;wikibase-entityid&#039; then&lt;br /&gt;
							local statedInWbId = snakval[1].datavalue.value.id&lt;br /&gt;
							&lt;br /&gt;
							-- if Wikimedia project, ignore&lt;br /&gt;
							for _idx, eachStatedInInstanceOfClaim in pairs(mw.wikibase.getAllStatements(statedInWbId, &#039;P31&#039;)) do&lt;br /&gt;
								if eachStatedInInstanceOfClaim.mainsnak and eachStatedInInstanceOfClaim.mainsnak.datavalue and eachStatedInInstanceOfClaim.mainsnak.datavalue.type == &#039;wikibase-entityid&#039; and &lt;br /&gt;
								(eachStatedInInstanceOfClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;] == 10876391 or eachStatedInInstanceOfClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;] == 14827288) then&lt;br /&gt;
									citationArgumentsFound = false&lt;br /&gt;
									break&lt;br /&gt;
								end&lt;br /&gt;
							end&lt;br /&gt;
							for _idx, eachStatedInInstanceOfClaim in pairs(mw.wikibase.getAllStatements(statedInWbId, &#039;P1269&#039;)) do&lt;br /&gt;
								if eachStatedInInstanceOfClaim.mainsnak and eachStatedInInstanceOfClaim.mainsnak.datavalue and eachStatedInInstanceOfClaim.mainsnak.datavalue.type == &#039;wikibase-entityid&#039; and &lt;br /&gt;
								eachStatedInInstanceOfClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;] == 16222597 then&lt;br /&gt;
									citationArgumentsFound = false&lt;br /&gt;
									break&lt;br /&gt;
								end&lt;br /&gt;
							end&lt;br /&gt;
							-- extract data about authority file&lt;br /&gt;
							local authorityWbEntityId = authorityPropertiesMap[StringUtils._prependIfMissing({statedInWbId, &#039;Q&#039;})]&lt;br /&gt;
							if authorityWbEntityId then&lt;br /&gt;
								local authorityUrlFormatClaims = mw.wikibase.getBestStatements(authorityWbEntityId, &#039;P1630&#039;)&lt;br /&gt;
								if authorityUrlFormatClaims and 0 &amp;lt; #authorityUrlFormatClaims then&lt;br /&gt;
								 	local formatterUrl = snakToString(authorityUrlFormatClaims[1].mainsnak)&lt;br /&gt;
								 	local crtEntityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
								 	if crtEntityId then&lt;br /&gt;
								 		local entityAuthIdClaims = mw.wikibase.getBestStatements(crtEntityId, authorityWbEntityId)&lt;br /&gt;
								 		if entityAuthIdClaims and 0 &amp;lt; #entityAuthIdClaims and hasValueSnak(entityAuthIdClaims[1]) then&lt;br /&gt;
								 			citationArguments[&#039;chapterurl&#039;] = mw.ustring.gsub(formatterUrl, &#039;%$1&#039;, entityAuthIdClaims[1].mainsnak.datavalue.value)&lt;br /&gt;
								 			citationArguments[&#039;chapter&#039;] = p.labelIn({args = {&#039;ro&#039;}}) or p.labelIn({args = {&#039;en&#039;}})&lt;br /&gt;
							 			end&lt;br /&gt;
						 			end&lt;br /&gt;
				 				end&lt;br /&gt;
	 						elseif citationArgumentsFound == true then&lt;br /&gt;
	 							--extract URL from target entity&lt;br /&gt;
	 							local statedInUrl = nil&lt;br /&gt;
	 							-- the order of the array is important, as we only search the first occurence&lt;br /&gt;
	 							local onlinelinksprops = {&#039;P953&#039;, &#039;P854&#039;, &#039;P856&#039;, &#039;P1581&#039;, &#039;P2397&#039;,&#039;P1065&#039;}&lt;br /&gt;
								for _,eachOnlineLinkProp in ipairs(onlinelinksprops) do&lt;br /&gt;
									local linkId = p.findOneValueNoRef(eachOnlineLinkProp, statedInWbId)&lt;br /&gt;
									&lt;br /&gt;
									if linkId then&lt;br /&gt;
										local linkFormatter = p.findOneValueNoRef(&#039;P1630&#039;, eachOnlineLinkProp) or &#039;$1&#039;&lt;br /&gt;
										if linkFormatter then&lt;br /&gt;
											linkId = mw.ustring.gsub(linkId, &#039;%%&#039;, &#039;%%%%&#039;)&lt;br /&gt;
											statedInUrl = mw.ustring.gsub(linkFormatter, &#039;$1&#039;, linkId)&lt;br /&gt;
											break&lt;br /&gt;
										else&lt;br /&gt;
											statedInUrl = linkId&lt;br /&gt;
											break&lt;br /&gt;
										end&lt;br /&gt;
									end&lt;br /&gt;
								end&lt;br /&gt;
	 							if statedInUrl then&lt;br /&gt;
	 								citationArguments[refMapping[snakkey]] = StringUtils._capitalize(p.findTitleOfWork(statedInWbId))&lt;br /&gt;
	 								citationArguments[&#039;url&#039;] = statedInUrl&lt;br /&gt;
	 							else&lt;br /&gt;
	 								local props = p.getEntityIdsList(statedInWbId, &#039;P1687&#039;)&lt;br /&gt;
	 								if props then for _,eachOnlineLinkProp in ipairs(onlinelinksprops) do&lt;br /&gt;
		 								for _,prop in ipairs(props) do&lt;br /&gt;
		 									if eachOnlineLinkProp == &#039;P&#039; .. prop then &lt;br /&gt;
		 										citationArguments[refMapping[snakkey]] = StringUtils._capitalize(p.findTitleOfWork(statedInWbId))&lt;br /&gt;
		 										citationArguments[&#039;url&#039;] = p.findOneValueNoRef(eachOnlineLinkProp) &lt;br /&gt;
		 									end&lt;br /&gt;
		 									break&lt;br /&gt;
		 								end&lt;br /&gt;
		 							end end&lt;br /&gt;
						        end&lt;br /&gt;
					        end&lt;br /&gt;
			 			end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if citationArgumentsFound then&lt;br /&gt;
				&lt;br /&gt;
				--post-process citation arguments:&lt;br /&gt;
				--1. if publisher is missing and contribution and title are present, change title to publisher and contribution to title&lt;br /&gt;
				if citationArguments[&#039;publisher&#039;] == nil and citationArguments[&#039;contribution&#039;] and citationArguments[&#039;title&#039;] then&lt;br /&gt;
					citationArguments[&#039;publisher&#039;] = citationArguments[&#039;title&#039;]&lt;br /&gt;
					citationArguments[&#039;title&#039;] = citationArguments[&#039;contribution&#039;]&lt;br /&gt;
					citationArguments[&#039;contribution&#039;] = nil&lt;br /&gt;
				end&lt;br /&gt;
				--2. if contribution is present but title is not, change contribution to title&lt;br /&gt;
				if citationArguments[&#039;contribution&#039;] and citationArguments[&#039;title&#039;] == nil then&lt;br /&gt;
					citationArguments[&#039;title&#039;] = citationArguments[&#039;contribution&#039;]&lt;br /&gt;
					citationArguments[&#039;contribution&#039;] = nil&lt;br /&gt;
				end&lt;br /&gt;
				--3. if title is a wikilink, break it down and assign article link separately&lt;br /&gt;
				if citationArguments[&#039;title&#039;] then &lt;br /&gt;
					local titlink, titplain = mw.ustring.match(citationArguments[&#039;title&#039;], &#039;%[%[(.*)|(.*)%]%]&#039;)&lt;br /&gt;
					if titlink and titplain then&lt;br /&gt;
						if not citationArguments[&#039;url&#039;] then citationArguments[&#039;titlelink&#039;] = titlink end&lt;br /&gt;
						citationArguments[&#039;title&#039;] = titplain&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				local citationHash = mw.hash.hashValue(&#039;md5&#039;, refname)&lt;br /&gt;
				if referencesCount &amp;lt; 4 then&lt;br /&gt;
					if wdReferences[citationHash] then&lt;br /&gt;
						out = out .. frame:extensionTag{name=&amp;quot;ref&amp;quot;, args={name = citationHash}}&lt;br /&gt;
					else&lt;br /&gt;
						local refText = &amp;quot;&amp;quot;&lt;br /&gt;
						local tstyle = &amp;quot;&amp;quot;&lt;br /&gt;
						-- when substituting, use the wikitext template&lt;br /&gt;
						if mw.isSubsting() then&lt;br /&gt;
							refText = Citation.citationTemplateFromArgs(citationArguments)&lt;br /&gt;
							citationHash = citationHash .. &#039;-subst&#039;&lt;br /&gt;
						else&lt;br /&gt;
							refText, tstyle = Citation.citationFromArgs(citationArguments, {CitationClass = &#039;citation&#039;}, false)&lt;br /&gt;
						end&lt;br /&gt;
						out = out .. frame:extensionTag(&amp;quot;ref&amp;quot;, refText, { name = citationHash }) .. tstyle&lt;br /&gt;
						wdReferences[citationHash] = true&lt;br /&gt;
					end&lt;br /&gt;
					referencesCount = referencesCount + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getValueListLimited = function(entityId, propertyId, limitVal, best)&lt;br /&gt;
	if limitVal == nil or limitVal &amp;lt;= 0 then limitVal = math.huge end&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if propertyId == nil or entityId == nil then return nil,0 end&lt;br /&gt;
	local claims = best and mw.wikibase.getBestStatements(entityId, propertyId) or mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	if not claims then return nil,0 end&lt;br /&gt;
	if #claims == 0 then return {},0 end&lt;br /&gt;
	local rez = {}&lt;br /&gt;
	local feminine = false&lt;br /&gt;
	local genders = mw.wikibase.getBestStatements(entityId, &#039;P21&#039;)&lt;br /&gt;
	if genders and #genders &amp;gt; 0 and genders[1] and hasValueSnak(genders[1]) and genders[1].mainsnak.datatype == &#039;wikibase-item&#039; and genders[1].mainsnak.datavalue.type == &#039;wikibase-entityid&#039; and genders[1].mainsnak.datavalue.value[&#039;numeric-id&#039;] == 6581072 then&lt;br /&gt;
		feminine = true&lt;br /&gt;
	end&lt;br /&gt;
	local count = 0&lt;br /&gt;
	for k, v in pairs(claims) do&lt;br /&gt;
		if hasValueSnak(v) and hasRankAtLeastNormal(v) then&lt;br /&gt;
			count = count+1&lt;br /&gt;
			if count &amp;lt;= limitVal then&lt;br /&gt;
				table.insert(rez, snakToString(v.mainsnak, feminine) .. p.outputReferences(v))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return rez, count&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getValueList = function(entityId, propertyId)&lt;br /&gt;
	local rez, _ = p.getValueListLimited(entityId, propertyId, nil)&lt;br /&gt;
	return rez&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function findTimestampInTable(tbl)&lt;br /&gt;
	local crtEntry = &#039;&#039;&lt;br /&gt;
	local crtProp = nil&lt;br /&gt;
	if tbl then&lt;br /&gt;
		if tbl[&#039;P585&#039;] then&lt;br /&gt;
			crtEntry = crtEntry .. snakToString(tbl[&#039;P585&#039;][1].mainsnak or tbl[&#039;P585&#039;][1])&lt;br /&gt;
			crtProp = &#039;P585&#039;&lt;br /&gt;
		elseif tbl[&#039;P580&#039;] then&lt;br /&gt;
			if tbl[&#039;P582&#039;] then&lt;br /&gt;
				local starttime = snakToString(tbl[&#039;P580&#039;][1].mainsnak or tbl[&#039;P580&#039;][1])&lt;br /&gt;
				local endtime = snakToString(tbl[&#039;P582&#039;][1].mainsnak or tbl[&#039;P582&#039;][1])&lt;br /&gt;
				if starttime == endtime then&lt;br /&gt;
					crtEntry = crtEntry .. starttime&lt;br /&gt;
				else&lt;br /&gt;
					crtEntry = crtEntry .. starttime .. mw.text.decode(&#039;&amp;amp;ndash;&#039;, true) .. endtime&lt;br /&gt;
				end&lt;br /&gt;
				crtProp = &#039;P582&#039;&lt;br /&gt;
			else &lt;br /&gt;
				crtEntry = crtEntry .. &#039;din &#039; .. snakToString(tbl[&#039;P580&#039;][1].mainsnak or tbl[&#039;P580&#039;][1])&lt;br /&gt;
				crtProp = &#039;P580&#039;&lt;br /&gt;
			end&lt;br /&gt;
		elseif tbl[&#039;P582&#039;] then&lt;br /&gt;
			local endtime = DateUtils.extractDateFromWikidataSnak(tbl[&#039;P582&#039;][1].mainsnak or tbl[&#039;P582&#039;][1])&lt;br /&gt;
			if endtime then&lt;br /&gt;
				crtEntry = crtEntry .. &#039;până &#039; .. ((endtime.precision == 9 or endtime.precision == 10) and &#039;în&#039; or &#039;la&#039;) .. &#039; &#039; .. DateUtils.formatDate(endtime)&lt;br /&gt;
			end&lt;br /&gt;
			crtProp = &#039;P582&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return crtEntry, crtProp&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.printTimestampForClaim = function(claim)&lt;br /&gt;
	if claim and claim.qualifiers then&lt;br /&gt;
		local tblTimestamp = findTimestampInTable(claim.qualifiers)&lt;br /&gt;
		return tostring(mw.html.create(&#039;small&#039;):wikitext(&#039; (&#039; .. tblTimestamp .. &#039;)&#039;))&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findTimestamp = function(entityId)&lt;br /&gt;
	if type(entityId) == &#039;number&#039; then entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;}) end&lt;br /&gt;
	if type(entityId) == &#039;table&#039; then entityId = entityId.id end&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	&lt;br /&gt;
	if entityId then&lt;br /&gt;
		local tbl = {}&lt;br /&gt;
		for _,propId in ipairs({&#039;P580&#039;, &#039;P582&#039;, &#039;P585&#039;}) do&lt;br /&gt;
			local propClaims = mw.wikibase.getAllStatements(entityId, propId)&lt;br /&gt;
			if propClaims and #propClaims &amp;gt; 0 then&lt;br /&gt;
				tbl[propId] = propClaims&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		local tblTstamp, tblProp = findTimestampInTable(tbl)&lt;br /&gt;
		return tblTstamp, tblProp&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getTimestamp = function(frame)&lt;br /&gt;
	return p.findTimestamp(frame and frame.args and frame.args[1] or nil)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getValueListWithDecoratedQualifiers = function(frame)&lt;br /&gt;
	local args = getArgs(frame, {wrappers = {&#039;Format:Listă decorată de la Wikidata&#039;}, frameOnly = false, parentOnly = false})&lt;br /&gt;
	local entityId = args[&#039;q&#039;] or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	local propertyId = args[&#039;p&#039;]&lt;br /&gt;
	local best = (args[&#039;best&#039;] ~= nil)&lt;br /&gt;
	local bracketTemplates = nil&lt;br /&gt;
	local limitVal = args[&#039;limit&#039;] and tonumber(args[&#039;limit&#039;]) or -1&lt;br /&gt;
	local bracketTemplatesIdces = TableTools.affixNums(args, &#039;bracketTemplate&#039;)&lt;br /&gt;
	if bracketTemplatesIdces and #bracketTemplatesIdces &amp;gt; 0 then&lt;br /&gt;
		bracketTemplates = {}&lt;br /&gt;
		for _, bracketTemplatesIdx in ipairs(bracketTemplatesIdces) do&lt;br /&gt;
			table.insert(bracketTemplates, args[&#039;bracketTemplate&#039; .. tostring(bracketTemplatesIdx)])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local pictureSize = args[&#039;pictureSize&#039;] or &#039;40px&#039;&lt;br /&gt;
	local pictureProp = args[&#039;picturePid&#039;] or nil&lt;br /&gt;
	local seps = nil&lt;br /&gt;
	local sepsIdces = TableTools.affixNums(args, &#039;sep&#039;)&lt;br /&gt;
	if sepsIdces and #sepsIdces &amp;gt; 0 then&lt;br /&gt;
		seps = {}&lt;br /&gt;
		for _, sepsIdx in ipairs(sepsIdces) do&lt;br /&gt;
			table.insert(seps, args[&#039;sep&#039; .. tostring(sepsIdx)])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local rezList, rezCount = p.findValueListWithDecoratedQualifiers(entityId, propertyId, best, bracketTemplates, seps, pictureProp, pictureSize, limitVal)&lt;br /&gt;
	if 0 &amp;lt; limitVal and rezCount &amp;gt; limitVal + 1 then&lt;br /&gt;
		local hiddenVals = rezCount - limitVal&lt;br /&gt;
		extraSpec = &#039;[[:d:&#039; .. entityId .. &#039;#&#039; .. propertyId .. &amp;quot;|...&#039;&#039;încă &amp;quot; .. tostring(hiddenVals) .. &amp;quot;&#039;&#039;]]&amp;quot;&lt;br /&gt;
		table.insert(rezList, extraSpec)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(rezList or {}, tostring(mw.html.create(&#039;br&#039;)))&lt;br /&gt;
end&lt;br /&gt;
p.getValueListWithQualifiersInBrackets = p.getValueListWithDecoratedQualifiers&lt;br /&gt;
&lt;br /&gt;
p.findValueListWithDecoratedQualifiers = function(entityId, propertyId, best, bracketTemplates, seps, pictureProp, pictureSize, limit)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not limit or type(limit) ~= &#039;number&#039; then limit = -1 end&lt;br /&gt;
	if (type(bracketTemplates) == &#039;string&#039;) then&lt;br /&gt;
		bracketTemplates = { bracketTemplates }&lt;br /&gt;
	elseif not bracketTemplates then&lt;br /&gt;
		bracketTemplates = {}&lt;br /&gt;
	end&lt;br /&gt;
	seps = seps or {}&lt;br /&gt;
	table.insert(seps, 1, &#039;&#039;)&lt;br /&gt;
	if #seps &amp;lt; #bracketTemplates then for idx=#seps + 1,#bracketTemplates do table.insert(seps, &#039;, &#039;) end end&lt;br /&gt;
	if propertyId == nil or entityId == nil then return nil end&lt;br /&gt;
	local claims&lt;br /&gt;
	&lt;br /&gt;
	local qualProps = {}&lt;br /&gt;
	for _,bracketTemplate in ipairs(bracketTemplates) do&lt;br /&gt;
		mw.ustring.gsub(bracketTemplate, &#039;%$(P%d+)&#039;, function(qualProp) &lt;br /&gt;
			table.insert(qualProps, qualProp)&lt;br /&gt;
			return nil&lt;br /&gt;
		end)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if best then&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entityId, propertyId)&lt;br /&gt;
	else&lt;br /&gt;
		claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	end&lt;br /&gt;
	local rez = {}&lt;br /&gt;
	local allcount = 0&lt;br /&gt;
	if claims and claims[1] then&lt;br /&gt;
		local rawclaims = {}&lt;br /&gt;
		for k, v in pairs(claims) do&lt;br /&gt;
			if hasValueSnak(v) and hasRankAtLeastNormal(v) then&lt;br /&gt;
				table.insert(rawclaims, v)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		allcount = #rawclaims&lt;br /&gt;
		for k, v in pairs(rawclaims) do&lt;br /&gt;
			local crtEntry = snakToString(v.mainsnak)&lt;br /&gt;
			if pictureProp then&lt;br /&gt;
				local ts&lt;br /&gt;
				local picture&lt;br /&gt;
				if v.qualifiers and v.qualifiers[&#039;P582&#039;] then for _,endTimeQual in ipairs(v.qualifiers[&#039;P582&#039;]) do&lt;br /&gt;
					ts = DateUtils.extractDateFromWikidataSnak(endTimeQual)&lt;br /&gt;
				end end&lt;br /&gt;
				if ts then&lt;br /&gt;
					local pictureClaim = p.findClaimForTimestamp(v.mainsnak.datavalue.value.id, pictureProp, ts)&lt;br /&gt;
					if (p.hasValueSnak(pictureClaim)) then&lt;br /&gt;
						picture = pictureClaim.mainsnak.datavalue.value&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					picture = p.loadOneValueInChain({v.mainsnak.datavalue.value.id, pictureProp, &#039;raw&#039;})&lt;br /&gt;
				end&lt;br /&gt;
				if picture and picture ~= &#039;&#039; then&lt;br /&gt;
					crtEntry = StringUtils._prependToString({crtEntry, &#039;[[Fișier:&#039; .. picture .. &#039;|&#039; .. pictureSize .. &#039;]]&#039; .. mw.text.decode(&#039;&amp;amp;nbsp;&#039;)})&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if v.qualifiers and #qualProps &amp;gt; 0 then&lt;br /&gt;
				local qualPropValues = {}&lt;br /&gt;
				for _,eachQualProp in pairs(qualProps) do&lt;br /&gt;
					if v.qualifiers[eachQualProp] then&lt;br /&gt;
						local qualPropValuesList = {}&lt;br /&gt;
						for __,eachQualSnak in ipairs(v.qualifiers[eachQualProp]) do&lt;br /&gt;
							if isValueSnak(eachQualSnak) then&lt;br /&gt;
								table.insert(qualPropValuesList, snakToString(eachQualSnak))&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
						qualPropValues[eachQualProp] = mw.text.listToText(qualPropValuesList, &#039;, &#039;, &#039; și &#039;)&lt;br /&gt;
					else&lt;br /&gt;
						qualPropValues[eachQualProp] = &#039;&#039;&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				local bracketData = {}&lt;br /&gt;
				local usedSeps = {}&lt;br /&gt;
				for bracketTemplateIdx,bracketTemplate in ipairs(bracketTemplates) do&lt;br /&gt;
					local substedBracketTemplate = mw.ustring.gsub(bracketTemplate, &#039;%$(P%d+)&#039;, function(qualProp) &lt;br /&gt;
						return qualPropValues[qualProp]&lt;br /&gt;
					end)&lt;br /&gt;
					if substedBracketTemplate ~= bracketTemplate and substedBracketTemplate ~= &amp;quot;&amp;quot; then&lt;br /&gt;
						bracketData[bracketTemplateIdx] = substedBracketTemplate&lt;br /&gt;
						usedSeps[bracketTemplateIdx] = seps[bracketTemplateIdx]&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				bracketData = TableTools.compressSparseArray(bracketData)&lt;br /&gt;
				usedSeps = TableTools.compressSparseArray(usedSeps)&lt;br /&gt;
&lt;br /&gt;
				local bracketText = &#039;&#039;&lt;br /&gt;
				for bracketDatumIdx=1,#bracketData do&lt;br /&gt;
					bracketText = bracketText .. (bracketDatumIdx == 1 and &#039;&#039; or usedSeps[bracketDatumIdx])&lt;br /&gt;
					bracketText = bracketText .. bracketData[bracketDatumIdx]&lt;br /&gt;
				end&lt;br /&gt;
				if mw.ustring.len(bracketText) &amp;gt; 0 then&lt;br /&gt;
					crtEntry = StringUtils._appendToString({crtEntry, tostring(mw.html.create(&#039;small&#039;):wikitext(StringUtils._encloseString({bracketText, &#039;&amp;amp;#32;(&#039;, &#039;)&#039;})))})&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			crtEntry = crtEntry .. p.outputReferences(v)&lt;br /&gt;
			if 0 &amp;lt; limit and limit &amp;lt;= #rez then&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(rez, crtEntry)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return rez, allcount&lt;br /&gt;
end&lt;br /&gt;
p.findValueListWithQualifiersInBrackets = p.findValueListWithDecoratedQualifiers&lt;br /&gt;
&lt;br /&gt;
p.getTimestampedValueList = function(entityId, propertyId, best)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if propertyId == nil or entityId == nil then return nil end&lt;br /&gt;
	local claims&lt;br /&gt;
	if best then&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entityId, propertyId)&lt;br /&gt;
	else&lt;br /&gt;
		claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	end&lt;br /&gt;
	local rez = {}&lt;br /&gt;
	if claims and claims[1] then&lt;br /&gt;
		local rawclaims = {}&lt;br /&gt;
		for k, v in pairs(claims) do&lt;br /&gt;
			if hasValueSnak(v) then&lt;br /&gt;
				table.insert(rawclaims, v)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		for k, v in pairs(rawclaims) do&lt;br /&gt;
			local crtEntry = snakToString(v.mainsnak)&lt;br /&gt;
			crtEntry = crtEntry .. p.printTimestampForClaim(v)&lt;br /&gt;
			crtEntry = crtEntry .. p.outputReferences(v)&lt;br /&gt;
			table.insert(rez, crtEntry)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return rez&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
p._getValueListWithSeparator = function(...)&lt;br /&gt;
	if arg.n == 0 then return nil end&lt;br /&gt;
	local funcArgs = type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local separator = &amp;quot;, &amp;quot;&lt;br /&gt;
	if funcArgs[1] ~= nil then separator = mw.text.trim(funcArgs[1]) end&lt;br /&gt;
	local conjunction = separator&lt;br /&gt;
	if funcArgs[&#039;conj&#039;] ~= nil then conjunction = &#039; &#039; .. mw.text.trim(funcArgs[&#039;conj&#039;]) .. &#039; &#039; end&lt;br /&gt;
	local propertyId&lt;br /&gt;
	local entityId&lt;br /&gt;
	propertyId, entityId = propAndEntity(funcArgs[2], funcArgs[3])&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	local limit = funcArgs[4] or funcArgs[&#039;limit&#039;]&lt;br /&gt;
	local best = funcArgs[5] or funcArgs[&#039;best&#039;]&lt;br /&gt;
	if not best or best == &#039;false&#039; or best == &#039;no&#039; then best = false else best = true end&lt;br /&gt;
	local limitVal = 0&lt;br /&gt;
	if limit and (limit == mw.ustring.match(limit, &#039;%d+&#039;) or type(limit) == &#039;number&#039;) then&lt;br /&gt;
		limitVal = tonumber(limit)&lt;br /&gt;
	end&lt;br /&gt;
	local values, vcount = p.getValueListLimited(entityId, propertyId, limitVal, best)&lt;br /&gt;
	if not values then return nil end&lt;br /&gt;
	local extraSpec = nil&lt;br /&gt;
	if 0 &amp;lt; limitVal and vcount &amp;gt; limitVal + 1 then&lt;br /&gt;
		local hiddenVals = vcount - limitVal&lt;br /&gt;
		extraSpec = &#039;[[:d:&#039; .. entityId .. &#039;#&#039; .. propertyId .. &amp;quot;|...&#039;&#039;încă &amp;quot; .. tostring(hiddenVals) .. &amp;quot;&#039;&#039;]]&amp;quot;&lt;br /&gt;
		table.insert(values, extraSpec)&lt;br /&gt;
	end&lt;br /&gt;
	return #values &amp;gt; 0 and mw.text.listToText(values, separator, conjunction) or nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getValueListWithSeparator = function(frame)&lt;br /&gt;
	local funcArgs = getArgs(frame, {frameOnly = true})&lt;br /&gt;
	parseTopLevelArgs(funcArgs)&lt;br /&gt;
	return p._getValueListWithSeparator(funcArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getValue = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p._getValueListWithSeparator({&#039;, &#039;, args[1], mw.wikibase.getEntityIdForCurrentPage()})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._getTimestampedValueListWithSeparator = function(funcArgs)&lt;br /&gt;
	local separator = funcArgs[1] or &amp;quot;, &amp;quot;&lt;br /&gt;
	local propertyId = funcArgs[2]&lt;br /&gt;
	local entityId = funcArgs[3]&lt;br /&gt;
	local best = funcArgs[&#039;best&#039;] == &#039;y&#039; or funcArgs[&#039;best&#039;] == &#039;yes&#039;&lt;br /&gt;
	local values = p.getTimestampedValueList(entityId, propertyId, best)&lt;br /&gt;
	return values and table.concat(values, separator)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getTimestampedValueListWithSeparator = function(frame)&lt;br /&gt;
	local funcArgs = getArgs(frame, {frameOnly = true})&lt;br /&gt;
	return p._getTimestampedValueListWithSeparator(funcArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function extractWikidataIdsFromClaimList(claims)&lt;br /&gt;
	local rez = {}&lt;br /&gt;
	if claims and #claims &amp;gt; 0 then&lt;br /&gt;
		for k, v in pairs(claims) do&lt;br /&gt;
			if hasValueSnak(v) and v.mainsnak.datavalue.type == &#039;wikibase-entityid&#039; then&lt;br /&gt;
				table.insert(rez, v.mainsnak.datavalue.value[&#039;numeric-id&#039;])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return rez&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getEntityIdsList = function(entityId, propertyId)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if propertyId == nil or entityId == nil then return nil end&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	if entityId then&lt;br /&gt;
		claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	end&lt;br /&gt;
	local trueClaims = {}&lt;br /&gt;
	for _,claim in ipairs(claims) do&lt;br /&gt;
		if hasRankAtLeastNormal(claim) then	table.insert(trueClaims, claim) end&lt;br /&gt;
	end&lt;br /&gt;
	return extractWikidataIdsFromClaimList(trueClaims)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getBestEntityIdsList = function(entityId, propertyId)&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	if propertyId == nil then return nil end&lt;br /&gt;
	if type(entityId) == &#039;table&#039; then&lt;br /&gt;
		claims = entityId:getBestStatements(propertyId)&lt;br /&gt;
	else&lt;br /&gt;
		if type(entityId) == &#039;number&#039; then entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;}) end&lt;br /&gt;
		if type(propertyId) == &#039;number&#039; then propertyId = StringUtils._prependIfMissing({tostring(propertyId), &#039;P&#039;}) end&lt;br /&gt;
		entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
		if propertyId == nil or entityId == nil then return nil end&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entityId, propertyId)&lt;br /&gt;
	end&lt;br /&gt;
	if not claims then return nil end&lt;br /&gt;
	return extractWikidataIdsFromClaimList(claims)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local timestampComparator = function(p1, p2)&lt;br /&gt;
	if p1 and p2 then&lt;br /&gt;
		local q1 = p1.qualifiers&lt;br /&gt;
		local q2 = p2.qualifiers&lt;br /&gt;
		local d1 = nil&lt;br /&gt;
		local d2 = nil&lt;br /&gt;
		if q1 and q2 then&lt;br /&gt;
			if q1[&#039;P580&#039;] and q1[&#039;P580&#039;][1] and q1[&#039;P580&#039;][1].datavalue then&lt;br /&gt;
				d1 = p.extractDateFromClaim(q1[&#039;P580&#039;][1])&lt;br /&gt;
			elseif q1[&#039;P585&#039;] and q1[&#039;P585&#039;][1] and q1[&#039;P585&#039;][1].datavalue then&lt;br /&gt;
				d1 = p.extractDateFromClaim(q1[&#039;P585&#039;][1])&lt;br /&gt;
			end&lt;br /&gt;
			if q2[&#039;P580&#039;] and q2[&#039;P580&#039;][1] and q2[&#039;P580&#039;][1].datavalue then&lt;br /&gt;
				d2 = p.extractDateFromClaim(q2[&#039;P580&#039;][1])&lt;br /&gt;
			elseif q2[&#039;P585&#039;] and q2[&#039;P585&#039;][1] and q2[&#039;P585&#039;][1].datavalue then&lt;br /&gt;
				d2 = p.extractDateFromClaim(q2[&#039;P585&#039;][1])&lt;br /&gt;
			end&lt;br /&gt;
			if d1 and d2 then return DateUtils.compare(d1, d2) &amp;gt; 0&lt;br /&gt;
			elseif d1 then return true&lt;br /&gt;
			elseif d2 then return false end&lt;br /&gt;
		elseif q1 then return true&lt;br /&gt;
		elseif q2 then return false&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if p1 then return true end&lt;br /&gt;
		if p2 then return false end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findBestClaimsForProperty = function(entity, propertyId)&lt;br /&gt;
	if propertyId == nil then return nil end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if type(entity) == &#039;table&#039; then return entity:getBestStatements(propertyId) end&lt;br /&gt;
	if type(entity) == &#039;number&#039; then entity = StringUtils._prependIfMissing({tostring(entity), &#039;Q&#039;}) end&lt;br /&gt;
	if entity == nil then return nil end&lt;br /&gt;
	return mw.wikibase.getBestStatements(entity, propertyId)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findClaimsForProperty = function(entity, propertyId)&lt;br /&gt;
	if propertyId == nil then return nil end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	if type(entity) == &#039;table&#039; and entity.claims then return entity.claims[propertyId] end&lt;br /&gt;
	if type(entity) == &#039;number&#039; then entity = StringUtils._prependIfMissing({tostring(entity), &#039;Q&#039;}) end&lt;br /&gt;
	if entity == nil then return nil end&lt;br /&gt;
	return mw.wikibase.getAllStatements(entity, propertyId)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findClaimsForPropertyByType = function(entity, propertyId, typeIds)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	if propertyId == nil then return nil end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
	local claims = {}&lt;br /&gt;
	if type(entity) == &#039;table&#039; and entity.claims then &lt;br /&gt;
		claims = entity.claims[propertyId]&lt;br /&gt;
	else&lt;br /&gt;
		if type(entity) == &#039;number&#039; then entity = StringUtils._prependIfMissing({tostring(entity), &#039;Q&#039;}) end&lt;br /&gt;
		if entity == nil then return nil end&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entity, propertyId)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs(claims) do&lt;br /&gt;
		local snak = v.mainsnak&lt;br /&gt;
		local end_date = p.findQualifierValueListForClaim(v, &amp;quot;P582&amp;quot;)&lt;br /&gt;
		if #end_date == 0 and isValueSnak(snak) and snak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot; then&lt;br /&gt;
			value = snak.datavalue.value.id &lt;br /&gt;
			if p.isA(value, typeIds) then&lt;br /&gt;
				table.insert(ret, v)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getClaimsForPropertyByType = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local propertyID, entityID, typeId&lt;br /&gt;
	local raw = false&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	propertyID, entityID = propAndEntity(args[1] or &#039;&#039;, args[2] or &#039;&#039;)&lt;br /&gt;
	typeId = {args[3]}&lt;br /&gt;
	if args[&#039;raw&#039;] then raw = true end&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityID ~= &amp;quot;&amp;quot; then entity = mw.wikibase.getEntityObject(entityID) end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityObject() end&lt;br /&gt;
	if entity == nil then return &amp;quot;&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
	local claims = p.findClaimsForPropertyByType(entity, propertyID, typeId)&lt;br /&gt;
	if not claims then return &amp;quot;&amp;quot; end&lt;br /&gt;
	for _,eachClaim in ipairs(claims) do&lt;br /&gt;
		if hasValueSnak(eachClaim) then&lt;br /&gt;
			if raw then&lt;br /&gt;
				table.insert(ret, printRawValue(eachClaim.mainsnak))&lt;br /&gt;
			else&lt;br /&gt;
			    table.insert(ret, snakToString(eachClaim.mainsnak))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(ret, &amp;quot;, &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findSortedClaimsForProperty = function(entity, propertyId)&lt;br /&gt;
	local rawClaims = p.findClaimsForProperty(entity, propertyId)&lt;br /&gt;
	if rawClaims == nil then return {} end&lt;br /&gt;
	&lt;br /&gt;
	table.sort(rawClaims, timestampComparator)&lt;br /&gt;
	return rawClaims&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findQualifierValueListForClaim = function(claim, qualifierId)&lt;br /&gt;
	if claim == nil or claim.qualifiers == nil or qualifierId == nil then return {} end&lt;br /&gt;
	local quals = {}&lt;br /&gt;
	local wikidataQualifiers = claim.qualifiers[qualifierId]&lt;br /&gt;
	if wikidataQualifiers then&lt;br /&gt;
		for qualK, qualV in pairs(wikidataQualifiers) do&lt;br /&gt;
			if isValueSnak(qualV) then&lt;br /&gt;
				table.insert(quals, snakToString(qualV))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return quals&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getQualifierValue = function(frame)&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local qualifierID = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local entityID = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	&lt;br /&gt;
	if entityID then &lt;br /&gt;
		local claims = mw.wikibase.getBestStatements(entityID, propertyID)&lt;br /&gt;
		local out = {}&lt;br /&gt;
		if claims and #claims &amp;gt; 0 then&lt;br /&gt;
			for k, v in pairs(claims) do&lt;br /&gt;
				if p.isValueSnak(v.mainsnak) then&lt;br /&gt;
					if v.qualifiers and v.qualifiers[qualifierID] then&lt;br /&gt;
						for k2, v2 in pairs(v.qualifiers[qualifierID]) do&lt;br /&gt;
							if p.isValueSnak(v2) then&lt;br /&gt;
								table.insert(out, snakToString(v2))&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- This is used to get a value like &#039;male&#039; (for property p21) which won&#039;t be linked and numbers without the thousand separators&lt;br /&gt;
p.getRawValue = function(frame)&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local input_parm = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	if entity and entity.claims then&lt;br /&gt;
		claims = entity.claims[propertyID]&lt;br /&gt;
	end&lt;br /&gt;
	if claims then&lt;br /&gt;
		local result = entity:formatPropertyValues(propertyID, mw.wikibase.entity.claimRanks).value&lt;br /&gt;
	&lt;br /&gt;
		-- if number type: remove thousand separators&lt;br /&gt;
		if (hasValueSnak(claims[1]) and claims[1].mainsnak.datavalue.type == &amp;quot;quantity&amp;quot;) then&lt;br /&gt;
			result = mw.ustring.gsub(result, &amp;quot;(%d),(%d)&amp;quot;, &amp;quot;%1%2&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getRawQualifierValue = function(frame)&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local qualifierID = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local input_parm = mw.text.trim(frame.args[3] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if input_parm == &amp;quot;FETCH_WIKIDATA&amp;quot; then&lt;br /&gt;
		local entity = mw.wikibase.getEntity()&lt;br /&gt;
		if entity.claims[propertyID] ~= nil then&lt;br /&gt;
			local out = {}&lt;br /&gt;
			for k, v in pairs(entity.claims[propertyID]) do&lt;br /&gt;
				for k2, v2 in pairs(v.qualifiers[qualifierID]) do&lt;br /&gt;
					if isValueSnak(v2) then&lt;br /&gt;
						if v2.datavalue.value[&amp;quot;numeric-id&amp;quot;] then&lt;br /&gt;
							out[#out + 1] = mw.wikibase.label(&amp;quot;Q&amp;quot; .. v2.datavalue.value[&amp;quot;numeric-id&amp;quot;])&lt;br /&gt;
						else&lt;br /&gt;
							out[#out + 1] = v2.datavalue.value&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local ret = table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
			return string.upper(string.sub(ret, 1, 1)) .. string.sub(ret, 2)&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return input_parm&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.extractDateFromClaim = function(claimOrSnak)&lt;br /&gt;
	local claim&lt;br /&gt;
	if claimOrSnak.mainsnak then claim = claimOrSnak.mainsnak else claim = claimOrSnak end&lt;br /&gt;
	if claim.datatype == &#039;time&#039; and isValueSnak(claim) then&lt;br /&gt;
		local d = {}&lt;br /&gt;
		local iSOTimeSign = mw.ustring.sub(claim.datavalue.value.time, 1, 1)&lt;br /&gt;
		d.precision = tonumber(claim.datavalue.value.precision)&lt;br /&gt;
		d.calendarmodel = claim.datavalue.value.calendarmodel&lt;br /&gt;
		wdDate = DateUtils.parseWikidataDate(claim.datavalue.value.time, d.precision)&lt;br /&gt;
		if wdDate ~= nil then&lt;br /&gt;
			d.month = wdDate.month&lt;br /&gt;
		    d.day = wdDate.day&lt;br /&gt;
		else&lt;br /&gt;
			d.month = 1&lt;br /&gt;
			d.day = 1&lt;br /&gt;
		end&lt;br /&gt;
		if d.precision &amp;lt;= 9 then&lt;br /&gt;
			d.year = tonumber(mw.ustring.match(claim.datavalue.value.time, &amp;quot;%d+&amp;quot;))&lt;br /&gt;
			if iSOTimeSign == &#039;-&#039; then d.year = -d.year end&lt;br /&gt;
		elseif wdDate ~= nil then&lt;br /&gt;
			d.year = wdDate.year&lt;br /&gt;
		else&lt;br /&gt;
			d.year = 1&lt;br /&gt;
		end&lt;br /&gt;
		d.claim = claimOrSnak&lt;br /&gt;
		return d&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findDateValues = function(propertyId, entityId)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	&lt;br /&gt;
	if entityId then&lt;br /&gt;
		local bestclaims = mw.wikibase.getBestStatements(entityId, propertyId)&lt;br /&gt;
		local bestdates = {}&lt;br /&gt;
		&lt;br /&gt;
		if bestclaims then for k, v in pairs(bestclaims) do&lt;br /&gt;
			if hasValueSnak(v) and v.mainsnak.datatype == &#039;time&#039; then&lt;br /&gt;
				local d = p.extractDateFromClaim(v)&lt;br /&gt;
				table.insert(bestdates, d)&lt;br /&gt;
			elseif hasValueSnak(v) then&lt;br /&gt;
				local d = {}&lt;br /&gt;
				d.claim = v&lt;br /&gt;
				table.insert(bestdates, d)&lt;br /&gt;
			end&lt;br /&gt;
		end end&lt;br /&gt;
		return bestdates&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- This is used to get a date value for date_of_birth (p569), etc. which won&#039;t be linked -- consolidate by testing if entity.claims[propertyID].mainsnak.datavalue.type is &amp;quot;time&amp;quot;&lt;br /&gt;
-- Dates are stored as 28 characters if the year  &amp;gt;99 -- e.g. +00000002014-01-01T00:00:00Z for 2014&lt;br /&gt;
-- Dates are stored as 26 characters if the year =&amp;lt;99 -- e.g. +000000050-01-01T00:00:00Z   for 50 CE&lt;br /&gt;
p.getDateValue = function(frame)&lt;br /&gt;
	local args = getArgs(frame, { frameOnly = true })&lt;br /&gt;
	local propertyId = args[1]&lt;br /&gt;
	local entityId = args[2] or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityId then&lt;br /&gt;
		local claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
		local out = {}&lt;br /&gt;
		if claims then for _,eachClaim in pairs(claims) do&lt;br /&gt;
			if hasValueSnak(eachClaim) then&lt;br /&gt;
				local extractedDate = p.extractDateFromClaim(eachClaim)&lt;br /&gt;
				table.insert(out, GregorianDate.displayDualDateIfInInterval(extractedDate, true))&lt;br /&gt;
			end&lt;br /&gt;
		end end&lt;br /&gt;
		return table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getQualifierDateValue = function(frame)&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local qualifierID = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local input_parm = mw.text.trim(frame.args[3] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local date_format = mw.text.trim(frame.args[4] or &amp;quot;dmy&amp;quot;)&lt;br /&gt;
	if input_parm == &amp;quot;FETCH_WIKIDATA&amp;quot; then&lt;br /&gt;
		local entity = mw.wikibase.getEntity()&lt;br /&gt;
		if entity.claims[propertyID] ~= nil then&lt;br /&gt;
			local out = {}&lt;br /&gt;
			local dt = {}&lt;br /&gt;
			for k, v in pairs(entity.claims[propertyID]) do&lt;br /&gt;
				for k2, v2 in pairs(v.qualifiers[qualifierID]) do&lt;br /&gt;
					if isValueSnak(v2) then&lt;br /&gt;
						local d = v2.datavalue.value.time&lt;br /&gt;
						if #d &amp;gt; 26 then&lt;br /&gt;
							dt.year = string.sub(d, 9, 12)&lt;br /&gt;
							dt.month = string.sub(d, 14, 15)&lt;br /&gt;
							dt.day = string.sub(d, 17, 18)&lt;br /&gt;
						else&lt;br /&gt;
							dt.year = string.sub(d, 9, 10)&lt;br /&gt;
							dt.month = string.sub(d, 12, 13)&lt;br /&gt;
							dt.day = string.sub(d, 15, 16)&lt;br /&gt;
						end&lt;br /&gt;
						if date_format == &amp;quot;mdy&amp;quot; then&lt;br /&gt;
							out[#out + 1] = os.date(&amp;quot;%B %e, %Y&amp;quot;, os.time(dt))&lt;br /&gt;
						elseif date_format == &amp;quot;my&amp;quot; then&lt;br /&gt;
							out[#out + 1] = os.date(&amp;quot;%B %Y&amp;quot;, os.time(dt))&lt;br /&gt;
						elseif date_format == &amp;quot;y&amp;quot; then&lt;br /&gt;
							out[#out + 1] = os.date(&amp;quot;%Y&amp;quot;, os.time(dt))&lt;br /&gt;
						else&lt;br /&gt;
							out[#out + 1] = os.date(&amp;quot;%e %B %Y&amp;quot;, os.time(dt))&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			return table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return input_parm&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- returns the value of the specified qualifier for the specified preferred value of the property of the specified entity (or the current entity)&lt;br /&gt;
p.findQualifierForPreferredPropertyValue = function(entityId, propertyId, qualifierId, separator)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityId == nil then return nil end&lt;br /&gt;
	local claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	local out = {}&lt;br /&gt;
	if claims and claims[1] then&lt;br /&gt;
		for claimK, claimV in pairs(claims) do&lt;br /&gt;
			if claimV.rank == &#039;preferred&#039; then&lt;br /&gt;
				local qual = claimV.qualifiers[qualifierId]&lt;br /&gt;
				if qual and qual.mainsnak then table.insert(out, snakToString(qual)) end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(out, separator)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getQualifierForPreferredPropertyValue = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local entityId = args[&#039;entityId&#039;] or args[1]&lt;br /&gt;
	local propertyId = args[&#039;propertyId&#039;] or args[2]&lt;br /&gt;
	local qualifierId = args[&#039;qualifierId&#039;] or args[3]&lt;br /&gt;
	local separator = args[&#039;separator&#039;] or args[4] or &#039;, &#039;&lt;br /&gt;
	&lt;br /&gt;
	return p.findQualifierForPreferredPropertyValue(entityId, propertyId, qualifierId, separator)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- This is used to get the TA98 (Terminologia Anatomica first edition 1998) values like &#039;A01.1.00.005&#039; (property P1323)&lt;br /&gt;
-- which are then linked to http://www.unifr.ch/ifaa/Public/EntryPage/TA98%20Tree/Entity%20TA98%20EN/01.1.00.005%20Entity%20TA98%20EN.htm&lt;br /&gt;
-- uses the newer mw.wikibase calls instead of directly using the snaks&lt;br /&gt;
-- formatPropertyValues returns a table with the P1323 values concatenated with &amp;quot;, &amp;quot; so we have to split them out into a table in order to construct the return string&lt;br /&gt;
p.getTAValue = function(frame)&lt;br /&gt;
	local ent = mw.wikibase.getEntityObject()&lt;br /&gt;
	local props = ent:formatPropertyValues(&#039;P1323&#039;)&lt;br /&gt;
	local out = {}&lt;br /&gt;
	local t = {}&lt;br /&gt;
	for k, v in pairs(props) do&lt;br /&gt;
		if k == &#039;value&#039; then&lt;br /&gt;
			t = mw.text.split( v, &amp;quot;, &amp;quot;)&lt;br /&gt;
			for k2, v2 in pairs(t) do&lt;br /&gt;
				out[#out + 1] = &amp;quot;[http://www.unifr.ch/ifaa/Public/EntryPage/TA98%20Tree/Entity%20TA98%20EN/&amp;quot; .. string.sub(v2, 2) .. &amp;quot;%20Entity%20TA98%20EN.htm &amp;quot; .. v2 .. &amp;quot;]&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	ret = table.concat(out, &amp;quot;&amp;lt;br&amp;gt; &amp;quot;)&lt;br /&gt;
	if #ret == 0 then&lt;br /&gt;
		ret = &amp;quot;Invalid TA&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- returns the page id (Q...) of the current page or nothing of the page is not connected to Wikidata&lt;br /&gt;
p.pageId = p.getEntityId&lt;br /&gt;
&lt;br /&gt;
-- the &amp;quot;qualifiers&amp;quot; and &amp;quot;snaks&amp;quot; field have a respective &amp;quot;qualifiers-order&amp;quot; and &amp;quot;snaks-order&amp;quot; field&lt;br /&gt;
-- use these as the second parameter and this function instead of the built-in &amp;quot;pairs&amp;quot; function&lt;br /&gt;
-- to iterate over all qualifiers and snaks in the intended order.&lt;br /&gt;
local function orderedpairs(array, order)&lt;br /&gt;
	if not order then return pairs(array) end&lt;br /&gt;
 &lt;br /&gt;
	-- return iterator function&lt;br /&gt;
    local i = 0&lt;br /&gt;
    return function()&lt;br /&gt;
        i = i + 1&lt;br /&gt;
        if order[i] then&lt;br /&gt;
            return order[i], array[order[i]]&lt;br /&gt;
        end&lt;br /&gt;
    end	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function printDatavalueEntity(data, parameter)&lt;br /&gt;
	-- data fields: entity-type [string], numeric-id [int, Wikidata id]&lt;br /&gt;
	local id = &amp;quot;Q&amp;quot; .. data[&amp;quot;numeric-id&amp;quot;]&lt;br /&gt;
	if parameter then&lt;br /&gt;
		if parameter == &amp;quot;link&amp;quot; then&lt;br /&gt;
			return &amp;quot;[[&amp;quot; .. (mw.wikibase.sitelink(id) or (&amp;quot;:d:&amp;quot; .. id))  .. &amp;quot;|&amp;quot; ..  (mw.wikibase.label(id) or id)  .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			return data[parameter]&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if data[&amp;quot;entity-type&amp;quot;] == &amp;quot;item&amp;quot; then return mw.wikibase.label(&amp;quot;Q&amp;quot; .. data[&amp;quot;numeric-id&amp;quot;]) or id else printError(&amp;quot;unknown-entity-type&amp;quot;) end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function printDatavalueTime(data, parameter)&lt;br /&gt;
	-- data fields: time [ISO 8601 time], timezone [int in minutes], before [int], after [int], precision [int], calendarmodel [wikidata URI]&lt;br /&gt;
	--   precision: 0 - billion years, 1 - hundred million years, ..., 6 - millennia, 7 - century, 8 - decade, 9 - year, 10 - month, 11 - day, 12 - hour, 13 - minute, 14 - second&lt;br /&gt;
	--   calendarmodel: e.g. http://www.wikidata.org/entity/Q1985727 for the proleptic Gregorian calendar or http://www.wikidata.org/wiki/Q11184 for the Julian calendar]&lt;br /&gt;
	if parameter then&lt;br /&gt;
		if parameter == &amp;quot;calendarmodel&amp;quot; then data.calendarmodel = mw.ustring.match(data.calendarmodel, &amp;quot;Q%d+&amp;quot;) -- extract entity id from the calendar model URI&lt;br /&gt;
		elseif parameter == &amp;quot;time&amp;quot; then data.time = normalizeDate(data.time) end&lt;br /&gt;
		return data[parameter]&lt;br /&gt;
	else&lt;br /&gt;
		return formatDate(data.time, data.precision, data.timezone)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function findClaims(entity, property)&lt;br /&gt;
	if not property or not entity or not entity.claims then return end&lt;br /&gt;
 &lt;br /&gt;
	if mw.ustring.match(property, &amp;quot;^P%d+$&amp;quot;) then&lt;br /&gt;
		-- if the property is given by an id (P..) access the claim list by this id&lt;br /&gt;
		return entity.claims[property]&lt;br /&gt;
	else&lt;br /&gt;
		property = mw.wikibase.resolvePropertyId(property)&lt;br /&gt;
		if not property then return end&lt;br /&gt;
&lt;br /&gt;
		return entity.claims[property]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getSnakValue(snak, parameter)&lt;br /&gt;
	-- snaks have three types: &amp;quot;novalue&amp;quot; for null/nil, &amp;quot;somevalue&amp;quot; for not null/not nil, or &amp;quot;value&amp;quot; for actual data&lt;br /&gt;
	if snak.snaktype == &amp;quot;novalue&amp;quot; then return i18n[&amp;quot;novalue&amp;quot;]&lt;br /&gt;
	elseif snak.snaktype == &amp;quot;somevalue&amp;quot; then return i18n[&amp;quot;somevalue&amp;quot;]&lt;br /&gt;
	elseif snak.snaktype ~= &amp;quot;value&amp;quot; then return nil, printError(&amp;quot;unknown-snak-type&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
	-- call the respective snak parser&lt;br /&gt;
	if snak.datavalue.type == &amp;quot;string&amp;quot; then return snak.datavalue.value&lt;br /&gt;
	elseif snak.datavalue.type == &amp;quot;globecoordinate&amp;quot; then return printDatavalueCoordinate(snak.datavalue.value, parameter)&lt;br /&gt;
	elseif snak.datavalue.type == &amp;quot;quantity&amp;quot; then return printDatavalueQuantity(snak.datavalue.value, parameter)&lt;br /&gt;
	elseif snak.datavalue.type == &amp;quot;time&amp;quot; then return printDatavalueTime(snak.datavalue.value, parameter)&lt;br /&gt;
	elseif snak.datavalue.type == &amp;quot;wikibase-entityid&amp;quot; then return printDatavalueEntity(snak.datavalue.value, parameter)&lt;br /&gt;
	elseif snak.datavalue.type == &amp;quot;monolingualtext&amp;quot; then return printDatavalueMonolingualText(snak.datavalue.value, parameter)&lt;br /&gt;
	else return nil, printError(&amp;quot;unknown-datavalue-type&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
local function getQualifierSnak(claim, qualifierId)&lt;br /&gt;
	-- a &amp;quot;snak&amp;quot; is Wikidata terminology for a typed key/value pair&lt;br /&gt;
	-- a claim consists of a main snak holding the main information of this claim,&lt;br /&gt;
	-- as well as a list of attribute snaks and a list of references snaks&lt;br /&gt;
	if qualifierId then&lt;br /&gt;
		-- search the attribute snak with the given qualifier as key&lt;br /&gt;
		if claim.qualifiers then&lt;br /&gt;
			local qualifier = claim.qualifiers[qualifierId]&lt;br /&gt;
			if qualifier then return qualifier[1] end&lt;br /&gt;
		end&lt;br /&gt;
		return nil, printError(&amp;quot;qualifier-not-found&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		-- otherwise return the main snak&lt;br /&gt;
		return claim.mainsnak&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
local function getValueOfClaim(claim, qualifierId, parameter)&lt;br /&gt;
	local error&lt;br /&gt;
	local snak&lt;br /&gt;
	snak, error = getQualifierSnak(claim, qualifierId)&lt;br /&gt;
	if snak then&lt;br /&gt;
		return getSnakValue(snak, parameter)&lt;br /&gt;
	else&lt;br /&gt;
		return nil, error&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.claim = function(frame)&lt;br /&gt;
	local property = frame.args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
	local id = frame.args[&amp;quot;id&amp;quot;]	-- &amp;quot;id&amp;quot; must be nil, as access to other Wikidata objects is disabled in Mediawiki configuration&lt;br /&gt;
	local qualifierId = frame.args[&amp;quot;qualifier&amp;quot;]&lt;br /&gt;
	local parameter = frame.args[&amp;quot;parameter&amp;quot;]&lt;br /&gt;
	local list = frame.args[&amp;quot;list&amp;quot;]&lt;br /&gt;
	local references = frame.args[&amp;quot;references&amp;quot;]&lt;br /&gt;
	local showerrors = frame.args[&amp;quot;showerrors&amp;quot;]&lt;br /&gt;
	local default = frame.args[&amp;quot;default&amp;quot;]&lt;br /&gt;
	if default then showerrors = nil end&lt;br /&gt;
 &lt;br /&gt;
	-- get wikidata entity&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject(id)&lt;br /&gt;
	if not entity then&lt;br /&gt;
		if showerrors then return printError(&amp;quot;entity-not-found&amp;quot;) else return default end&lt;br /&gt;
	end&lt;br /&gt;
	-- fetch the first claim of satisfying the given property&lt;br /&gt;
	local claims = findClaims(entity, property)&lt;br /&gt;
	if not claims or not claims[1] then&lt;br /&gt;
		if showerrors then return printError(&amp;quot;property-not-found&amp;quot;) else return default end&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
	-- get initial sort indices&lt;br /&gt;
	local sortindices = {}&lt;br /&gt;
	for idx in pairs(claims) do&lt;br /&gt;
		sortindices[#sortindices + 1] = idx&lt;br /&gt;
	end&lt;br /&gt;
	-- sort by claim rank&lt;br /&gt;
	local comparator = function(a, b)&lt;br /&gt;
		local rankmap = { deprecated = 2, normal = 1, preferred = 0 }&lt;br /&gt;
		local ranka = rankmap[claims[a].rank or &amp;quot;normal&amp;quot;] ..  string.format(&amp;quot;%08d&amp;quot;, a)&lt;br /&gt;
		local rankb = rankmap[claims[b].rank or &amp;quot;normal&amp;quot;] ..  string.format(&amp;quot;%08d&amp;quot;, b)&lt;br /&gt;
		return ranka &amp;lt; rankb&lt;br /&gt;
 	end&lt;br /&gt;
	table.sort(sortindices, comparator)&lt;br /&gt;
 &lt;br /&gt;
	local result&lt;br /&gt;
	local error&lt;br /&gt;
	if list then&lt;br /&gt;
		local value&lt;br /&gt;
		-- iterate over all elements and return their value (if existing)&lt;br /&gt;
		result = {}&lt;br /&gt;
		for idx in pairs(claims) do&lt;br /&gt;
			local claim = claims[sortindices[idx]]&lt;br /&gt;
			value, error =  getValueOfClaim(claim, qualifierId, parameter)&lt;br /&gt;
			if not value and showerrors then value = error end&lt;br /&gt;
			if value and references then value = value .. p.outputReferences(claim) end&lt;br /&gt;
			result[#result + 1] = value&lt;br /&gt;
		end&lt;br /&gt;
		result = table.concat(result, list)&lt;br /&gt;
	else&lt;br /&gt;
		-- return first element	&lt;br /&gt;
		local claim = claims[sortindices[1]]&lt;br /&gt;
		result, error = getValueOfClaim(claim, qualifierId, parameter)&lt;br /&gt;
		if result and references then result = result .. p.outputReferences(claim) end&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
	if result then return result else&lt;br /&gt;
		if showerrors then return error else return default end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getPreferredValue = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local propertyID = args[1] or args[&#039;propertyId&#039;] or args[&#039;pid&#039;]&lt;br /&gt;
	local entityID = args[2] or args[&#039;entityId&#039;] or args[&#039;qid&#039;] or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityID == nil or propertyID == nil then return nil end&lt;br /&gt;
	local claims = mw.wikibase.getAllStatements(entityID, propertyID)&lt;br /&gt;
	if claims then&lt;br /&gt;
		-- if wiki-linked value output as link if possible&lt;br /&gt;
		if hasValueSnak(claims[1]) then&lt;br /&gt;
			local out = {}&lt;br /&gt;
			for k, v in pairs(claims) do&lt;br /&gt;
				if (v.rank == &#039;preferred&#039;) then&lt;br /&gt;
					local snakText = snakToString(v.mainsnak) .. p.outputReferences(v)&lt;br /&gt;
&lt;br /&gt;
					if snakText ~= &amp;quot;&amp;quot; then&lt;br /&gt;
						out[#out + 1] = snakText&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			return table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- look into entity object&lt;br /&gt;
p.ViewSomething = function(frame)&lt;br /&gt;
	local data = mw.wikibase.getEntityObject()&lt;br /&gt;
	if not data then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local f = frame.args[1] and frame or frame:getParent()&lt;br /&gt;
&lt;br /&gt;
	local i = 1&lt;br /&gt;
	while true do&lt;br /&gt;
		local index = f.args[i]&lt;br /&gt;
		if not index then&lt;br /&gt;
			return tostring(data)&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		data = data[index] or data[tonumber(index)]&lt;br /&gt;
		if not data then&lt;br /&gt;
			return&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.Dump = function(frame)&lt;br /&gt;
	local data = mw.wikibase.getEntityObject()&lt;br /&gt;
	if not data then&lt;br /&gt;
		return i18n.warnDump&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local f = frame.args[1] and frame or frame:getParent()&lt;br /&gt;
&lt;br /&gt;
	local i = 1&lt;br /&gt;
	while true do&lt;br /&gt;
		local index = f.args[i]&lt;br /&gt;
		if not index then&lt;br /&gt;
			return &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;..mw.dumpObject(data)..&amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;.. i18n.warnDump&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		data = data[index] or data[tonumber(index)]&lt;br /&gt;
		if not data then&lt;br /&gt;
			return i18n.warnDump&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o singură valoare din cele cu rangul cel mai înalt cu referințele corespunzătoare pentru o proprietate specificată&lt;br /&gt;
-- De apelat din alte module&lt;br /&gt;
p.findOneValue = function(propertyID, entity)&lt;br /&gt;
	local entityId = nil&lt;br /&gt;
	if type(entity) == &#039;table&#039; then entityId = entity.id&lt;br /&gt;
	elseif type(entity) == &#039;number&#039; then entityId = StringUtils._prependIfMissing({tostring(entity), &#039;Q&#039;})&lt;br /&gt;
	elseif type(entity) == &#039;string&#039; then entityId = entity&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not entityId then return nil end&lt;br /&gt;
	local claims = mw.wikibase.getBestStatements(entityId, propertyID)&lt;br /&gt;
	if claims and 0 &amp;lt; #claims then&lt;br /&gt;
		for _,eachClaim in ipairs(claims) do&lt;br /&gt;
			if hasValueSnak(eachClaim) then&lt;br /&gt;
				return snakToString(eachClaim.mainsnak) .. p.outputReferences(eachClaim)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
-- Returnează o singură valoare din cele cu rangul cel mai înalt pentru o proprietate specificată&lt;br /&gt;
-- De apelat din alte module&lt;br /&gt;
p.findOneValueNoRef = function(propertyID, entity)&lt;br /&gt;
	local claims = nil&lt;br /&gt;
	if type(entity) == &#039;table&#039; then&lt;br /&gt;
		claims = entity:getBestStatements(propertyID)&lt;br /&gt;
	else&lt;br /&gt;
		if type(entity) == &#039;number&#039; then entity = &#039;Q&#039; .. tostring(entity) end&lt;br /&gt;
		entity = entity or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		claims = mw.wikibase.getBestStatements(entity, propertyID)&lt;br /&gt;
	end&lt;br /&gt;
	if claims and 0 &amp;lt; #claims then&lt;br /&gt;
		for _,eachClaim in ipairs(claims) do&lt;br /&gt;
			if hasValueSnak(eachClaim) then&lt;br /&gt;
				return snakToString(eachClaim.mainsnak)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
-- Returnează o singură valoare din cele cu rangul cel mai înalt pentru o proprietate specificată&lt;br /&gt;
-- De apelat din formate&lt;br /&gt;
p.getOneValueNoRef = function(frame)&lt;br /&gt;
	local propertyID, entityID&lt;br /&gt;
	propertyID, entityID = propAndEntity(frame.args[1], frame.args[2])&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityID ~= &amp;quot;&amp;quot; then entity = mw.wikibase.getEntityObject(entityID) end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityObject() end&lt;br /&gt;
&lt;br /&gt;
	if entity == nil then return nil end&lt;br /&gt;
	return p.findOneValueNoRef(propertyID, entity)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o singură valoare din cele cu rangul cel mai înalt și cu referințele corespunzătoare pentru o proprietate specificată&lt;br /&gt;
-- De apelat din formate&lt;br /&gt;
p.getOneValue = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	parseTopLevelArgs(args)&lt;br /&gt;
	local propertyID, entityID&lt;br /&gt;
	propertyID, entityID = propAndEntity(args[1], args[2])&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityID ~= &amp;quot;&amp;quot; then entity = mw.wikibase.getEntityObject(entityID) end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityObject() end&lt;br /&gt;
	&lt;br /&gt;
	if entity == nil then return nil end&lt;br /&gt;
	return p.findOneValue(propertyID, entity)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function findLatestQualifierValueForOnePropertyOfAnEntity(entity, propertyId, qualifierId)&lt;br /&gt;
	if entity == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	end&lt;br /&gt;
	if entity == nil then return &#039;&#039; end&lt;br /&gt;
	local claims = entity:getBestStatements(propertyId)&lt;br /&gt;
	if claims then&lt;br /&gt;
		if claims[1] then&lt;br /&gt;
			if claims[1].qualifiers then&lt;br /&gt;
				if claims[1].qualifiers[qualifierId] then&lt;br /&gt;
					local allQualifiers = {}&lt;br /&gt;
					for qk, qv in pairs(claims[1].qualifiers[qualifierId]) do&lt;br /&gt;
						table.insert(allQualifiers, qv)&lt;br /&gt;
					end&lt;br /&gt;
					local qIndex = 1&lt;br /&gt;
					local maxQTime = nil&lt;br /&gt;
					while maxQTime == nil and qIndex &amp;lt;= #allQualifiers do&lt;br /&gt;
						if allQualifiers[qIndex].datatype == &#039;time&#039; then&lt;br /&gt;
							maxQTime = allQualifiers[qIndex]&lt;br /&gt;
						end&lt;br /&gt;
						qIndex = qIndex + 1&lt;br /&gt;
					end&lt;br /&gt;
					if maxQTime ~= nil then&lt;br /&gt;
						for i=qIndex,#allQualifiers do&lt;br /&gt;
							local msCrtQTime = tonumber(mw.language.new(lang.code):formatDate(&#039;U&#039;, allQualifiers[i].datavalue.value.time, nil))&lt;br /&gt;
							local msMaxQTime = tonumber(mw.language.new(lang.code):formatDate(&#039;U&#039;, maxQTime.datavalue.value.time, nil))&lt;br /&gt;
							if msCrtQTime &amp;gt; msMaxQTime then&lt;br /&gt;
								maxQTime = allQualifiers[i]&lt;br /&gt;
							end&lt;br /&gt;
						end&lt;br /&gt;
						if isValueSnak(maxQTime) then&lt;br /&gt;
							return formatDate(maxQTime.datavalue.value.time, maxQTime.datavalue.value.precision, maxQTime.datavalue.value.timezone)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					return &amp;quot;&amp;quot;&lt;br /&gt;
				else&lt;br /&gt;
					return &amp;quot;&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;quot;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else &lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează valoarea cea mai recentă a qualifierului specificat pentru proprietea specificată a entității curente&lt;br /&gt;
-- De apelat din alte module&lt;br /&gt;
p.getLatestQualifierDateValueForOneProperty = function(frame)&lt;br /&gt;
 	local propertyId = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local qualifierId = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	&lt;br /&gt;
	return findLatestQualifierValueForOnePropertyOfAnEntity(entity, propertyId, qualifierId)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează valoarea cea mai recentă a qualifierului specificat pentru proprietea specificată a entității curente&lt;br /&gt;
-- De apelat din formate&lt;br /&gt;
p.findLatestQualifierDateValueForOneProperty = function(propertyId, qualifierId)&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	return entity ~= nil and findLatestQualifierValueForOnePropertyOfAnEntity(entity, propertyId, qualifierId) or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează un text ce conține referința pentru o proprietate; de apelat din formate&lt;br /&gt;
p.getReferenceForOneProperty = function(frame)&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	local propertyId = mw.text.trim(frame.args[1])&lt;br /&gt;
	local claims = entity:getBestStatements(propertyId)&lt;br /&gt;
&lt;br /&gt;
	return p.outputReferences(claims[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o listă cu obiecte value asociate unei proprietăți a unei entități&lt;br /&gt;
-- Creată pentru a obține lista de coordonate a unui oraș în formă pură (listă cu obiectele value asociate)&lt;br /&gt;
-- Funcționează pentru: coordonate&lt;br /&gt;
-- TODO - de extins la mai multe tipuri de date, de exemplu texte multilingve, date calendaristice, itemuri wikibase&lt;br /&gt;
p.findDataValueObjects = function(entityId, propertyId)&lt;br /&gt;
	if propertyId == nil then return {} end&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityId == nil then return {} end&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	local claims = mw.wikibase.getAllStatements(entityId, propertyId)&lt;br /&gt;
	if claims == nil then return ret end&lt;br /&gt;
	for claimIdx = 1, #claims do&lt;br /&gt;
		local snak = claims[claimIdx].mainsnak&lt;br /&gt;
		if isValueSnak(snak) then&lt;br /&gt;
			if snak.datatype == &#039;globe-coordinate&#039; then&lt;br /&gt;
				table.insert(ret, snak.datavalue.value)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return ret		&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findRoLabel = function(entityId)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityId then&lt;br /&gt;
		return mw.wikibase.getLabelByLang(entityId, lang.code)&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
p.getRoLabel = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p.findRoLabel(args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează labelul unei entități în limba specificată; dacă nu se găsește, atunci se încearcă în limba wikiului și apoi în limba engleză&lt;br /&gt;
p.findLabel = function(entityId, languageCode, default)&lt;br /&gt;
	local entity, ret&lt;br /&gt;
	if entityId == nil then&lt;br /&gt;
		entityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
		if not entityId then return default or &#039;&#039; end&lt;br /&gt;
	end&lt;br /&gt;
	if type(entityId) == &#039;number&#039; then&lt;br /&gt;
		entityId = &#039;Q&#039; .. tostring(entityId)&lt;br /&gt;
	end&lt;br /&gt;
	if type(entityId) == &#039;string&#039; then &lt;br /&gt;
		if languageCode then&lt;br /&gt;
			ret = mw.wikibase.getLabelByLang(entityId, languageCode)&lt;br /&gt;
		end&lt;br /&gt;
		if not ret then&lt;br /&gt;
			ret = mw.wikibase.getLabel(entityId)&lt;br /&gt;
		end&lt;br /&gt;
		return ret or default or mw.wikibase.getLabelByLang(entityId, &#039;en&#039;) or entityId&lt;br /&gt;
	end&lt;br /&gt;
	if type(entityId) == &#039;table&#039; then&lt;br /&gt;
		local entity = entityId&lt;br /&gt;
		if not languageCode or languageCode == &#039;&#039; then languageCode = lang.code end&lt;br /&gt;
		ret = entity:getLabel(languageCode) or entity:getLabel(lang.code) or default or entity:getLabel(&#039;en&#039;)&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	return default or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getLabel = function(frame)&lt;br /&gt;
	local args = getArgs(frame, {frameOnly=true})&lt;br /&gt;
	local entityId = args[1]&lt;br /&gt;
	local languageCode = args[2] or lang.code&lt;br /&gt;
	local default = args[&#039;default&#039;]&lt;br /&gt;
	return p.findLabel(entityId, languageCode, default)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function formatCoordinates(entityId, args)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if entityId == nil then return &#039;&#039; end&lt;br /&gt;
	local coordClaims = mw.wikibase.getAllStatements(entityId, &#039;P625&#039;)&lt;br /&gt;
	local formattedCoordsList = {}&lt;br /&gt;
	if coordClaims and coordClaims[1] then&lt;br /&gt;
		for coordIdx=1,#coordClaims do&lt;br /&gt;
			if coordClaims[coordIdx].mainsnak.datatype == &#039;globe-coordinate&#039; and&lt;br /&gt;
			coordClaims[coordIdx].mainsnak.datavalue ~= nil then&lt;br /&gt;
				local latDir = coordClaims[coordIdx].mainsnak.datavalue.value.latitude &amp;lt; 0 and &#039;S&#039; or &#039;N&#039;&lt;br /&gt;
				local lonDir = coordClaims[coordIdx].mainsnak.datavalue.value.longitude &amp;lt; 0 and &#039;V&#039; or &#039;E&#039;&lt;br /&gt;
				local coordArgs = {tostring(math.abs(coordClaims[coordIdx].mainsnak.datavalue.value.latitude)), latDir, tostring(math.abs(coordClaims[coordIdx].mainsnak.datavalue.value.longitude)), lonDir}&lt;br /&gt;
				if args[&#039;display&#039;] ~= nul then coordArgs[&#039;display&#039;] = args[&#039;display&#039;] end&lt;br /&gt;
				if args[&#039;format&#039;] ~= nul then coordArgs[&#039;format&#039;] = args[&#039;format&#039;] end&lt;br /&gt;
				local coordsText = mw.getCurrentFrame():expandTemplate{title=&#039;Coord&#039;, args=coordArgs}&lt;br /&gt;
&lt;br /&gt;
				table.insert(formattedCoordsList, coordsText)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(formattedCoordsList, &#039;, &#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getFormattedCoordinates = function(frame)&lt;br /&gt;
	local origArgs = getArgs(frame)&lt;br /&gt;
	return formatCoordinates(origArgs[1] or origArgs[&#039;entityId&#039;], origArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o numărul de valori cu cel mai mare rang pentru o proprietate specificată&lt;br /&gt;
-- De apelat din alte module&lt;br /&gt;
p.countBestValues = function(propertyID, entity)&lt;br /&gt;
	if type(entity) == &#039;table&#039; then&lt;br /&gt;
		entity = entity.id&lt;br /&gt;
	elseif type(entity) == &#039;number&#039; then&lt;br /&gt;
		entity = &#039;Q&#039; .. tostring(entity)&lt;br /&gt;
	elseif entity == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
		if entity == nil then return 0 end&lt;br /&gt;
	end&lt;br /&gt;
	local claims = mw.wikibase.getBestStatements(entity, propertyID)&lt;br /&gt;
	local outList = {}&lt;br /&gt;
	if not claims then return 0 end&lt;br /&gt;
	return #claims&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getBestValuesCount = function(frame)&lt;br /&gt;
	local origArgs = getArgs(frame)&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	return p.countBestValues(origArgs[1], entity)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o singură valoare din cele cu rangul cel mai înalt cu referințele corespunzătoare pentru o proprietate specificată&lt;br /&gt;
-- De apelat din alte module&lt;br /&gt;
p.findBestValues = function(propertyID, entity)&lt;br /&gt;
	if type(entity) == &#039;table&#039; then&lt;br /&gt;
		entity = entity.id&lt;br /&gt;
	elseif type(entity) == &#039;number&#039; then&lt;br /&gt;
		entity = &#039;Q&#039; .. tostring(entity)&lt;br /&gt;
	end&lt;br /&gt;
	if entity == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
		if entity == nil then return {} end&lt;br /&gt;
	end&lt;br /&gt;
	if not StringUtils._emptyToNil({propertyID}) then return nil end&lt;br /&gt;
	local claims = mw.wikibase.getBestStatements(entity, propertyID)&lt;br /&gt;
	local outList = {}&lt;br /&gt;
	if claims then for claimIdx, actualClaim in pairs(claims) do&lt;br /&gt;
		if hasValueSnak(actualClaim) then&lt;br /&gt;
			table.insert(outList, snakToString(actualClaim.mainsnak) .. p.outputReferences(actualClaim))&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	return outList&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
p._getBestValuesWithSeparator = function(entity, propertyID, sep)&lt;br /&gt;
	if propertyID == nil then return &#039;&#039; end&lt;br /&gt;
	local valueList = p.findBestValues(propertyID, entity)&lt;br /&gt;
	return valueList and table.concat(valueList, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returnează o listă a valorilor cu rangul cel mai înalt și cu referințele corespunzătoare pentru o proprietate specificată&lt;br /&gt;
-- De apelat din formate&lt;br /&gt;
p.getBestValuesWithSeparator = function(frame) &lt;br /&gt;
	local sep = frame.args[1]&lt;br /&gt;
	if sep == nil or sep == &#039;&#039; then sep = &#039;, &#039; end&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local entityID = mw.text.trim(frame.args[3] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityID ~= &amp;quot;&amp;quot; then entity = mw.wikibase.getEntityObject(entityID) end&lt;br /&gt;
	if entity == nil then entity = mw.wikibase.getEntityObject() end&lt;br /&gt;
	&lt;br /&gt;
	return p._getBestValuesWithSeparator(entity, propertyID, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLanguageText = function(propertyId, langcode, entityId)&lt;br /&gt;
	-- return label of a Wikidata entity in the given language or the default language of this Wikipedia site&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not entityId then return nil end&lt;br /&gt;
	local returnValue = nil&lt;br /&gt;
	langcode = langcode or &#039;ro&#039;&lt;br /&gt;
	for eachClaimIdx, eachClaim in pairs(mw.wikibase.getAllStatements(entityId, propertyId)) do&lt;br /&gt;
		if hasValueSnak(eachClaim) and eachClaim.mainsnak.datavalue then&lt;br /&gt;
			if eachClaim.mainsnak.datavalue.type == &#039;monolingualtext&#039; then&lt;br /&gt;
				if eachClaim.mainsnak.datavalue.value.language == langcode then returnValue = eachClaim.mainsnak.datavalue.value.text end&lt;br /&gt;
			elseif eachClaim.mainsnak.datavalue.type == &#039;string&#039; then&lt;br /&gt;
				returnValue = eachClaim.mainsnak.datavalue.value&lt;br /&gt;
			elseif eachClaim.mainsnak.datavalue.type == &#039;wikibase-entityid&#039; then&lt;br /&gt;
				returnValue = p.findLabel(eachClaim.mainsnak.datavalue.value.id, langcode)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	return returnValue&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getLanguageText = function(frame)&lt;br /&gt;
	return p.findLanguageText(frame.args[1], frame.args[2] or &#039;ro&#039;, frame.args[3]) or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findBestValuesForLocalLanguage = function(propertyId, entityId)&lt;br /&gt;
	entityId = entityId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not entityId then return nil end&lt;br /&gt;
	local bestValues = {}&lt;br /&gt;
	local bestRank = nil&lt;br /&gt;
	for eachClaimIdx, eachClaim in pairs(mw.wikibase.getAllStatements(entityId, propertyId)) do&lt;br /&gt;
		if (hasValueSnak(eachClaim) and eachClaim.qualifiers and eachClaim.qualifiers[&#039;P407&#039;] and 0 &amp;lt; #(eachClaim.qualifiers[&#039;P407&#039;])) then&lt;br /&gt;
			if hasBetterRank(eachClaim, bestRank) then&lt;br /&gt;
					for _,eachLangQual in ipairs(eachClaim.qualifiers[&#039;P655&#039;] or {}) do&lt;br /&gt;
						if isValueSnak(eachLangQual) and eachLangQual.datavalue.value.id == &#039;Q7913&#039; then&lt;br /&gt;
							bestRank = eachLangQual.rank&lt;br /&gt;
							if not bestRank or mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(eachClaim.rank)] &amp;gt; mw.wikibase.entity.claimRanks[&#039;RANK_&#039; .. mw.ustring.upper(bestRank)] then&lt;br /&gt;
								bestValues = {}&lt;br /&gt;
							end&lt;br /&gt;
							table.insert(bestValues, snakToString(eachClaim.mainsnak))&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return bestValues&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getBestValuesForLocalLanguageWithSeparator = function(frame)&lt;br /&gt;
	return table.concat(p.findBestValuesForLocalLanguage(frame.args[2], frame.args[3]) or {}, frame.args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findShortestAlias = function(entityId)&lt;br /&gt;
	return p.findLinkToItem(entityId, false, false, true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findImageAndCaption = function(entityId, props)&lt;br /&gt;
	local wikidataImages = nil&lt;br /&gt;
	props = props or {&#039;P2716&#039;, &#039;P18&#039;, &#039;P10&#039;}&lt;br /&gt;
	-- order is important, we will only retrieve one property&lt;br /&gt;
	for _,prop in ipairs(props) do&lt;br /&gt;
		wikidataImages = p.findBestClaimsForProperty(entityId, prop)&lt;br /&gt;
		-- stop on the first match&lt;br /&gt;
		if wikidataImages and #wikidataImages &amp;gt; 0 then break end&lt;br /&gt;
	end&lt;br /&gt;
	local imageName, imageCaption&lt;br /&gt;
	if wikidataImages and #wikidataImages &amp;gt; 0 then&lt;br /&gt;
		local wikidataImage = wikidataImages[1]&lt;br /&gt;
		if hasValueSnak(wikidataImage) and wikidataImage.mainsnak.datavalue then&lt;br /&gt;
			imageName = wikidataImage.mainsnak.datavalue.value&lt;br /&gt;
			local roDescr = &#039;&#039;&lt;br /&gt;
			if wikidataImage.qualifiers and wikidataImage.qualifiers[&#039;P2096&#039;] then&lt;br /&gt;
				for _,eachImageDescrLangString in pairs(wikidataImage.qualifiers[&#039;P2096&#039;]) do&lt;br /&gt;
					if isValueSnak(eachImageDescrLangString) and eachImageDescrLangString.datavalue and eachImageDescrLangString.datavalue.value.language == &#039;ro&#039; then&lt;br /&gt;
						roDescr = eachImageDescrLangString.datavalue.value.text or roDescr&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			imageCaption = roDescr&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return imageName, imageCaption&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLinkToWikidataItem = function(itemId, prefix)&lt;br /&gt;
	libraryUtil.checkType(&#039;findLinkToWikidataItem&#039;, 2, prefix, &#039;string&#039;, false)&lt;br /&gt;
	local qId = StringUtils._prependIfMissing({itemId, prefix})&lt;br /&gt;
	local itemLabel = p.findLabel(qId)&lt;br /&gt;
	return &#039;[[:d:&#039; .. (prefix == &#039;P&#039; and &#039;Property:&#039; or &#039;&#039;) .. qId .. &#039;|&#039; .. (itemLabel or &#039;&#039;) .. &#039; &#039; .. tostring(mw.html.create(&#039;small&#039;):wikitext(&#039;(&#039; .. qId .. &#039;)&#039;)) .. &#039;]]&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getLinkToWikidataItem = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local prefix = args[&#039;prefix&#039;] or &#039;Q&#039;&lt;br /&gt;
	if not args[1] then return &amp;quot;&#039;&#039;id de &amp;quot; .. (prefix == &#039;P&#039; and &#039;proprietate&#039; or &#039;item&#039;) .. &amp;quot; Wikidata nespecificat&#039;&#039;&amp;quot; end&lt;br /&gt;
	return p.findLinkToWikidataItem(args[1], prefix)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.formatExternalLink = function(pId, qId, text)&lt;br /&gt;
	local formatterUrl = p.findOneValueNoRef(&#039;P1630&#039;, pId) or &#039;$1&#039;&lt;br /&gt;
	local urlComponent = text or p.findOneValueNoRef(pId, qId)&lt;br /&gt;
	if not urlComponent then return nil end&lt;br /&gt;
	local formattedLink = mw.ustring.gsub(formatterUrl, &#039;%$1&#039;, text or urlComponent)&lt;br /&gt;
	return formattedLink&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getFormattedExternalLink = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local pId = args[&#039;pid&#039;] or args[1]&lt;br /&gt;
	local qId = args[&#039;qid&#039;] or args[2]&lt;br /&gt;
	local text = args[&#039;text&#039;]&lt;br /&gt;
	&lt;br /&gt;
	return p.formatExternalLink(pId, qId, text)&lt;br /&gt;
end&lt;br /&gt;
p.isFemale = function(qId)&lt;br /&gt;
	local entityId = qId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not entityId then return false end&lt;br /&gt;
	local genders = mw.wikibase.getBestStatements(entityId, &#039;P21&#039;)&lt;br /&gt;
	local feminineIds = { 6581072, 1052281, 43445 }&lt;br /&gt;
	&lt;br /&gt;
	if genders then for genderIdx,eachGender in ipairs(genders) do&lt;br /&gt;
		if hasValueSnak(eachGender) then for _,eachFemId in ipairs(feminineIds) do&lt;br /&gt;
			if eachFemId == eachGender.mainsnak.datavalue.value[&#039;numeric-id&#039;] then return true end&lt;br /&gt;
		end end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findClaimForTimestamp = function(entityId, propertyId, timestamp, lang)&lt;br /&gt;
	local propClaims = p.findSortedClaimsForProperty(entityId, propertyId)&lt;br /&gt;
&lt;br /&gt;
	local bestClaim = nil&lt;br /&gt;
	if propClaims then for _,eachPropClaim in ipairs(propClaims) do&lt;br /&gt;
		if hasValueSnak(eachPropClaim) and isClaimTrue(eachPropClaim) then&lt;br /&gt;
			&lt;br /&gt;
			if eachPropClaim.mainsnak.datavalue.type ~= &#039;monolingualtext&#039; or StringUtils._substringBefore({eachPropClaim.mainsnak.datavalue.value.language, &#039;-&#039;}) == StringUtils._substringBefore({lang or &#039;ro&#039;, &#039;-&#039;}) then&lt;br /&gt;
				local before = nil&lt;br /&gt;
				local after = nil&lt;br /&gt;
				if eachPropClaim.qualifiers then&lt;br /&gt;
					if eachPropClaim.qualifiers[&#039;P580&#039;] and eachPropClaim.qualifiers[&#039;P580&#039;][1] and isValueSnak(eachPropClaim.qualifiers[&#039;P580&#039;][1]) then&lt;br /&gt;
						after = GregorianDate.convertToGregorianIfInInterval(DateUtils.extractDateFromWikidataSnak(eachPropClaim.qualifiers[&#039;P580&#039;][1]))&lt;br /&gt;
					end&lt;br /&gt;
					if eachPropClaim.qualifiers[&#039;P582&#039;] and eachPropClaim.qualifiers[&#039;P582&#039;][1] and isValueSnak(eachPropClaim.qualifiers[&#039;P582&#039;][1]) then&lt;br /&gt;
						before = GregorianDate.convertToGregorianIfInInterval(DateUtils.extractDateFromWikidataSnak(eachPropClaim.qualifiers[&#039;P582&#039;][1]))&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				if timestamp then&lt;br /&gt;
					--if before and DateUtils.compare(timestamp, before) &amp;gt; 0 then --the claim list is sorted by before&lt;br /&gt;
					--	break&lt;br /&gt;
					--else&lt;br /&gt;
						if after == nil and before and DateUtils.compare(timestamp, before) &amp;lt; 0 then&lt;br /&gt;
							return eachPropClaim&lt;br /&gt;
						elseif after and before and DateUtils.compare(timestamp, before) &amp;lt; 0 and DateUtils.compare(timestamp, after) &amp;gt; 0 then &lt;br /&gt;
							return eachPropClaim&lt;br /&gt;
						elseif after and before == nil and DateUtils.compare(timestamp, after) &amp;gt; 0 then&lt;br /&gt;
							return eachPropClaim&lt;br /&gt;
						end&lt;br /&gt;
					--end&lt;br /&gt;
				end&lt;br /&gt;
				if not before then&lt;br /&gt;
					if not bestClaim and hasBetterRank(eachPropClaim, &#039;normal&#039;) or (bestClaim and hasBetterRank(eachPropClaim, bestClaim.rank)) then&lt;br /&gt;
						bestClaim = eachPropClaim&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
&lt;br /&gt;
	if bestClaim then&lt;br /&gt;
		return bestClaim&lt;br /&gt;
	else&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.formatOnlineLink = function(linkProp, entityId)&lt;br /&gt;
	local linkId = p.findOneValueNoRef(linkProp, entityId)&lt;br /&gt;
	if linkId then&lt;br /&gt;
		local linkFormatter = p.findOneValueNoRef(&#039;P1630&#039;, linkProp) or &#039;$1&#039;&lt;br /&gt;
		if linkFormatter then&lt;br /&gt;
			linkId = mw.ustring.gsub(linkId, &#039;%%&#039;, &#039;%%%%&#039;)&lt;br /&gt;
			local link = mw.ustring.gsub(linkFormatter, &#039;$1&#039;, linkId)&lt;br /&gt;
			return link&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getFormattedOnlineLink = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p.formatOnlineLink(args[1], args[2] or mw.wikibase.getEntityIdForCurrentPage())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findOnlineLinks = function(onlinelinksprops, entityId, extraProps)&lt;br /&gt;
	local onlinelinks = {}&lt;br /&gt;
	local onlinelinksprops = onlinelinksprops and #onlinelinksprops &amp;gt; 0 and onlinelinksprops or {&#039;P856&#039;, &#039;P1581&#039;, &#039;P2013&#039;, &#039;P2002&#039;, &#039;P2847&#039;, &#039;P345&#039;, &#039;P3265&#039;, &#039;P3579&#039;, &#039;P3435&#039;, &#039;P2003&#039;, &#039;P2471&#039;, &#039;P2397&#039;, &#039;P953&#039;, &#039;P1065&#039;, &#039;P4173&#039;, &#039;P4431&#039;, &#039;P1968&#039;, &#039;P6634&#039;, &#039;P4264&#039;, &#039;P2572&#039;, &#039;P7085&#039;, &#039;P3789&#039;}&lt;br /&gt;
	if extraProps and type(extraProps) == &#039;table&#039; then onlinelinksprops = Set.valueUnion(onlinelinksprops, extraProps) end&lt;br /&gt;
	for _,eachOnlineLinkProp in ipairs(onlinelinksprops) do&lt;br /&gt;
		local link = p.formatOnlineLink(eachOnlineLinkProp)&lt;br /&gt;
		if link then&lt;br /&gt;
			local linkentities = p.getBestEntityIdsList(eachOnlineLinkProp, &#039;P1629&#039;)&lt;br /&gt;
			if linkentities and #linkentities &amp;gt; 0 then&lt;br /&gt;
				local linklabel = p.findLabel(StringUtils._prependIfMissing({linkentities[1], &#039;Q&#039;}))&lt;br /&gt;
				table.insert(onlinelinks, &#039;[&#039; .. link .. &#039; &#039; .. linklabel .. &#039;]&#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return onlinelinks&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getOnlineLinks = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local _,entityId = propAndEntity(StringUtils._prependIfMissing({args[&#039;qid&#039;], &#039;Q&#039;}))&lt;br /&gt;
	local extraPropsStr = args[&#039;extras&#039;]&lt;br /&gt;
	local extraProps = nil&lt;br /&gt;
	if  extraPropsStr then extraProps = mw.text.split(extraPropsStr, &#039;,&#039;, true) end&lt;br /&gt;
	local onlinelinksprops = {}&lt;br /&gt;
	local passedProps = TableTools.compressSparseArray(args)&lt;br /&gt;
	for __,eachProp in ipairs(passedProps) do&lt;br /&gt;
		if mw.ustring.match(eachProp, &#039;P%d+&#039;) == eachProp then&lt;br /&gt;
			table.insert(onlinelinksprops, eachProp)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return table.concat(p.findOnlineLinks(onlinelinksprops, entityId, extraProps), tostring(mw.html.create(&#039;br&#039;)))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLanguageIndexedLabelsFromProperty = function(entityId, propertyId)&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityId then&lt;br /&gt;
		entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;})&lt;br /&gt;
	else&lt;br /&gt;
		entityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	end&lt;br /&gt;
	local titles = {}&lt;br /&gt;
	for _,eachTitleClaim in ipairs(mw.wikibase.getAllStatements(entityId, propertyId)) do&lt;br /&gt;
		if hasValueSnak(eachTitleClaim) then&lt;br /&gt;
			titles[eachTitleClaim.mainsnak.datavalue.value.language] = eachTitleClaim.mainsnak.datavalue.value.text&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return titles&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findTitleOfWork = function(entityId)&lt;br /&gt;
	local entity = nil&lt;br /&gt;
	if entityId then&lt;br /&gt;
		entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;})&lt;br /&gt;
	else&lt;br /&gt;
		entityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--- this comes first just for performance reasons&lt;br /&gt;
	if entityId then&lt;br /&gt;
		local localLabel, localLang = mw.wikibase.getLabelWithLang(entityId)&lt;br /&gt;
		if localLabel and localLang == &#039;ro&#039; then&lt;br /&gt;
			return localLabel&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local langs = {}&lt;br /&gt;
	for _,eachProperty in ipairs({&#039;P364&#039;, &#039;P407&#039;}) do&lt;br /&gt;
		for __,eachLangClaim in ipairs(mw.wikibase.getAllStatements(entityId, eachProperty)) do&lt;br /&gt;
&lt;br /&gt;
			if hasValueSnak(eachLangClaim) then&lt;br /&gt;
				local langEntityId = eachLangClaim.mainsnak.datavalue.value.id&lt;br /&gt;
				if LangUtils[langEntityId] then&lt;br /&gt;
					table.insert(langs, { qid = langEntityId, code = LangUtils[langEntityId] })&lt;br /&gt;
				elseif langEntityId then&lt;br /&gt;
					for ___,eachLangCodeClaim in ipairs(mw.wikibase.getAllStatements(langEntityId, &#039;P424&#039;)) do&lt;br /&gt;
						if hasValueSnak(eachLangCodeClaim) and isClaimTrue(eachLangCodeClaim) then&lt;br /&gt;
							local sanitizedLangCode = StringUtils._substringBefore({eachLangCodeClaim.mainsnak.datavalue.value, &#039;-&#039;})&lt;br /&gt;
							sanitizedLangCode = StringUtils._substringBefore({sanitizedLangCode, &#039;_&#039;})&lt;br /&gt;
							table.insert(langs, { qid = langEntityId, code = sanitizedLangCode} )&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(langs, {qid = &#039;Q1860&#039;, code = &#039;en&#039;})&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	local titles = p.findLanguageIndexedLabelsFromProperty(entityId, &#039;P1476&#039;)&lt;br /&gt;
	if titles[&#039;ro&#039;] then return titles[&#039;ro&#039;] end&lt;br /&gt;
	local nonLatinLangs = {}&lt;br /&gt;
	for _,eachlanguage in ipairs(langs) do&lt;br /&gt;
		local langText = nil&lt;br /&gt;
		if isWritingSystemLatn(eachlanguage.qid) then&lt;br /&gt;
			langText = wrapInLangSpan(titles[eachlanguage.code] or mw.wikibase.getLabelByLang(entityId, eachlanguage.code), eachlanguage.code)&lt;br /&gt;
		elseif Transliteration.isTransliterationSupported(eachlanguage.code) then&lt;br /&gt;
			langText = wrapInLangSpan(Transliteration.transliterate(titles[eachlanguage.code] or mw.wikibase.getLabelByLang(entityId, eachlanguage.code), eachlanguage.code), eachlanguage.code)&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(nonLatinLangs, eachlanguage.code)&lt;br /&gt;
		end&lt;br /&gt;
		if langText then return langText end&lt;br /&gt;
	end&lt;br /&gt;
	for _,langCode in ipairs(nonLatinLangs) do&lt;br /&gt;
		langText = wrapInLangSpan(titles[langCode] or mw.wikibase.getLabelByLang(entityId, langCode), langCode)&lt;br /&gt;
		if langText then return langText end&lt;br /&gt;
	end&lt;br /&gt;
	return entityId&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findTitlesOfWorksFromProperty = function(propertyId, entityId, limit)&lt;br /&gt;
	if limit == nil then limit = 10 end&lt;br /&gt;
	if entityId then entityId = StringUtils._prependIfMissing({tostring(entityId), &#039;Q&#039;})&lt;br /&gt;
	else entityId = mw.wikibase.getEntityIdForCurrentPage() end&lt;br /&gt;
&lt;br /&gt;
	if not entityId then return nil end&lt;br /&gt;
	&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	local bestWorksClaims = mw.wikibase.getBestStatements(entityId, propertyId)&lt;br /&gt;
	for workIdx = 1,math.min(limit, #bestWorksClaims) do&lt;br /&gt;
		local eachWorkClaim = bestWorksClaims[workIdx]&lt;br /&gt;
		if hasValueSnak(eachWorkClaim) then&lt;br /&gt;
			local workId = eachWorkClaim.mainsnak.datavalue.value.id&lt;br /&gt;
			table.insert(ret, computeLinkToItem(workId, true, nil, function() return p.findTitleOfWork(workId) end))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
p.getTitleOfWorkFromPropertyWithSeparator = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local sep = args[1]&lt;br /&gt;
	local propertyId, entityId = propAndEntity(args[2], args[3])&lt;br /&gt;
	local limitStr = args[&#039;limit&#039;]&lt;br /&gt;
	local limit = tonumber(limitStr or &#039;10&#039;)&lt;br /&gt;
	local retListRaw = p.findTitlesOfWorksFromProperty(propertyId, entityId, limit) or {}&lt;br /&gt;
	local retList = {}&lt;br /&gt;
	for _,eachRetVal in ipairs(retListRaw) do&lt;br /&gt;
		table.insert(retList, &amp;quot;&#039;&#039;&amp;quot; .. eachRetVal .. &amp;quot;&#039;&#039;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(retList, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.loadOneValueInChain = function(...)&lt;br /&gt;
	local chain = arg.n == 0 and {} or type(arg[1]) == &#039;table&#039; and arg[1] or arg&lt;br /&gt;
	local crtChainElementId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	local crtChainClaim = nil&lt;br /&gt;
	local crtChainSnak = nil&lt;br /&gt;
	local coordComponent = nil&lt;br /&gt;
	local raw = false&lt;br /&gt;
	local label = false&lt;br /&gt;
	local ref = false&lt;br /&gt;
	for _,eachChainRing in ipairs(chain) do&lt;br /&gt;
		if mw.ustring.match(eachChainRing, &#039;Q%d+&#039;) == eachChainRing then&lt;br /&gt;
			crtChainElementId = eachChainRing&lt;br /&gt;
		elseif mw.ustring.match(eachChainRing, &#039;_P%d+&#039;) and crtChainSnak then&lt;br /&gt;
			local qualPropertyId = mw.ustring.sub(eachChainRing, 2, mw.ustring.len(eachChainRing))&lt;br /&gt;
			if crtChainClaim.qualifiers and crtChainClaim.qualifiers[qualPropertyId] and #(crtChainClaim.qualifiers[qualPropertyId]) &amp;gt; 0 then&lt;br /&gt;
				local qualIdx = 1&lt;br /&gt;
				local propertyQuals = crtChainClaim.qualifiers[qualPropertyId]&lt;br /&gt;
				while qualIdx &amp;lt;= #propertyQuals and not isValueSnak(propertyQuals[qualIdx]) do&lt;br /&gt;
					qualIdx = qualIdx + 1&lt;br /&gt;
				end&lt;br /&gt;
				if qualIdx &amp;lt;= #propertyQuals and isValueSnak(propertyQuals[qualIdx]) then&lt;br /&gt;
					local firstValueSnakIdx = qualIdx&lt;br /&gt;
					if propertyQuals[qualIdx].datavalue.type == &#039;monolingualtext&#039; then&lt;br /&gt;
						while qualIdx &amp;lt;= #propertyQuals and (not isValueSnak(propertyQuals[qualIdx]) or propertyQuals[qualIdx].datavalue.value.language ~= &#039;ro&#039;) do&lt;br /&gt;
							qualIdx = qualIdx + 1&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					crtChainSnak = qualIdx &amp;lt;= #propertyQuals and isValueSnak(propertyQuals[qualIdx]) and propertyQuals[qualIdx] or propertyQuals[firstValueSnakIdx]&lt;br /&gt;
				else &lt;br /&gt;
					return nil&lt;br /&gt;
				end&lt;br /&gt;
			else &lt;br /&gt;
				return nil&lt;br /&gt;
			end&lt;br /&gt;
		elseif mw.ustring.match(eachChainRing, &#039;P%d+&#039;) ~= nil then&lt;br /&gt;
			local pid = mw.ustring.match(eachChainRing, &#039;P%d+&#039;)&lt;br /&gt;
			if isValueSnak(crtChainSnak) and crtChainSnak.datavalue.type == &#039;wikibase-entityid&#039; then&lt;br /&gt;
				crtChainElementId = crtChainSnak.datavalue.value.id&lt;br /&gt;
				crtChainClaim = nil&lt;br /&gt;
				crtChainSnak = nil&lt;br /&gt;
			end&lt;br /&gt;
			if crtChainElementId and not crtChainSnak then&lt;br /&gt;
				local propertyClaims = nil&lt;br /&gt;
				-- get latest property&lt;br /&gt;
				if mw.ustring.match(eachChainRing, &#039;@P%d+&#039;) == eachChainRing then&lt;br /&gt;
					propertyClaims = p.findSortedClaimsForProperty(crtChainElementId, pid)&lt;br /&gt;
&lt;br /&gt;
				-- get one random property&lt;br /&gt;
				elseif mw.ustring.match(eachChainRing, &#039;P%d+&#039;) == eachChainRing then&lt;br /&gt;
					propertyClaims = mw.wikibase.getBestStatements(crtChainElementId, eachChainRing)&lt;br /&gt;
				else&lt;br /&gt;
					return nil;&lt;br /&gt;
				end&lt;br /&gt;
				if #propertyClaims &amp;lt; 1 then return nil end&lt;br /&gt;
				local claimIdx = 1&lt;br /&gt;
				&lt;br /&gt;
				if propertyClaims[claimIdx].mainsnak.datavalue and propertyClaims[claimIdx].mainsnak.datavalue.type == &#039;monolingualtext&#039; then&lt;br /&gt;
					while claimIdx &amp;lt;= #propertyClaims and (not hasValueSnak(propertyClaims[claimIdx]) or propertyClaims[claimIdx].mainsnak.datavalue.value.language ~= &#039;ro&#039;) do&lt;br /&gt;
						claimIdx = claimIdx + 1&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					while claimIdx &amp;lt;= #propertyClaims and not hasValueSnak(propertyClaims[claimIdx]) do&lt;br /&gt;
						claimIdx = claimIdx + 1&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				if claimIdx &amp;lt;= #propertyClaims and hasValueSnak(propertyClaims[claimIdx]) then&lt;br /&gt;
					crtChainClaim = propertyClaims[claimIdx]&lt;br /&gt;
					crtChainSnak = crtChainClaim.mainsnak&lt;br /&gt;
				else &lt;br /&gt;
					return nil&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		elseif eachChainRing == &#039;lat&#039; or eachChainRing == &#039;long&#039; then&lt;br /&gt;
			coordComponent = eachChainRing .. &#039;itude&#039;&lt;br /&gt;
		elseif eachChainRing == &#039;raw&#039; then&lt;br /&gt;
			raw = true&lt;br /&gt;
		elseif eachChainRing == &#039;label&#039; then&lt;br /&gt;
			if crtChainSnak then crtChainElementId = crtChainSnak.datavalue.value.id end&lt;br /&gt;
			crtChainClaim = nil&lt;br /&gt;
			crtChainSnak = nil&lt;br /&gt;
			label = true&lt;br /&gt;
		elseif eachChainRing == &#039;ref&#039; then&lt;br /&gt;
			ref = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if ref and crtChainClaim then&lt;br /&gt;
		return p.outputReferences(crtChainClaim)&lt;br /&gt;
	end&lt;br /&gt;
	if crtChainSnak then&lt;br /&gt;
		if coordComponent and crtChainSnak.datavalue.value[coordComponent] then return crtChainSnak.datavalue.value[coordComponent] end&lt;br /&gt;
		return raw and printRawValue(crtChainSnak) or snakToString(crtChainSnak)&lt;br /&gt;
	end&lt;br /&gt;
	if crtChainElementId then &lt;br /&gt;
		if raw then return crtChainElementId&lt;br /&gt;
		elseif label then return p.findLabel(crtChainElementId)&lt;br /&gt;
		else return p.findLinkToItem(crtChainElementId) end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getOneValueInChain = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p.loadOneValueInChain(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isA(entityId, typeIds)&lt;br /&gt;
	local entityTypes = p.findClaimsForProperty(entityId, &#039;P31&#039;)&lt;br /&gt;
	entityId = type(entityId) == &#039;number&#039; and (&#039;Q&#039; .. tostring(entityId)) or entityId&lt;br /&gt;
	if entityTypes then for _,eachEntityType in ipairs(entityTypes) do&lt;br /&gt;
		if isClaimTrue(eachEntityType) and hasValueSnak(eachEntityType) then&lt;br /&gt;
			if TableTools.contains(typeIds, eachEntityType.mainsnak.datavalue.value.id) then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
			local recurseSuccess, recursivelyFoundType = pcall(mw.wikibase.getReferencedEntityId, eachEntityType.mainsnak.datavalue.value.id, &#039;P279&#039;, typeIds)&lt;br /&gt;
			if recurseSuccess and recursivelyFoundType then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
			if not recurseSuccess then&lt;br /&gt;
				--manually recurse one level&lt;br /&gt;
				local superTypeClaims = mw.wikibase.getBestStatements(eachEntityType.mainsnak.datavalue.value.id, &#039;P279&#039;)&lt;br /&gt;
				if superTypeClaims then for __,eachSuperTypeClaim in ipairs(superTypeClaims) do&lt;br /&gt;
					if hasValueSnak(eachSuperTypeClaim) and TableTools.contains(typeIds, eachSuperTypeClaim.mainsnak.datavalue.value.id) then&lt;br /&gt;
						return true&lt;br /&gt;
					end&lt;br /&gt;
				end end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isA = isA&lt;br /&gt;
&lt;br /&gt;
p.findAnniversary = function(propertyId, entityId, step)&lt;br /&gt;
	local _date = p.findDateValues(propertyId, entityId)&lt;br /&gt;
	if _date and _date[1] then &lt;br /&gt;
		-- no year 0&lt;br /&gt;
		if _date[1].year &amp;lt; 0 then _date[1].year = _date[1].year + 1 end&lt;br /&gt;
		if (os.date(&amp;quot;*t&amp;quot;).year - _date[1].year) % step == 0 then&lt;br /&gt;
			return (os.date(&amp;quot;*t&amp;quot;).year - _date[1].year)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getAnniversary = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p.findAnniversary(args[1], args[2], args[3])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findLocationChain = function(entity)&lt;br /&gt;
	local q = entity or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not q then return nil end&lt;br /&gt;
	local countryQId = p.loadOneValueInChain({q, &#039;P17&#039;, &#039;raw&#039;})&lt;br /&gt;
	local adminUnitQId = p.loadOneValueInChain({q, &#039;P131&#039;, &#039;raw&#039;})&lt;br /&gt;
	if not adminUnitQId or adminUnitQId == countryQId then return p.findLinkToItem(countryQId, true, false, false) end&lt;br /&gt;
	return p.findLinkToItem(adminUnitQId, true, false, false) .. &#039;, &#039; .. p.findLocationChain(adminUnitQId)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getLocationChain = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	parseTopLevelArgs(args)&lt;br /&gt;
	return p.findLocationChain(args.q)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.findAddress = function(qId)&lt;br /&gt;
	local q = qId or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if not q then return nil,nil end&lt;br /&gt;
&lt;br /&gt;
	p159claims = p.findBestClaimsForProperty(q, &#039;P159&#039;)&lt;br /&gt;
	addrs = {}&lt;br /&gt;
	if p159claims then for _,eachP159claim in ipairs(p159claims) do&lt;br /&gt;
		if hasValueSnak(eachP159claim) then&lt;br /&gt;
			local addrParts = { p.printSnak(eachP159claim.mainsnak) }&lt;br /&gt;
			if eachP159claim.qualifiers then&lt;br /&gt;
				for __,qual in ipairs({&#039;P6375&#039;, &#039;P669&#039;, &#039;P670&#039;, &#039;P281&#039;, &#039;P17&#039;}) do&lt;br /&gt;
					if eachP159claim.qualifiers[qual] then for ___,eachP159ClaimQual in ipairs(eachP159claim.qualifiers[qual]) do&lt;br /&gt;
						if isValueSnak(eachP159ClaimQual) then&lt;br /&gt;
							table.insert(addrParts, p.printSnak(eachP159ClaimQual))&lt;br /&gt;
						end&lt;br /&gt;
					end end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(addrs, table.concat(addrParts, &#039;, &#039;))&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	if #addrs &amp;gt; 0 then&lt;br /&gt;
		return table.concat(addrs, tostring(mw.html.create(&#039;br&#039;))), &#039;P159&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	p6375 = p.findOneValue(&#039;P6375&#039;, q)&lt;br /&gt;
	if p6375 then return p6375, &#039;P6375&#039; end&lt;br /&gt;
	&lt;br /&gt;
	p669claims = p.findBestClaimsForProperty(q, &#039;P669&#039;)&lt;br /&gt;
	local addrs = {}&lt;br /&gt;
	if p669claims then for _,eachP669Claim in ipairs(p669claims) do&lt;br /&gt;
		if hasValueSnak(eachP669Claim) then&lt;br /&gt;
			local thisAddr = p.printSnak(eachP669Claim.mainsnak)&lt;br /&gt;
			if eachP669Claim.qualifiers and eachP669Claim.qualifiers[&#039;P670&#039;] then&lt;br /&gt;
				local streetNumbers = {}&lt;br /&gt;
				for __,eachP669ClaimP670Qual in ipairs(eachP669Claim.qualifiers[&#039;P670&#039;]) do&lt;br /&gt;
					if isValueSnak(eachP669ClaimP670Qual) then&lt;br /&gt;
						table.insert(streetNumbers, eachP669ClaimP670Qual.datavalue.value)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				if #streetNumbers &amp;gt; 0 then&lt;br /&gt;
					thisAddr = thisAddr .. &#039; nr. &#039; .. table.concat(streetNumbers, &#039;, &#039;)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(addrs, thisAddr)&lt;br /&gt;
		end&lt;br /&gt;
	end end&lt;br /&gt;
	if #addrs &amp;gt; 0 then&lt;br /&gt;
		table.insert(addrs, 1, p.findLocationChain(q))&lt;br /&gt;
		return table.concat(addrs, &#039;; &#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local p2795text = p.loadOneValueInChain({&#039;P2795&#039;})&lt;br /&gt;
	if p2795text then return p2795text end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.getAddress = function(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local addr, srcProp = p.findAddress(args[1])&lt;br /&gt;
	return addr&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.hasValueSnak = hasValueSnak&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:InfoboxBiography&amp;diff=334</id>
		<title>Modul:InfoboxBiography</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:InfoboxBiography&amp;diff=334"/>
		<updated>2024-07-14T19:52:30Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Pagină nouă: local p = {} local getArgs = require(&amp;#039;Modul:Arguments&amp;#039;).getArgs local wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;) local lc = require(&amp;#039;Modul:LocationAndCountry&amp;#039;) local bda = require(&amp;#039;Modul:BirthDateAndAge&amp;#039;) local infobox = require(&amp;#039;Modul:Infobox&amp;#039;) local infoboxImage = require(&amp;#039;Modul:InfoboxImage&amp;#039;).InfoboxImage local join = require(&amp;#039;Modul:Separated entries&amp;#039;)._main local StringUtils = require(&amp;#039;Modul:StringUtils&amp;#039;) local DateUtils = require(&amp;#039;Modul:DateUtils&amp;#039;) local Lang = require(&amp;#039;Modul:...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local p = {}&lt;br /&gt;
local getArgs = require(&#039;Modul:Arguments&#039;).getArgs&lt;br /&gt;
local wikidata = require(&#039;Modul:Wikidata&#039;)&lt;br /&gt;
local lc = require(&#039;Modul:LocationAndCountry&#039;)&lt;br /&gt;
local bda = require(&#039;Modul:BirthDateAndAge&#039;)&lt;br /&gt;
local infobox = require(&#039;Modul:Infobox&#039;)&lt;br /&gt;
local infoboxImage = require(&#039;Modul:InfoboxImage&#039;).InfoboxImage&lt;br /&gt;
local join = require(&#039;Modul:Separated entries&#039;)._main&lt;br /&gt;
local StringUtils = require(&#039;Modul:StringUtils&#039;)&lt;br /&gt;
local DateUtils = require(&#039;Modul:DateUtils&#039;)&lt;br /&gt;
local Lang = require(&#039;Modul:Lang&#039;)&lt;br /&gt;
local TableTools = require(&#039;Modul:TableTools&#039;)&lt;br /&gt;
local toWdLinkGenerator = require(&#039;Modul:EditAtWikidata&#039;)&lt;br /&gt;
local NameAndImage = require(&#039;Modul:NameAndImage&#039;)&lt;br /&gt;
local libraryUtil = require( &#039;libraryUtil&#039; )&lt;br /&gt;
local plural = require(&#039;Modul:Plural&#039;)&lt;br /&gt;
local wdu_b = require(&#039;Modul:WikidataUtils/Biography&#039;)&lt;br /&gt;
local Transliteration = require(&#039;Modul:Transliteration&#039;)&lt;br /&gt;
&lt;br /&gt;
local MIN_YEAR_TO_DISPLAY_CITIZENSHIP = 1800&lt;br /&gt;
&lt;br /&gt;
local _br_ = tostring(mw.html.create(&#039;br&#039;))&lt;br /&gt;
local appendToString = StringUtils._appendToString&lt;br /&gt;
local prependToString = StringUtils._prependToString&lt;br /&gt;
local encloseString = StringUtils._encloseString&lt;br /&gt;
&lt;br /&gt;
local function extractDedicatedArgFromInputArgs(retainedInputArgs, args, argNames, wikidataCallback)&lt;br /&gt;
	libraryUtil.checkType(&#039;extractDedicatedArgFromInputArgs&#039;, 1, retainedInputArgs, &#039;table&#039;, true)&lt;br /&gt;
	libraryUtil.checkType(&#039;extractDedicatedArgFromInputArgs&#039;, 2, args, &#039;table&#039;, false)&lt;br /&gt;
	libraryUtil.checkType(&#039;extractDedicatedArgFromInputArgs&#039;, 3, argNames, &#039;table&#039;, true)&lt;br /&gt;
	libraryUtil.checkType(&#039;extractDedicatedArgFromInputArgs&#039;, 4, wikidataCallback, &#039;function&#039;, true)&lt;br /&gt;
	&lt;br /&gt;
	if argNames == nil then return nil end&lt;br /&gt;
	local foundValue = nil&lt;br /&gt;
	for argNameIdx,argName in pairs(argNames) do&lt;br /&gt;
		local argv = args[argName]&lt;br /&gt;
		if argv and foundValue == nil then&lt;br /&gt;
			foundValue = argv&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if foundValue then&lt;br /&gt;
		for argNameIdx,argName in pairs(argNames) do&lt;br /&gt;
			table.insert(retainedInputArgs, argName)&lt;br /&gt;
		end&lt;br /&gt;
		return foundValue&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args[&#039;embed&#039;] ~= &#039;yes&#039; and args[&#039;embed&#039;] ~= &#039;y&#039; and args[&#039;embed&#039;] ~= &#039;da&#039; then&lt;br /&gt;
		local wikidataValue, wikidataId, wikidataEntId = wikidataCallback()&lt;br /&gt;
		if wikidataValue and mw.ustring.len(mw.text.trim(wikidataValue)) &amp;gt; 0 then return wikidataValue .. toWdLinkGenerator.displayMessage(wikidataId, wikidataEntId) end&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function copyProperty(outputTable, inputTable, propName)&lt;br /&gt;
	libraryUtil.checkType(&#039;copyProperty&#039;, 1, outputTable, &#039;table&#039;, false)&lt;br /&gt;
	libraryUtil.checkType(&#039;copyProperty&#039;, 2, inputTable, &#039;table&#039;, false)&lt;br /&gt;
	libraryUtil.checkTypeMulti(&#039;copyProperty&#039;, 3, propName, {&#039;string&#039;, &#039;number&#039;})&lt;br /&gt;
	outputTable[propName] = inputTable[propName]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function tableContains(haystackTable, needle)&lt;br /&gt;
	libraryUtil.checkType(&#039;tableContains&#039;, 1, haystackTable, &#039;table&#039;, true)&lt;br /&gt;
	if haystackTable == nil or needle == nil then return false end&lt;br /&gt;
	for k, v in pairs(haystackTable) do&lt;br /&gt;
		if v == needle then return true end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function processArgs(args)&lt;br /&gt;
	local processedArgs = {}&lt;br /&gt;
	local retainedInputArgs = {}&lt;br /&gt;
	local labeldatacount = 2&lt;br /&gt;
	&lt;br /&gt;
	processedArgs[&#039;child&#039;] = (args[&#039;embed&#039;] == &#039;yes&#039; or args[&#039;embed&#039;] == &#039;da&#039; or args[&#039;embed&#039;] == &#039;y&#039;) and &#039;yes&#039; or nil&lt;br /&gt;
	if args[&#039;culoare cadru&#039;] then processedArgs[&#039;culoare cadru&#039;] = args[&#039;culoare cadru&#039;] end&lt;br /&gt;
	if args[&#039;culoare text&#039;] then processedArgs[&#039;culoare text&#039;] = args[&#039;culoare text&#039;] end&lt;br /&gt;
	copyProperty(processedArgs, args, &#039;aboveclass&#039;)&lt;br /&gt;
	processedArgs[&#039;navbar&#039;] = &#039;false&#039;&lt;br /&gt;
&lt;br /&gt;
	if (processedArgs[&#039;child&#039;] == nil) then&lt;br /&gt;
		processedArgs[&#039;header1&#039;] = &#039;Date personale&#039;&lt;br /&gt;
		local genderSuffix = wdu_b.isFemale() and &#039;ă&#039; or &#039;&#039;&lt;br /&gt;
		&lt;br /&gt;
		local imageName = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;image&#039;, &#039;Imagine&#039;, &#039;imagine&#039;, &#039;foto&#039;}, function() return nil, nil, nil end)&lt;br /&gt;
		if imageName then&lt;br /&gt;
			if StringUtils._startsWithAny({mw.text.trim(imageName), &#039;[[&#039;}) then&lt;br /&gt;
				imageName = StringUtils._substringBefore({mw.text.trim(imageName), &#039;]]&#039;, &#039;|&#039;})&lt;br /&gt;
				imageName = StringUtils._removeStart({imageName, &#039;[[&#039;})&lt;br /&gt;
			end&lt;br /&gt;
			imageName = StringUtils._removeStart({mw.text.trim(imageName), &#039;File:&#039;})&lt;br /&gt;
			imageName = StringUtils._removeStart({imageName, &#039;Fișier:&#039;})&lt;br /&gt;
			imageName = StringUtils._removeStart({imageName, &#039;Fişier:&#039;})&lt;br /&gt;
			imageName = StringUtils._removeStart({imageName, &#039;Image:&#039;})&lt;br /&gt;
			imageName = StringUtils._removeStart({imageName, &#039;Imagine:&#039;})&lt;br /&gt;
			imageName = StringUtils._removeStart({imageName, &#039;Media:&#039;})&lt;br /&gt;
			local imgTitle = mw.title.new(imageName, 6)&lt;br /&gt;
			if not imgTitle or not imgTitle.file or not imgTitle.file.exists then&lt;br /&gt;
				imageName = nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		local imageCaption = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;caption&#039;, &#039;descriere&#039;, &#039;comentariu&#039;, &#039;Descriere&#039;}, function() return nil, nil, nil end)&lt;br /&gt;
		&lt;br /&gt;
		local wdImageName, wdImageCaption&lt;br /&gt;
		if imageName == nil then&lt;br /&gt;
			wdImageName, wdImageCaption = wikidata.findImageAndCaption()&lt;br /&gt;
			imageName = wdImageName&lt;br /&gt;
			imageCaption = wdImageCaption&lt;br /&gt;
		end&lt;br /&gt;
		if imageName and mw.ustring.len(imageName) &amp;gt; 0 then&lt;br /&gt;
			local imageSize = args[&#039;imagesize&#039;] or args[&#039;image_size&#039;] or args[&#039;Lățime&#039;]&lt;br /&gt;
			processedArgs[&#039;image&#039;] = infoboxImage{image=imageName, size=imageSize, sizedefault=&#039;frameless&#039;, upright=&#039;1&#039;, suppressplaceholder=&#039;yes&#039;}&lt;br /&gt;
			processedArgs[&#039;caption&#039;] = imageCaption&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local birthName = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;nume_naștere&#039;, &#039;birth_name&#039;}, function() &lt;br /&gt;
			local birthNameClaims = wikidata.findClaimsForProperty(nil, &#039;P1477&#039;)&lt;br /&gt;
			local roVal = nil&lt;br /&gt;
			local otherLangVals = {}&lt;br /&gt;
			if birthNameClaims then for _,eachBirthNameClaim in ipairs(birthNameClaims) do&lt;br /&gt;
				if wikidata.isClaimTrue(eachBirthNameClaim) and wikidata.hasValueSnak(eachBirthNameClaim) then&lt;br /&gt;
					if eachBirthNameClaim.mainsnak.datavalue.value.language == &#039;ro&#039; then&lt;br /&gt;
						roVal = eachBirthNameClaim.mainsnak.datavalue.value.text&lt;br /&gt;
					else&lt;br /&gt;
						local thisName = nil&lt;br /&gt;
						if Transliteration.isTransliterationSupported(eachBirthNameClaim.mainsnak.datavalue.value.language) then&lt;br /&gt;
							thisName = Lang.fromArgs(eachBirthNameClaim.mainsnak.datavalue.value.language .. &#039;-Latn&#039;, nil, Transliteration.transliterate(eachBirthNameClaim.mainsnak.datavalue.value.text, eachBirthNameClaim.mainsnak.datavalue.value.language), false)&lt;br /&gt;
						else&lt;br /&gt;
							thisName = Lang.fromArgs(eachBirthNameClaim.mainsnak.datavalue.value.language, nil, eachBirthNameClaim.mainsnak.datavalue.value.text, false)&lt;br /&gt;
						end&lt;br /&gt;
						table.insert(otherLangVals, thisName)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end end&lt;br /&gt;
			if roVal then return roVal, &#039;P1477&#039;, nil&lt;br /&gt;
			elseif #otherLangVals then return mw.text.listToText(otherLangVals, tostring(mw.html.create(&#039;br&#039;))), &#039;P1449&#039;, nil&lt;br /&gt;
			else return nil&lt;br /&gt;
			end&lt;br /&gt;
		end)&lt;br /&gt;
		if birthName and mw.ustring.len(birthName) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Nume la naștere&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = birthName&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local nickname = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;porecla&#039;, &#039;poreclă&#039;, &#039;nickname&#039;}, function() &lt;br /&gt;
			local birthNameClaims = wikidata.findClaimsForProperty(nil, &#039;P1449&#039;)&lt;br /&gt;
			local roVals = {}&lt;br /&gt;
			local otherLangVals = {}&lt;br /&gt;
			if birthNameClaims then for _,eachBirthNameClaim in ipairs(birthNameClaims) do&lt;br /&gt;
				if wikidata.hasValueSnak(eachBirthNameClaim) and wikidata.claimHasRankAtLeastNormal(eachBirthNameClaim) then&lt;br /&gt;
					if eachBirthNameClaim.mainsnak.datavalue.value.language == &#039;ro&#039; then&lt;br /&gt;
						table.insert(roVals, eachBirthNameClaim.mainsnak.datavalue.value.text)&lt;br /&gt;
					else&lt;br /&gt;
						table.insert(otherLangVals, Lang.fromArgs(eachBirthNameClaim.mainsnak.datavalue.value.language, nil, eachBirthNameClaim.mainsnak.datavalue.value.text, false))&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end end&lt;br /&gt;
			if #roVals == 0 and #otherLangVals == 0 then return nil end&lt;br /&gt;
			return mw.text.listToText(#roVals &amp;gt; 0 and roVals or otherLangVals, &#039;, &#039;, &#039;, &#039;), &#039;P1449&#039;, nil&lt;br /&gt;
		end)&lt;br /&gt;
		if nickname and mw.ustring.len(nickname) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Poreclă&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = nickname&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local birthDate = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;data_nașterii&#039;, &#039;data_nasterii&#039;, &#039;birth_date&#039;, &#039;Născut&#039;}, function() return bda._getBdaByWikidata{link = &#039;yes&#039;}, &#039;P569&#039;, nil end)&lt;br /&gt;
		local birthPlace = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;locul_nașterii&#039;, &#039;locul_nasterii&#039;, &#039;birth_place&#039;, &#039;Loc naștere&#039;}, function() return lc.displayFromParams(&#039;P19&#039;, nil, &#039;P569&#039;, 1, &#039;; &#039;, true), &#039;P19&#039;, nil end)&lt;br /&gt;
		if birthDate and mw.ustring.len(birthDate) &amp;gt; 0 or birthPlace and mw.ustring.len(birthPlace) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Născut&#039; .. genderSuffix&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = join({birthDate, birthPlace, separator = _br_})&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local deathDate = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;data_deces&#039;, &#039;data_decesului&#039;, &#039;death_date&#039;, &#039;Decedat&#039;}, function() return bda._getDdaByWikidata{link = &#039;yes&#039;}, &#039;P570&#039;, nil end)&lt;br /&gt;
		local deathPlace = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;locul_decesului&#039;, &#039;death_place&#039;, &#039;Loc deces&#039;	}, function() return lc.displayFromParams(&#039;P20&#039;, nil, &#039;P570&#039;, 1, &#039;; &#039;, true), &#039;P20&#039;, nil end)&lt;br /&gt;
		if deathDate and mw.ustring.len(deathDate) &amp;gt; 0 or deathPlace and mw.ustring.len(deathPlace) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Decedat&#039; .. genderSuffix&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = join({deathDate, deathPlace, separator = _br_})&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local burialSite = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;loc_odihna&#039;, &#039;locodihna&#039;, &#039;burial_place&#039;, &#039;final_resting_place&#039;}, function() return table.concat(wikidata.findValueListWithDecoratedQualifiers(nil, &#039;P119&#039;, false, {&#039;$P580&#039;, &#039;$P582&#039;}, {&#039;–&#039;}) or {}, tostring(mw.html.create(&#039;br&#039;))), &#039;P119&#039;, nil end)&lt;br /&gt;
		if burialSite and mw.ustring.len(mw.text.trim(burialSite)) &amp;gt; 0 or args[&#039;burial_date&#039;] then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Înmormântat&#039; .. genderSuffix&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = table.concat(TableTools.compressSparseArray({args[&#039;burial_date&#039;], burialSite}), tostring(mw.html.create(&#039;br&#039;)))&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local causeOfDeath = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;cauza_decesului&#039;, &#039;death cause&#039;, &#039;death_cause&#039;}, function()&lt;br /&gt;
				local mOD = wikidata.findOneValue(&#039;P1196&#039;)&lt;br /&gt;
				local cOD = wikidata.findOneValue(&#039;P509&#039;)&lt;br /&gt;
				local cODTbl = {}&lt;br /&gt;
				local cODPropTbl = {}&lt;br /&gt;
				if mOD then&lt;br /&gt;
					table.insert(cODTbl, mOD)&lt;br /&gt;
					table.insert(cODPropTbl, &#039;P1196&#039;)&lt;br /&gt;
				end&lt;br /&gt;
				if cOD then&lt;br /&gt;
					table.insert(cODTbl, cOD)&lt;br /&gt;
					table.insert(cODPropTbl, &#039;P509&#039;)&lt;br /&gt;
				end&lt;br /&gt;
				if #cODTbl == 2 then&lt;br /&gt;
					return appendToString({cODTbl[1], prependToString({encloseString({cODTbl[2], &#039;(&#039;, &#039;)&#039;}), &#039; &#039;})}), &#039;P509&#039;, nil&lt;br /&gt;
				elseif #cODTbl == 1 then&lt;br /&gt;
					return cODTbl[1], cODPropTbl[1], nil&lt;br /&gt;
				end&lt;br /&gt;
			return nil&lt;br /&gt;
		end)&lt;br /&gt;
		&lt;br /&gt;
		if causeOfDeath and mw.ustring.len(mw.text.trim(causeOfDeath)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Cauza decesului&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = causeOfDeath&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local parents = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;părinți&#039;, &#039;parents&#039;, &#039;parinti&#039;}, function() return join({wikidata.findOneValue(&#039;P22&#039;), wikidata.findOneValue(&#039;P25&#039;), separator = _br_}), &#039;P22&#039;, nil end)&lt;br /&gt;
		if parents and mw.ustring.len(mw.text.trim(parents)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Părinți&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = parents&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local siblings = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;frați&#039;, &#039;frati&#039;, &#039;siblings&#039;}, function()&lt;br /&gt;
			local tbl = {}&lt;br /&gt;
			local props = {&#039;P7&#039;, &#039;P9&#039;, &#039;P3373&#039;}&lt;br /&gt;
			local actualProp = nil&lt;br /&gt;
			local wdTbl = {wikidata.getValueList(nil, &#039;P7&#039;), wikidata.getValueList(nil, &#039;P9&#039;), wikidata.getValueList(nil, &#039;P3373&#039;)}&lt;br /&gt;
			for _i,lst in ipairs(wdTbl) do&lt;br /&gt;
				for _i1,v in ipairs(lst or {}) do &lt;br /&gt;
					table.insert(tbl, v)&lt;br /&gt;
					actualProp = props[_i]&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			tbl.separator = _br_&lt;br /&gt;
			return join(tbl), actualProp, nil&lt;br /&gt;
		end)&lt;br /&gt;
		if siblings and mw.ustring.len(mw.text.trim(siblings)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Frați și surori&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = siblings&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local partners = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;partener&#039;, &#039;partners&#039;}, function() return nil, nil, nil end)&lt;br /&gt;
		if partners and mw.ustring.len(mw.text.trim(partners)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Partener(i)&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = partners&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local spouse = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;soț&#039;, &#039;soție&#039;, &#039;sot&#039;, &#039;sotie&#039;, &#039;spouse&#039;, &#039;căsătorit&#039;}, function() return wikidata._getTimestampedValueListWithSeparator({_br_, &#039;P26&#039;}), &#039;P26&#039;, nil end)&lt;br /&gt;
		if spouse and mw.ustring.len(mw.text.trim(spouse)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = args[&#039;spouse-type&#039;] or (&#039;Căsătorit&#039; .. genderSuffix .. &#039; cu&#039;)&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = spouse&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local numberChildren = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;număr_copii&#039;, &#039;numărcopii&#039;, &#039;number_children&#039;, &#039;childrennumber&#039;}, function() return wikidata._getValueListWithSeparator({_br_, &#039;P1971&#039;}), &#039;P1971&#039;, nil end)&lt;br /&gt;
		if numberChildren and mw.ustring.len(mw.text.trim(numberChildren)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Număr de copii&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = numberChildren&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local children = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;copii&#039;, &#039;children&#039;}, function() return wikidata._getValueListWithSeparator({_br_, &#039;P40&#039;, nil, &#039;10&#039;}), &#039;P40&#039;, nil end)&lt;br /&gt;
		if children and mw.ustring.len(mw.text.trim(children)) &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Copii&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = children&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local rude = processedArgs[&#039;rude&#039;] or processedArgs[&#039;relations&#039;]&lt;br /&gt;
		if rude then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(crtLineIndex)] = &#039;Rude&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(crtLineIndex)] = rude&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local citizenship = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;cetatenie&#039;, &#039;cetățenie&#039;, &#039;citizenship&#039;}, function() &lt;br /&gt;
			if wdu_b.isDead() then&lt;br /&gt;
				local dateOfDeathClaims = wikidata.findBestClaimsForProperty(nil, &#039;P570&#039;)&lt;br /&gt;
				for _,eachDateOfDeathClaim in ipairs(dateOfDeathClaims) do&lt;br /&gt;
					local dateOfDeath = DateUtils.extractDateFromWikidataSnak(eachDateOfDeathClaim.mainsnak)&lt;br /&gt;
					if dateOfDeath and dateOfDeath.year &amp;lt; MIN_YEAR_TO_DISPLAY_CITIZENSHIP then return nil end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local endOfCitizenship = wikidata.loadOneValueInChain({&#039;P27&#039;, &#039;_P582&#039;})&lt;br /&gt;
			if not endOfCitizenship or endOfCitizenship == &#039;&#039; then endOfCitizenship = wikidata.loadOneValueInChain({&#039;P570&#039;, &#039;raw&#039;}) end&lt;br /&gt;
			local list = wikidata.findValueListWithDecoratedQualifiers(nil, &#039;P27&#039;, false, {&#039;$P580–$P582&#039;}, {}, &#039;P41&#039;, &#039;20px&#039;)&lt;br /&gt;
			if list then return mw.text.listToText(list, _br_, _br_) else return nil end&lt;br /&gt;
			--return NameAndImage._nameAndFlagFromPropOfEntity(&#039;P27&#039;, nil, DateUtils.parseWikidataDate(endOfCitizenship))&lt;br /&gt;
		end)&lt;br /&gt;
		if citizenship then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Cetățenie&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = citizenship&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local ethnicityWdRetriever = function(entity)&lt;br /&gt;
			local ethnicityClaims = wikidata.findBestClaimsForProperty(entity, &#039;P172&#039;) -- ethnic group&lt;br /&gt;
			local retList = {}&lt;br /&gt;
			local female = wdu_b.isFemale(entity)&lt;br /&gt;
			&lt;br /&gt;
			if ethnicityClaims then&lt;br /&gt;
				for _,eachEthnicityClaim in pairs(ethnicityClaims) do&lt;br /&gt;
					if wikidata.hasValueSnak(eachEthnicityClaim) then&lt;br /&gt;
						local callFunction = function(objectId, female)&lt;br /&gt;
							local returnValue = nil&lt;br /&gt;
							if objectId then&lt;br /&gt;
								local demonymClaims = wikidata.findClaimsForProperty(objectId, &#039;P1549&#039;)&lt;br /&gt;
								for eachClaimIdx, eachClaim in pairs(demonymClaims) do&lt;br /&gt;
									if wikidata.isClaimTrue(eachClaim) and wikidata.hasValueSnak(eachClaim) then&lt;br /&gt;
										if eachClaim.mainsnak.datavalue.value.language == &#039;ro&#039; then&lt;br /&gt;
											local qualifierIsFeminine = eachClaim.qualifiers and ( ( eachClaim.qualifiers[&#039;P21&#039;] and eachClaim.qualifiers[&#039;P21&#039;][1] and eachClaim.qualifiers[&#039;P21&#039;][1].snaktype == &#039;value&#039; and eachClaim.qualifiers[&#039;P21&#039;][1].datavalue.value[&#039;numeric-id&#039;] == 1775415 )&lt;br /&gt;
																					or ( eachClaim.qualifiers[&#039;P21&#039;] and eachClaim.qualifiers[&#039;P21&#039;][1] and eachClaim.qualifiers[&#039;P21&#039;][1].snaktype == &#039;value&#039; and eachClaim.qualifiers[&#039;P21&#039;][1].datavalue.value[&#039;numeric-id&#039;] == 6581072 )&lt;br /&gt;
																					or (eachClaim.qualifiers[&#039;P518&#039;] and eachClaim.qualifiers[&#039;P518&#039;][1] and eachClaim.qualifiers[&#039;P518&#039;][1].snaktype == &#039;value&#039; and eachClaim.qualifiers[&#039;P518&#039;][1].datavalue.value[&#039;numeric-id&#039;] == 1775415) )&lt;br /&gt;
											if (qualifierIsFeminine and female) or (not qualifierIsFeminine and not female) then&lt;br /&gt;
												returnValue = eachClaim.mainsnak.datavalue.value.text&lt;br /&gt;
											end&lt;br /&gt;
										end&lt;br /&gt;
									end&lt;br /&gt;
								end&lt;br /&gt;
							end&lt;br /&gt;
							return returnValue&lt;br /&gt;
						end&lt;br /&gt;
						local callFunctionWithGender = function(object) return callFunction(object, false) end&lt;br /&gt;
						&lt;br /&gt;
						if female then callFunctionWithGender = function(object) return callFunction(object, true) end end&lt;br /&gt;
						table.insert(retList, wikidata.findLinkToItemWithCallback(eachEthnicityClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;], false, nil, callFunctionWithGender))&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if #retList &amp;gt; 0 then&lt;br /&gt;
				retList.separator = tostring(mw.html.create(&#039;br&#039;))&lt;br /&gt;
				return join(retList), &#039;P172&#039;, nil&lt;br /&gt;
			end&lt;br /&gt;
			return nil, nil, nil&lt;br /&gt;
		end&lt;br /&gt;
		local ethnicity = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;etnie&#039;, &#039;ethnicity&#039;}, ethnicityWdRetriever)&lt;br /&gt;
		if ethnicity then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Etnie&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = ethnicity&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local nationality = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;nationalitate&#039;, &#039;nationality&#039;, &#039;naționalitate&#039;, &#039;Naționalitate&#039;}, function() return nil end)&lt;br /&gt;
		if not ethnicity and not citizenship and nationality then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Naționalitate&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = nationality&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local religion = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;religie&#039;, &#039;religion&#039;, &#039;confesiune&#039;}, function() return wikidata._getValueListWithSeparator({_br_, &#039;P140&#039;}), &#039;P140&#039;, nil end)&lt;br /&gt;
		if religion then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Religie&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = religion&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local occupation = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;ocupație&#039;, &#039;occupation&#039;, &#039;ocupatie&#039;, &#039;profesiune&#039;, &#039;profesie&#039;}, function() &lt;br /&gt;
			local occupationClaims = wikidata.findBestClaimsForProperty(nil, &#039;P106&#039;)&lt;br /&gt;
			local fem = wdu_b.isFemale()&lt;br /&gt;
			local occupationList = {}&lt;br /&gt;
			if occupationClaims then for _,eachOccupationClaim in ipairs(occupationClaims) do&lt;br /&gt;
				if eachOccupationClaim.mainsnak.snaktype == &#039;value&#039; then&lt;br /&gt;
					table.insert(occupationList, wikidata.findLinkToItem(eachOccupationClaim.mainsnak.datavalue.value[&#039;numeric-id&#039;], false, fem))&lt;br /&gt;
				end&lt;br /&gt;
			end end&lt;br /&gt;
			return table.concat(occupationList, tostring(mw.html.create(&#039;br&#039;))), &#039;P106&#039;, nil&lt;br /&gt;
		end)&lt;br /&gt;
		&lt;br /&gt;
		if occupation then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Ocupație&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = occupation&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local work_location = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;loc_activitate&#039;, &#039;work_location&#039;}, function() &lt;br /&gt;
			local workLocations = wikidata.findValueListWithQualifiersInBrackets(nil, &#039;P937&#039;, false, {&#039;$P580&#039;, &#039;$P582&#039;}, {&#039;–&#039;})&lt;br /&gt;
			if workLocations then return mw.text.listToText(workLocations, _br_, _br_), &#039;P937&#039;, nil end&lt;br /&gt;
		end)&lt;br /&gt;
		if work_location then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Locul desfășurării activității&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = work_location&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local spoken_langs = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;limbi_vorbite&#039;, &#039;limba_vorbita&#039;}, function() &lt;br /&gt;
			local spokenLangs = wikidata.findValueListWithQualifiersInBrackets(nil, &#039;P1412&#039;, false, {&#039;$P3831&#039;}, {&#039;, &#039;})&lt;br /&gt;
			if spokenLangs then return mw.text.listToText(spokenLangs, _br_, _br_), &#039;P1412&#039;, nil end&lt;br /&gt;
		end)&lt;br /&gt;
		if spoken_langs then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Limbi vorbite&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = spoken_langs&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
			&lt;br /&gt;
		local net_worth = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;avere&#039;, &#039;net_worth&#039;}, function() &lt;br /&gt;
			return wikidata.findOneValue(&#039;P2218&#039;)&lt;br /&gt;
		end)&lt;br /&gt;
		if net_worth then&lt;br /&gt;
			processedArgs[&#039;label&#039; .. tostring(labeldatacount)] = &#039;Avere&#039;&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(labeldatacount)] = net_worth&lt;br /&gt;
			labeldatacount = labeldatacount + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		index = 1&lt;br /&gt;
		processedArgs[&#039;subheaderstyle&#039;] = args[&#039;stilsubtitlu&#039;] or args[&#039;subheaderstyle&#039;] or &#039;font-weight: bold; font-size: 110%&#039;&lt;br /&gt;
		if args[&#039;aniversare_naștere&#039;] then&lt;br /&gt;
			local by = wikidata.findAnniversary(&#039;P569&#039;, mw.wikibase.getEntityIdForCurrentPage(), args[&#039;aniversare_naștere&#039;])&lt;br /&gt;
			if by and by &amp;gt; 0 then&lt;br /&gt;
				processedArgs[&#039;subheader&#039; .. tostring(index)] = plural.build_plural(by, &amp;quot;an&amp;quot;, &amp;quot;ani&amp;quot;) .. &#039; de la naștere&#039;&lt;br /&gt;
				index = index + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if args[&#039;aniversare_deces&#039;] then&lt;br /&gt;
			local dy = wikidata.findAnniversary(&#039;P570&#039;, mw.wikibase.getEntityIdForCurrentPage(), args[&#039;aniversare_deces&#039;])&lt;br /&gt;
			if dy and dy &amp;gt; 0 then&lt;br /&gt;
				processedArgs[&#039;subheader&#039; .. tostring(index)] = plural.build_plural(dy, &amp;quot;an&amp;quot;, &amp;quot;ani&amp;quot;) .. &#039; de la moarte&#039;&lt;br /&gt;
				index = index + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		processedArgs[&#039;title&#039;] = args[&#039;Nume&#039;] or args[&#039;nume&#039;] or args[&#039;name&#039;] or wikidata.findRoLabel() or wikidata.findNativeOrEnglishLabel()&lt;br /&gt;
		processedArgs[&#039;doc&#039;] = args[&#039;doc&#039;]&lt;br /&gt;
		processedArgs[&#039;wikidata&#039;] = args[&#039;wikidata&#039;]&lt;br /&gt;
	else&lt;br /&gt;
		processedArgs[&#039;title&#039;] = args[&#039;default_title&#039;]&lt;br /&gt;
		processedArgs[&#039;parent_colspan&#039;] = args[&#039;parent_colspan&#039;] or &#039;2&#039;&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(retainedInputArgs, &#039;title&#039;)&lt;br /&gt;
	&lt;br /&gt;
	labeldatacount = labeldatacount + 1&lt;br /&gt;
&lt;br /&gt;
	local earliestHeaderNumberAfterGeneralLabels = 0&lt;br /&gt;
	local earliestDataNumberAfterGeneralLabels = 0&lt;br /&gt;
&lt;br /&gt;
	local largestIndex = labeldatacount&lt;br /&gt;
&lt;br /&gt;
	for argN, argV in pairs(args) do&lt;br /&gt;
		local headerStart&lt;br /&gt;
		local headerEnd&lt;br /&gt;
		local labelStart&lt;br /&gt;
		local labelEnd&lt;br /&gt;
		local dataStart&lt;br /&gt;
		local dataEnd&lt;br /&gt;
		headerStart, headerEnd = mw.ustring.find(argN, &amp;quot;header&amp;quot;)&lt;br /&gt;
		labelStart, labelEnd = mw.ustring.find(argN, &amp;quot;label&amp;quot;)&lt;br /&gt;
		dataStart, dataEnd = mw.ustring.find(argN, &amp;quot;data&amp;quot;)&lt;br /&gt;
		styleStart, styleEnd = mw.ustring.find(argN, &amp;quot;style&amp;quot;)&lt;br /&gt;
		classStart, classEnd = mw.ustring.find(argN, &amp;quot;class&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
		local nr = &amp;quot;&amp;quot;&lt;br /&gt;
		local argumentName = nil&lt;br /&gt;
		if dataStart == 1 then&lt;br /&gt;
			nr = mw.ustring.sub(argN, 1 + dataEnd, mw.ustring.len(argN))&lt;br /&gt;
			argumentName = &#039;data&#039;&lt;br /&gt;
			if argV and mw.ustring.len(mw.text.trim(argV)) &amp;gt; 0 and nr ~= nil and mw.ustring.match(nr, &#039;%d+&#039;) then&lt;br /&gt;
				if earliestDataNumberAfterGeneralLabels == 0 or earliestDataNumberAfterGeneralLabels &amp;lt; tonumber(nr) then&lt;br /&gt;
					earliestDataNumberAfterGeneralLabels = tonumber(nr)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		elseif labelStart == 1 then&lt;br /&gt;
			nr = mw.ustring.sub(argN, 1 + labelEnd, mw.ustring.len(argN))&lt;br /&gt;
			argumentName = &#039;label&#039;&lt;br /&gt;
		elseif headerStart == 1 then&lt;br /&gt;
			nr = mw.ustring.sub(argN, 1 + headerEnd, mw.ustring.len(argN))&lt;br /&gt;
			argumentName = &#039;header&#039;&lt;br /&gt;
			if argV and mw.ustring.len(mw.text.trim(argV)) &amp;gt; 0 and nr ~= nil and mw.ustring.match(nr, &#039;%d+&#039;) then&lt;br /&gt;
				if earliestHeaderNumberAfterGeneralLabels == 0 or earliestHeaderNumberAfterGeneralLabels &amp;lt; tonumber(nr) then&lt;br /&gt;
					earliestHeaderNumberAfterGeneralLabels = tonumber(nr)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		elseif styleStart == 1 then&lt;br /&gt;
			nr = mw.ustring.sub(argN, 1 + styleEnd, mw.ustring.len(argN))&lt;br /&gt;
			argumentName = &#039;style&#039;&lt;br /&gt;
		elseif classStart == 1 then&lt;br /&gt;
			nr = mw.ustring.sub(argN, 1 + classEnd, mw.ustring.len(argN))&lt;br /&gt;
			argumentName = &#039;class&#039;&lt;br /&gt;
		end&lt;br /&gt;
		if argumentName and nr and mw.ustring.len(mw.text.trim(nr)) &amp;gt; 0 and mw.ustring.gsub(nr, &#039;%d+&#039;, &#039;&#039;) == &#039;&#039; then&lt;br /&gt;
			local argumentidx = labeldatacount + tonumber(nr)&lt;br /&gt;
			processedArgs[argumentName .. tostring(argumentidx)] = argV&lt;br /&gt;
			largestIndex = math.max(largestIndex, argumentidx)&lt;br /&gt;
		elseif not tableContains(retainedInputArgs, argN) then&lt;br /&gt;
			processedArgs[argN] = argV&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if earliestDataNumberAfterGeneralLabels &amp;gt; 0 and (earliestHeaderNumberAfterGeneralLabels &amp;gt; earliestDataNumberAfterGeneralLabels or earliestHeaderNumberAfterGeneralLabels == 0) then&lt;br /&gt;
		processedArgs[&#039;header&#039; .. tostring(labeldatacount - 1)] = args[&#039;bio_header&#039;] or &#039;Activitate&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not processedArgs[&#039;child&#039;] then	&lt;br /&gt;
		local crtLineIndex = largestIndex + 1&lt;br /&gt;
		local signature = args[&#039;semnătură&#039;] or args[&#039;semnatura&#039;] or args[&#039;signature&#039;] or wikidata.findOneValueNoRef(&#039;P109&#039;, nil)&lt;br /&gt;
		if signature and signature ~= &#039;&#039; then&lt;br /&gt;
			processedArgs[&#039;header&#039; .. tostring(crtLineIndex)] = &#039;Semnătură&#039;&lt;br /&gt;
			crtLineIndex = crtLineIndex + 1&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(crtLineIndex)] = infoboxImage{image=signature, size=&#039;150&#039;, sizedefault=&#039;frameless&#039;, suppressplaceholder=&#039;yes&#039;}&lt;br /&gt;
			crtLineIndex = crtLineIndex + 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local onlinelinks = {}&lt;br /&gt;
		local linkstopullfromwd = {&#039;P2013&#039;, &#039;P2002&#039;, &#039;P2035&#039;, &#039;P2847&#039;, &#039;P345&#039;, &#039;P3265&#039;, &#039;P3579&#039;, &#039;P3435&#039;, &#039;P2003&#039;, &#039;P2471&#039;, &#039;P2397&#039;, &#039;P6634&#039;, &#039;P2572&#039;, &#039;P7085&#039;, &#039;P3789&#039;}&lt;br /&gt;
		local webaddr = extractDedicatedArgFromInputArgs(retainedInputArgs, args, {&#039;sit&#039;, &#039;site&#039;, &#039;web&#039;, &#039;website&#039;, &#039;sit-web&#039;, &#039;site-web&#039;, &#039;sit-adresă&#039;, &#039;URL&#039;, &#039;url&#039;}, function() return nil end)&lt;br /&gt;
		if webaddr then&lt;br /&gt;
			if mw.ustring.find(webaddr, &#039;[&#039;, 1, true) then&lt;br /&gt;
				webaddr = StringUtils._substringBefore({StringUtils._substringAfter({webaddr, &#039;[&#039;}), &#039; &#039;})&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if webaddr and mw.ustring.len(mw.text.trim(webaddr)) &amp;gt; 0 then&lt;br /&gt;
			table.insert(onlinelinks, &#039;[&#039; .. webaddr .. &#039; Site web]&#039;)&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(linkstopullfromwd, 1, &#039;P856&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		local wdonlinelinks = wikidata.findOnlineLinks(linkstopullfromwd)&lt;br /&gt;
		for _,eachWdOnlineLink in ipairs(wdonlinelinks) do&lt;br /&gt;
			table.insert(onlinelinks, eachWdOnlineLink)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if #onlinelinks &amp;gt; 0 then&lt;br /&gt;
			processedArgs[&#039;header&#039; .. tostring(crtLineIndex)] = &#039;Prezență online&#039;&lt;br /&gt;
			crtLineIndex = crtLineIndex + 1&lt;br /&gt;
			processedArgs[&#039;data&#039; .. tostring(crtLineIndex)] = tostring(&lt;br /&gt;
				mw.html.create(&#039;div&#039;)&lt;br /&gt;
					:css(&#039;text-align&#039;, &#039;center&#039;)&lt;br /&gt;
					:wikitext(table.concat(onlinelinks, tostring(mw.html.create(&#039;br&#039;))))&lt;br /&gt;
			)&lt;br /&gt;
			crtLineIndex = crtLineIndex + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return processedArgs&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayInfoboxFromArgs = function(args)&lt;br /&gt;
	local processedArgs = processArgs(args)&lt;br /&gt;
	local outtext = infobox._infobox(processedArgs)&lt;br /&gt;
	local maintcats = {}&lt;br /&gt;
	if not processedArgs.image then&lt;br /&gt;
		table.insert(maintcats, &#039;Articole biografice fără fotografii&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for _,eachMaintCat in ipairs(maintcats) do&lt;br /&gt;
		outtext = outtext .. &#039;[[Categorie:&#039; .. eachMaintCat .. &#039;]]&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return outtext&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.displayInfobox = function(frame)&lt;br /&gt;
	local args = getArgs(frame, {parentFirst = true})&lt;br /&gt;
	return p.displayInfoboxFromArgs(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Pagina_principal%C4%83&amp;diff=333</id>
		<title>Pagina principală</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Pagina_principal%C4%83&amp;diff=333"/>
		<updated>2024-07-14T19:50:21Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: /* Enciclopedia Populară Moldovenească */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Enciclopedia Moldovenească =&lt;br /&gt;
Bine ați venit pe pagina Enciclopediei Moldovenești.&lt;br /&gt;
&lt;br /&gt;
Site-ul este în dezvoltare. Doritorii de a participa la crearea de articole, pot să ne contacteze pe [https://t.me/miscareapatriotica canalul nostru de telegram].&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Infocaseta_Scriitor&amp;diff=332</id>
		<title>Format:Infocaseta Scriitor</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Infocaseta_Scriitor&amp;diff=332"/>
		<updated>2024-07-13T23:03:52Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{#invoke:InfoboxBiography|displayInfobox |aboveclass=autor |default_title=Cariera literară |culoare cadru=4C6099 |culoare text=FFFFFF |doc=Infocaseta Scriitor |child={{{embed|}}} |title={{#ifeq:{{{embed|}}}|yes|Cariera de scriitor|{{{nume|{{{name|{{PAGENAME}}}}}}}} {{#if:{{{nume_nativ|{{{native_name|}}}}}} |&amp;lt;br/&amp;gt;{{{nume_nativ|{{{native_name|}}}}}} }}}} |label1=Pseudonim |data1={{{pseudonim|{{Listă de la Wikidata|sep=,{{spaces|1}}|pid=P742}}}}} |birth_name...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:InfoboxBiography|displayInfobox&lt;br /&gt;
|aboveclass=autor&lt;br /&gt;
|default_title=Cariera literară&lt;br /&gt;
|culoare cadru=4C6099&lt;br /&gt;
|culoare text=FFFFFF&lt;br /&gt;
|doc=Infocaseta Scriitor&lt;br /&gt;
|child={{{embed|}}}&lt;br /&gt;
|title={{#ifeq:{{{embed|}}}|yes|Cariera de scriitor|{{{nume|{{{name|{{PAGENAME}}}}}}}} {{#if:{{{nume_nativ|{{{native_name|}}}}}} |&amp;lt;br/&amp;gt;{{{nume_nativ|{{{native_name|}}}}}} }}}}&lt;br /&gt;
|label1=Pseudonim&lt;br /&gt;
|data1={{{pseudonim|{{Listă de la Wikidata|sep=,{{spaces|1}}|pid=P742}}}}}&lt;br /&gt;
|birth_name={{{nume_naștere|{{{birth_name|}}}}}}&lt;br /&gt;
|birth_date={{{data_nașterii|{{{birth_date|}}}}}}&lt;br /&gt;
|birth_place={{{locul_nașterii|{{{birth_place|}}}}}}&lt;br /&gt;
|death_date={{{data_decesului|{{{death_date|}}}}}}&lt;br /&gt;
|death_place={{{locul_decesului|{{{death_place|}}}}}}&lt;br /&gt;
|religion={{{confesiune|{{{religie|{{{religion|}}}}}}}}}&lt;br /&gt;
|label7=Partid politic&lt;br /&gt;
|data7={{{partid|{{Listă de la Wikidata|sep=,{{spaces|1}}|pid=P102}}}}}&lt;br /&gt;
|nationality={{{naționalitate|{{{nationality|}}}}}}&lt;br /&gt;
|citizenship={{{cetățenie|{{{citizenship|}}}}}}&lt;br /&gt;
|label11=Studii&lt;br /&gt;
|data11={{{educație|{{{education|{{{alma_mater|{{#ifeq:{{{embed|}}}|yes||{{#invoke:Wikidata|getValueListWithQualifiersInBrackets|p=P69|bracketTemplate1=$P512|bracketTemplate2=$P812|bracketTemplate3=$P582|sep1=&amp;amp;#32;în&amp;amp;#32;|sep2=,&amp;amp;#32;}} }} }}} }}} }}}&lt;br /&gt;
|label12=Pregătire&lt;br /&gt;
|data12={{{pregătire|{{Listă de la Wikidata|pid=P1066}}}}}&lt;br /&gt;
|label13=Profesor pentru&lt;br /&gt;
|data13={{{profesor_pentru|{{Listă de la Wikidata|sep=,&amp;amp;#32;|pid=P802}}}}}&lt;br /&gt;
|parents={{{părinți|{{{parents|}}}}}}&lt;br /&gt;
|siblings={{{frați|{{Listă de la Wikidata|pid=P3373}}}}}&lt;br /&gt;
|spouse={{{căsătorit|{{{spouse|}}}}}}&lt;br /&gt;
|partner={{{partner|{{{partener|}}}}}}&lt;br /&gt;
|copii={{{copii|{{{children|}}}}}}&lt;br /&gt;
|header20={{#if: {{{perioadă|{{{period|}}}}}} {{{gen|{{{genre|}}}}}}{{{mișcare|{{{movement|}}}}}} {{{subiect|{{{subject|}}}}}} {{{operă_de_debut|}}} {{{opere_semnificative|{{{notableworks|}}}}}} {{{influențe|{{{influences|}}}}}} {{{influențat|{{{influenced|}}}}}}|Activitatea literară}}&lt;br /&gt;
|label22={{#ifeq:{{#invoke:Wikidata|getRawValue|P21}}|femeie|Activă ca scriitoare|Activ ca scriitor}}&lt;br /&gt;
|data22={{{perioadă|{{{period|}}}}}}&lt;br /&gt;
|label24=Limbi&lt;br /&gt;
|data24={{{limbă|{{{limbi|{{{language|{{Listă de la Wikidata|pid=P6886}}}}}}}}}}}&lt;br /&gt;
|label26=[[Mișcare literară|Mișcare/curent literar]]&lt;br /&gt;
|data26={{{mișcare|{{{movement|{{Listă de la Wikidata|sep=,&amp;amp;#32;|pid=P135}}}}}}}}&lt;br /&gt;
|label28=Patronaj&lt;br /&gt;
|data28={{{patron|{{{patron|{{{employer|{{Listă de la Wikidata|pid=P108}}}}}}}}}}}&lt;br /&gt;
|label32=Subiecte&lt;br /&gt;
|data32={{{subiect|{{{subject|}}}}}}&lt;br /&gt;
|label34=[[Specie (literatură)|Specie literară]]&lt;br /&gt;
|data34={{{gen|{{{genre|{{Listă de la Wikidata|sep=,&amp;amp;#32;|pid=P136}}}}}}}}&lt;br /&gt;
|label36=Operă de debut&lt;br /&gt;
|data36={{{operă_de_debut|}}}&lt;br /&gt;
|label38=Opere semnificative&lt;br /&gt;
|data38={{{opere_semnificative|{{{notableworks|{{Listă de opere de la Wikidata|pid=P800}}}}}}}}&lt;br /&gt;
|data42={{#if:{{{influențe|{{#property:P737}}}}}|{{Collapsible list&lt;br /&gt;
|title       = &#039;&#039;&#039;Influențe&#039;&#039;&#039;&lt;br /&gt;
|frame_style = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|title_style = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|list_style  = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|1           = {{{influențe|{{{influences|{{Listă de la Wikidata|pid=P737}}}}}}}}&lt;br /&gt;
}} }}&lt;br /&gt;
|data44={{#if:{{{influențat|{{{influenced|}}}}}}|{{Collapsible list&lt;br /&gt;
|title       = &#039;&#039;&#039;A influențat pe&#039;&#039;&#039;&lt;br /&gt;
|frame_style = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|title_style = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|list_style  = &amp;lt;!-- (optional) --&amp;gt;&lt;br /&gt;
|1           = {{{influențat|{{{influenced|}}}}}}&lt;br /&gt;
}} }}&lt;br /&gt;
|header50={{#if: {{{premii|{{{awards|{{#ifeq:{{{embed|}}}|yes||{{#property:P166}}}}}}}}}} {{{note|}}} | Note}}&lt;br /&gt;
|label52=Premii&lt;br /&gt;
|data52={{{premii|{{{awards|{{#ifeq:{{{embed|}}}|yes||{{Listă de la Wikidata|pid=P166}}}}}}}}}}&lt;br /&gt;
|semnătură={{{semnătură|{{{signature|}}}}}}&lt;br /&gt;
|data89={{{note|}}}&lt;br /&gt;
|data97={{{embedded1|}}}&lt;br /&gt;
|data98={{{embedded2|}}}&lt;br /&gt;
|data99={{{embedded3|}}}&lt;br /&gt;
|wikidata=y&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{doc}}&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;embed&amp;quot;: {},&lt;br /&gt;
		&amp;quot;nume&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;name&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nume_nativ&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;native_name&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pseudonim&amp;quot;: {},&lt;br /&gt;
		&amp;quot;nume_naștere&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;birth_name&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;data_nașterii&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;birth_date&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;locul_nașterii&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;birth_place&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;data_decesului&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;death_date&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;locul_decesului&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;death_place&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;religie&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;religion&amp;quot;,&lt;br /&gt;
				&amp;quot;confesiune&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;partid&amp;quot;: {},&lt;br /&gt;
		&amp;quot;naționalitate&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;nationality&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;cetățenie&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;citizenship&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;limbă&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;language&amp;quot;,&lt;br /&gt;
				&amp;quot;limbi&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;educație&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;education&amp;quot;,&lt;br /&gt;
				&amp;quot;pregătire&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;profesor_pentru&amp;quot;: {},&lt;br /&gt;
		&amp;quot;părinți&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;parents&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;frați&amp;quot;: {},&lt;br /&gt;
		&amp;quot;căsătorit&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;spouse&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;partener&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;partner&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;copii&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;children&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;perioadă&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;period&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;gen&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;genre&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mișcare&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;movement&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;subiect&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;subject&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;operă_de_debut&amp;quot;: {},&lt;br /&gt;
		&amp;quot;opere_semnificative&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;notableworks&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;influențe&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;influences&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;influențat&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;influenced&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;patron&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;employer&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;premii&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;awards&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;note&amp;quot;: {},&lt;br /&gt;
		&amp;quot;semnătură&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;signature&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;embedded1&amp;quot;: {},&lt;br /&gt;
		&amp;quot;embedded2&amp;quot;: {},&lt;br /&gt;
		&amp;quot;embedded3&amp;quot;: {},&lt;br /&gt;
		&amp;quot;imagine&amp;quot;: {&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;image&amp;quot;,&lt;br /&gt;
				&amp;quot;foto&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Imagine&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;O fotografie reprezentativă cu subiectul articolului.&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;embed&amp;quot;,&lt;br /&gt;
		&amp;quot;nume&amp;quot;,&lt;br /&gt;
		&amp;quot;nume_nativ&amp;quot;,&lt;br /&gt;
		&amp;quot;pseudonim&amp;quot;,&lt;br /&gt;
		&amp;quot;nume_naștere&amp;quot;,&lt;br /&gt;
		&amp;quot;imagine&amp;quot;,&lt;br /&gt;
		&amp;quot;data_nașterii&amp;quot;,&lt;br /&gt;
		&amp;quot;locul_nașterii&amp;quot;,&lt;br /&gt;
		&amp;quot;data_decesului&amp;quot;,&lt;br /&gt;
		&amp;quot;locul_decesului&amp;quot;,&lt;br /&gt;
		&amp;quot;religie&amp;quot;,&lt;br /&gt;
		&amp;quot;partid&amp;quot;,&lt;br /&gt;
		&amp;quot;naționalitate&amp;quot;,&lt;br /&gt;
		&amp;quot;cetățenie&amp;quot;,&lt;br /&gt;
		&amp;quot;limbă&amp;quot;,&lt;br /&gt;
		&amp;quot;educație&amp;quot;,&lt;br /&gt;
		&amp;quot;profesor_pentru&amp;quot;,&lt;br /&gt;
		&amp;quot;părinți&amp;quot;,&lt;br /&gt;
		&amp;quot;frați&amp;quot;,&lt;br /&gt;
		&amp;quot;căsătorit&amp;quot;,&lt;br /&gt;
		&amp;quot;partener&amp;quot;,&lt;br /&gt;
		&amp;quot;copii&amp;quot;,&lt;br /&gt;
		&amp;quot;perioadă&amp;quot;,&lt;br /&gt;
		&amp;quot;gen&amp;quot;,&lt;br /&gt;
		&amp;quot;mișcare&amp;quot;,&lt;br /&gt;
		&amp;quot;subiect&amp;quot;,&lt;br /&gt;
		&amp;quot;operă_de_debut&amp;quot;,&lt;br /&gt;
		&amp;quot;opere_semnificative&amp;quot;,&lt;br /&gt;
		&amp;quot;influențe&amp;quot;,&lt;br /&gt;
		&amp;quot;influențat&amp;quot;,&lt;br /&gt;
		&amp;quot;patron&amp;quot;,&lt;br /&gt;
		&amp;quot;premii&amp;quot;,&lt;br /&gt;
		&amp;quot;note&amp;quot;,&lt;br /&gt;
		&amp;quot;semnătură&amp;quot;,&lt;br /&gt;
		&amp;quot;embedded1&amp;quot;,&lt;br /&gt;
		&amp;quot;embedded2&amp;quot;,&lt;br /&gt;
		&amp;quot;embedded3&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;block&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=331</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=331"/>
		<updated>2024-07-13T23:01:59Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{infobox writer&lt;br /&gt;
| name = Alexei Mateevici&lt;br /&gt;
| image = Alexei Mateevici - Foto01.jpg&lt;br /&gt;
| resting_place = [[Cimitirul Central din Chișinău]]&lt;br /&gt;
| alma_mater = Academia Teologică din [[Kiev]]&lt;br /&gt;
| notableworks = &#039;&#039;[[Limba noastră]]&#039;&#039;&lt;br /&gt;
| religion = Ortodox&lt;br /&gt;
}}&lt;br /&gt;
&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=330</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=330"/>
		<updated>2024-07-13T23:00:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{infobox writer&lt;br /&gt;
| name = Alexei Mateevici&lt;br /&gt;
| image = Alexei Mateevici - Foto02.jpg&lt;br /&gt;
| resting_place = [[Cimitirul Central din Chișinău]]&lt;br /&gt;
| alma_mater = Academia Teologică din [[Kiev]]&lt;br /&gt;
| notableworks = &#039;&#039;[[Limba noastră]]&#039;&#039;&lt;br /&gt;
| religion = Ortodox&lt;br /&gt;
}}&lt;br /&gt;
&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=329</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=329"/>
		<updated>2024-07-13T22:58:05Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=328</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=328"/>
		<updated>2024-07-13T22:52:10Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{infobox writer&lt;br /&gt;
| name = Alexei Mateevici&lt;br /&gt;
| image = Alexei Mateevici - Foto02.jpg&lt;br /&gt;
| resting_place = [[Cimitirul Central din Chișinău]]&lt;br /&gt;
| alma_mater = Academia Teologică din [[Kiev]]&lt;br /&gt;
| notableworks = &#039;&#039;[[Limba noastră]]&#039;&#039;&lt;br /&gt;
| religion = Ortodox&lt;br /&gt;
}}&lt;br /&gt;
&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=327</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=327"/>
		<updated>2024-07-13T22:51:52Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=325</id>
		<title>Alexei Mateevici</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Alexei_Mateevici&amp;diff=325"/>
		<updated>2024-07-13T21:00:12Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{infobox writer&lt;br /&gt;
| name = Alexei Mateevici&lt;br /&gt;
| image = Alexei Mateevici - Foto02.jpg&lt;br /&gt;
| resting_place = [[Cimitirul Central din Chișinău]]&lt;br /&gt;
| alma_mater = Academia Teologică din [[Kiev]]&lt;br /&gt;
| notableworks = &#039;&#039;[[Limba noastră]]&#039;&#039;&lt;br /&gt;
| religion = Ortodox&lt;br /&gt;
}}&lt;br /&gt;
&#039;&#039;&#039;Alexie&#039;&#039;&#039; (sau &#039;&#039;&#039;Alexei&#039;&#039;&#039;) &#039;&#039;&#039;Mateevici&#039;&#039;&#039; (n. [[27 martie]] [[1888]], [[Căinari]] – d. [[24 august]] [[1917]], [[Chișinău]]) a fost unul din cei mai reprezentativi scriitori moldoveni din Basarabia. Născut în [[Basarabia|Gubernia Basarabia]], actualmente [[Republica Moldova]].&lt;br /&gt;
== Cronologie ==&lt;br /&gt;
:La 27 martie (stil vechi) se naște la [[Căinari]], fostul județ Bender, Alexei Mateevici, primul copil al preotului [[Mihail Mateevici]], originar de prin părțile județului Soroca, căsătorit cu [[Nadejda Mateevici]] (1863-1930), fiica protopopului Ioan Neaga din Căușeni.Părinții se mută cu traiul în satul Zaim, localitate situată pe drumul dintre Căușeni și Cimișlia. Aici micul Alexei învață la școala primară și se familiarizează cu frumoasele povești și balade, pe care le aude de la părinții săi, precum și de la țăranii de prin partea locului. A fost înscris de părinți la școala teologică din Chișinău, pe care o termină (conform adeverinței de absolvire) în 1902, „cu privilegii”(cu laude). Își urmează studiile la seminarul teologic. Face cunoștință și se împrietenește cu viitorul sculptor Alexandru Plămădeală (1880 - 1940), care studia și el la seminar în aceeași perioadă. La 24 iunie, la numai 43 de ani, încetează din viață tatăl lui, Alexei Mateevici.&lt;br /&gt;
:În 1907, în primele numere ale ziarului „Basarabia” (din 1907) publică poeziile „Ţăranii”, „Eu cînt”, „Ţara”, precum şi articolele „Sfîntul Vasile – Anul Nou în obiceiurile moldovenilor basarabeni” şi „Din cîntecele poporane ale Basarabiei”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Devine student la Academia teologică din Kiev, pe care a absolvit-o în 1914. În aceiași ani, după mărturisirea unui coleg, „Mateevici trăia ca într-o beție a cititului”. Traduce mult din literatura rusă clasică și studiază trecutul istoric și cultural al poporului său.[[File:Alexei Mateevici - Foto01.jpg|322x322px|thumb|Alexei Mateevici (1910) student la Academia din Kiev, anul III.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Între 1910 - 1911 publică în „Chisineovschie eparhialinie vedomosti” (nr.45, 49, 52 din 1910 și nr.42 din 1911) studiul lingvistic „&#039;&#039;Momente ale influenței bisericești asupra originii și dezvoltării istorice a limbii moldovenești&#039;&#039;”, precum și articolele “&#039;&#039;Motive religioase în credințele și obiceiurile moldovenilor basarabeni&#039;&#039;” (nr.9, 13, 14), “&#039;&#039;Bocetele funerare moldovenești&#039;&#039;” (nr.38, 39, 40, 41). Vede lumina tiparului (Chisineovschie eparhialinie vedomosti, nr. 12, 13, 19, 22, 23) articolul „&#039;&#039;Schiță a traducerilor&#039;&#039; moldovenești &#039;&#039;religioase și de trai&#039;&#039;”. Apare în revista „Luminatorul” (nr. 8, 9, 10, 11) studiul „&#039;&#039;Mitropolitul Gavril Bănulescu - Bodoni&#039;&#039;”. Se căsătorește cu Teodora Borisovna Novitschi, absolvă Academia Teologică cu teza de licență Concepția religioasă și filosofică la Fechneenner și se întoarce la Chișinău. La 22 septembrie e numit provizoriu profesor de limba greacă la seminarul unde învățase. Ține o cuvîntare în fața absolvenților seminarului din Chișinău. La 23 iunie vizitează străvechea biserică din Căușeni, pe care o găsește „uimitor de bine păstrată”. În anul 1915 se înrolează în armata rusă ca preot militar, iar în 1916 este trimis pe frontul din Romînia. În vara anului 1916 scrie poeziile: „&#039;&#039;Văd prăbușirea&#039;&#039;”, „&#039;&#039;Cîntec de leagăn&#039;&#039;”, „&#039;&#039;Basarabenilor&#039;&#039;”, „&#039;&#039;Frunza nucului&#039;&#039;”, „&#039;&#039;Unora&#039;&#039;” ș.a. La 17 iulie creează poezia &#039;&#039;Limba noastră&#039;&#039;, publicată în Cuvînt moldovenesc. La 13 august (stil vechi), bolnav de tifos exantematic, se stinge din viață la spitalul nr.1 din Chișinău și este înmormîntat la Cimitirul Central din Chișinău.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:În anul 1994, versurile poeziei &#039;&#039;Limba noastră&#039;&#039; au fost alese ca text al Imnului de Stat al Republicii Moldova. Poezia Limba noastră se fixează definitiv în registrul marii arte, fiind superioară versurilor pe aceeași temă ale lui George Coșbuc sau George Sion&lt;br /&gt;
:În lirica sa, poezia religioasă, uneori remarcabilă (&#039;&#039;Roagă-te&#039;&#039;), alternează cu poezia revoltei sociale, expresie a durerii poetului pentru soarta țăranilor moldoveni, apăsați de nevoi și suferințe. Poeziile &#039;&#039;Eu cînt,&amp;amp;nbsp;Țăranii,&amp;amp;nbsp;Cântecul&amp;amp;nbsp;zorilor,&amp;amp;nbsp;Țara&#039;&#039; împletesc nota elegiacă cu tonalitatea energică și credința în „ivirea zorilor” dreptății și devin profund definitorii pentru profilul poetului militant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A colaborat la revista Luminătorul, Viața Basarabiei, Cuvînt moldovenesc etc. cu versuri originale și traduse (din Al. K. Tolstoi, S. I. Nadson, Gavrila Derjavin, Mihail Lermontov, Alexandr Sergheevici Pușkin).&lt;br /&gt;
&lt;br /&gt;
== Scrieri ==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, publicate cu o prefață de P. V. Haneș. București, 1926 (ed. II, București, 1936)&lt;br /&gt;
*&#039;&#039;Poezii&#039;&#039;, cu o prefață de L.T. Boga, Chișinău, 1937&lt;br /&gt;
*&#039;&#039;Scrieri alese&#039;&#039;, ediție îngrijită și prefațată de I. Vartician și F. Levit, Chișinău, 1966 (ed. II 1971, ed. III 1977)&lt;br /&gt;
*&#039;&#039;Pagini alese&#039;&#039;, tabel cronologic, note și comentarii de V. Nazar, prefață de A. Hropotinski, Chișinău, 1985&lt;br /&gt;
*&#039;&#039;Scrieri&#039;&#039;, ed. îngrijită, studiu introductiv, note, variante și bibliografie de I. Nuță, Iași, 1989&lt;br /&gt;
*&#039;&#039;Limba noastră&#039;&#039;, Chișinău, 1989&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Marriage/styles.css&amp;diff=324</id>
		<title>Format:Marriage/styles.css</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Marriage/styles.css&amp;diff=324"/>
		<updated>2024-07-13T20:56:23Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-template}} */&lt;br /&gt;
.marriage-line-margin2px {&lt;br /&gt;
	line-height: 0;&lt;br /&gt;
	margin-bottom: -2px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.marriage-line-margin3px {&lt;br /&gt;
	line-height: 0;&lt;br /&gt;
	margin-bottom: -3px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.marriage-display-ws {&lt;br /&gt;
	display: inline;&lt;br /&gt;
	white-space: nowrap;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Hlist/styles.css&amp;diff=322</id>
		<title>Format:Hlist/styles.css</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Hlist/styles.css&amp;diff=322"/>
		<updated>2024-07-13T20:56:23Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-protected|reason=match parent|small=yes}} */&lt;br /&gt;
/* &lt;br /&gt;
 * hlist styles are defined in core and Minerva and differ in Minerva. The&lt;br /&gt;
 * current definitions here (2023-01-01) are sufficient to override Minerva&lt;br /&gt;
 * without use of the hlist-separated class. The most problematic styles were&lt;br /&gt;
 * related to margin, padding, and the bullet. Check files listed at&lt;br /&gt;
 * [[MediaWiki talk:Common.css/to do#hlist-separated]]&lt;br /&gt;
 */&lt;br /&gt;
/*&lt;br /&gt;
 * TODO: When the majority of readership supports it (or some beautiful world&lt;br /&gt;
 * in which grade C support is above the minimum threshold), use :is()&lt;br /&gt;
 */&lt;br /&gt;
.hlist dl,&lt;br /&gt;
.hlist ol,&lt;br /&gt;
.hlist ul {&lt;br /&gt;
	margin: 0;&lt;br /&gt;
	padding: 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Display list items inline */&lt;br /&gt;
.hlist dd,&lt;br /&gt;
.hlist dt,&lt;br /&gt;
.hlist li {&lt;br /&gt;
	/*&lt;br /&gt;
	 * don&#039;t trust the note that says margin doesn&#039;t work with inline&lt;br /&gt;
	 * removing margin: 0 makes dds have margins again&lt;br /&gt;
	 * We also want to reset margin-right in Minerva&lt;br /&gt;
	 */&lt;br /&gt;
	margin: 0; &lt;br /&gt;
	display: inline;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Display requested top-level lists inline */&lt;br /&gt;
.hlist.inline,&lt;br /&gt;
.hlist.inline dl,&lt;br /&gt;
.hlist.inline ol,&lt;br /&gt;
.hlist.inline ul,&lt;br /&gt;
/* Display nested lists inline */&lt;br /&gt;
.hlist dl dl,&lt;br /&gt;
.hlist dl ol,&lt;br /&gt;
.hlist dl ul,&lt;br /&gt;
.hlist ol dl,&lt;br /&gt;
.hlist ol ol,&lt;br /&gt;
.hlist ol ul,&lt;br /&gt;
.hlist ul dl,&lt;br /&gt;
.hlist ul ol,&lt;br /&gt;
.hlist ul ul {&lt;br /&gt;
	display: inline;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Hide empty list items */&lt;br /&gt;
.hlist .mw-empty-li {&lt;br /&gt;
	display: none;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* TODO: :not() can maybe be used here to remove the later rule. naive test&lt;br /&gt;
 * seems to work. more testing needed. like so:&lt;br /&gt;
 *.hlist dt:not(:last-child)::after {&lt;br /&gt;
 *	content: &amp;quot;: &amp;quot;;&lt;br /&gt;
 *}&lt;br /&gt;
 *.hlist dd:not(:last-child)::after,&lt;br /&gt;
 *.hlist li:not(:last-child)::after {&lt;br /&gt;
 *	content: &amp;quot; · &amp;quot;;&lt;br /&gt;
 *	font-weight: bold;&lt;br /&gt;
 *}&lt;br /&gt;
 */&lt;br /&gt;
/* Generate interpuncts */&lt;br /&gt;
.hlist dt::after {&lt;br /&gt;
	content: &amp;quot;: &amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist dd::after,&lt;br /&gt;
.hlist li::after {&lt;br /&gt;
	content: &amp;quot; · &amp;quot;;&lt;br /&gt;
	font-weight: bold;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist dd:last-child::after,&lt;br /&gt;
.hlist dt:last-child::after,&lt;br /&gt;
.hlist li:last-child::after {&lt;br /&gt;
	content: none;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Add parentheses around nested lists */&lt;br /&gt;
.hlist dd dd:first-child::before,&lt;br /&gt;
.hlist dd dt:first-child::before,&lt;br /&gt;
.hlist dd li:first-child::before,&lt;br /&gt;
.hlist dt dd:first-child::before,&lt;br /&gt;
.hlist dt dt:first-child::before,&lt;br /&gt;
.hlist dt li:first-child::before,&lt;br /&gt;
.hlist li dd:first-child::before,&lt;br /&gt;
.hlist li dt:first-child::before,&lt;br /&gt;
.hlist li li:first-child::before {&lt;br /&gt;
	content: &amp;quot; (&amp;quot;;&lt;br /&gt;
	font-weight: normal;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist dd dd:last-child::after,&lt;br /&gt;
.hlist dd dt:last-child::after,&lt;br /&gt;
.hlist dd li:last-child::after,&lt;br /&gt;
.hlist dt dd:last-child::after,&lt;br /&gt;
.hlist dt dt:last-child::after,&lt;br /&gt;
.hlist dt li:last-child::after,&lt;br /&gt;
.hlist li dd:last-child::after,&lt;br /&gt;
.hlist li dt:last-child::after,&lt;br /&gt;
.hlist li li:last-child::after {&lt;br /&gt;
	content: &amp;quot;)&amp;quot;;&lt;br /&gt;
	font-weight: normal;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Put ordinals in front of ordered list items */&lt;br /&gt;
.hlist ol {&lt;br /&gt;
	counter-reset: listitem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist ol &amp;gt; li {&lt;br /&gt;
	counter-increment: listitem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist ol &amp;gt; li::before {&lt;br /&gt;
	content: &amp;quot; &amp;quot; counter(listitem) &amp;quot;\a0&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.hlist dd ol &amp;gt; li:first-child::before,&lt;br /&gt;
.hlist dt ol &amp;gt; li:first-child::before,&lt;br /&gt;
.hlist li ol &amp;gt; li:first-child::before {&lt;br /&gt;
	content: &amp;quot; (&amp;quot; counter(listitem) &amp;quot;\a0&amp;quot;;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Plainlist/styles.css&amp;diff=320</id>
		<title>Format:Plainlist/styles.css</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Plainlist/styles.css&amp;diff=320"/>
		<updated>2024-07-13T20:56:23Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp-template|small=yes}} */&lt;br /&gt;
.plainlist ol,&lt;br /&gt;
.plainlist ul {&lt;br /&gt;
	line-height: inherit;&lt;br /&gt;
	list-style: none;&lt;br /&gt;
	margin: 0;&lt;br /&gt;
	padding: 0; /* Reset Minerva default */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.plainlist ol li,&lt;br /&gt;
.plainlist ul li {&lt;br /&gt;
	margin-bottom: 0;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Marriage/doc&amp;diff=318</id>
		<title>Format:Marriage/doc</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Marriage/doc&amp;diff=318"/>
		<updated>2024-07-13T20:56:23Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{esoteric}}&lt;br /&gt;
{{high-use}}&lt;br /&gt;
{{Lua|Module:Check for unknown parameters|Module:Parameter validation}}&lt;br /&gt;
{{Uses Wikidata|P21|P570}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Marriage/styles.css}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;,&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Intended for use in Infoboxes, specifically {{Infobox person}} and templates calling Infobox person.\n\n{{Marriage}} takes up to three unnamed parameters (name, start date, end date) plus an optional named parameter \&amp;quot;end=\&amp;quot; to provide the reason for the end of the marriage.&amp;quot;,&lt;br /&gt;
    &amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spouse&#039;s name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the person to whom the subject married. May be omitted, typically for remarriages to the same spouse.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Date married&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date the marriage began.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Date ended&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date the marriage was dissolved or the spouse of the article&#039;s subject died.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;end&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Reason marriage ended&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Reason for marriage&#039;s end. Suggested reasons are automatically abbreviated. If the marriage ended due to death of article&#039;s subject, do not provide a reason.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;reason&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggestedvalues&amp;quot;: [&lt;br /&gt;
				&amp;quot;died&amp;quot;,&lt;br /&gt;
				&amp;quot;divorced&amp;quot;,&lt;br /&gt;
				&amp;quot;separated&amp;quot;,&lt;br /&gt;
				&amp;quot;annulled&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examples and usage notes===&lt;br /&gt;
{{Infobox person|name={{tl|Infobox person}} &lt;br /&gt;
|spouse = {{Plainlist|&lt;br /&gt;
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}&lt;br /&gt;
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}&lt;br /&gt;
* {{marriage |Jane Doe |2002}}&lt;br /&gt;
* {{marriage |John Q. Public |2002|2010}}&lt;br /&gt;
* {{marriage |John Q. Citizen |2002|2010|end=div}}&lt;br /&gt;
* {{marriage |&amp;lt;!--John Q. Citizen--&amp;gt;|2012}}&lt;br /&gt;
* {{marriage |John Q. Taxpayer |2002|end=div}}&lt;br /&gt;
* {{marriage |Joe Blow|&amp;lt;!--unknown--&amp;gt;|2010|end=div}}&lt;br /&gt;
* {{marriage |Joe Bloggs|&amp;lt;!--unknown--&amp;gt;|2010}}&lt;br /&gt;
* {{marriage |Joe Sixpack|&amp;lt;!--unknown--&amp;gt;|2010|end=&amp;lt;!--uncertain--&amp;gt;}}&lt;br /&gt;
* {{marriage |Joe Schmo |end=div}}&lt;br /&gt;
* {{marriage |Juan Perez |2010|reason=&amp;lt;!--earliest--&amp;gt;}} }}&lt;br /&gt;
}}&lt;br /&gt;
Infoboxes already reduce text size to 88%, and [[MOS:FONTSIZE]] sets a lower limit for text size at 85% of the normal page font size, so it is not appropriate to use font size reduction when this template is used in an infobox. The example here is produced by:&lt;br /&gt;
&amp;lt;syntaxhighlight style=&amp;quot;font-size:small;&amp;quot; lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox person |spouse = {{Plainlist|&lt;br /&gt;
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}&lt;br /&gt;
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}&lt;br /&gt;
* {{marriage |Jane Doe |2002}}&lt;br /&gt;
* {{marriage |John Q. Public |2002|2010}}&lt;br /&gt;
* {{marriage |John Q. Citizen |2002|2010|end=div}}&lt;br /&gt;
* {{marriage |&amp;lt;!--John Q. Citizen--&amp;gt;|2012}}&lt;br /&gt;
* {{marriage |John Q. Taxpayer |2002|end=div}}&lt;br /&gt;
* {{marriage |Joe Blow|&amp;lt;!--unknown--&amp;gt;|2010|end=div}}&lt;br /&gt;
* {{marriage |Joe Bloggs|&amp;lt;!--unknown--&amp;gt;|2010}}&lt;br /&gt;
* {{marriage |Joe Sixpack|&amp;lt;!--unknown--&amp;gt;|2010|end=&amp;lt;!--uncertain--&amp;gt;}}&lt;br /&gt;
* {{marriage |Joe Schmo |end=div}}&lt;br /&gt;
* {{marriage |Juan Perez |2010|reason=&amp;lt;!--earliest--&amp;gt;}} }}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* None of the parameters are required on their own, but if a template is missing all three of start date, end date, and reason, an error message will be displayed.&lt;br /&gt;
* Use of the first two parameters with {{para|end}} ({{para|reason}}) will cause a line break between the name and the start date.&lt;br /&gt;
* Use of {{dc|his death}} or {{dc|her death}} for this purpose has been deprecated ([[Template talk:Marriage/Archive 5#Use &amp;quot;(m. 1900)&amp;quot; and do not fill in an end date|see discussion]]).&lt;br /&gt;
* If the marriage ended with the death of the article&#039;s subject, {{insource|&amp;quot;Omission per Template:Marriage instructions&amp;quot;|do {{em|not}} provide a date}}.&lt;br /&gt;
* For either date parameter, only the year will be displayed; if a full date is provided, it is included via a tooltip; i.e., {{tla|Tooltip}}. &lt;br /&gt;
{{qnote|Use of the values {{dcr|w}}, {{dcr|w.}}, {{dcr|wid}}, {{dcr|wid.}}, {{dcr|widow}}, or {{dcr|widowed}} is [[Template talk:Marriage/Archive 4#Who is widowed - topic or topic&#039;s spouse?|no longer supported]] and will display an error message.}}&lt;br /&gt;
&lt;br /&gt;
==Tracking categories==&lt;br /&gt;
* {{Category link with count|Marriage template errors}}{{sup|†}}&lt;br /&gt;
* {{Category link with count|Pages using Marriage with duplicate parameters}} {{sup|‡}}&lt;br /&gt;
* {{Category link with count|Pages using Marriage with unknown parameters}} {{sup|‡}}&lt;br /&gt;
* {{Category link with count|Pages using Marriage with deprecated parameters}} {{sup|‡}}&lt;br /&gt;
&lt;br /&gt;
{{plainlist|&lt;br /&gt;
* {{small|{{sup|†}} Populated by template logic; contains invalid/missing dates and unsupported parameters/values.}}&lt;br /&gt;
* {{small|{{sup|‡}} Populated via [[Module:Parameter_validation|parameter validation]].}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Text-specific formatting and function templates‎]]&lt;br /&gt;
[[Category:Marriage templates]]&lt;br /&gt;
[[Category:Templates that add a tracking category|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Infobox_writer/doc&amp;diff=316</id>
		<title>Format:Infobox writer/doc</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Infobox_writer/doc&amp;diff=316"/>
		<updated>2024-07-13T20:56:20Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Person infobox header}}&lt;br /&gt;
{{high-use}}&lt;br /&gt;
{{auto short description}}&lt;br /&gt;
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Infobox writer&#039;&#039;&#039; may be used to summarize information about a person who is a writer/author (includes screenwriters).&lt;br /&gt;
&lt;br /&gt;
If the writer-specific fields here are not needed, consider using the more general {{Tl|Infobox person}}; other infoboxes there can be found in [[:Category:People and person infobox templates]].&lt;br /&gt;
&lt;br /&gt;
This template may also be used as a module (or sub-template) of {{Tl|Infobox person}}; see [[Wikipedia:WikiProject Infoboxes/embed|WikiProject Infoboxes/embed]] for guidance on such usage.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
{{Parameter names example&lt;br /&gt;
|embed |honorific_prefix |name |honorific_suffix |image |image_size={{{image_size}}} |image_upright |landscape |alt |caption |native_name |native_name_lang |pseudonym |birth_name |birth_date |birth_place |death_date |death_place |resting_place |occupation |language |nationality |citizenship |education |alma_mater | |period |genre={{{genre}}} or {{{genres}}} |subject={{{subject}}} or {{{subjects}}} |movement |notable_works={{{notable_works}}} |spouse={{{spouse}}} or {{{spouses}}} |partner={{{partner}}} or {{{partners}}} |children |relatives |awards |signature={{{signature}}}&amp;lt;br /&amp;gt; |signature_alt |signature_size |signature_type |years_active |module |website={{{website}}} |portaldisp&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The infobox may be added by pasting the template as shown below into an article. All fields are optional. Any unused parameter names can be left blank or omitted.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox writer&lt;br /&gt;
| embed            = &lt;br /&gt;
| honorific_prefix = &lt;br /&gt;
| name             = &lt;br /&gt;
| honorific_suffix = &lt;br /&gt;
| image            = &lt;br /&gt;
| image_size       = &lt;br /&gt;
| image_upright    = &lt;br /&gt;
| landscape        = &amp;lt;!-- yes, if wide image, otherwise leave blank --&amp;gt;&lt;br /&gt;
| alt              = &amp;lt;!-- descriptive text for use by speech synthesis (text-to-speech) software --&amp;gt;&lt;br /&gt;
| caption          = &lt;br /&gt;
| native_name      = &lt;br /&gt;
| native_name_lang = &lt;br /&gt;
| pseudonym        = &lt;br /&gt;
| birth_name       = &amp;lt;!-- only use if different from name --&amp;gt;&lt;br /&gt;
| birth_date       = &amp;lt;!-- {{Birth date and age|YYYY|MM|DD}} for living people supply only the year with {{Birth year and age|YYYY}} unless the exact date is already widely published, as per [[WP:DOB]]. For people who have died, use {{Birth date|YYYY|MM|DD}}. --&amp;gt;&lt;br /&gt;
| birth_place      = &lt;br /&gt;
| death_date       = &amp;lt;!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} (DEATH date then BIRTH date) --&amp;gt;&lt;br /&gt;
| death_place      = &lt;br /&gt;
| resting_place    = &lt;br /&gt;
| occupation       = &lt;br /&gt;
| language         = &lt;br /&gt;
| nationality      = &amp;lt;!-- use only when necessary per [[WP:INFONAT]] --&amp;gt;&lt;br /&gt;
| citizenship      = &amp;lt;!-- use only when necessary per [[WP:INFONAT]] --&amp;gt;&lt;br /&gt;
| education        = &lt;br /&gt;
| alma_mater       = &lt;br /&gt;
| period           = &lt;br /&gt;
| genre            = &amp;lt;!-- or: | genres = --&amp;gt;&lt;br /&gt;
| subject          = &amp;lt;!-- or: | subjects = --&amp;gt;&lt;br /&gt;
| movement         = &lt;br /&gt;
| notable_works    = &lt;br /&gt;
| spouse           = &amp;lt;!-- or: | spouses = --&amp;gt;&lt;br /&gt;
| partner          = &amp;lt;!-- or: | partners = --&amp;gt;&lt;br /&gt;
| children         = &lt;br /&gt;
| relatives        = &lt;br /&gt;
| awards           = &lt;br /&gt;
| signature        = &lt;br /&gt;
| signature_alt    = &lt;br /&gt;
| signature_size   = &lt;br /&gt;
| signature_type   = &lt;br /&gt;
| years_active     = &lt;br /&gt;
| module           = &lt;br /&gt;
| website          = &amp;lt;!-- {{URL|example.org}} --&amp;gt;&lt;br /&gt;
| portaldisp       = &amp;lt;!-- &amp;quot;on&amp;quot;, &amp;quot;yes&amp;quot;, &amp;quot;true&amp;quot;, etc.; or omit --&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox writer&lt;br /&gt;
| embed            = &lt;br /&gt;
| honorific_prefix = &lt;br /&gt;
| name             = &lt;br /&gt;
| honorific_suffix = &lt;br /&gt;
| image            = &lt;br /&gt;
| image_size       = &lt;br /&gt;
| image_upright    = &lt;br /&gt;
| landscape        = &lt;br /&gt;
| alt              = &lt;br /&gt;
| caption          = &lt;br /&gt;
| native_name      = &lt;br /&gt;
| native_name_lang = &lt;br /&gt;
| pseudonym        = &lt;br /&gt;
| birth_name       = &lt;br /&gt;
| birth_date       = &lt;br /&gt;
| birth_place      = &lt;br /&gt;
| death_date       = &lt;br /&gt;
| death_place      = &lt;br /&gt;
| resting_place    = &lt;br /&gt;
| occupation       = &lt;br /&gt;
| language         = &lt;br /&gt;
| nationality      = &lt;br /&gt;
| citizenship      = &lt;br /&gt;
| education        = &lt;br /&gt;
| alma_mater       = &lt;br /&gt;
| period           = &lt;br /&gt;
| genre            = &lt;br /&gt;
| subject          = &lt;br /&gt;
| movement         = &lt;br /&gt;
| notable_works    = &lt;br /&gt;
| spouse           = &lt;br /&gt;
| partner          = &lt;br /&gt;
| children         = &lt;br /&gt;
| relatives        = &lt;br /&gt;
| awards           = &lt;br /&gt;
| signature        = &lt;br /&gt;
| signature_alt    = &lt;br /&gt;
| signature_size   = &lt;br /&gt;
| signature_type   = &lt;br /&gt;
| years_active     = &lt;br /&gt;
| module           = &lt;br /&gt;
| website          = &lt;br /&gt;
| portaldisp       = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
Please remove any parameters from an article&#039;s infobox that are unlikely to be used.&lt;br /&gt;
&lt;br /&gt;
All parameters are optional. &lt;br /&gt;
&lt;br /&gt;
Unless otherwise specified, if a parameter has multiple values, they should be comma-separated using the {{Tlx|Cslist}} template: &lt;br /&gt;
: {{Para|language|{{Tlx|Cslist|French|Spanish|English}}}}&lt;br /&gt;
which produces:&lt;br /&gt;
: |language={{Cslist|French|Spanish|English}}&lt;br /&gt;
&lt;br /&gt;
If any of the individual values contain commas already, add {{Para|semi|true}} to use semi-colons as separators:&lt;br /&gt;
: {{Para|pseudonym|{{Tlx|Cslist|Smith, Bob|DaveyJones|Adams, Fred|semi{{=}}true}}}}&lt;br /&gt;
which produces:&lt;br /&gt;
: |pseudonym={{Cslist|Smith, Bob|DaveyJones|Adams, Fred|semi=true}}&lt;br /&gt;
&lt;br /&gt;
For more information, see [[Template:Infobox person#Inline lists]].&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;text-align: left&amp;quot; | Parameter&lt;br /&gt;
! style=&amp;quot;text-align: left&amp;quot; | Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;name&#039;&#039;&#039;&lt;br /&gt;
| Insert name of the person. Use the common name, typically name of article. If omitted it defaults to the name of the article; if present but blank, the header is omitted. Note: &#039;&#039;&#039;&amp;lt;ins&amp;gt;Do not&amp;lt;/ins&amp;gt;&#039;&#039;&#039; add icons or other images.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;embed &#039;&#039;&#039;&lt;br /&gt;
| Set to &amp;quot;yes&amp;quot; if embedded in another infobox template.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;honorific_prefix&#039;&#039;&#039;&lt;br /&gt;
| Honorifics that go before the name, e.g. &amp;quot;Lady&amp;quot;, &amp;quot;Sir&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;honorific_suffix&#039;&#039;&#039;&lt;br /&gt;
| Honorifics that go after the name, e.g. &amp;quot;MBE&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;image&#039;&#039;&#039;&lt;br /&gt;
| Insert image name. Use only the file name such as {{highlight|abc.jpg}}, {{highlight|xyz.png}}, {{highlight|123.gif}}, etc. Do not use syntax such as &amp;lt;nowiki&amp;gt;[[File:abc.jpg]]&amp;lt;/nowiki&amp;gt; or &amp;lt;nowiki&amp;gt;[[File:abc.jpg|200px]]&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Only free-content images are allowed for depicting living people. Non-free and &amp;quot;fair use&amp;quot; images, e.g., promo photos, CD/DVD covers, posters, screen captures, etc., will be deleted.  See [[WP:NONFREE]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;image_upright&#039;&#039;&#039;&lt;br /&gt;
| Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;image_size&#039;&#039;&#039;&lt;br /&gt;
| Size to display image: &#039;&#039;200px&#039;&#039; (set width), or &#039;&#039;200x300px&#039;&#039; (max width &amp;amp; max height). This defaults to 200px if empty or omitted.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;landscape&#039;&#039;&#039;&lt;br /&gt;
| Set to &amp;quot;yes&amp;quot; when using wide, short images. The image height (rather than width) will be limited to 200 pixels. &lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;alt&#039;&#039;&#039;&lt;br /&gt;
| The [[alt attribute]] for the image, for readers who cannot see the image. See [[WP:ALT]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;caption&#039;&#039;&#039;&lt;br /&gt;
| Caption for the image. Try to include the date the image was created.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;native_name&#039;&#039;&#039;&lt;br /&gt;
| Name in local language. Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;native_name_lang&#039;&#039;&#039;&lt;br /&gt;
| A [[language tag]], e.g. &amp;quot;fr&amp;quot; for French. If more than one, use {{tl|lang}} inside native_name instead&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;pseudonym&#039;&#039;&#039;&lt;br /&gt;
| Any of the person&#039;s aliases or pen names. Use {{Tlx|Cslist}} for multiple values (see information at the [[#Parameters|top of this section]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;nickname&#039;&#039;&#039;&lt;br /&gt;
| Nickname(s) other than pen names.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;birth_name&#039;&#039;&#039;&lt;br /&gt;
| Insert person&#039;s name at birth (or christening if name at birth is unavailable).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;birth_date&#039;&#039;&#039;&lt;br /&gt;
| Insert the person&#039;s birth date if known as: month day, year or day month year as appropriate.&lt;br /&gt;
&lt;br /&gt;
For a living person consider using:&lt;br /&gt;
:{{tlx|Birth date and age|year of birth|month of birth|day of birth}}&lt;br /&gt;
&lt;br /&gt;
Otherwise use:&lt;br /&gt;
:{{tlx|Birth date|year of birth|month of birth|day of birth}}.&lt;br /&gt;
&lt;br /&gt;
In either case, add {{para|df|yes}} to show date as [[WP:DATES#Full date formatting|day before month]]; otherwise format is month before day.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;birth_place&#039;&#039;&#039;&lt;br /&gt;
| Insert the person&#039;s place of birth if known as: town, city, state, country. Note: &#039;&#039;&#039;&amp;lt;ins&amp;gt;Do not&amp;lt;/ins&amp;gt;&#039;&#039;&#039; add flag icons to the birthplace. See: [[Wikipedia:Manual of Style (flags)]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;death_date&#039;&#039;&#039;&lt;br /&gt;
| Note: Using this field will also change the background display color of the name at the top of the infobox to &amp;lt;span style=&amp;quot;background:silver&amp;quot;&amp;gt;silver&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If the person is still living, leave this parameter blank.&lt;br /&gt;
&lt;br /&gt;
Insert the person&#039;s date of death if known as: month day, year or day month year as appropriate.&lt;br /&gt;
&lt;br /&gt;
When the full birth date and death date are known, use the following:&lt;br /&gt;
:{{Tlx|Death date and age|yr died|mo died|da died|yr born|mo born|da born}}&lt;br /&gt;
&lt;br /&gt;
Add {{para|df|yes}} to show date as [[WP:DATES#Full date formatting|day before month]]; otherwise format is month before day.&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;&amp;lt;nowiki&amp;gt;{{Death date and age|&amp;lt;/nowiki&amp;gt;{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|1950|12|31|df=yes&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{Death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|1950|12|31|df=yes}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*When only the birth and death years are known, use:&lt;br /&gt;
:&amp;lt;small&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Death year and age|year died|year born&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Death year and age|{{CURRENTYEAR}}|1950&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{Death year and age|{{CURRENTYEAR}}|1950}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*When only the birth month, birth year and death year are known, use:&lt;br /&gt;
:&amp;lt;small&amp;gt;birth month, &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Death year and age|year died|year born&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{CURRENTMONTHNAME}}, &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Death year and age|{{CURRENTYEAR}}|1950&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{CURRENTMONTHNAME}}, {{Death year and age|{{CURRENTYEAR}}|1950}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*When only the death year is known, use:&lt;br /&gt;
:&amp;lt;small&amp;gt;death year&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{CURRENTYEAR}}&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;{{CURRENTYEAR}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*When the date of death is unknown, but the person is certainly now dead use the following (case is insensitive):&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::unknown&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::date of death unknown&lt;br /&gt;
&lt;br /&gt;
*When the date of death is unknown, and it is preferable not to display anything and just change the background display color of the infobox. Enter the following (case is insensitive):&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;example&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::died&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::nothing will be displayed.&lt;br /&gt;
&lt;br /&gt;
*When the date of death is only known approximately.&lt;br /&gt;
&lt;br /&gt;
:Preface the entry with a wikilink &amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;Circa|c. &amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt; or c. &lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;examples&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;Circa|c.&amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt; &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Death year and age|{{CURRENTYEAR}}|1950&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
:::&amp;lt;small&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;Circa|c.&amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt; year died&amp;lt;/small&amp;gt;&lt;br /&gt;
::&#039;&#039;&#039;&#039;&#039;output display results&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:::&amp;lt;small&amp;gt;[[Wiktionary:circa|c.]] {{Death year and age|{{CURRENTYEAR}}|1950}}&amp;lt;/small&amp;gt;&lt;br /&gt;
:::&amp;lt;small&amp;gt;[[Wiktionary:circa|c.]] {{CURRENTYEAR}}&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;death_place&#039;&#039;&#039;&lt;br /&gt;
| Insert the person&#039;s place of death if known as: town, city, state, country. Note: &#039;&#039;&#039;&amp;lt;ins&amp;gt;Do not&amp;lt;/ins&amp;gt;&#039;&#039;&#039; add flag icons to the deathplace. See: [[Wikipedia:Manual of Style (flags)]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;resting_place&#039;&#039;&#039;&lt;br /&gt;
| Place of burial, ash-scattering, etc.&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;occupation&#039;&#039;&#039;&lt;br /&gt;
| Insert the type of person: novelist, short story person, journalist, etc. Use {{Tlx|Cslist}} for multiple values (see information at the [[#Parameters|top of this section]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;language&#039;&#039;&#039;&lt;br /&gt;
| Language of published writings.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;nationality&#039;&#039;&#039;&lt;br /&gt;
| Nationality of person, use only when necessary per [[WP:INFONAT]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;citizenship&#039;&#039;&#039;&lt;br /&gt;
| Citizenship of person., use only when necessary per [[WP:INFONAT]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;education&#039;&#039;&#039;&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;alma_mater&#039;&#039;&#039;&lt;br /&gt;
| The [[alma mater]], or college or universities where the person studied. If more than one, indicate ones where they obtained their degree(s) or graduated from.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;period&#039;&#039;&#039;&lt;br /&gt;
| Dates from first publication to last publication.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;genre&#039;&#039;&#039;&lt;br /&gt;
| Fiction persons: All genres that the person wrote in. Use {{Tlx|Cslist}} for multiple values (see information at the [[#Parameters|top of this section]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;subject&#039;&#039;&#039;&lt;br /&gt;
| Non-fiction persons: All subjects that the person wrote about. Use {{Tlx|Cslist}} for multiple values (see information at the [[#Parameters|top of this section]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;movement&#039;&#039;&#039;&lt;br /&gt;
| Insert the literary movement associated with or involving the person. Use {{Tlx|Cslist}} for multiple values (see information at the [[#Parameters|top of this section]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;notable_works&#039;&#039;&#039;&lt;br /&gt;
| Names of &#039;&#039;&#039;notable&#039;&#039;&#039; works ([[WP:NN]]).&lt;br /&gt;
&lt;br /&gt;
Use {{Tlx|Unbulleted list}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;If there is a dispute between editors over what is or is not a notable work, it should be brought up on the article&#039;s talk page. If no consensus can be developed for a particular person, the notable_works parameter should be marked with:&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;{{highlight|&amp;lt;nowiki&amp;gt;&amp;lt;!-- Please do not add notable works to this article. See talk page as mutual consensus could not be achieved on this article. --&amp;gt;&amp;lt;/nowiki&amp;gt;}}&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;spouse&#039;&#039;&#039;&lt;br /&gt;
| Name of spouse(s), followed by years of marriage. Use the format &#039;&#039;Name (1950–present)&#039;&#039; for current spouse and &#039;&#039;Name (1970–1999)&#039;&#039; for former spouse(s). Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;partner&#039;&#039;&#039;&lt;br /&gt;
| Name of long-term unmarried partner(s) (e.g., [[domestic partner]]). Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;children&#039;&#039;&#039;&lt;br /&gt;
| Number of children (e.g., 3), or list of children names. Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;relatives&#039;&#039;&#039;&lt;br /&gt;
| Names of parents, siblings or other relatives; include only if they are independently notable or particularly relevant. Include the relationship in parentheses after the name (father, sister, uncle, etc.). Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;parents&#039;&#039;&#039;&lt;br /&gt;
| Names of parents; include only if they are independently notable or particularly relevant. This parameter may be used for biological, adoptive, foster, or step-parents. Use {{Tlx|Unbulleted list}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;influences&#039;&#039;&#039;&lt;br /&gt;
| No longer supported. Please move cited/citable instances into prose.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;influenced&#039;&#039;&#039;&lt;br /&gt;
| No longer supported. Please move cited/citable instances into prose.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;awards&#039;&#039;&#039;&lt;br /&gt;
| Insert any &#039;&#039;&#039;notable&#039;&#039;&#039; awards the person has won.&lt;br /&gt;
&lt;br /&gt;
Consider using the template: {{tlx|Awards|award|year|title|role}}&lt;br /&gt;
&lt;br /&gt;
Use {{Tlx|Plainlist}} for multiple values (see information at [[Template:Infobox person#Inline lists]]).&lt;br /&gt;
&lt;br /&gt;
Note: &#039;&#039;&#039;&amp;lt;ins&amp;gt;Do not&amp;lt;/ins&amp;gt;&#039;&#039;&#039; add icons or other images.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;signature&#039;&#039;&#039;&lt;br /&gt;
| An image of the person&#039;s signature. Image is displayed at a width of 128px, same format as {{Tl|Infobox person}}, {{Tl|Infobox officeholder}} and {{Tl|Infobox philosopher}}.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;signature_type&#039;&#039;&#039;&lt;br /&gt;
| Changes the &#039;&#039;&#039;Signature&#039;&#039;&#039; label to the preferred argument, such as &#039;&#039;&#039;Seal&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;signature_size&#039;&#039;&#039;&lt;br /&gt;
| Default is {{samp|150px}}. If necessary, a signature can be resized manually as per the {{para|image_size}} parameter.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;signature_alt&#039;&#039;&#039;&lt;br /&gt;
| [[WP:Alternative text for images|Alternative text]] for signature. Write out the signature exactly as it appears in the image, including punctuation. For [[WP:ACCESSIBILITY|accessibility]].&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;years_active&#039;&#039;&#039;&lt;br /&gt;
| Date range in years during which the subject was active in their principal occupation(s) and/or other activity for which they are notable. Use the format 1950–2000, or 1970–present if still active (note the use of an en dash, not hyphen). If no dates of birth and/or death are known for the subject, only a [[floruit]] date range, as is common with ancient subjects, this parameter can be used for it. If approximate (circa) dates are known for either or both, put them in the birth_date and death_date parameters.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;module&#039;&#039;&#039;&lt;br /&gt;
| Used for embedding other infoboxes into this one.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;website&#039;&#039;&#039;&lt;br /&gt;
| If the person has an &#039;&#039;&#039;official&#039;&#039;&#039; website enter it here. &#039;&#039;&#039;&amp;lt;ins&amp;gt;Do not&amp;lt;/ins&amp;gt;&#039;&#039;&#039; enter unofficial, blogs or fan websites. Only one &#039;&#039;&#039;official&#039;&#039;&#039; website is allowed. If the person has more than one &#039;&#039;&#039;official&#039;&#039;&#039; website, only the most prominent should be listed in the infobox. All other websites should be listed in the article under ==External links==.&lt;br /&gt;
&lt;br /&gt;
Use {{T|URL}} as in &amp;lt;nowiki&amp;gt;{{URL|ExampleCompany.com}}&amp;lt;/nowiki&amp;gt;. Do not include the &amp;quot;&amp;lt;nowiki&amp;gt;http[s]://&amp;lt;/nowiki&amp;gt;&amp;quot; or &amp;quot;www.&amp;quot; parts unless the server requires it. Use [[camel case]] capitalization to make multiword domain names easier to read.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;portaldisp&#039;&#039;&#039;&lt;br /&gt;
| This is an optional parameter to display the literature portal link at the bottom of the infobox. Leaving this parameter blank will cause the literature portal link &#039;&#039;&#039;not&#039;&#039;&#039; to display. Setting this parameter to &#039;&#039;&#039;yes&#039;&#039;&#039; or &#039;&#039;&#039;y&#039;&#039;&#039; (case is insensitive) will display the literature portal link.&lt;br /&gt;
&lt;br /&gt;
::::::[[File:Portal-puzzle.svg|frameless|upright=0.11|link=|alt=]] [[Portal:Literature|Literature portal]]&lt;br /&gt;
&lt;br /&gt;
If there is a dispute between editors over whether this parameter should be used in the article, it should be brought up on the article&#039;s talk page. If no consensus can be developed for a particular person, the portaldisp parameter should be marked with:&lt;br /&gt;
&lt;br /&gt;
{{highlight|&amp;lt;nowiki&amp;gt;&amp;lt;!-- Please do not use this parameter in this article. See talk page as mutual consensus could not be achieved on this article. --&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
&amp;lt;!-- removed, very few articles used this parameter | &#039;&#039;&#039;footnotes&#039;&#039;&#039;&lt;br /&gt;
| Insert any miscellaneous information here. --&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Use as a child template ==&lt;br /&gt;
The &#039;&#039;&#039;embed&#039;&#039;&#039; parameter is used when embedding this infobox into another.&lt;br /&gt;
&lt;br /&gt;
{{Infobox person module documentation |template=Infobox writer |parameter=embed |example_parameter1=genre}}&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
{{collapse top|title=TemplateData}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Infobox writer may be used to summarize information about a person who is a writer/author (includes screenwriters).&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;{{_\n| ________________ = _\n}}\n&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;name&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Name&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert name of the person. Use the common name, typically name of article. If omitted it defaults to the name of the article; if present but blank, the header is omitted. Note: Do not add icons or other images.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;embed&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Embedded&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set to &#039;yes&#039; if embedded in another infobox template.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;suggestedvalues&amp;quot;: [&lt;br /&gt;
				&amp;quot;Yes&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;honorific_prefix&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Honorific (prefix)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Honorifics that go before the name, e.g. &#039;Lady&#039;, &#039;Sir&#039;, &#039;Dr&#039;.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;honorific_suffix&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Honorific (suffix)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Honorifics that go after the name, e.g. &#039;MBE&#039;.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;native_name&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Native name&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the writer in his native languages(s).  Use {{Plainlist}} for multiple values.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;native_name_lang&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Native name language&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;A language tag e.g. &#039;fr&#039; for French. If more than one, use {{lang}} inside native_name instead&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;image&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-file-name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Image of the writer. Insert image name. Use only the file name such as abc.jpg, xyz.png, 123.gif, etc. Do not use syntax such as [[File:abc.jpg]] or [[File:abc.jpg|200px]]\nOnly free-content images are allowed for depicting living people. Non-free and \&amp;quot;fair use\&amp;quot; images, e.g., promo photos, CD/DVD covers, posters, screen captures, etc., will be deleted. See WP:NONFREE.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;image_size&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image size&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Size to display image.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;image size&amp;quot;,&lt;br /&gt;
				&amp;quot;imagesize&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Format: 250px (set width), or 200x300px (max width &amp;amp; max height).&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;200px if empty or omitted.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;image_upright&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image upright&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;landscape&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Landscape&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set to &#039;yes&#039; when using wide, short images. The image height (rather than width) will be limited to 200 pixels.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;alt&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image alternative text&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The alt attribute for the image, for readers who cannot see the image. See WP:ALT.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;caption&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image caption&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;image caption&amp;quot;,&lt;br /&gt;
				&amp;quot;image_caption&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Caption for the image. Try to include the date the image was created.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pseudonym&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Pseudonym&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Any of the person&#039;s aliases or pen names. Use {{Cslist}} for multiple values&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;birth_name&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Birth name&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert person&#039;s name at birth (or christening if name at birth is unavailable).&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;birth_date&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Birth date&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert the person&#039;s birth date if known as: month day, year or day month year as appropriate.\nFor a living person consider using:\n\n{{Birth date and age|year of birth|month of birth|day of birth}}\nOtherwise use:\n\n{{Birth date|year of birth|month of birth|day of birth}}.\nIn either case, add |df=yes to show date as day before month; otherwise format is month before day.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;birth_place&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Birth place&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert the person&#039;s place of birth if known as: town, city, state, country. Note: Do not add flag icons to the birthplace.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;death_date&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Death date&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the person is still living, leave this parameter blank.\n\nInsert the person&#039;s date of death if known as: month day, year or day month year as appropriate.\n\nWhen the full birth date and death date are known, use the following:\n\n{{Death date and age|yr died|mo died|da died|yr born|mo born|da born}} - See template page for more details about formatting options.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;death_place&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Death place&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert the person&#039;s place of death if known as: town, city, state, country. Note: Do not add flag icons to the deathplace.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;resting_place&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Resting place&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Place of writer&#039;s grave or ash scattering&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;occupation&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Occupation&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert the type of person: novelist, short story person, journalist, etc. Use {{Cslist}} for multiple values&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;language&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Language&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Language of published writings&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nationality&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Nationality&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Nationality of writer, use only when necessary per [[WP:INFONAT]]&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;citizenship&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Citizenship&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Writer&#039;s country of citizenship&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;education&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Education&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;alma_mater&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Alma mater&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;University or school that writer attended. If more than one, indicate ones where they obtained their degree(s) or graduated from.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;home_town&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Home town&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Place where the person was raised and matured&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;period&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Period&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Dates from first publication to last publication&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;genre&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Genre&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Use for fiction writers: All genres that the person wrote in. Use {{Cslist}} for multiple values&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;subject&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Subject&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Use for non-fiction writers: All subjects that the person wrote about. Use {{Cslist}} for multiple values&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;movement&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Movement&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert the literary movement associated with or involving the person. Use {{Cslist}} for multiple values&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;notable_works&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Notable works&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Names of notable works (see WP:NN). Use {{Unbulleted list}} for multiple values.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;notableworks&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;spouse&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spouse&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of spouse(s), followed by years of marriage. Use the format Name (1950–present) for current spouse and Name (1970–1999) for former spouse(s). Use {{Plainlist}} for multiple values.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;partner&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Partner&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of long-term unmarried partner(s) (e.g., domestic partner). Use {{Plainlist}} for multiple values.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;children&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Children&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Number of children (e.g., 3), or list of children names. Use {{Plainlist}} for multiple values.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;relatives&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Relatives&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Names of parents, siblings or other relatives; include only if they are independently notable or particularly relevant. Include the relationship in parentheses after the name (father, sister, uncle, etc.). Use {{Plainlist}} for multiple values.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;awards&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Awards&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Insert any notable awards the person has won.\nConsider using the template: {{Awards|award|year|title|role}}\n\nUse {{Plainlist}} for multiple values.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;signature&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Signature&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;File name of the writer&#039;s signature. Image is displayed at a width of 128px.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;signature_type&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Alter from Signature to, for example, Seal&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Signature type&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;signature_size&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Default is 150px. If necessary, a signature can be resized manually as per the \&amp;quot;image_size\&amp;quot; parameter.&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Signature size&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;signature_alt&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Signature (alternative)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Alternative text for signature. Write out the signature exactly as it appears in the image, including punctuation. (For accessibility, to be read by screen readers.)&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;years_active&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date range in years during which the subject was active in their principal occupation(s) and/or other activity for which they are notable. Use the format 1950–2000, or 1970–present if still active (note the use of an en dash, not hyphen). If no dates of birth and/or death are known for the subject, only a floruit date range, as is common with ancient subjects, this parameter can be used for it. If approximate (circa) dates are known for either or both, put them in the birth_date and death_date parameters.&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Years Active&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;module&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Module&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Used for embedding other infoboxes into this one&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;website&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Website&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the person has an official website enter it here. Do not enter unofficial, blogs or fan websites. Only one official website is allowed. If the person has more than one official website, only the most prominent should be listed in the infobox. All other websites should be listed in the article under ==External links==.\nUse {{URL}}. Do not include the \&amp;quot;http[s]://\&amp;quot; or \&amp;quot;www.\&amp;quot; parts unless the server requires it. Use camel case capitalization to make multiword domain names easier to read.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;{{URL|ExampleCompany.com}}&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;portaldisp&amp;quot;: {&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Portal link&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This is an optional parameter to display the literature portal link at the bottom of the infobox. Set this parameter to yes or y for enabling the portal link.&amp;quot;,&lt;br /&gt;
			&amp;quot;suggestedvalues&amp;quot;: [&lt;br /&gt;
				&amp;quot;yes&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
{{Collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{Infobox writer&lt;br /&gt;
| name             = J. K. Rowling&lt;br /&gt;
| honorific_suffix = {{post-nominals|country=GBR|CH|OBE|HonFRSE|FRCPE|FRSL|size=100%}}&lt;br /&gt;
| image            = J. K. Rowling 2010.jpg&lt;br /&gt;
| caption          = Rowling at the [[White House]] in 2010&lt;br /&gt;
| birth_name       = Joanne Rowling&lt;br /&gt;
| birth_date       = {{Birth date and age|df=yes|1965|7|31}}&lt;br /&gt;
| birth_place      = [[Yate]], Gloucestershire, England&lt;br /&gt;
| pseudonym        = {{unbulleted list|J. K. Rowling|Robert Galbraith}}&lt;br /&gt;
| occupation       = {{hlist|Author|philanthropist}}&lt;br /&gt;
| alma_mater       = {{ubl|[[University of Exeter]]|[[Moray House School of Education|Moray House]]}}&lt;br /&gt;
| period           = [[Contemporary literature|Contemporary]]&lt;br /&gt;
| years_active     = 1997–present&lt;br /&gt;
| genres           = {{hlist|[[Fantasy]]|[[drama]]|[[young adult fiction]]|[[crime fiction]]}}&lt;br /&gt;
| subject          =&lt;br /&gt;
| movement         =&lt;br /&gt;
| spouse           = {{unbulleted list|{{marriage|Jorge Arantes|1992|1995|end=divorced}}|{{marriage|Neil Murray|26 December 2001}}}}&lt;br /&gt;
| children         = 3&lt;br /&gt;
| relatives        =&lt;br /&gt;
| website          = {{URL|jkrowling.com}}&lt;br /&gt;
| signature        = JKRowlingsignature.svg&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox writer&lt;br /&gt;
| name             = J. K. Rowling&lt;br /&gt;
| honorific_suffix = {{post-nominals|country=GBR|CH|OBE|HonFRSE|FRCPE|FRSL|size=100%}}&lt;br /&gt;
| image            = J. K. Rowling 2010.jpg&lt;br /&gt;
| caption          = Rowling at the [[White House]] in 2010&lt;br /&gt;
| birth_name       = Joanne Rowling&lt;br /&gt;
| birth_date       = {{Birth date and age|df=yes|1965|7|31}}&lt;br /&gt;
| birth_place      = [[Yate]], Gloucestershire, England&lt;br /&gt;
| pseudonym        = {{unbulleted list|J. K. Rowling|Robert Galbraith}}&lt;br /&gt;
| occupation       = {{hlist|Author|philanthropist}}&lt;br /&gt;
| alma_mater       = {{ubl|[[University of Exeter]]|[[Moray House School of Education|Moray House]]}}&lt;br /&gt;
| period           = [[Contemporary literature|Contemporary]]&lt;br /&gt;
| years_active     = 1997–present&lt;br /&gt;
| genres           = {{hlist|[[Fantasy]]|[[drama]]|[[young adult fiction]]|[[crime fiction]]}}&lt;br /&gt;
| subject          =&lt;br /&gt;
| movement         =&lt;br /&gt;
| spouse           = {{unbulleted list|{{marriage|Jorge Arantes|1992|1995|end=divorced}}|{{marriage|Neil Murray|26 December 2001}}}}&lt;br /&gt;
| children         = 3&lt;br /&gt;
| relatives        =&lt;br /&gt;
| website          = {{URL|jkrowling.com}}&lt;br /&gt;
| signature        = JKRowlingsignature.svg&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Microformat ==&lt;br /&gt;
{{UF-hcard-person}}&lt;br /&gt;
&lt;br /&gt;
== Tracking categories ==&lt;br /&gt;
* {{Category link with count|Biography template using pronunciation}}&lt;br /&gt;
* {{Category link with count|Pages using Infobox writer with unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Infobox person}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{Sandbox other||&lt;br /&gt;
&amp;lt;!----Categories below this line, please; interwikis to Wikidata----&amp;gt;&lt;br /&gt;
{{DEFAULTSORT:Writer}}&lt;br /&gt;
[[Category:Publishing infobox templates]]&lt;br /&gt;
[[Category:People and person infobox templates|Writer]]&lt;br /&gt;
[[Category:Biographical templates usable as a module]]&lt;br /&gt;
[[Category:Infobox templates with module parameter|Writer]]&lt;br /&gt;
[[Category:Templates that add a tracking category|{{PAGENAME}}]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Person_infobox_header&amp;diff=314</id>
		<title>Format:Person infobox header</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Person_infobox_header&amp;diff=314"/>
		<updated>2024-07-13T20:56:17Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ombox|type=content|text=The design and content of biographical infoboxes must follow Wikipedia&#039;s [[Wikipedia:Verifiability|verifiability policy]], as well as [[Wikipedia:Manual of Style/Infoboxes|infobox]] and [[Wikipedia:Manual of Style/Biography|biographical style guideline]].&lt;br /&gt;
&lt;br /&gt;
All content displayed in this template must adhere to the &#039;&#039;&#039;[[Wikipedia:Biographies of living persons|biographies of living persons]]&#039;&#039;&#039; policy if applicable. [[Wikipedia:Citing sources|Unsourced or poorly sourced]] contentious material &#039;&#039;&#039;must be removed immediately&#039;&#039;&#039; from the article and its infobox, especially if potentially [[Wikipedia:Libel|libellous]].}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation&lt;br /&gt;
|content=&lt;br /&gt;
{{no documentation}}&lt;br /&gt;
[[Category:People and person infobox templates]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:UF-hcard-person&amp;diff=312</id>
		<title>Format:UF-hcard-person</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:UF-hcard-person&amp;diff=312"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The HTML markup produced by this template includes an [[HCard|hCard microformat]], which makes the person&#039;s details [[Parsing|parsable]] by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of [[microformat]]s on Wikipedia, please see [[Wikipedia:WikiProject Microformats|the microformat project]].&lt;br /&gt;
&lt;br /&gt;
=== Sub-templates ===&lt;br /&gt;
Date-of-birth (&amp;quot;bday&amp;quot;) information will only be included in the microformat if {{tl|birth date}}, or {{tl|birth date and age}} are used in the infobox. ([[Wikipedia:WikiProject Microformats/dates|Do not use these if the date is before 1583]]). Be cautious about using these if the person is still living, per [[WP:DOB]].&lt;br /&gt;
&lt;br /&gt;
To include a URL, use {{Tl|URL}}.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please do not remove instances of these sub-templates.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Classes ===&lt;br /&gt;
hCard uses HTML classes including:&lt;br /&gt;
{{Flatlist|&lt;br /&gt;
*adr&lt;br /&gt;
*agent&lt;br /&gt;
*bday&lt;br /&gt;
*birthplace&lt;br /&gt;
*category&lt;br /&gt;
*country-name&lt;br /&gt;
*deathdate&lt;br /&gt;
*deathplace&lt;br /&gt;
*extended-address&lt;br /&gt;
*family-name&lt;br /&gt;
*fn (required)&lt;br /&gt;
*given-name&lt;br /&gt;
*honorific-prefix&lt;br /&gt;
*honorific-suffix&lt;br /&gt;
*label&lt;br /&gt;
*locality&lt;br /&gt;
*n&lt;br /&gt;
*nickname&lt;br /&gt;
*note&lt;br /&gt;
*org&lt;br /&gt;
*role&lt;br /&gt;
*url&lt;br /&gt;
*vcard&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please do not rename or remove these classes nor collapse nested elements which use them.&#039;&#039;&#039;&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hCards]]}} }}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Templates generating hCards]]&lt;br /&gt;
[[Category:Microformat (uF) message templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Infobox_person_module_documentation&amp;diff=310</id>
		<title>Format:Infobox person module documentation</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Infobox_person_module_documentation&amp;diff=310"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This infobox may be used to create a genre-specific section within {{tl|Infobox person}} (or similar [[:Category:People and person infobox templates|biographical infobox templates]]) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see [[Wikipedia:Infobox modules]]. Also see the [[Template:Infobox]] documentation which explains [[Template:Infobox/doc#Embedding|embedding]] and [[Template:Infobox/doc#Subboxes|subboxes]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox person&lt;br /&gt;
 | name = &lt;br /&gt;
 | image = &lt;br /&gt;
 | caption = &lt;br /&gt;
 | birth_date = &lt;br /&gt;
 | birth_place = &lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt; &#039;&#039;[[et cetera|etc.]]&#039;&#039; &amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 | module = &lt;br /&gt;
   &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;{{{1|{{{template|&amp;lt;includeonly&amp;gt;{{BASEPAGENAME}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;EMBEDDED TEMPLATE NAME&amp;lt;/noinclude&amp;gt;}}}}}} | {{#if:{{{parameter|}}} | {{{parameter}}}=yes | child=yes &amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt; &#039;&#039;or&#039;&#039; embed=yes &#039;&#039;or&#039;&#039; subbox=yes &amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
   | {{{2|{{{example_parameter1|parameter-1}}}}}} = &lt;br /&gt;
   | {{{3|{{{example_parameter2|parameter-2}}}}}} = &lt;br /&gt;
   | {{{4|{{{example_parameter3|parameter-3}}}}}} = &lt;br /&gt;
   | {{{5|{{{example_parameter4|parameter-4}}}}}} = &lt;br /&gt;
   | &amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt; &#039;&#039;etc.&#039;&#039; &amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
   }}&lt;br /&gt;
 }}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Message_box/ombox.css&amp;diff=308</id>
		<title>Modul:Message box/ombox.css</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Message_box/ombox.css&amp;diff=308"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* {{pp|small=y}} */&lt;br /&gt;
.ombox {&lt;br /&gt;
	margin: 4px 0;&lt;br /&gt;
	border-collapse: collapse;&lt;br /&gt;
	border: 1px solid #a2a9b1;    /* Default &amp;quot;notice&amp;quot; gray */&lt;br /&gt;
	background-color: var(--background-color-neutral-subtle, #f8f9fa);&lt;br /&gt;
	box-sizing: border-box;&lt;br /&gt;
    color: var(--color-base, #202122);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* For the &amp;quot;small=yes&amp;quot; option. */&lt;br /&gt;
.ombox.mbox-small {&lt;br /&gt;
	font-size: 88%;&lt;br /&gt;
	line-height: 1.25em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-speedy {&lt;br /&gt;
	border: 2px solid #b32424;    /* Red */&lt;br /&gt;
	background-color: #fee7e6;    /* Pink */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-delete {&lt;br /&gt;
	border: 2px solid #b32424;    /* Red */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-content {&lt;br /&gt;
	border: 1px solid #f28500;    /* Orange */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-style {&lt;br /&gt;
	border: 1px solid #fc3;       /* Yellow */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-move {&lt;br /&gt;
	border: 1px solid #9932cc;    /* Purple */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox-protection {&lt;br /&gt;
	border: 2px solid #a2a9b1;    /* Gray-gold */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-text {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 0.25em 0.9em;&lt;br /&gt;
	width: 100%;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-image {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 2px 0 2px 0.9em;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-imageright {&lt;br /&gt;
	border: none;&lt;br /&gt;
	/* @noflip */&lt;br /&gt;
	padding: 2px 0.9em 2px 0;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* An empty narrow cell */&lt;br /&gt;
.ombox .mbox-empty-cell {&lt;br /&gt;
	border: none;&lt;br /&gt;
	padding: 0;&lt;br /&gt;
	width: 1px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.ombox .mbox-invalid-type {&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media (min-width: 720px) {&lt;br /&gt;
	.ombox {&lt;br /&gt;
		margin: 4px 10%;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	.ombox.mbox-small {&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		clear: right;&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		float: right;&lt;br /&gt;
		/* @noflip */&lt;br /&gt;
		margin: 4px 0 4px 1em;&lt;br /&gt;
		width: 238px;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/** T367463 */&lt;br /&gt;
body.skin--responsive table.ombox img {&lt;br /&gt;
	max-width: none !important;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
html.skin-theme-clientpref-night .ombox-speedy {&lt;br /&gt;
	background-color: #310402;    /* Dark red, same hue/saturation as light */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media (prefers-color-scheme: dark) {&lt;br /&gt;
	html.skin-theme-clientpref-os .ombox-speedy {&lt;br /&gt;
		background-color: #310402; /* Dark red, same hue/saturation as light */&lt;br /&gt;
	}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Auto_short_description&amp;diff=306</id>
		<title>Format:Auto short description</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Auto_short_description&amp;diff=306"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ombox&lt;br /&gt;
| type      = notice&lt;br /&gt;
| text      = This template {{#if:{{{sometimes|}}}|sometimes{{sp}}}}adds an automatically generated &#039;&#039;&#039;[[Wikipedia:Short description|short description]]&#039;&#039;&#039;{{#if:{{{category|}}}|{{sp}}({{{category}}})|}}{{#if:{{{indirect|}}}|{{sp}}via an embedded template}}{{#if:{{{conditions|}}}|{{space}}{{{conditions}}}}}. If the automatic short description is not optimal, replace it by adding {{tl|Short description}} at the top of the article.&lt;br /&gt;
}}&amp;lt;includeonly&amp;gt;{{Subpage other|&amp;lt;!-- do not categorise --&amp;gt;|[[Category:Templates that generate short descriptions{{#if:{{{category|}}}|{{sp}}for {{{category}}}|}}]]}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Transclusion_count/data/I&amp;diff=304</id>
		<title>Modul:Transclusion count/data/I</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Transclusion_count/data/I&amp;diff=304"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;return {&lt;br /&gt;
[&amp;quot;IAST&amp;quot;] = 6700,&lt;br /&gt;
[&amp;quot;IBDB_name&amp;quot;] = 9300,&lt;br /&gt;
[&amp;quot;ICD10&amp;quot;] = 5000,&lt;br /&gt;
[&amp;quot;ICD9&amp;quot;] = 4400,&lt;br /&gt;
[&amp;quot;ICS&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;IDN&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;IMDb_episode&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;IMDb_episodes&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;IMDb_name&amp;quot;] = 158000,&lt;br /&gt;
[&amp;quot;IMDb_title&amp;quot;] = 196000,&lt;br /&gt;
[&amp;quot;IMO_Number&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;IMSLP&amp;quot;] = 8500,&lt;br /&gt;
[&amp;quot;INA&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;IND&amp;quot;] = 7900,&lt;br /&gt;
[&amp;quot;INR&amp;quot;] = 6900,&lt;br /&gt;
[&amp;quot;INRConvert&amp;quot;] = 6100,&lt;br /&gt;
[&amp;quot;INRConvert/CurrentRate&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;INRConvert/USD&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;INRConvert/out&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;IOBDB_name&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;IP&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;IPA&amp;quot;] = 148000,&lt;br /&gt;
[&amp;quot;IPA-de&amp;quot;] = 8300,&lt;br /&gt;
[&amp;quot;IPA-es&amp;quot;] = 8000,&lt;br /&gt;
[&amp;quot;IPA-fr&amp;quot;] = 44000,&lt;br /&gt;
[&amp;quot;IPA-it&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;IPA-nl&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;IPA-pl&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;IPA-pt&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;IPA-sl&amp;quot;] = 6900,&lt;br /&gt;
[&amp;quot;IPA-th&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;IPA_audio_link&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;IPA_link&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;IPAblink&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;IPAc-cmn&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;IPAc-en&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;IPAc-pl&amp;quot;] = 51000,&lt;br /&gt;
[&amp;quot;IPC_athlete&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;IPSummary&amp;quot;] = 78000,&lt;br /&gt;
[&amp;quot;IP_summary&amp;quot;] = 79000,&lt;br /&gt;
[&amp;quot;IPtalk&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;IPuser&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;IPvandal&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;IRC&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;IRI&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;IRL&amp;quot;] = 5600,&lt;br /&gt;
[&amp;quot;IRN&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;ISBN&amp;quot;] = 465000,&lt;br /&gt;
[&amp;quot;ISBN?&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;ISBNT&amp;quot;] = 40000,&lt;br /&gt;
[&amp;quot;ISBN_missing&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;ISFDB_name&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;ISFDB_title&amp;quot;] = 4700,&lt;br /&gt;
[&amp;quot;ISL&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;ISO_15924/script-example-character&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;ISO_15924/wp-article&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;ISO_15924/wp-article/format&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;ISO_15924/wp-article/label&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;ISO_3166_code&amp;quot;] = 528000,&lt;br /&gt;
[&amp;quot;ISO_3166_name&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;ISO_639_name&amp;quot;] = 8500,&lt;br /&gt;
[&amp;quot;ISP&amp;quot;] = 4800,&lt;br /&gt;
[&amp;quot;ISR&amp;quot;] = 5100,&lt;br /&gt;
[&amp;quot;ISSN&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;ISSN_link&amp;quot;] = 31000,&lt;br /&gt;
[&amp;quot;ISTAT&amp;quot;] = 8100,&lt;br /&gt;
[&amp;quot;ISU_figure_skater&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;ITA&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;ITF&amp;quot;] = 6400,&lt;br /&gt;
[&amp;quot;ITF_profile&amp;quot;] = 9200,&lt;br /&gt;
[&amp;quot;ITIS&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;ITN_talk&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;ITN_talk/date&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;IUCN_banner&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;I_sup&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Ice_hockey&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Ice_hockey_stats&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Icehockeystats&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Icon&amp;quot;] = 600000,&lt;br /&gt;
[&amp;quot;If&amp;quot;] = 305000,&lt;br /&gt;
[&amp;quot;If_all&amp;quot;] = 6700,&lt;br /&gt;
[&amp;quot;If_between&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;If_both&amp;quot;] = 135000,&lt;br /&gt;
[&amp;quot;If_empty&amp;quot;] = 3880000,&lt;br /&gt;
[&amp;quot;If_first_display_both&amp;quot;] = 73000,&lt;br /&gt;
[&amp;quot;If_in_page&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;If_last_display_both&amp;quot;] = 31000,&lt;br /&gt;
[&amp;quot;If_preview&amp;quot;] = 60000,&lt;br /&gt;
[&amp;quot;If_then_show&amp;quot;] = 324000,&lt;br /&gt;
[&amp;quot;Ifempty&amp;quot;] = 4000,&lt;br /&gt;
[&amp;quot;Ifeq&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Iferror_then_show&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Ifexist_not_redirect&amp;quot;] = 1370000,&lt;br /&gt;
[&amp;quot;Ifnotempty&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Ifnumber&amp;quot;] = 55000,&lt;br /&gt;
[&amp;quot;Ifsubst&amp;quot;] = 979000,&lt;br /&gt;
[&amp;quot;Ih&amp;quot;] = 7700,&lt;br /&gt;
[&amp;quot;Ill&amp;quot;] = 139000,&lt;br /&gt;
[&amp;quot;Illm&amp;quot;] = 6300,&lt;br /&gt;
[&amp;quot;Image_frame&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Image_label&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Image_label_begin&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Image_label_end&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Image_label_small&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Image_needed&amp;quot;] = 4800,&lt;br /&gt;
[&amp;quot;Image_other&amp;quot;] = 270000,&lt;br /&gt;
[&amp;quot;Image_requested&amp;quot;] = 171000,&lt;br /&gt;
[&amp;quot;Image_requested/Category_helper&amp;quot;] = 162000,&lt;br /&gt;
[&amp;quot;Imbox&amp;quot;] = 930000,&lt;br /&gt;
[&amp;quot;Imdb_name&amp;quot;] = 5400,&lt;br /&gt;
[&amp;quot;Imdb_title&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Import_style&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Import_style/inputbox.css&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Importance&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Importance/colour&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Importance_mask&amp;quot;] = 10900000,&lt;br /&gt;
[&amp;quot;Improve_categories&amp;quot;] = 8400,&lt;br /&gt;
[&amp;quot;Improve_documentation&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;In_class&amp;quot;] = 5600,&lt;br /&gt;
[&amp;quot;In_lang&amp;quot;] = 366000,&lt;br /&gt;
[&amp;quot;In_progress&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;In_string&amp;quot;] = 97000,&lt;br /&gt;
[&amp;quot;In_title&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Inactive_userpage_blanked&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;Include-USGov&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Incomplete_list&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Inconclusive&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Increase&amp;quot;] = 47000,&lt;br /&gt;
[&amp;quot;Incumbent_pope&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Indent&amp;quot;] = 4800,&lt;br /&gt;
[&amp;quot;IndexFungorum&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Indian_English&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Indian_Rupee&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Indian_railway_code&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Inflation&amp;quot;] = 22000,&lt;br /&gt;
[&amp;quot;Inflation-fn&amp;quot;] = 5500,&lt;br /&gt;
[&amp;quot;Inflation-year&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Inflation/IN/startyear&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;Inflation/UK&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Inflation/UK/dataset&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Inflation/UK/startyear&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Inflation/US&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Inflation/US-GDP&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Inflation/US-GDP/dataset&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Inflation/US-GDP/startyear&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Inflation/US/dataset&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Inflation/US/startyear&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Inflation/fn&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Inflation/year&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Info&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Infobox&amp;quot;] = 3300000,&lt;br /&gt;
[&amp;quot;Infobox/Columns&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox/mobileviewfix.css&amp;quot;] = 152000,&lt;br /&gt;
[&amp;quot;Infobox3cols&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Infobox_AFL_biography&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_Aircraft_Begin&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Infobox_Aircraft_Type&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Infobox_Athletics_Championships&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Infobox_Australian_place&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_COA_wide&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Infobox_Canada_electoral_district&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_Canadian_Football_League_biography&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_Chinese&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Infobox_Chinese/Chinese&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Infobox_Chinese/Footer&amp;quot;] = 8300,&lt;br /&gt;
[&amp;quot;Infobox_Chinese/Header&amp;quot;] = 8300,&lt;br /&gt;
[&amp;quot;Infobox_Chinese/Korean&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_Christian_leader&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Infobox_French_commune&amp;quot;] = 38000,&lt;br /&gt;
[&amp;quot;Infobox_French_subdivision&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_GAA_player&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_Gaelic_games_player&amp;quot;] = 5100,&lt;br /&gt;
[&amp;quot;Infobox_German_location&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_German_place&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_Grand_Prix_race_report&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_Greece_place&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Infobox_Greek_Dimos&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Infobox_Hindu_temple&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_Indian_constituency&amp;quot;] = 5300,&lt;br /&gt;
[&amp;quot;Infobox_Indian_constituency/defaultdata&amp;quot;] = 5300,&lt;br /&gt;
[&amp;quot;Infobox_Italian_comune&amp;quot;] = 8100,&lt;br /&gt;
[&amp;quot;Infobox_Korean_name&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_Korean_name/categories&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_NASCAR_race_report&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_NCAA_team_season&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Infobox_NFL_biography&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_NFL_team_season&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Infobox_NRHP&amp;quot;] = 73000,&lt;br /&gt;
[&amp;quot;Infobox_NRHP/conv&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_NRHP/locmapin2region&amp;quot;] = 67000,&lt;br /&gt;
[&amp;quot;Infobox_Officeholder&amp;quot;] = 4400,&lt;br /&gt;
[&amp;quot;Infobox_Olympic_event&amp;quot;] = 7400,&lt;br /&gt;
[&amp;quot;Infobox_Olympic_event/games_text&amp;quot;] = 7400,&lt;br /&gt;
[&amp;quot;Infobox_Pan_American_Games_event&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_Paralympic_event&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_Paralympic_event/games_text&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_Politician&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_Romanian_subdivision&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_Russian_district&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_Russian_inhabited_locality&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_SCOTUS_case&amp;quot;] = 3800,&lt;br /&gt;
[&amp;quot;Infobox_SSSI&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_Site_of_Special_Scientific_Interest&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_Swiss_town&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_Switzerland_municipality&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Infobox_Turkey_place&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Infobox_U.S._county&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_U.S._county/district&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_UK_constituency&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_UK_constituency/year&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_UK_legislation&amp;quot;] = 4000,&lt;br /&gt;
[&amp;quot;Infobox_UK_place&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/NoDialCode&amp;quot;] = 8200,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/NoPostCode&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/area&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/dens&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/dist&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/local&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Infobox_UK_place/styles.css&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Infobox_UN_resolution&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_US_Supreme_Court_case&amp;quot;] = 4000,&lt;br /&gt;
[&amp;quot;Infobox_US_Supreme_Court_case/courts&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Infobox_Wikipedia_user&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_YouTube_personality&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_YouTube_personality/styles.css&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_academic&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_aircraft_begin&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_aircraft_occurrence&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_aircraft_type&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_airline&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Infobox_airport&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_airport/datatable&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_album&amp;quot;] = 164000,&lt;br /&gt;
[&amp;quot;Infobox_album/color&amp;quot;] = 197000,&lt;br /&gt;
[&amp;quot;Infobox_album/link&amp;quot;] = 164000,&lt;br /&gt;
[&amp;quot;Infobox_anatomy&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_ancient_site&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_animanga/Footer&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Infobox_animanga/Header&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Infobox_animanga/Print&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_animanga/Video&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;Infobox_architect&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Infobox_artist&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_artist_discography&amp;quot;] = 6100,&lt;br /&gt;
[&amp;quot;Infobox_artwork&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_athlete&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_automobile&amp;quot;] = 8600,&lt;br /&gt;
[&amp;quot;Infobox_award&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_badminton_player&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_baseball_biography&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_baseball_biography/style&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_baseball_biography/styles.css&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_baseball_team_season&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Infobox_baseball_team_season/leagueseason&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_baseball_team_season/season&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_baseball_team_season/styles.css&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_basketball_biography&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Infobox_basketball_biography/style&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Infobox_basketball_club&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_basketball_club/styles.css&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_beauty_pageant&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Infobox_bilateral_relations&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_body_of_water&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_book&amp;quot;] = 54000,&lt;br /&gt;
[&amp;quot;Infobox_boxer&amp;quot;] = 5900,&lt;br /&gt;
[&amp;quot;Infobox_bridge&amp;quot;] = 6200,&lt;br /&gt;
[&amp;quot;Infobox_building&amp;quot;] = 29000,&lt;br /&gt;
[&amp;quot;Infobox_character&amp;quot;] = 7600,&lt;br /&gt;
[&amp;quot;Infobox_chess_biography&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Infobox_chess_player&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Infobox_church&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_church/denomination&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_church/font_color&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_civil_conflict&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_civilian_attack&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;Infobox_college_coach&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_college_football_game&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_college_football_player&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_college_sports_team_season&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_college_sports_team_season/link&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_college_sports_team_season/name&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_college_sports_team_season/succession&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_college_sports_team_season/team&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_comedian&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_comic_book_title&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_comics_character&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Infobox_comics_creator&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_comics_creator/styles.css&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_company&amp;quot;] = 85000,&lt;br /&gt;
[&amp;quot;Infobox_computing_device&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_concert&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Infobox_constituency&amp;quot;] = 5900,&lt;br /&gt;
[&amp;quot;Infobox_country&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Infobox_country/formernext&amp;quot;] = 6200,&lt;br /&gt;
[&amp;quot;Infobox_country/imagetable&amp;quot;] = 5400,&lt;br /&gt;
[&amp;quot;Infobox_country/multirow&amp;quot;] = 8600,&lt;br /&gt;
[&amp;quot;Infobox_country/status_text&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_country/styles.css&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Infobox_country_at_games&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;Infobox_country_at_games/core&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;Infobox_country_at_games/see_also&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_court_case&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;Infobox_court_case/images&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_cricket_tournament&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_cricketer&amp;quot;] = 32000,&lt;br /&gt;
[&amp;quot;Infobox_cricketer/career&amp;quot;] = 32000,&lt;br /&gt;
[&amp;quot;Infobox_cricketer/national_side&amp;quot;] = 7700,&lt;br /&gt;
[&amp;quot;Infobox_criminal&amp;quot;] = 6800,&lt;br /&gt;
[&amp;quot;Infobox_curler&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Infobox_cycling_race_report&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Infobox_cyclist&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;Infobox_dam&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Infobox_deity&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_deity/color&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_designation_list&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Infobox_designation_list/entry&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_dim&amp;quot;] = 7100,&lt;br /&gt;
[&amp;quot;Infobox_dim/core&amp;quot;] = 7100,&lt;br /&gt;
[&amp;quot;Infobox_diocese&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Infobox_drug&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/chemical_formula&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/data_page_link&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatATC&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatCASnumber&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatChEBI&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatChEMBL&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatChemDBNIAID&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatChemSpider&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatCompTox&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatDrugBank&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatIUPHARBPS&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatJmol&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatKEGG&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatPDBligand&amp;quot;] = 9900,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatPubChemCID&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatPubChemSID&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/formatUNII&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/legal_status&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/licence&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/maintenance_categories&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/non-ref-space&amp;quot;] = 4800,&lt;br /&gt;
[&amp;quot;Infobox_drug/pregnancy_category&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_drug/title&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_election&amp;quot;] = 33000,&lt;br /&gt;
[&amp;quot;Infobox_election/row&amp;quot;] = 33000,&lt;br /&gt;
[&amp;quot;Infobox_election/shortname&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_election/styles.css&amp;quot;] = 33000,&lt;br /&gt;
[&amp;quot;Infobox_enzyme&amp;quot;] = 5100,&lt;br /&gt;
[&amp;quot;Infobox_ethnic_group&amp;quot;] = 7500,&lt;br /&gt;
[&amp;quot;Infobox_event&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;Infobox_family&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_figure_skater&amp;quot;] = 4000,&lt;br /&gt;
[&amp;quot;Infobox_film&amp;quot;] = 161000,&lt;br /&gt;
[&amp;quot;Infobox_film/short_description&amp;quot;] = 157000,&lt;br /&gt;
[&amp;quot;Infobox_film_awards&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_film_awards/link&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_film_awards/style&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_food&amp;quot;] = 7100,&lt;br /&gt;
[&amp;quot;Infobox_football_biography&amp;quot;] = 211000,&lt;br /&gt;
[&amp;quot;Infobox_football_club&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_football_club_season&amp;quot;] = 22000,&lt;br /&gt;
[&amp;quot;Infobox_football_league&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_football_league_season&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Infobox_football_match&amp;quot;] = 6100,&lt;br /&gt;
[&amp;quot;Infobox_football_tournament&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_football_tournament_season&amp;quot;] = 8300,&lt;br /&gt;
[&amp;quot;Infobox_former_subdivision&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_former_subdivision/styles.css&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_galaxy&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_game&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_game_score&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;Infobox_gene&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_given_name&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;Infobox_golfer&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_golfer/highest_ranking&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_government_agency&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_government_cabinet&amp;quot;] = 2900,&lt;br /&gt;
[&amp;quot;Infobox_gridiron_football_person&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_gridiron_football_person/position&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Infobox_gymnast&amp;quot;] = 3800,&lt;br /&gt;
[&amp;quot;Infobox_handball_biography&amp;quot;] = 5000,&lt;br /&gt;
[&amp;quot;Infobox_historic_site&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_holiday&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_holiday/date&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_horseraces&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_hospital&amp;quot;] = 6500,&lt;br /&gt;
[&amp;quot;Infobox_hospital/care_system&amp;quot;] = 6500,&lt;br /&gt;
[&amp;quot;Infobox_hospital/lists&amp;quot;] = 6500,&lt;br /&gt;
[&amp;quot;Infobox_ice_hockey_biography&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Infobox_ice_hockey_player&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Infobox_ice_hockey_team&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_ice_hockey_team_season&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_international_football_competition&amp;quot;] = 6000,&lt;br /&gt;
[&amp;quot;Infobox_islands&amp;quot;] = 9000,&lt;br /&gt;
[&amp;quot;Infobox_islands/area&amp;quot;] = 9400,&lt;br /&gt;
[&amp;quot;Infobox_islands/density&amp;quot;] = 9400,&lt;br /&gt;
[&amp;quot;Infobox_islands/length&amp;quot;] = 9000,&lt;br /&gt;
[&amp;quot;Infobox_islands/styles.css&amp;quot;] = 9000,&lt;br /&gt;
[&amp;quot;Infobox_journal&amp;quot;] = 9900,&lt;br /&gt;
[&amp;quot;Infobox_journal/Abbreviation_search&amp;quot;] = 9800,&lt;br /&gt;
[&amp;quot;Infobox_journal/Bluebook_check&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/Former_check&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/ISO_4_check&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/ISSN-eISSN&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/Indexing_search&amp;quot;] = 9700,&lt;br /&gt;
[&amp;quot;Infobox_journal/MathSciNet_check&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/NLM_check&amp;quot;] = 9600,&lt;br /&gt;
[&amp;quot;Infobox_journal/frequency&amp;quot;] = 8700,&lt;br /&gt;
[&amp;quot;Infobox_judoka&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_lake&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Infobox_language&amp;quot;] = 9700,&lt;br /&gt;
[&amp;quot;Infobox_language/family-color&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_language/genetic&amp;quot;] = 6700,&lt;br /&gt;
[&amp;quot;Infobox_language/linguistlist&amp;quot;] = 9700,&lt;br /&gt;
[&amp;quot;Infobox_language/ref&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Infobox_law_enforcement_agency&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Infobox_legislation&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_legislature&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Infobox_library&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_lighthouse&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_lighthouse/light&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_locomotive&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;Infobox_magazine&amp;quot;] = 7800,&lt;br /&gt;
[&amp;quot;Infobox_manner_of_address&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Infobox_mapframe&amp;quot;] = 89000,&lt;br /&gt;
[&amp;quot;Infobox_martial_artist&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_martial_artist/record&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_medal_templates&amp;quot;] = 432000,&lt;br /&gt;
[&amp;quot;Infobox_medical_condition&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_medical_condition_(new)&amp;quot;] = 8000,&lt;br /&gt;
[&amp;quot;Infobox_medical_details&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_medical_person&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_military_conflict&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Infobox_military_installation&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_military_person&amp;quot;] = 47000,&lt;br /&gt;
[&amp;quot;Infobox_military_unit&amp;quot;] = 27000,&lt;br /&gt;
[&amp;quot;Infobox_mine&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_model&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_monument&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_mountain&amp;quot;] = 29000,&lt;br /&gt;
[&amp;quot;Infobox_multi-sport_competition_event&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Infobox_museum&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_musical_artist&amp;quot;] = 124000,&lt;br /&gt;
[&amp;quot;Infobox_musical_artist/color&amp;quot;] = 124000,&lt;br /&gt;
[&amp;quot;Infobox_musical_artist/hCard_class&amp;quot;] = 326000,&lt;br /&gt;
[&amp;quot;Infobox_musical_composition&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_name&amp;quot;] = 7600,&lt;br /&gt;
[&amp;quot;Infobox_name_module&amp;quot;] = 7700,&lt;br /&gt;
[&amp;quot;Infobox_newspaper&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_nobility&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Infobox_noble&amp;quot;] = 7300,&lt;br /&gt;
[&amp;quot;Infobox_officeholder&amp;quot;] = 235000,&lt;br /&gt;
[&amp;quot;Infobox_officeholder/office&amp;quot;] = 240000,&lt;br /&gt;
[&amp;quot;Infobox_official_post&amp;quot;] = 8500,&lt;br /&gt;
[&amp;quot;Infobox_organization&amp;quot;] = 38000,&lt;br /&gt;
[&amp;quot;Infobox_pageant_titleholder&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_park&amp;quot;] = 7900,&lt;br /&gt;
[&amp;quot;Infobox_person&amp;quot;] = 503000,&lt;br /&gt;
[&amp;quot;Infobox_person/Wikidata&amp;quot;] = 4600,&lt;br /&gt;
[&amp;quot;Infobox_person/height&amp;quot;] = 105000,&lt;br /&gt;
[&amp;quot;Infobox_person/length&amp;quot;] = 7200,&lt;br /&gt;
[&amp;quot;Infobox_person/weight&amp;quot;] = 68000,&lt;br /&gt;
[&amp;quot;Infobox_philosopher&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_planet&amp;quot;] = 4700,&lt;br /&gt;
[&amp;quot;Infobox_play&amp;quot;] = 4300,&lt;br /&gt;
[&amp;quot;Infobox_political_party&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Infobox_power_station&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_prepared_food&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_professional_wrestler&amp;quot;] = 4400,&lt;br /&gt;
[&amp;quot;Infobox_professional_wrestling_event&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_protected_area&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_protein_family&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_publisher&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Infobox_racehorse&amp;quot;] = 5600,&lt;br /&gt;
[&amp;quot;Infobox_racing_driver&amp;quot;] = 4500,&lt;br /&gt;
[&amp;quot;Infobox_racing_driver_series_section&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Infobox_radio_show&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Infobox_radio_station&amp;quot;] = 22000,&lt;br /&gt;
[&amp;quot;Infobox_rail&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_rail_line&amp;quot;] = 7400,&lt;br /&gt;
[&amp;quot;Infobox_rail_service&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_rail_service/doc&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_reality_competition_season&amp;quot;] = 3800,&lt;br /&gt;
[&amp;quot;Infobox_record_label&amp;quot;] = 4100,&lt;br /&gt;
[&amp;quot;Infobox_recurring_event&amp;quot;] = 6700,&lt;br /&gt;
[&amp;quot;Infobox_religious_biography&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Infobox_religious_building&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_religious_building/color&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_restaurant&amp;quot;] = 3500,&lt;br /&gt;
[&amp;quot;Infobox_river&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_river/calcunit&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_river/discharge&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_river/row-style&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_river/source&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_road&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Infobox_road/meta/mask/category&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Infobox_road/meta/mask/country&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Infobox_road/styles.css&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Infobox_road_small&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_rockunit&amp;quot;] = 6400,&lt;br /&gt;
[&amp;quot;Infobox_royalty&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Infobox_royalty/short_description&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_biography&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_biography/correct_date&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_biography/depcheck&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_league_biography&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_league_biography/PLAYER&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_rugby_team&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_sailboat_specifications&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_saint&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Infobox_school&amp;quot;] = 39000,&lt;br /&gt;
[&amp;quot;Infobox_school/short_description&amp;quot;] = 39000,&lt;br /&gt;
[&amp;quot;Infobox_school_district&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_school_district/styles.css&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Infobox_scientist&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;Infobox_service_record&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_settlement&amp;quot;] = 567000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/areadisp&amp;quot;] = 242000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/columns&amp;quot;] = 97000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/columns/styles.css&amp;quot;] = 97000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/densdisp&amp;quot;] = 443000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/impus&amp;quot;] = 83000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/lengthdisp&amp;quot;] = 171000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/link&amp;quot;] = 96000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/metric&amp;quot;] = 214000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/pref&amp;quot;] = 298000,&lt;br /&gt;
[&amp;quot;Infobox_settlement/styles.css&amp;quot;] = 567000,&lt;br /&gt;
[&amp;quot;Infobox_ship_begin&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_ship_career&amp;quot;] = 37000,&lt;br /&gt;
[&amp;quot;Infobox_ship_characteristics&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_ship_class_overview&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Infobox_ship_image&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Infobox_shopping_mall&amp;quot;] = 3600,&lt;br /&gt;
[&amp;quot;Infobox_short_story&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_skier&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Infobox_soap_character&amp;quot;] = 3000,&lt;br /&gt;
[&amp;quot;Infobox_software&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_software/simple&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Infobox_song&amp;quot;] = 78000,&lt;br /&gt;
[&amp;quot;Infobox_song/color&amp;quot;] = 78000,&lt;br /&gt;
[&amp;quot;Infobox_song/link&amp;quot;] = 78000,&lt;br /&gt;
[&amp;quot;Infobox_spaceflight&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Infobox_spaceflight/styles.css&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Infobox_sport_event&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_sports_competition_event&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Infobox_sports_competition_event/medalrow&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Infobox_sports_league&amp;quot;] = 5200,&lt;br /&gt;
[&amp;quot;Infobox_sports_season&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Infobox_sports_team&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_sportsperson&amp;quot;] = 112000,&lt;br /&gt;
[&amp;quot;Infobox_stadium&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Infobox_station&amp;quot;] = 56000,&lt;br /&gt;
[&amp;quot;Infobox_station/doc&amp;quot;] = 55000,&lt;br /&gt;
[&amp;quot;Infobox_station/services&amp;quot;] = 56000,&lt;br /&gt;
[&amp;quot;Infobox_station/styles.css&amp;quot;] = 56000,&lt;br /&gt;
[&amp;quot;Infobox_street&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Infobox_swimmer&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_television&amp;quot;] = 59000,&lt;br /&gt;
[&amp;quot;Infobox_television/Short_description&amp;quot;] = 56000,&lt;br /&gt;
[&amp;quot;Infobox_television/styles.css&amp;quot;] = 58000,&lt;br /&gt;
[&amp;quot;Infobox_television_channel&amp;quot;] = 6300,&lt;br /&gt;
[&amp;quot;Infobox_television_episode&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_television_episode/styles.css&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_television_season&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Infobox_television_station&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Infobox_tennis_biography&amp;quot;] = 11000,&lt;br /&gt;
[&amp;quot;Infobox_tennis_event&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Infobox_tennis_tournament_event&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Infobox_tennis_tournament_year&amp;quot;] = 9700,&lt;br /&gt;
[&amp;quot;Infobox_tennis_tournament_year/color&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_tennis_tournament_year/footer&amp;quot;] = 30000,&lt;br /&gt;
[&amp;quot;Infobox_tournament_season&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Infobox_train&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_university&amp;quot;] = 27000,&lt;br /&gt;
[&amp;quot;Infobox_user&amp;quot;] = 2700,&lt;br /&gt;
[&amp;quot;Infobox_venue&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Infobox_video_game&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_video_game/styles.css&amp;quot;] = 28000,&lt;br /&gt;
[&amp;quot;Infobox_volleyball_biography&amp;quot;] = 5600,&lt;br /&gt;
[&amp;quot;Infobox_weapon&amp;quot;] = 7500,&lt;br /&gt;
[&amp;quot;Infobox_weather_event&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_weather_event/Effects&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_weather_event/Footer&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_weather_event/History&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_weather_event/meteorology&amp;quot;] = 2300,&lt;br /&gt;
[&amp;quot;Infobox_weather_event/styles.css&amp;quot;] = 2400,&lt;br /&gt;
[&amp;quot;Infobox_website&amp;quot;] = 7800,&lt;br /&gt;
[&amp;quot;Infobox_writer&amp;quot;] = 41000,&lt;br /&gt;
[&amp;quot;Information&amp;quot;] = 97000,&lt;br /&gt;
[&amp;quot;Information/styles.css&amp;quot;] = 97000,&lt;br /&gt;
[&amp;quot;Inlang&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Inline&amp;quot;] = 3100,&lt;br /&gt;
[&amp;quot;Inline_block&amp;quot;] = 4900,&lt;br /&gt;
[&amp;quot;Inprogress&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Input_link&amp;quot;] = 32000,&lt;br /&gt;
[&amp;quot;Instagram&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Interlanguage_link&amp;quot;] = 177000,&lt;br /&gt;
[&amp;quot;Interlanguage_link_multi&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Internet_Archive_author&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Internet_Archive_film&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Intitle&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Iptalk&amp;quot;] = 17000,&lt;br /&gt;
[&amp;quot;IranCensus2006&amp;quot;] = 45000,&lt;br /&gt;
[&amp;quot;IranNCSGN&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Iran_Census_2006&amp;quot;] = 45000,&lt;br /&gt;
[&amp;quot;Irc&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Irish_place_name&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;IsIPAddress&amp;quot;] = 36000,&lt;br /&gt;
[&amp;quot;IsValidPageName&amp;quot;] = 2800,&lt;br /&gt;
[&amp;quot;Is_MLB_league&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Is_NPB_league&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Is_country_in_Central_America&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Is_country_in_the_Caribbean&amp;quot;] = 14000,&lt;br /&gt;
[&amp;quot;Is_interwiki_link&amp;quot;] = 6200,&lt;br /&gt;
[&amp;quot;Is_italic_taxon&amp;quot;] = 527000,&lt;br /&gt;
[&amp;quot;Is_redirect&amp;quot;] = 29000,&lt;br /&gt;
[&amp;quot;Is_time&amp;quot;] = 5800,&lt;br /&gt;
[&amp;quot;Isbn&amp;quot;] = 8500,&lt;br /&gt;
[&amp;quot;Isfdb_name&amp;quot;] = 3300,&lt;br /&gt;
[&amp;quot;Isfdb_title&amp;quot;] = 4200,&lt;br /&gt;
[&amp;quot;Isnum&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Isnumeric&amp;quot;] = 145000,&lt;br /&gt;
[&amp;quot;Iso2continent&amp;quot;] = 54000,&lt;br /&gt;
[&amp;quot;Iso2country&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Iso2country/article&amp;quot;] = 23000,&lt;br /&gt;
[&amp;quot;Iso2country/data&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Iso2nationality&amp;quot;] = 210000,&lt;br /&gt;
[&amp;quot;Issubst&amp;quot;] = 71000,&lt;br /&gt;
[&amp;quot;Isu_name&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Italic_dab2&amp;quot;] = 5500,&lt;br /&gt;
[&amp;quot;Italic_title&amp;quot;] = 273000,&lt;br /&gt;
[&amp;quot;Italic_title_prefixed&amp;quot;] = 8700,&lt;br /&gt;
[&amp;quot;Italics_colon&amp;quot;] = 3900,&lt;br /&gt;
[&amp;quot;Italics_title&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Italictitle&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Ivm&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Ivm/styles.css&amp;quot;] = 5700,&lt;br /&gt;
[&amp;quot;Ivmbox&amp;quot;] = 126000,&lt;br /&gt;
[&amp;quot;Ivory_messagebox&amp;quot;] = 151000,&lt;br /&gt;
[&amp;quot;Module:I18n/complex_date&amp;quot;] = 70000,&lt;br /&gt;
[&amp;quot;Module:IP&amp;quot;] = 135000,&lt;br /&gt;
[&amp;quot;Module:IPA&amp;quot;] = 148000,&lt;br /&gt;
[&amp;quot;Module:IPA/data&amp;quot;] = 133000,&lt;br /&gt;
[&amp;quot;Module:IPA/styles.css&amp;quot;] = 121000,&lt;br /&gt;
[&amp;quot;Module:IPA_symbol&amp;quot;] = 5500,&lt;br /&gt;
[&amp;quot;Module:IPA_symbol/data&amp;quot;] = 5500,&lt;br /&gt;
[&amp;quot;Module:IPAc-en&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;Module:IPAc-en/data&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;Module:IPAc-en/phonemes&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;Module:IPAc-en/pronunciation&amp;quot;] = 50000,&lt;br /&gt;
[&amp;quot;Module:IPAddress&amp;quot;] = 190000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166&amp;quot;] = 1050000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/AT&amp;quot;] = 2500,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/BA&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/CA&amp;quot;] = 2600,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/CN&amp;quot;] = 2200,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/DE&amp;quot;] = 15000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/ES&amp;quot;] = 3700,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/FR&amp;quot;] = 38000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/GB&amp;quot;] = 6400,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/GR&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/IN&amp;quot;] = 29000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/IR&amp;quot;] = 9900,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/National&amp;quot;] = 1050000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/PL&amp;quot;] = 7500,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/RS&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/RU&amp;quot;] = 25000,&lt;br /&gt;
[&amp;quot;Module:ISO_3166/data/US&amp;quot;] = 86000,&lt;br /&gt;
[&amp;quot;Module:ISO_639_name&amp;quot;] = 20000,&lt;br /&gt;
[&amp;quot;Module:ISOdate&amp;quot;] = 70000,&lt;br /&gt;
[&amp;quot;Module:Icon&amp;quot;] = 608000,&lt;br /&gt;
[&amp;quot;Module:Icon/data&amp;quot;] = 608000,&lt;br /&gt;
[&amp;quot;Module:If_any_equal&amp;quot;] = 202000,&lt;br /&gt;
[&amp;quot;Module:If_empty&amp;quot;] = 3890000,&lt;br /&gt;
[&amp;quot;Module:If_in_page&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Module:If_not_given_or_empty&amp;quot;] = 6600,&lt;br /&gt;
[&amp;quot;Module:If_preview&amp;quot;] = 307000,&lt;br /&gt;
[&amp;quot;Module:If_preview/configuration&amp;quot;] = 307000,&lt;br /&gt;
[&amp;quot;Module:If_preview/styles.css&amp;quot;] = 307000,&lt;br /&gt;
[&amp;quot;Module:Import_style&amp;quot;] = 12000,&lt;br /&gt;
[&amp;quot;Module:In_lang&amp;quot;] = 366000,&lt;br /&gt;
[&amp;quot;Module:Indent&amp;quot;] = 4800,&lt;br /&gt;
[&amp;quot;Module:Infobox&amp;quot;] = 4240000,&lt;br /&gt;
[&amp;quot;Module:Infobox/dates&amp;quot;] = 71000,&lt;br /&gt;
[&amp;quot;Module:Infobox/styles.css&amp;quot;] = 4510000,&lt;br /&gt;
[&amp;quot;Module:Infobox/utilities&amp;quot;] = 2000,&lt;br /&gt;
[&amp;quot;Module:Infobox3cols&amp;quot;] = 304000,&lt;br /&gt;
[&amp;quot;Module:InfoboxImage&amp;quot;] = 4580000,&lt;br /&gt;
[&amp;quot;Module:Infobox_body_of_water_tracking&amp;quot;] = 18000,&lt;br /&gt;
[&amp;quot;Module:Infobox_cyclist_tracking&amp;quot;] = 16000,&lt;br /&gt;
[&amp;quot;Module:Infobox_gene&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Module:Infobox_mapframe&amp;quot;] = 404000,&lt;br /&gt;
[&amp;quot;Module:Infobox_military_conflict&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Module:Infobox_military_conflict/styles.css&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Module:Infobox_multi-lingual_name&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Module:Infobox_multi-lingual_name/data&amp;quot;] = 21000,&lt;br /&gt;
[&amp;quot;Module:Infobox_power_station&amp;quot;] = 3200,&lt;br /&gt;
[&amp;quot;Module:Infobox_road&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/browselinks&amp;quot;] = 25000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/errors&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/length&amp;quot;] = 25000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/locations&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/map&amp;quot;] = 25000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/route&amp;quot;] = 26000,&lt;br /&gt;
[&amp;quot;Module:Infobox_road/sections&amp;quot;] = 24000,&lt;br /&gt;
[&amp;quot;Module:Infobox_television&amp;quot;] = 59000,&lt;br /&gt;
[&amp;quot;Module:Infobox_television_disambiguation_check&amp;quot;] = 66000,&lt;br /&gt;
[&amp;quot;Module:Infobox_television_episode&amp;quot;] = 13000,&lt;br /&gt;
[&amp;quot;Module:Infobox_television_season_disambiguation_check&amp;quot;] = 9500,&lt;br /&gt;
[&amp;quot;Module:Infobox_television_season_name&amp;quot;] = 10000,&lt;br /&gt;
[&amp;quot;Module:Internet_Archive&amp;quot;] = 19000,&lt;br /&gt;
[&amp;quot;Module:IrelandByCountyCatNav&amp;quot;] = 3400,&lt;br /&gt;
[&amp;quot;Module:Is_article&amp;quot;] = 2100,&lt;br /&gt;
[&amp;quot;Module:Is_infobox_in_lead&amp;quot;] = 441000,&lt;br /&gt;
[&amp;quot;Module:Is_instance&amp;quot;] = 332000,&lt;br /&gt;
[&amp;quot;Module:Italic_title&amp;quot;] = 1150000,&lt;br /&gt;
[&amp;quot;Module:Italic_title2&amp;quot;] = 5500,&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Category_link_with_count&amp;diff=302</id>
		<title>Format:Category link with count</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Category_link_with_count&amp;diff=302"/>
		<updated>2024-07-13T20:56:16Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;]]&amp;amp;nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Parameter_names_example&amp;diff=300</id>
		<title>Format:Parameter names example</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Parameter_names_example&amp;diff=300"/>
		<updated>2024-07-13T20:56:15Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:Parameter names example|main}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&amp;lt;!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Format:Lua&amp;diff=298</id>
		<title>Format:Lua</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Format:Lua&amp;diff=298"/>
		<updated>2024-07-13T20:56:15Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:Lua banner|main}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Lua|Module:Lua banner}}&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:Parameter_names_example&amp;diff=296</id>
		<title>Modul:Parameter names example</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:Parameter_names_example&amp;diff=296"/>
		<updated>2024-07-13T20:56:14Z</updated>

		<summary type="html">&lt;p&gt;Sergiu: 1 versiune importată&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{parameter names example}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function makeParam(s)&lt;br /&gt;
	local lb = &#039;&amp;amp;#123;&#039;&lt;br /&gt;
	local rb = &#039;&amp;amp;#125;&#039;&lt;br /&gt;
	return lb:rep(3) .. s .. rb:rep(3)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function italicize(s)&lt;br /&gt;
	return &amp;quot;&#039;&#039;&amp;quot; .. s .. &amp;quot;&#039;&#039;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function plain(s)&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args, frame)&lt;br /&gt;
	-- Find how we want to format the arguments to the template.&lt;br /&gt;
	local formatFunc&lt;br /&gt;
	if args._display == &#039;italics&#039; or args._display == &#039;italic&#039; then&lt;br /&gt;
		formatFunc = italicize&lt;br /&gt;
	elseif args._display == &#039;plain&#039; then&lt;br /&gt;
		formatFunc = plain&lt;br /&gt;
	else&lt;br /&gt;
		formatFunc = makeParam&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Build the table of template arguments.&lt;br /&gt;
	local targs = {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;number&#039; then&lt;br /&gt;
			targs[v] = formatFunc(v)&lt;br /&gt;
		elseif not k:find(&#039;^_&#039;) then&lt;br /&gt;
			targs[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	--targs[&#039;nocat&#039;] = &#039;yes&#039;;&lt;br /&gt;
	--targs[&#039;categories&#039;] = &#039;no&#039;;&lt;br /&gt;
	--targs[&#039;demo&#039;] = &#039;yes&#039;;&lt;br /&gt;
&lt;br /&gt;
	-- Find the template name.&lt;br /&gt;
	local template&lt;br /&gt;
	if args._template then&lt;br /&gt;
		template = args._template&lt;br /&gt;
	else&lt;br /&gt;
		local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
		if currentTitle.prefixedText:find(&#039;/sandbox$&#039;) then&lt;br /&gt;
			template = currentTitle.prefixedText&lt;br /&gt;
		else&lt;br /&gt;
			template = currentTitle.basePageTitle.prefixedText&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Call the template with the arguments.&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	local success, result = pcall(&lt;br /&gt;
		frame.expandTemplate,&lt;br /&gt;
		frame,&lt;br /&gt;
		{title = template, args = targs}&lt;br /&gt;
	)&lt;br /&gt;
	if success then&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
		wrappers = &#039;Template:Parameter names example&#039;&lt;br /&gt;
	})&lt;br /&gt;
	return p._main(args, frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
</feed>