<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oer.teacher-network.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate</id>
	<title>Module:Template - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oer.teacher-network.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate"/>
	<link rel="alternate" type="text/html" href="https://oer.teacher-network.in/index.php?title=Module:Template&amp;action=history"/>
	<updated>2026-06-10T17:50:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://oer.teacher-network.in/index.php?title=Module:Template&amp;diff=629&amp;oldid=prev</id>
		<title>Oeradmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://oer.teacher-network.in/index.php?title=Module:Template&amp;diff=629&amp;oldid=prev"/>
		<updated>2016-10-07T12:41:12Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local template = {}&lt;br /&gt;
&lt;br /&gt;
function template.page(frame)&lt;br /&gt;
    local title, subst = frame.args[1] or frame:getParent().args[1] or &amp;#039;&amp;#039;&lt;br /&gt;
    &lt;br /&gt;
    -- whether title is subst:page, safesubst:page, or page&lt;br /&gt;
    title = mw.ustring.gsub( title, &amp;#039;^%s*(s?a?f?e?subst):&amp;#039;, function(what)&lt;br /&gt;
        if what == &amp;#039;subst&amp;#039; or what == &amp;#039;safesubst&amp;#039; then subst = what; return &amp;#039;&amp;#039; end&lt;br /&gt;
    end, 1 )&lt;br /&gt;
    &lt;br /&gt;
    local success, page = pcall(function(title) return mw.title.new( title, 10 ) end, title or &amp;#039;&amp;#039; )&lt;br /&gt;
    &lt;br /&gt;
    if not success or not page then return &amp;#039;&amp;#039; end&lt;br /&gt;
    if page.interwiki ~= &amp;quot;&amp;quot; then title = mw.ustring.sub( title, page.interwiki:len()+2 ) end&lt;br /&gt;
    if page.fragment ~= &amp;quot;&amp;quot; then title = mw.ustring:sub( title, 1, -page.fragment:len()-2 ) end&lt;br /&gt;
    if subst then subst = table.concat({ &amp;#039;[[Help:Templates#Substitution|&amp;#039;, subst, &amp;#039;]]&amp;amp;#58;&amp;#039; }) end&lt;br /&gt;
    &lt;br /&gt;
    return table.concat({ subst or &amp;#039;&amp;#039;, &amp;#039;[[:&amp;#039;, page.fullText, &amp;#039;|&amp;#039;, title, &amp;#039;]]&amp;#039;})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function template.example(frame)&lt;br /&gt;
    local args, page, result = frame.args[1] and frame.args or frame:getParent().args, template.page(frame), {}&lt;br /&gt;
    &lt;br /&gt;
    if page == &amp;#039;&amp;#039; then&lt;br /&gt;
        return &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    for name, value in pairs( args ) do&lt;br /&gt;
        if type( name ) == &amp;#039;string&amp;#039; then&lt;br /&gt;
            table.insert( result, table.concat({ &amp;#039;&amp;amp;#124;&amp;lt;tt&amp;gt;&amp;#039;, name, &amp;#039;&amp;amp;#61;&amp;#039;, value, &amp;#039;&amp;lt;/tt&amp;gt;&amp;#039; }) )&lt;br /&gt;
        elseif name ~= 1 then&lt;br /&gt;
            table.insert( result, table.concat({ &amp;#039;&amp;amp;#124;&amp;lt;tt&amp;gt;&amp;#039;, value, &amp;#039;&amp;lt;/tt&amp;gt;&amp;#039; }) )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return table.concat({ &amp;#039;{{&amp;#039;, page, table.concat( result ), &amp;#039;}}&amp;#039; })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return template&lt;/div&gt;</summary>
		<author><name>Oeradmin</name></author>
	</entry>
</feed>