<link href="../fonts/font.css" rel="stylesheet" type="text/css">

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
		<id>https://wiki.imaroof.ir/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AInfobox_college_coach%2Fconvert</id>
		<title>پودمان:Infobox college coach/convert - تاریخچهٔ ویرایش‌ها</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.imaroof.ir/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AInfobox_college_coach%2Fconvert"/>
		<link rel="alternate" type="text/html" href="https://wiki.imaroof.ir/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Infobox_college_coach/convert&amp;action=history"/>
		<updated>2026-08-08T08:23:25Z</updated>
		<subtitle>تاریخچهٔ ویرایش‌های این صفحه در ویکی</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://wiki.imaroof.ir/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Infobox_college_coach/convert&amp;diff=901&amp;oldid=prev</id>
		<title>Admin: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://wiki.imaroof.ir/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Infobox_college_coach/convert&amp;diff=901&amp;oldid=prev"/>
				<updated>2016-03-03T11:25:12Z</updated>
		
		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;' lang='fa'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;نسخهٔ ‏۱۳ اسفند ۱۳۹۴، ساعت ۱۱:۲۵&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='fa'&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>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.imaroof.ir/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Infobox_college_coach/convert&amp;diff=900&amp;oldid=prev</id>
		<title>Renamed user ea6416fc: Param names</title>
		<link rel="alternate" type="text/html" href="https://wiki.imaroof.ir/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Infobox_college_coach/convert&amp;diff=900&amp;oldid=prev"/>
				<updated>2015-08-05T19:54:38Z</updated>
		
		<summary type="html">&lt;p&gt;Param names&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- [SublimeLinter luacheck-globals:mw]&lt;br /&gt;
