<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AItalic_title</id>
	<title>Module:Italic title - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AItalic_title"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Italic_title&amp;action=history"/>
	<updated>2026-04-07T11:41:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:Italic_title&amp;diff=13249&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Italic_title&amp;diff=13249&amp;oldid=prev"/>
		<updated>2013-10-31T17:27:58Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{italic title}}.&lt;br /&gt;
 &lt;br /&gt;
local p = {}&lt;br /&gt;
 &lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    -- Process the arguments.&lt;br /&gt;
    local args&lt;br /&gt;
    if frame == mw.getCurrentFrame() then&lt;br /&gt;
        args = frame:getParent().args&lt;br /&gt;
        for k, v in pairs(frame.args) do&lt;br /&gt;
            args = frame.args&lt;br /&gt;
            break&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        args = frame&lt;br /&gt;
    end    &lt;br /&gt;
 &lt;br /&gt;
    local title = mw.title.getCurrentTitle() -- Get the current page object.&lt;br /&gt;
    -- Find the parts before and after the disambiguation parentheses, if any.&lt;br /&gt;
    local prefix, parentheses = mw.ustring.match(title.text, '^(.+) (%([^%(%)]+%))$')&lt;br /&gt;
    -- If parentheses were found, italicise only the part before them. Otherwise&lt;br /&gt;
    -- italicise the whole title.&lt;br /&gt;
    local result&lt;br /&gt;
    if prefix and parentheses and args.all ~= 'yes' then&lt;br /&gt;
        result = &amp;quot;''&amp;quot; .. prefix .. &amp;quot;'' &amp;quot; .. parentheses&lt;br /&gt;
    else&lt;br /&gt;
        result = &amp;quot;''&amp;quot; .. title.text .. &amp;quot;''&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    -- Add the namespace if it exists.&lt;br /&gt;
    if title.nsText and title.nsText ~= &amp;quot;&amp;quot; then&lt;br /&gt;
        result = title.nsText .. ':' .. result&lt;br /&gt;
    end&lt;br /&gt;
    -- Call displaytitle with the text we generated.&lt;br /&gt;
    return mw.getCurrentFrame():callParserFunction( 'DISPLAYTITLE', result )&lt;br /&gt;
end    &lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>