<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASee%2Fcore</id>
	<title>Module:See/core - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASee%2Fcore"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:See/core&amp;action=history"/>
	<updated>2026-04-17T19:58:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Module:See/core&amp;diff=3401&amp;oldid=prev</id>
		<title>imported&gt;Fire: ページの作成:「local p = {}  function p.GetLink(frame)     local link = frame.args[1]     local display = frame.args[2]      -- 第一引数の値が技術的に利用可能な記事名…」</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:See/core&amp;diff=3401&amp;oldid=prev"/>
		<updated>2020-08-22T23:39:39Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「local p = {}  function p.GetLink(frame)     local link = frame.args[1]     local display = frame.args[2]      -- 第一引数の値が技術的に利用可能な記事名…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.GetLink(frame)&lt;br /&gt;
    local link = frame.args[1]&lt;br /&gt;
    local display = frame.args[2]&lt;br /&gt;
&lt;br /&gt;
    -- 第一引数の値が技術的に利用可能な記事名でない場合、&lt;br /&gt;
    -- 第一引数の値をそのまま返す&lt;br /&gt;
    local IsValidPageName = require(&amp;#039;Module:IsValidPageName&amp;#039;)&lt;br /&gt;
    if IsValidPageName.isValidPageName(frame) == &amp;quot;&amp;quot; then&lt;br /&gt;
        return link&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if display == &amp;quot;&amp;quot; then&lt;br /&gt;
        display = nil&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return p._formatLink(link, display)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._formatLink(link, display)&lt;br /&gt;
    -- Remove the initial colon for links where it was specified manually.&lt;br /&gt;
    link = link:match(&amp;#039;^:?(.*)&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    -- Find whether a faux display value has been added with the {{!}} magic&lt;br /&gt;
    -- word.&lt;br /&gt;
    if not display then&lt;br /&gt;
        local prePipe, postPipe = link:match(&amp;#039;^(.-)|(.*)$&amp;#039;)&lt;br /&gt;
        link = prePipe or link&lt;br /&gt;
        display = postPipe&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(&lt;br /&gt;
            &amp;#039;[[:%s|%s]]&amp;#039;,&lt;br /&gt;
            string.gsub(link, &amp;#039;|(.*)$&amp;#039;, &amp;#039;&amp;#039;), --display overwrites manual piping&lt;br /&gt;
            display&lt;br /&gt;
        )&lt;br /&gt;
    else&lt;br /&gt;
        return string.format(&amp;#039;[[:%s]]&amp;#039;, link)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Fire</name></author>
	</entry>
</feed>