<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_parameter_value</id>
	<title>Module:Template parameter value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_parameter_value"/>
	<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;action=history"/>
	<updated>2026-06-19T19:52:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=38169&amp;oldid=prev</id>
		<title>Indicwiki: 1 revision imported from :alpha:Module:Template_parameter_value</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=38169&amp;oldid=prev"/>
		<updated>2022-12-12T08:37:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://alpha.indicwiki.in/index.php?title=Module:Template_parameter_value&quot; class=&quot;extiw&quot; title=&quot;alpha:Module:Template parameter value&quot;&gt;alpha:Module:Template_parameter_value&lt;/a&gt;&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;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:07, 12 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=9039&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=9039&amp;oldid=prev"/>
		<updated>2022-08-28T03:12:13Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:42, 28 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=38168&amp;oldid=prev</id>
		<title>alpha&gt;Sarika: Created page with &quot;local p = {} local escape = require(&quot;Module:String&quot;)._escapePattern function trimspaces(s) 	return string.gsub(s, &quot;^%s*(.-)%s*$&quot;, &quot;%1&quot;) end  local function getTitle(title) 	lo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=38168&amp;oldid=prev"/>
		<updated>2022-05-20T09:06:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local escape = require(&amp;quot;Module:String&amp;quot;)._escapePattern function trimspaces(s) 	return string.gsub(s, &amp;quot;^%s*(.-)%s*$&amp;quot;, &amp;quot;%1&amp;quot;) end  local function getTitle(title) 	lo...&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;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:36, 20 May 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>alpha&gt;Sarika</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=9038&amp;oldid=prev</id>
		<title>wikipedia&gt;Plastikspork: Fix for simple piped links</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Template_parameter_value&amp;diff=9038&amp;oldid=prev"/>
		<updated>2021-05-25T13:57:00Z</updated>

		<summary type="html">&lt;p&gt;Fix for simple piped links&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local escape = require(&amp;quot;Module:String&amp;quot;)._escapePattern&lt;br /&gt;
function trimspaces(s)&lt;br /&gt;
	return string.gsub(s, &amp;quot;^%s*(.-)%s*$&amp;quot;, &amp;quot;%1&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getTitle(title)&lt;br /&gt;
	local success, titleObj = pcall(mw.title.new, title)&lt;br /&gt;
	if success then return titleObj&lt;br /&gt;
	else return nil end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require('Module:Arguments').getArgs(frame, {&lt;br /&gt;
		wrappers = 'Template:Template parameter value'&lt;br /&gt;
	})&lt;br /&gt;
	local template = escape(args[2])&lt;br /&gt;
	local parameter = escape(args[4])&lt;br /&gt;
	local numberedParameter = (tonumber(parameter) ~= nil)&lt;br /&gt;
	&lt;br /&gt;
	local templateCount = 0&lt;br /&gt;
	local parameterCount = 0&lt;br /&gt;
	local pipemarker = '~_~TPVPIPEMARKER~_~'&lt;br /&gt;
	local templateMatch = tonumber(args[3] or 1)&lt;br /&gt;
	local parameterMatch = tonumber(args[5] or 1)*(numberedParameter and parameter or 1)&lt;br /&gt;
	&lt;br /&gt;
	local targettitle = getTitle(args[1])&lt;br /&gt;
	if targettitle == nil then return &amp;quot;&amp;quot; end&lt;br /&gt;
    local content = string.gsub(targettitle:getContent() or &amp;quot;&amp;quot;, &amp;quot;[\r\n]&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	-- Escape some pipes&lt;br /&gt;
	content = string.gsub(content, '(%[%[[^%[{}]*)|([^%[%]{}]*%]%])', '%1' .. pipemarker ..'%2')&lt;br /&gt;
	&lt;br /&gt;
	while templateCount ~= templateMatch do&lt;br /&gt;
		if content == nil then return &amp;quot;&amp;quot; end&lt;br /&gt;
		content = string.match(content, '{{' .. template .. &amp;quot;(.+)&amp;quot;)&lt;br /&gt;
		templateCount = templateCount + 1&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	while parameterCount ~= parameterMatch do&lt;br /&gt;
		if content == nil then return &amp;quot;&amp;quot; end&lt;br /&gt;
		content = string.match(content, '|%s*' .. (numberedParameter and &amp;quot;&amp;quot; or parameter .. '%s*=%s*') .. '([^|].*)')&lt;br /&gt;
		parameterCount = parameterCount + 1&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if content == nil then return &amp;quot;&amp;quot; end&lt;br /&gt;
	&lt;br /&gt;
	content = string.gsub(content, &amp;quot;&amp;lt;/?%a*include%a*&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	content = string.match(content, '^([^|}]*{{[^}]+}}[^|}]*)|') or string.match(content, '([^|}]+)')&lt;br /&gt;
	content = string.gsub(content, pipemarker, '|')&lt;br /&gt;
	content = frame:preprocess{text = content}&lt;br /&gt;
	content = trimspaces(content)&lt;br /&gt;
	&lt;br /&gt;
	return content&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Plastikspork</name></author>
	</entry>
</feed>