<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ARegex</id>
	<title>Template:Regex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ARegex"/>
	<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Regex&amp;action=history"/>
	<updated>2026-04-20T08:18:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Regex&amp;diff=1555&amp;oldid=prev</id>
		<title>NMcLarty27: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Regex&amp;diff=1555&amp;oldid=prev"/>
		<updated>2024-01-12T15:41:10Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:41, 12 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>NMcLarty27</name></author>
	</entry>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Regex&amp;diff=1554&amp;oldid=prev</id>
		<title>en&gt;Frietjes: null edit</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Regex&amp;diff=1554&amp;oldid=prev"/>
		<updated>2023-03-24T16:55:27Z</updated>

		<summary type="html">&lt;p&gt;null edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
Make a search link.&lt;br /&gt;
--&amp;gt;{{plain link&lt;br /&gt;
  |url = &lt;br /&gt;
    {{fullurl:Special:Search|search=&amp;lt;!--&lt;br /&gt;
        --&amp;gt;{{urlencode:&amp;lt;!-- encodes spaces, so let&amp;#039;s avoid unnecessary spaces.&lt;br /&gt;
          Add the &amp;quot;insource:&amp;quot; and its regex /slash delimiters/ &lt;br /&gt;
          --&amp;gt;insource:/{{{pattern|{{{1|&amp;#039;&amp;#039;regexp&amp;#039;&amp;#039;}}}}}}/&amp;lt;!--  &lt;br /&gt;
&lt;br /&gt;
          Add &amp;quot;prefix:&amp;quot; You see the space before it.&lt;br /&gt;
          --&amp;gt; prefix:&amp;lt;!--&lt;br /&gt;
          --&amp;gt;{{#switch:&amp;lt;!-- add namespace &amp;quot;numbers and letters&amp;quot; recognition --&amp;gt;&lt;br /&gt;
            {{{prefix|{{{2|}}}}}}&lt;br /&gt;
            |#default = {{{prefix|{{FULLPAGENAME}}}}}&lt;br /&gt;
            |n = {{NAMESPACE}}&lt;br /&gt;
            |0|: = :&lt;br /&gt;
            |1 = {{ns:1}}:&lt;br /&gt;
            |2 = {{ns:2}}:&lt;br /&gt;
            |3 = {{ns:3}}:&lt;br /&gt;
            |4 = {{ns:4}}:&lt;br /&gt;
            |5 = {{ns:5}}:&lt;br /&gt;
            |6 = {{ns:6}}:&lt;br /&gt;
            |7 = {{ns:7}}:&lt;br /&gt;
            |8 = {{ns:8}}:&lt;br /&gt;
            |9 = {{ns:9}}:&lt;br /&gt;
            |10 = {{ns:10}}:&lt;br /&gt;
            |11 = {{ns:11}}:&lt;br /&gt;
            |12 = {{ns:12}}:&lt;br /&gt;
            |13 = {{ns:13}}:&lt;br /&gt;
            |14 = {{ns:14}}:&lt;br /&gt;
            |15 = {{ns:15}}:&lt;br /&gt;
            |100 = {{ns:100}}:&lt;br /&gt;
            |101 = {{ns:101}}:&lt;br /&gt;
            |118 = {{ns:118}}:&lt;br /&gt;
            |119 = {{ns:119}}:&lt;br /&gt;
            |710 = {{ns:710}}:&lt;br /&gt;
            |711 = {{ns:711}}:&lt;br /&gt;
            |828 = {{ns:828}}:&lt;br /&gt;
            |829 = {{ns:829}}:&lt;br /&gt;
          }}&lt;br /&gt;
        }}&amp;lt;!-- End urlencode. --&amp;gt;&lt;br /&gt;
      }}&amp;lt;!-- End fullurl&lt;br /&gt;
    url done&lt;br /&gt;
    Now for name param of plainlinks.&lt;br /&gt;
&lt;br /&gt;
  Appearance of link looks just like the query, unless labeled. --&amp;gt;&lt;br /&gt;
  |name = &lt;br /&gt;
    {{#if: &lt;br /&gt;
      {{{label|{{{3|}}}}}}&lt;br /&gt;
      |{{{label|{{{3}}}}}}&lt;br /&gt;
      |insource:/&amp;lt;!-- rebuilding the query for show this time&lt;br /&gt;
      You saw the &amp;quot;insource:&amp;quot; output.&lt;br /&gt;
&lt;br /&gt;
      Plainlink&amp;#039;s name can&amp;#039;t have [[ or ], else it breaks the display.&lt;br /&gt;
      --&amp;gt;{{#invoke:String|replace&lt;br /&gt;
        |{{#invoke:String|replace&lt;br /&gt;
          |{{{pattern|{{{1|regexp}}}}}}&amp;lt;!-- Given pattern&lt;br /&gt;
        --&amp;gt;|[|&amp;amp;#91;}}&amp;lt;!-- Replace any/all [ with HTML symbol&lt;br /&gt;
      --&amp;gt;|]|&amp;amp;#93;}}/&amp;lt;!-- replace any/all ] with there HTML symbol&lt;br /&gt;
      You saw the / added at the end of insource:/regex/&lt;br /&gt;
&lt;br /&gt;
    And now for the prefix part of the name plainlinks needs.&lt;br /&gt;
    You see the space before the &amp;quot;prefix:&amp;quot; output.&lt;br /&gt;
    --&amp;gt; prefix:&amp;lt;!--&lt;br /&gt;
      --&amp;gt;{{#switch:&lt;br /&gt;
        {{{prefix|{{{2|}}}}}}&lt;br /&gt;
        |#default = {{{prefix|{{FULLPAGENAME}}}}}&lt;br /&gt;
        |n = {{NAMESPACE}}&lt;br /&gt;
        |0|: = &amp;amp;#58;   &amp;lt;!-- html-symbol escape the : from the template rendering--&amp;gt;&lt;br /&gt;
        |1 = {{ns:1}}:&lt;br /&gt;
        |2 = {{ns:2}}:&lt;br /&gt;
        |3 = {{ns:3}}:&lt;br /&gt;
        |4 = {{ns:4}}:&lt;br /&gt;
        |5 = {{ns:5}}:&lt;br /&gt;
        |6 = {{ns:6}}:&lt;br /&gt;
        |7 = {{ns:7}}:&lt;br /&gt;
        |8 = {{ns:8}}:&lt;br /&gt;
        |9 = {{ns:9}}:&lt;br /&gt;
        |10 = {{ns:10}}:&lt;br /&gt;
        |11 = {{ns:11}}:&lt;br /&gt;
        |12 = {{ns:12}}:&lt;br /&gt;
        |13 = {{ns:13}}:&lt;br /&gt;
        |14 = {{ns:14}}:&lt;br /&gt;
        |15 = {{ns:15}}:&lt;br /&gt;
        |100 = {{ns:100}}:&lt;br /&gt;
        |101 = {{ns:101}}:&lt;br /&gt;
        |118 = {{ns:118}}:&lt;br /&gt;
        |119 = {{ns:119}}:&lt;br /&gt;
        |710 = {{ns:710}}:&lt;br /&gt;
        |711 = {{ns:711}}:&lt;br /&gt;
        |828 = {{ns:828}}:&lt;br /&gt;
        |829 = {{ns:829}}:&lt;br /&gt;
      }}&lt;br /&gt;
    }}&amp;lt;!-- end #if: {{{label}}} or {{{3}}}&lt;br /&gt;
  name done --&amp;gt;&lt;br /&gt;
}}&amp;lt;!-- End of plainlinks&lt;br /&gt;
--&amp;gt;&amp;lt;/onlyinclude&amp;gt;&amp;lt;noinclude&amp;gt;{{documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Frietjes</name></author>
	</entry>
</feed>