&lt;br /&gt;
-- This module serves to convert &amp;lt;br&amp;gt;-delimited teams/years parameters in&lt;br /&gt;
-- [[Template:Infobox college coach]] to their equivalent numbered pairs. Simply&lt;br /&gt;
-- replace &amp;quot;{{Infobox college coach&amp;quot; with&lt;br /&gt;
-- &amp;quot;{{subst:#invoke:Infobox college coach/convert|main&amp;quot; and press &amp;quot;Save&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local getBuffer, print = require(&amp;quot;Module:OutputBuffer&amp;quot;)()&lt;br /&gt;
&lt;br /&gt;
local function printfd(formatString, ...)&lt;br /&gt;
	local default = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local args, argsNum = {...}, select(&amp;quot;#&amp;quot;, ...)&lt;br /&gt;
	local newArgs = {}&lt;br /&gt;
	for i = 1, argsNum do&lt;br /&gt;
		if args[i] ~= nil then&lt;br /&gt;
			table.insert(newArgs, args[i])&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(newArgs, default)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	print(string.format(formatString, unpack(newArgs)))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function processTeamsYears(prefix, teams, years)&lt;br /&gt;
	local function extractItems(s, t)&lt;br /&gt;
		local sentinel = &amp;quot;😂&amp;quot;	-- WTF, Lua?&lt;br /&gt;
		string.gsub(string.gsub(s, &amp;quot;&amp;lt;[Bb][Rr] */?&amp;gt;&amp;quot;, &amp;quot; &amp;quot; .. sentinel .. &amp;quot; &amp;quot;),&lt;br /&gt;
			&amp;quot;[^&amp;quot; .. sentinel .. &amp;quot;]+&amp;quot;,&lt;br /&gt;
			function(c) table.insert(t, string.match(c, &amp;quot;^%s*(.-)%s*$&amp;quot;)) end)&lt;br /&gt;
	end&lt;br /&gt;
	local newTeams = {}&lt;br /&gt;
	extractItems(teams, newTeams)&lt;br /&gt;
	local newYears = {}&lt;br /&gt;
	extractItems(years, newYears)&lt;br /&gt;
&lt;br /&gt;
	if #newTeams ~= #newYears then&lt;br /&gt;
		printfd(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
			&amp;quot;%s_teams and %s_years are not of equal length. --&amp;gt;&amp;quot;,&lt;br /&gt;
			prefix, prefix)&lt;br /&gt;
		printfd(&amp;quot;| %s_teams = %s&amp;quot;, prefix, teams)&lt;br /&gt;
		printfd(&amp;quot;| %s_years = %s&amp;quot;, prefix, years)&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	c = 1&lt;br /&gt;
	for i = 1, #newTeams do&lt;br /&gt;
		if newYears[i] ~= &amp;quot;&amp;quot; or newTeams[i] ~= &amp;quot;&amp;quot; then&lt;br /&gt;
			if newTeams[i] == &amp;quot;&amp;quot; then&lt;br /&gt;
				printfd(&amp;quot;| %s_sport%s = %s&amp;quot;, prefix, c,&lt;br /&gt;
					string.match(newYears[i],  &amp;quot;^'*(.-)'*$&amp;quot;))&lt;br /&gt;
			elseif newYears[i] == &amp;quot;&amp;quot; then&lt;br /&gt;
				printfd(&amp;quot;| %s_sport%s = %s&amp;quot;, prefix, c,&lt;br /&gt;
					string.match(newTeams[i],  &amp;quot;^'*(.-)'*$&amp;quot;))&lt;br /&gt;
			else&lt;br /&gt;
				printfd(&amp;quot;| %s_years%s = %s&amp;quot;, prefix, c, newYears[i])&lt;br /&gt;
				printfd(&amp;quot;| %s_team%s = %s&amp;quot;, prefix, c, newTeams[i])&lt;br /&gt;
			end&lt;br /&gt;
			c = c + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	print(&amp;quot;{{Infobox college coach&amp;quot;)&lt;br /&gt;
	printfd(&amp;quot;| name = %s&amp;quot;, args.name)&lt;br /&gt;
	printfd(&amp;quot;| image = %s&amp;quot;, args.image)&lt;br /&gt;
	if args.image_upright then&lt;br /&gt;
		printfd(&amp;quot;| image_upright = %s&amp;quot;, args.image_upright)&lt;br /&gt;
	end&lt;br /&gt;
	printfd(&amp;quot;| alt = %s&amp;quot;, args.alt)&lt;br /&gt;
	printfd(&amp;quot;| caption = %s&amp;quot;, args.caption)&lt;br /&gt;
	printfd(&amp;quot;| sport = %s&amp;quot;, args.sport)&lt;br /&gt;
	if args.current_title or args.current_team or args.current_conference&lt;br /&gt;
			or args.current_record or args.contract then&lt;br /&gt;
		printfd(&amp;quot;| current_title = %s&amp;quot;, args.current_title)&lt;br /&gt;
		printfd(&amp;quot;| current_team = %s&amp;quot;, args.current_team)&lt;br /&gt;
		printfd(&amp;quot;| current_conference = %s&amp;quot;, args.current_conference)&lt;br /&gt;
		printfd(&amp;quot;| current_record = %s&amp;quot;, args.current_record)&lt;br /&gt;
		printfd(&amp;quot;| contract = %s&amp;quot;, args.contract)&lt;br /&gt;
	end&lt;br /&gt;
	printfd(&amp;quot;| birth_date = %s&amp;quot;, args.birth_date)&lt;br /&gt;
	printfd(&amp;quot;| birth_place = %s&amp;quot;, args.birth_place)&lt;br /&gt;
	printfd(&amp;quot;| death_date = %s&amp;quot;, args.death_date)&lt;br /&gt;
	printfd(&amp;quot;| death_place = %s&amp;quot;, args.death_place)&lt;br /&gt;
	printfd(&amp;quot;| alma_mater = %s&amp;quot;, args.alma_mater)&lt;br /&gt;
	if args.player_teams and args.player_years then&lt;br /&gt;
		processTeamsYears(&amp;quot;player&amp;quot;, args.player_teams, args.player_years)&lt;br /&gt;
	elseif args.player_teams then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has player_teams but no player_years. --&amp;gt;&amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| player_teams = %s&amp;quot;, args.player_teams)&lt;br /&gt;
		print(&amp;quot;| player_years = &amp;quot;)&lt;br /&gt;
	elseif args.player_years then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has player_years but no player_teams. --&amp;gt;&amp;quot;)&lt;br /&gt;
		print(&amp;quot;| player_teams = &amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| player_years = %s&amp;quot;, args.player_years)&lt;br /&gt;
	end&lt;br /&gt;
	if args.player_positions then&lt;br /&gt;
		printfd(&amp;quot;| player_positions = %s&amp;quot;, args.player_positions)&lt;br /&gt;
	end&lt;br /&gt;
	if args.coach_teams and args.coach_years then&lt;br /&gt;
		processTeamsYears(&amp;quot;coach&amp;quot;, args.coach_teams, args.coach_years)&lt;br /&gt;
	elseif args.coach_teams then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has coach_teams but no coach_years. --&amp;gt;&amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| coach_teams = %s&amp;quot;, args.coach_teams)&lt;br /&gt;
		print(&amp;quot;| coach_years = &amp;quot;)&lt;br /&gt;
	elseif args.coach_years then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has coach_years but no coach_teams. --&amp;gt;&amp;quot;)&lt;br /&gt;
		print(&amp;quot;| coach_teams = &amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| coach_years = %s&amp;quot;, args.coach_years)&lt;br /&gt;
	end&lt;br /&gt;
	if args.admin_teams and args.admin_years then&lt;br /&gt;
		processTeamsYears(&amp;quot;admin&amp;quot;, args.admin_teams, args.admin_years)&lt;br /&gt;
	elseif args.admin_teams then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has admin_teams but no admin_years. --&amp;gt;&amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| admin_teams = %s&amp;quot;, args.admin_teams)&lt;br /&gt;
		print(&amp;quot;| admin_years = &amp;quot;)&lt;br /&gt;
	elseif args.admin_years then&lt;br /&gt;
		print(&amp;quot;&amp;lt;!-- Template:Infobox college coach conversion error: &amp;quot; ..&lt;br /&gt;
		      &amp;quot;Template has admin_years but no admin_teams. --&amp;gt;&amp;quot;)&lt;br /&gt;
		print(&amp;quot;| admin_teams = &amp;quot;)&lt;br /&gt;
		printfd(&amp;quot;| admin_years = %s&amp;quot;, args.admin_years)&lt;br /&gt;
	end&lt;br /&gt;
	printfd(&amp;quot;| overall_record = %s&amp;quot;, args.overall_record)&lt;br /&gt;
	printfd(&amp;quot;| bowl_record = %s&amp;quot;, args.bowl_record)&lt;br /&gt;
	printfd(&amp;quot;| tournament_record = %s&amp;quot;, args.tournament_record)&lt;br /&gt;
	if args.CFbDWID then&lt;br /&gt;
		printfd(&amp;quot;| CFbDWID = %s&amp;quot;, args.CFbDWID)&lt;br /&gt;
	end&lt;br /&gt;
	printfd(&amp;quot;| championships = %s&amp;quot;, args.championships)&lt;br /&gt;
	printfd(&amp;quot;| awards = %s&amp;quot;, args.awards)&lt;br /&gt;
	printfd(&amp;quot;| coaching_records = %s&amp;quot;, args.coaching_records)&lt;br /&gt;
	if args.CFBHOF_year then&lt;br /&gt;
		printfd(&amp;quot;| CFBHOF_year = %s&amp;quot;, args.CFBHOF_year)&lt;br /&gt;
	end&lt;br /&gt;
	if args.BASKHOF_year then&lt;br /&gt;
		printfd(&amp;quot;| BASKHOF_year = %s&amp;quot;, args.BASKHOF_year)&lt;br /&gt;
	end&lt;br /&gt;
	if args.CBBASKHOF_year then&lt;br /&gt;
		printfd(&amp;quot;| CBBASKHOF_year = %s&amp;quot;, args.CBBASKHOF_year)&lt;br /&gt;
	end&lt;br /&gt;
	if args.CBASEHOF_year then&lt;br /&gt;
		printfd(&amp;quot;| CBASEHOF_year = %s&amp;quot;, args.CBASEHOF_year)&lt;br /&gt;
	end&lt;br /&gt;
	if args.CFBHOF_id then&lt;br /&gt;
		printfd(&amp;quot;| CFBHOF_id = %s&amp;quot;, args.CFBHOF_id)&lt;br /&gt;
	end&lt;br /&gt;
	if args.BASKHOF_id then&lt;br /&gt;
		printfd(&amp;quot;| BASKHOF_id = %s&amp;quot;, args.BASKHOF_id)&lt;br /&gt;
	end&lt;br /&gt;
	if args.medaltemplates then&lt;br /&gt;
		printfd(&amp;quot;| medaltemplates = %s&amp;quot;, args.medaltemplates)&lt;br /&gt;
	end&lt;br /&gt;
	if args[&amp;quot;show-medals&amp;quot;] then&lt;br /&gt;
		printfd(&amp;quot;| show-medals = %s&amp;quot;, args[&amp;quot;show-medals&amp;quot;])&lt;br /&gt;
	end&lt;br /&gt;
	print(&amp;quot;}}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	return getBuffer(&amp;quot;\n&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&amp;quot;Module:Arguments&amp;quot;).getArgs(frame)&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>Renamed user ea6416fc</name></author>	</entry>

	</feed>