<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AContext-link</id>
	<title>Module:Context-link - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AContext-link"/>
	<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:Context-link&amp;action=history"/>
	<updated>2026-04-20T03:03:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=11057&amp;oldid=prev</id>
		<title>WikiGOD at 05:27, 2 May 2021</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=11057&amp;oldid=prev"/>
		<updated>2021-05-02T05:27:40Z</updated>

		<summary type="html">&lt;p&gt;&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 05:27, 2 May 2021&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-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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;-- This module implements context-link templates.&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;-- This module implements context-link templates.&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;local p = {}&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 p = {}&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 getArgs = require(&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dev&lt;/del&gt;:Arguments&#039;).getArgs&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 getArgs = require(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Module&lt;/ins&gt;:Arguments&#039;).getArgs&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;br&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;br&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;-- Helper functions&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;-- Helper functions&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key zzegtzyr_mw19226-mwjf_:diff:1.41:old-10878:rev-11057:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiGOD</name></author>
	</entry>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10878&amp;oldid=prev</id>
		<title>WikiGOD: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10878&amp;oldid=prev"/>
		<updated>2021-04-30T02:23:50Z</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;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 02:23, 30 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key zzegtzyr_mw19226-mwjf_:diff:1.41:old-10859:rev-10878 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiGOD</name></author>
	</entry>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10859&amp;oldid=prev</id>
		<title>WikiGOD: Created page with &quot;-- &lt;nowiki&gt; -- This module implements context-link templates. local p = {} local getArgs = require(&#039;Dev:Arguments&#039;).getArgs  -- Helper functions  local function findnamespace(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10859&amp;oldid=prev"/>
		<updated>2021-04-30T01:45:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;nowiki&amp;gt; -- This module implements context-link templates. local p = {} local getArgs = require(&amp;#039;Dev:Arguments&amp;#039;).getArgs  -- Helper functions  local function findnamespace(...&amp;quot;&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 01:45, 30 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key zzegtzyr_mw19226-mwjf_:diff:1.41:old-10877:rev-10859 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiGOD</name></author>
	</entry>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10877&amp;oldid=prev</id>
		<title>Mediawiki&gt;Technobliterator: minor thing, but oxford comma</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:Context-link&amp;diff=10877&amp;oldid=prev"/>
		<updated>2019-12-23T03:13:41Z</updated>

		<summary type="html">&lt;p&gt;minor thing, but oxford comma&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
-- This module implements context-link templates.&lt;br /&gt;
local p = {}&lt;br /&gt;
local getArgs = require(&amp;#039;Dev:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
-- Helper functions&lt;br /&gt;
&lt;br /&gt;
local function findnamespace(link)&lt;br /&gt;
    local namespace = link:match(&amp;#039;^(.-):&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    if namespace then&lt;br /&gt;
        local namespaces = mw.site.namespaces[namespace]&lt;br /&gt;
        if namespaces then&lt;br /&gt;
            return namespaces.id&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return 0&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
local function linkformat(link, display)&lt;br /&gt;
    local namespace = findnamespace(link, false)&lt;br /&gt;
    local colon&lt;br /&gt;
&lt;br /&gt;
    if namespace == 6 or namespace == 14 then&lt;br /&gt;
        colon = &amp;#039;:&amp;#039;&lt;br /&gt;
    else&lt;br /&gt;
        colon = &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    -- Find the display value.&lt;br /&gt;
    if not display then&lt;br /&gt;
        local page, section = link:match(&amp;#039;^(.-)#(.*)$&amp;#039;)&lt;br /&gt;
        if page then&lt;br /&gt;
            display = page .. &amp;#039; § &amp;#039; .. section&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    -- Assemble the link.&lt;br /&gt;
    if display then&lt;br /&gt;
        return string.format(&amp;#039;[[%s%s|%s]]&amp;#039;, colon, link, display)&lt;br /&gt;
    else&lt;br /&gt;
        return string.format(&amp;#039;[[%s%s]]&amp;#039;, colon, link)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function build(desc, links, options)&lt;br /&gt;
    local linktext&lt;br /&gt;
    &lt;br /&gt;
    if next(links) == nil then&lt;br /&gt;
        linktext = &amp;#039;...&amp;#039;&lt;br /&gt;
    else&lt;br /&gt;
        linktext = table.concat(links, &amp;#039;, &amp;#039;, 1, #links - 1)&lt;br /&gt;
    &lt;br /&gt;
        if #links &amp;gt; 1 then&lt;br /&gt;
            linktext = linktext .. &amp;#039;, or &amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
        linktext = linktext .. links[#links]&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local container = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;context-link&amp;#039;)&lt;br /&gt;
        :addClass(options.extraclasses)&lt;br /&gt;
        :cssText(options.extrastyles)&lt;br /&gt;
        :wikitext(desc .. &amp;#039; &amp;#039; .. linktext)&lt;br /&gt;
&lt;br /&gt;
    return tostring(container)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Produces standard context-link text.&lt;br /&gt;
function p.contextlink(frame)&lt;br /&gt;
    local args = getArgs(frame)&lt;br /&gt;
    local desc = args.desc or &amp;#039;For another page, see&amp;#039;&lt;br /&gt;
    local links = {}&lt;br /&gt;
    for i, link in ipairs(args) do&lt;br /&gt;
        local display = args[&amp;#039;t&amp;#039; .. i]&lt;br /&gt;
        table.insert(links, linkformat(link, display))&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local options = {}&lt;br /&gt;
    options.extraclasses = args.class&lt;br /&gt;
    options.extrastyles = args.style&lt;br /&gt;
    return build(desc, links, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
-- &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mediawiki&gt;Technobliterator</name></author>
	</entry>
</feed>