<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACite_message</id>
	<title>Module:Cite message - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACite_message"/>
	<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=Module:Cite_message&amp;action=history"/>
	<updated>2026-04-09T17:29:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://irony.wiki/index.php?title=Module:Cite_message&amp;diff=7375&amp;oldid=prev</id>
		<title>Saucy: fix regex</title>
		<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=Module:Cite_message&amp;diff=7375&amp;oldid=prev"/>
		<updated>2023-04-29T09:14:54Z</updated>

		<summary type="html">&lt;p&gt;fix regex&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:14, 29 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local channel = args.channel&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local channel = args.channel&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if channel then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if channel then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         local channelmatch = mw.ustring.match(channel, &quot;^(#?)[^&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\\&lt;/del&gt;sA-Z]+$&quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         local channelmatch = mw.ustring.match(channel, &quot;^(#?)[^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;%&lt;/ins&gt;sA-Z]+$&quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if channelmatch then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if channelmatch then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             if channelmatch[1] ~= &amp;quot;#&amp;quot; then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             if channelmatch[1] ~= &amp;quot;#&amp;quot; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Saucy</name></author>
	</entry>
	<entry>
		<id>https://irony.wiki/index.php?title=Module:Cite_message&amp;diff=3898&amp;oldid=prev</id>
		<title>Saucy: the</title>
		<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=Module:Cite_message&amp;diff=3898&amp;oldid=prev"/>
		<updated>2022-07-21T07:40:38Z</updated>

		<summary type="html">&lt;p&gt;the&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Implements {{Cite message}}&lt;br /&gt;
-- {{cite message|author=|date=|content=|server=|channel=|link=}}&lt;br /&gt;
-- Author (Date): &amp;quot;Content&amp;quot;. &amp;#039;&amp;#039;Server&amp;#039;&amp;#039; #Channel. [Link]&lt;br /&gt;
&lt;br /&gt;
local getArgs = require(&amp;quot;Module:Arguments&amp;quot;).getArgs&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Surrounds middle with left on the left and right on the right, unless middle is nil, in which case it returns nil.&lt;br /&gt;
local function surround(middle, left, right)&lt;br /&gt;
    if middle then&lt;br /&gt;
        return left .. middle .. right&lt;br /&gt;
    else&lt;br /&gt;
        return nil&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- If neither left or right are nil, then returns left concatenated with right with sep as a separator. If only one of left and right is nil, the other is returned. If both are nil, nil is returned.&lt;br /&gt;
local function combine2(left, right, sep)&lt;br /&gt;
    if left and right then&lt;br /&gt;
        return left .. sep .. right&lt;br /&gt;
    elseif left then&lt;br /&gt;
        return left&lt;br /&gt;
    elseif right then&lt;br /&gt;
        return right&lt;br /&gt;
    else&lt;br /&gt;
        return nil&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = getArgs(frame)&lt;br /&gt;
    return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
    local ftable = {}&lt;br /&gt;
&lt;br /&gt;
    local authordate = combine2(args.author, surround(args.date, &amp;#039;(&amp;#039;, &amp;#039;)&amp;#039;), &amp;quot; &amp;quot;)&lt;br /&gt;
    local authordatecontent = combine2(authordate, surround(args.content, &amp;#039;&amp;quot;&amp;#039;, &amp;#039;&amp;quot;&amp;#039;), &amp;quot;: &amp;quot;)&lt;br /&gt;
    table.insert(ftable, authordatecontent)&lt;br /&gt;
&lt;br /&gt;
    local channel = args.channel&lt;br /&gt;
    if channel then&lt;br /&gt;
        local channelmatch = mw.ustring.match(channel, &amp;quot;^(#?)[^\\sA-Z]+$&amp;quot;)&lt;br /&gt;
        if channelmatch then&lt;br /&gt;
            if channelmatch[1] ~= &amp;quot;#&amp;quot; then&lt;br /&gt;
                channel = &amp;quot;#&amp;quot; .. channel&lt;br /&gt;
            end&lt;br /&gt;
        end &lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local serverchannel = combine2(surround(args.server, &amp;quot;&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;&amp;quot;), channel, &amp;quot; &amp;quot;)&lt;br /&gt;
    table.insert(ftable, serverchannel)&lt;br /&gt;
&lt;br /&gt;
    local link = surround(args.link, &amp;quot;[&amp;quot;, &amp;quot; Link]&amp;quot;)&lt;br /&gt;
    table.insert(ftable, link)&lt;br /&gt;
&lt;br /&gt;
    return table.concat(ftable, &amp;quot;. &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Saucy</name></author>
	</entry>
</feed>