<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ta">
	<id>https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APerson_weight</id>
	<title>Module:Person weight - திருத்த வரலாறு</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APerson_weight"/>
	<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:Person_weight&amp;action=history"/>
	<updated>2026-06-04T18:34:21Z</updated>
	<subtitle>விக்கியில் இப்பக்கத்துக்கான திருத்த வரலாறு</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:Person_weight&amp;diff=109452&amp;oldid=prev</id>
		<title>imported&gt;Sukanthi: &quot;-- This module implements Template:Infobox person/weight  local p = {}  local function clean_weight(s)  	s = mw.ustring.gsub(s, &#039;kilogram&#039;, &#039;kg&#039;) 	s = mw.ustring.gsub(s, &#039;kgs&#039;, &#039;kg&#039;) 	s = mw.ustring.gsub(s, &#039;kg[%.,]&#039;, &#039;kg&#039;)  	s = mw.ustring.gsub(s, &#039;pound&#039;, &#039;lb&#039;) 	s = mw.ustring.gsub(s, &#039;lbs&#039;, &#039;lb&#039;) 	s = mw.ustring.gsub(s, &#039;lb[%.,]&#039;, &#039;lb&#039;)  	s = mw.ustring.gsu...&quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:Person_weight&amp;diff=109452&amp;oldid=prev"/>
		<updated>2024-08-07T08:48:15Z</updated>

		<summary type="html">&lt;p&gt;&amp;quot;-- This module implements &lt;a href=&quot;/w/%E0%AE%B5%E0%AE%BE%E0%AE%B0%E0%AF%8D%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81%E0%AE%B0%E0%AF%81:Infobox_person/weight&quot; title=&quot;வார்ப்புரு:Infobox person/weight&quot;&gt;Template:Infobox person/weight&lt;/a&gt;  local p = {}  local function clean_weight(s)  	s = mw.ustring.gsub(s, &amp;#039;kilogram&amp;#039;, &amp;#039;kg&amp;#039;) 	s = mw.ustring.gsub(s, &amp;#039;kgs&amp;#039;, &amp;#039;kg&amp;#039;) 	s = mw.ustring.gsub(s, &amp;#039;kg[%.,]&amp;#039;, &amp;#039;kg&amp;#039;)  	s = mw.ustring.gsub(s, &amp;#039;pound&amp;#039;, &amp;#039;lb&amp;#039;) 	s = mw.ustring.gsub(s, &amp;#039;lbs&amp;#039;, &amp;#039;lb&amp;#039;) 	s = mw.ustring.gsub(s, &amp;#039;lb[%.,]&amp;#039;, &amp;#039;lb&amp;#039;)  	s = mw.ustring.gsu...&amp;quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ta&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← பழைய திருத்தம்&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;08:48, 7 ஆகத்து 2024 இல் நிலவும் திருத்தம்&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ta&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(வேறுபாடு ஏதுமில்லை)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Sukanthi</name></author>
	</entry>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:Person_weight&amp;diff=239475&amp;oldid=prev</id>
		<title>imported&gt;Balajijagadesh: :en:Module:Person_weight இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:Person_weight&amp;diff=239475&amp;oldid=prev"/>
		<updated>2022-08-14T07:35:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Person_weight&quot; class=&quot;extiw&quot; title=&quot;en:Module:Person weight&quot;&gt;en:Module:Person_weight&lt;/a&gt; இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன&lt;/p&gt;
&lt;p&gt;&lt;b&gt;புதிய பக்கம்&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements [[Template:Infobox person/weight]]&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function clean_weight(s)&lt;br /&gt;
&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;kilogram&amp;#039;, &amp;#039;kg&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;kgs&amp;#039;, &amp;#039;kg&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;kg[%.,]&amp;#039;, &amp;#039;kg&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;pound&amp;#039;, &amp;#039;lb&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;lbs&amp;#039;, &amp;#039;lb&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;lb[%.,]&amp;#039;, &amp;#039;lb&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;stone&amp;#039;, &amp;#039;st&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;sts&amp;#039;, &amp;#039;st&amp;#039;)&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;st[%.,]&amp;#039;, &amp;#039;st&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	s = mw.ustring.gsub(s, &amp;#039;%[%[kg%]%]s&amp;#039;, &amp;#039;[[Kilogram|kg]]&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isnumber(s)&lt;br /&gt;
	if s then&lt;br /&gt;
		s = mw.ustring.gsub(s, &amp;#039;%+%s*%d+%s*/%s*%d+%s*$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
		s = mw.ustring.gsub(s, &amp;#039;%s*[–%-]%s*&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
		return tonumber(s)&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function get_convert_weight_args(s, kg_stlb, lb_stlb)&lt;br /&gt;
	local prefer_m = (prefer or &amp;#039;&amp;#039;) == &amp;#039;m&amp;#039;&lt;br /&gt;
	local force_m = (enforce or &amp;#039;&amp;#039;) == &amp;#039;m&amp;#039;&lt;br /&gt;
	local prefer_cm = (prefer or &amp;#039;&amp;#039;) == &amp;#039;cm&amp;#039;&lt;br /&gt;
	local force_cm = (enforce or &amp;#039;&amp;#039;) == &amp;#039;cm&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	unconverted = clean_weight(s or &amp;#039;&amp;#039;) -- basic unit cleaning&lt;br /&gt;
	&lt;br /&gt;
	s = mw.ustring.gsub(unconverted, &amp;#039;&amp;amp;[Nn][Bb][Ss][Pp];&amp;#039;, &amp;#039; &amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local kg = mw.ustring.find(s, &amp;#039;kg&amp;#039;)&lt;br /&gt;
	local st = mw.ustring.find(s, &amp;#039;st&amp;#039;)&lt;br /&gt;
	local lb = mw.ustring.find(s, &amp;#039;lb&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	if kg == nil and st == nil and lb == nil then&lt;br /&gt;
		return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if kg ~= nil and st == nil and lb == nil then&lt;br /&gt;
		local n = mw.ustring.sub(s, 1, kg - 1)&lt;br /&gt;
		if isnumber(n) then&lt;br /&gt;
			return {n,&amp;#039;kg&amp;#039;,kg_stlb and &amp;#039;lb stlb&amp;#039; or &amp;#039;lb&amp;#039;,0,[&amp;#039;abbr&amp;#039;]=&amp;#039;on&amp;#039;}, mw.ustring.sub(s, kg+2)&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if lb ~= nil and kg == nil and st == nil then&lt;br /&gt;
		local n = mw.ustring.sub(s, 1, lb - 1)&lt;br /&gt;
		if isnumber(n) then&lt;br /&gt;
			return {n,&amp;#039;lb&amp;#039;,lb_stlb and &amp;#039;kg stlb&amp;#039; or &amp;#039;kg&amp;#039;,0,[&amp;#039;abbr&amp;#039;]=&amp;#039;on&amp;#039;}, mw.ustring.sub(s, lb+2)&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if st ~= nil and kg == nil and lb == nil then&lt;br /&gt;
		local n = mw.ustring.sub(s, 1, st - 1)&lt;br /&gt;
		if isnumber(n) then&lt;br /&gt;
			return {n,&amp;#039;st&amp;#039;,&amp;#039;lb kg&amp;#039;,0,[&amp;#039;abbr&amp;#039;]=&amp;#039;on&amp;#039;}, mw.ustring.sub(s, st+2)&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if lb ~= nil and st ~=nil and kg == nil then&lt;br /&gt;
		local n1 = mw.ustring.sub(s, 1, st - 1)&lt;br /&gt;
		local n2 = mw.ustring.sub(s, st+2, lb - 1)&lt;br /&gt;
		if isnumber(n1) and isnumber(n2) then&lt;br /&gt;
			return {n1,&amp;#039;st&amp;#039;,n2,&amp;#039;lb&amp;#039;, &amp;#039;lb kg&amp;#039;,0,[&amp;#039;abbr&amp;#039;]=&amp;#039;on&amp;#039;}, mw.ustring.sub(s, lb+2)&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return &amp;#039;&amp;#039;, unconverted&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function convert_weight(frame, args)&lt;br /&gt;
	local targs, str = get_convert_weight_args(args[1], (args[&amp;#039;kg-stlb&amp;#039;] or &amp;#039;&amp;#039;) ~= &amp;#039;&amp;#039;, (args[&amp;#039;lb-stlb&amp;#039;] or &amp;#039;&amp;#039;) ~= &amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	if type(targs) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		return frame:expandTemplate{ title = &amp;#039;convert&amp;#039;, args = targs} .. str&lt;br /&gt;
	else&lt;br /&gt;
		return str&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.weight(frame)&lt;br /&gt;
	return convert_weight(frame, frame.args[1] and frame.args or frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Balajijagadesh</name></author>
	</entry>
</feed>