<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AFootnotes%2Fanchor_id_list%2Fdata</id>
	<title>Module:Footnotes/anchor id list/data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AFootnotes%2Fanchor_id_list%2Fdata"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:Footnotes/anchor_id_list/data&amp;action=history"/>
	<updated>2026-04-04T14:57:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Module:Footnotes/anchor_id_list/data&amp;diff=6358&amp;oldid=prev</id>
		<title>&gt;Trappist the monk: -cite LSA support; template deleted;</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:Footnotes/anchor_id_list/data&amp;diff=6358&amp;oldid=prev"/>
		<updated>2024-07-17T17:28:51Z</updated>

		<summary type="html">&lt;p&gt;-cite LSA support; template deleted;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- copied from Module:Ref info/data - maybe overkill here?&lt;br /&gt;
-- for this application make lists from the redirect lists and force all template names first character uppercase&lt;br /&gt;
&lt;br /&gt;
require(&amp;#039;strict&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C S 1 _ T E M P L A T E _ P A T T E R N S &amp;gt;------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for cs1 templates and their redirects.  These patterns exclude redirects that are vcite-like&lt;br /&gt;
which redirects should be deleted because vcite is not cs1.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local cs1_template_patterns = {													-- lua patterns of the cannonical names and redirects&lt;br /&gt;
	&amp;#039;[Cc]ite ar[Xx]iv&amp;#039;,															-- arXiv is the canonical name&lt;br /&gt;
		&amp;#039;[Cc]ite ArXiv&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite AV media&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite audio&amp;#039;, &amp;#039;[Cc]ite AV&amp;#039;, &amp;#039;[Cc]ite AV ?Media&amp;#039;, &amp;#039;[Cc]ite av media&amp;#039;, &lt;br /&gt;
		&amp;#039;[Cc]ite cd&amp;#039;, &amp;#039;[Cc]ite DVD&amp;#039;, &amp;#039;[Cc]ite dvd&amp;#039;, &amp;#039;[Cc]ite film&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite image&amp;#039;, &amp;#039;[Cc]ite media&amp;#039;, &amp;#039;[Cc]ite movie&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite music video&amp;#039;, &amp;#039;[Cc]ite radio&amp;#039;, &amp;#039;[Cc]ite song&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite ?video&amp;#039;, &amp;#039;[Cc]ite visual&amp;#039;, &amp;#039;[Cc]ite You[Tt]ube&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ita vídeo&amp;#039;,														-- non-English redirect; TODO: tally separately?&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite AV media notes&amp;#039;,													-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite album[ %-]notes&amp;#039;, &amp;#039;[Cc]ite av media notes&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite DVD[ %-]notes&amp;#039;, &amp;#039;[Cc]ite dvd%-notes&amp;#039;, &amp;#039;[Cc]ite liner notes&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite music release notes&amp;#039;, &amp;#039;[Ll]iner notes&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite bio[Rr]xiv&amp;#039;,														-- bioRxiv is the canonical form&lt;br /&gt;
	&amp;#039;[Cc]ite [Bb]ook&amp;#039;,															-- book is the canonical form&lt;br /&gt;
		&amp;#039;[Bb]ook cite&amp;#039;, &amp;#039;[Bb]ook reference&amp;#039;, &amp;#039;[Bb]ook reference url&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc] book&amp;#039;, &amp;#039;[Cc]it book&amp;#039;, &amp;#039;[Cc]ite books&amp;#039;, &amp;#039;[Cc]ite chapter&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite ebook&amp;#039;, &amp;#039;[Cc]ite manual&amp;#039;, &amp;#039;[Cc]ite page&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite publication&amp;#039;, &amp;#039;[Cc]ite score&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite work&amp;#039;, &amp;#039;[Cc]ite%-?book&amp;#039;, &lt;br /&gt;
		&amp;#039;[Bb]okref&amp;#039;, &amp;#039;[Cc]itace monografie&amp;#039;, &amp;#039;[Cc]itar livro&amp;#039;,					-- non-English redirects; TODO: tally separately?&lt;br /&gt;
		&amp;#039;[Cc]iteer boek&amp;#039;, &amp;#039;[Oo]uvrage&amp;#039;, &amp;#039;[Rr]ef%-llibre&amp;#039;, &amp;#039;서적 인용&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite citeseerx&amp;#039;,														-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite conference&amp;#039;,														-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ita conferenza&amp;#039;, &amp;#039;[Cc]ite proceedings&amp;#039;, &amp;#039;[Cc]onference reference&amp;#039;,	-- cita conferenza is non-English; TODO: tally separately?&lt;br /&gt;
		&lt;br /&gt;
	&amp;#039;[Cc]ite ?encyclopedia&amp;#039;,													-- cite encyclopedia is the canonical name&lt;br /&gt;
		&amp;#039;[Cc]ite contribution&amp;#039;, &amp;#039;[Cc]ite dic&amp;#039;, &amp;#039;[Cc]ite dictionary&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite encyclopaedia&amp;#039;, &amp;#039;[Cc]ite encyclopædia&amp;#039;, &amp;#039;[Ee]ncyclopedia&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite [Ee]pisode&amp;#039;,														-- episode is the canonical form&lt;br /&gt;
		&amp;#039;[Cc]ite show&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite interview&amp;#039;,														-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite ?journal&amp;#039;,															-- cite journal is the canonical form&lt;br /&gt;
		&amp;#039;[Cc] journal&amp;#039;, &amp;#039;[Cc]itation journal&amp;#039;, &amp;#039;[Cc]ite abstract&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite document&amp;#039;, &amp;#039;[Cc]ite Journal&amp;#039;, &amp;#039;[Cc]ite journal zh&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite ?paper&amp;#039;, &amp;#039;[Vv]cite2 journal&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ita pubblicazione&amp;#039;, &amp;#039;[Cc]itace periodika&amp;#039;, &amp;#039;[Cc]itar jornal&amp;#039;,		-- non-English redirects; TODO: tally separately?&lt;br /&gt;
		&amp;#039;[Cc]itar publicació&amp;#039;, &amp;#039;[Cc]ytuj pismo&amp;#039;, &amp;#039;[Tt]idskriftsref&amp;#039;,&lt;br /&gt;
		&amp;#039;Навод из стручног часописа&amp;#039;, &amp;#039;저널 인용&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite [Mm]agazine&amp;#039;,														-- magazine is the canonical form&lt;br /&gt;
		&amp;#039;[Cc]ite mag&amp;#039;, &amp;#039;[Cc]ite magazine article&amp;#039;, &amp;#039;[Cc]ite newsletter&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite periodical&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite mailing ?list&amp;#039;,													-- mailing list is the canonical form&lt;br /&gt;
		&amp;#039;[Cc]ite list&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite maps?&amp;#039;,															-- map is the canonical form&lt;br /&gt;
	&amp;#039;[Cc]ite[ %-]?news&amp;#039;,														-- cite news is the canonical form&lt;br /&gt;
		&amp;#039;[Cc] news&amp;#039;, &amp;#039;[Cc]it news&amp;#039;, &amp;#039;[Cc]itation news&amp;#039;, &amp;#039;[Cc]ite article&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite n&amp;#039;, &amp;#039;[Cc]ite new&amp;#039;, &amp;#039;[Cc]ite newspaper&amp;#039;, &amp;#039;[Cc]ite News&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite news%-q&amp;#039;, &amp;#039;[Cc]ite news2&amp;#039;, &amp;#039;[Cc]itenewsauthor&amp;#039;, &amp;#039;[Cc]ute news&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]itar notícia&amp;#039;, &amp;#039;[Hh]aber kaynağı&amp;#039;, &amp;#039;[Tt]idningsref&amp;#039;, &amp;#039;استشهاد بخبر&amp;#039;,	-- non-English redirects; TODO: tally separately?&lt;br /&gt;
		&amp;#039;뉴스 인용&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite newsgroup&amp;#039;,														-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite usenet&amp;#039;,&lt;br /&gt;
		&lt;br /&gt;
	&amp;#039;[Cc]ite podcast&amp;#039;,															-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite [Pp]ress release&amp;#039;,													-- press release is the canonical form&lt;br /&gt;
		&amp;#039;[Cc]ite media release&amp;#039;, &amp;#039;[Cc]ite news release&amp;#039;, &amp;#039;[Cc]ite pr&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite press&amp;#039;, &amp;#039;[Cc]ite press release%.&amp;#039;, &amp;#039;[Cc]ite press[%-]?release&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite report&amp;#039;,															-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite serial&amp;#039;,															-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite sign&amp;#039;,																-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite plaque&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite speech&amp;#039;,															-- canonical&lt;br /&gt;
	&amp;#039;[Cc]ite ssrn&amp;#039;,																-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite SSRN&amp;#039;,&lt;br /&gt;
		&lt;br /&gt;
	&amp;#039;[Cc]ite tech ?report&amp;#039;,														-- techreport is the canonical form&lt;br /&gt;
		&amp;#039;[Cc]ite standard&amp;#039;, &amp;#039;[Cc]ite technical report&amp;#039;, &amp;#039;[Tt]echrep reference&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite thesis&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Cc]ite dissertation&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]itar tese&amp;#039;,														-- non-English redirect; TODO: tally separately?&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Cc]ite [Ww]eb&amp;#039;,															-- web is the canonical form&lt;br /&gt;
		&amp;#039;[Cc] web&amp;#039;, &amp;#039;[Cc]it web&amp;#039;, &amp;#039;[Cc]ite blog&amp;#039;, &amp;#039;[Cc]ite URL&amp;#039;, &amp;#039;[Cc]ite url&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite w&amp;#039;, &amp;#039;[Cc]ite wb&amp;#039;, &amp;#039;[Cc]ite we&amp;#039;, &amp;#039;[Cc]ite web%.&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite webpage&amp;#039;, &amp;#039;[Cc]ite website&amp;#039;, &amp;#039;[Cc]ite website article&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite%-?web&amp;#039;, &amp;#039;[Cc]itweb&amp;#039;, &amp;#039;[Cc]w&amp;#039;, &amp;#039;[Rr]ef web&amp;#039;, &amp;#039;[Ww]eb citation&amp;#039;,&lt;br /&gt;
		&amp;#039;[Ww]eb cite&amp;#039;, &amp;#039;[Ww]eb link&amp;#039;, &amp;#039;[Ww]eb[ %-]reference&amp;#039;, &amp;#039;[Ww]eblink&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]hú thích web&amp;#039;, &amp;#039;[Cc]ita web&amp;#039;, &amp;#039;[Cc]itace elektronické monografie&amp;#039;,	-- non-English redirects; TODO: tally separately?&lt;br /&gt;
		&amp;#039;[Cc]itat web&amp;#039;, &amp;#039;مرجع ويب&amp;#039;, &amp;#039;یادکرد وب&amp;#039;, &amp;#039;웹 인용&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C S 2 _ T E M P L A T E _ P A T T E R N S &amp;gt;------------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for cs2 templates redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local cs2_template_patterns = {													-- lua patterns of the cannonical names and redirects&lt;br /&gt;
	&amp;#039;[Cc]itation&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite&amp;#039;, &amp;#039;[Cc]ite citation&amp;#039;, &amp;#039;[Cc]ite study&amp;#039;,&lt;br /&gt;
		&amp;#039;[Cc]ite [Tt]echnical standard&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; V C I T E _ T E M P L A T E _ P A T T E R N S &amp;gt;--------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for Vcite-family templates and their redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local vcite_template_patterns = {&lt;br /&gt;
	&amp;#039;[Vv]cite book&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Vv]ancite book&amp;#039;, &amp;#039;[Vv]ancite report&amp;#039;, &amp;#039;[Vv]cite encyclopedia&amp;#039;,&lt;br /&gt;
		&amp;#039;[Vv]cite report&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Vv]cite journal&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Cc]it journal&amp;#039;, &amp;#039;[Cc]it paper&amp;#039;, &amp;#039;[Vv]ancite journal&amp;#039;, &amp;#039;[Vv]cite paper&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Vv]cite news&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Vv]ancite news&amp;#039;,&lt;br /&gt;
&lt;br /&gt;
	&amp;#039;[Vv]cite web&amp;#039;,																-- canonical&lt;br /&gt;
		&amp;#039;[Vv]ancite web&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H A R V C _ T E M P L A T E _ P A T T E R N S &amp;gt;--------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for the harvc template and its redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local harvc_template_patterns = {&lt;br /&gt;
	&amp;#039;[Hh]arvc&amp;#039;,																	-- canonical&lt;br /&gt;
		&amp;#039;[Cc]itec&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C S 1 _ L I K E _ T E M P L A T E _ P A T T E R N S &amp;gt;--------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for miscellaneous templates and their redirects that &amp;#039;look like&amp;#039; cs1 templates (begin with cite ...)&lt;br /&gt;
&lt;br /&gt;
Because they &amp;#039;look like&amp;#039; cs1 templates they are handled as if they were cs1 templates.  These templates are NOT&lt;br /&gt;
wrapper templates; names and dates are always to be extracted from the article instantiation of the template.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local cs1_like_template_patterns = {&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; W I K I C I T E _ T E M P L A T E _ P A T T E R N S &amp;gt;--------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for the wikicite template and its redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local wikicite_template_patterns = {&lt;br /&gt;
	&amp;#039;[Ww]ikicite&amp;#039;,																-- canonical&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A N C H O R _ T E M P L A T E _ P A T T E R N S &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for the anchor template and its redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local anchor_template_patterns = {&lt;br /&gt;
	&amp;#039;[Aa]nchors?&amp;#039;,																-- anchor is canonical form&lt;br /&gt;
	&amp;#039;[Aa]nchor for redirect&amp;#039;,&lt;br /&gt;
	&amp;#039;[Aa]nchro&amp;#039;,&lt;br /&gt;
	&amp;#039;[Aa]ncor&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S F N _ W H I T E L I S T _ P A T T E R N S &amp;gt;----------------------------------&lt;br /&gt;
&lt;br /&gt;
These are patterns for the anchor template and its redirects.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local sfn_whitelist_patterns = {&lt;br /&gt;
	&amp;#039;[Ss]fn whitelist&amp;#039;,															-- canonical&lt;br /&gt;
		&amp;#039;[Hh]arv whitelist&amp;#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; K N O W N _ T E M P L A T E S &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These tables are created from the *_template_patterns tables.  To make these tables, entries in the source tables&lt;br /&gt;
are evaluated to replace lua patterns with the appropriate characters to create names for the output tables.&lt;br /&gt;
&lt;br /&gt;
First charqacter is always uppercase&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
	[Cc]ite ar[Xx]iv&lt;br /&gt;
becomes&lt;br /&gt;
	Cite arXiv&lt;br /&gt;
	Cite arxiv&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local known_templates_cs12 = {};												-- the exported tables&lt;br /&gt;
local known_templates_vcite = {};&lt;br /&gt;
local known_templates_harvc = {};&lt;br /&gt;
local known_templates_wikicite = {};&lt;br /&gt;
local known_templates_anchor = {};&lt;br /&gt;
local known_templates_sfn_whitelist = {};&lt;br /&gt;
&lt;br /&gt;
	local function add_stripped (list, name)&lt;br /&gt;
		if not list[name] then&lt;br /&gt;
			list[name] = true;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	local function pattern_convert (pattern, list)&lt;br /&gt;
		local lead, tail, c, l, name;&lt;br /&gt;
		local first_char_patterns = {&lt;br /&gt;
			&amp;#039;^%[(%a)%a%]&amp;#039;,														-- leading character (usually uppercase)&lt;br /&gt;
			&amp;#039;^%[%a(%a)%]&amp;#039;,														-- leading character (usually lowercase)&lt;br /&gt;
			}&lt;br /&gt;
			&lt;br /&gt;
		c = tostring (pattern:match (&amp;#039;%u&amp;#039;));									-- tostring() required because I don&amp;#039;t know why; lua chokes complaining that c is not a string&lt;br /&gt;
		name = pattern:gsub (&amp;#039;^%[%a%a%]&amp;#039;, c);									-- replace bracketed first character [Xx] with selected character from the match&lt;br /&gt;
		&lt;br /&gt;
		if name:match (&amp;#039;(.-)%[(%a)(%a)%](.*)&amp;#039;) then								-- mixed case optional letters&lt;br /&gt;
			lead, c, l, tail = name:match (&amp;#039;(.-)%[(%a)(%a)%](.*)&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. c .. tail);								-- uppercase&lt;br /&gt;
			add_stripped (list, lead .. l .. tail);								-- lowercase&lt;br /&gt;
	&lt;br /&gt;
		elseif name:match (&amp;#039;^([^%[]+)(%[ %%%-%]%?)(.+)$&amp;#039;) then					-- [ %-]?&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^([^%[]+)(%[ %%%-%]%?)(.+)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. tail);									-- neither char&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039; &amp;#039; .. tail);							-- space&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039;-&amp;#039; .. tail);							-- hyphen&lt;br /&gt;
	&lt;br /&gt;
		elseif name:match (&amp;#039;^([^%[]+)(%[%%%-%]%?)(.+)$&amp;#039;) then					-- [%-]?&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^([^%[]+)(%[%%%-%]%?)(.+)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. tail);									-- no hyphen&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039;-&amp;#039; .. tail);							-- hyphen&lt;br /&gt;
	&lt;br /&gt;
		elseif name:match (&amp;#039;^([^%[]+)(%[ %%%-%])(.+)$&amp;#039;) then					-- [ %-]&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^([^%[]+)(%[ %%%-%])(.+)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039; &amp;#039; .. tail);							-- space&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039;-&amp;#039; .. tail);							-- hyphen&lt;br /&gt;
	&lt;br /&gt;
		elseif name:match (&amp;#039;^([^%?]+)(%%%-%?)(.+)$&amp;#039;) then						-- %-?&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^([^%?]+)(%%%-%?)(.+)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. tail);									-- no hyphen&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039;-&amp;#039; .. tail);							-- hyphen&lt;br /&gt;
	&lt;br /&gt;
		elseif name:match (&amp;#039;^(.-)(%%%-)(.+)$&amp;#039;) then								-- %-&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^(.-)(%%%-)(.+)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. &amp;#039;-&amp;#039; .. tail);							-- hyphen&lt;br /&gt;
&lt;br /&gt;
		elseif name:match (&amp;#039;^(.-)(.)%?(.*)$&amp;#039;) then								-- .?&lt;br /&gt;
			lead, c, tail = name:match (&amp;#039;^(.-)(.)%?(.*)$&amp;#039;);&lt;br /&gt;
			add_stripped (list, lead .. tail);									-- no character&lt;br /&gt;
			add_stripped (list, lead .. c .. tail);								-- character&lt;br /&gt;
	&lt;br /&gt;
		else&lt;br /&gt;
			add_stripped (list, name);											-- no patterns so save as is&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for _, t in ipairs ({&lt;br /&gt;
		{cs1_template_patterns, known_templates_cs12},&lt;br /&gt;
		{cs2_template_patterns, known_templates_cs12},&lt;br /&gt;
		{cs1_like_template_patterns, known_templates_cs12},&lt;br /&gt;
		{vcite_template_patterns, known_templates_vcite},&lt;br /&gt;
		{harvc_template_patterns, known_templates_harvc},&lt;br /&gt;
		{wikicite_template_patterns, known_templates_wikicite},&lt;br /&gt;
		{anchor_template_patterns, known_templates_anchor},&lt;br /&gt;
		{sfn_whitelist_patterns, known_templates_sfn_whitelist},&lt;br /&gt;
		}) do&lt;br /&gt;
			for _, pattern in ipairs (t[1]) do									-- for each patern in *_template_patterns&lt;br /&gt;
				pattern_convert (pattern, t[2])									-- convert and store in known_templates_*&lt;br /&gt;
			end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T S &amp;gt;----------------------------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return&lt;br /&gt;
	{&lt;br /&gt;
	known_templates_anchor = known_templates_anchor,&lt;br /&gt;
	known_templates_cs12 = known_templates_cs12,&lt;br /&gt;
	known_templates_harvc = known_templates_harvc,&lt;br /&gt;
	known_templates_vcite = known_templates_vcite,&lt;br /&gt;
	known_templates_wikicite = known_templates_wikicite,&lt;br /&gt;
	known_templates_sfn_whitelist = known_templates_sfn_whitelist,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>&gt;Trappist the monk</name></author>
	</entry>
</feed>