<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://me-pedia.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brettz9</id>
	<title>MEpedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://me-pedia.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brettz9"/>
	<link rel="alternate" type="text/html" href="https://me-pedia.org/wiki/Special:Contributions/Brettz9"/>
	<updated>2026-07-02T16:12:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=User_talk:Brettz9&amp;diff=94731</id>
		<title>User talk:Brettz9</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=User_talk:Brettz9&amp;diff=94731"/>
		<updated>2021-11-24T02:52:35Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:delayed reply&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==  The SPAM problem ==&lt;br /&gt;
&lt;br /&gt;
Hello.&lt;br /&gt;
&lt;br /&gt;
You are have sysop-rights to the wiki, so i may point your Attention to [https://me-pedia.org/wiki/User_talk:Kmdenmark#Spam.2C_Spam.2C_not_lovely_.._--_.7E.7E.7E.7E the SPAM problem]. cheers. --[[User:Metoo|Metoo]] ([[User talk:Metoo|talk]]) 17:16, September 8, 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
: Afraid my fatigue/brain fog doesn&#039;t normally let me have a lot of spare energy. [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 02:52, November 24, 2021 (UTC)&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Tyrosine&amp;diff=92940</id>
		<title>Tyrosine</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Tyrosine&amp;diff=92940"/>
		<updated>2021-09-01T10:08:05Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:/* Evidence */ grammar/clarify&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Tyrosine&#039;&#039;&#039; is a non-essential [[amino acid]];&amp;lt;ref name=&amp;quot;pubchem&amp;quot;&amp;gt;{{Cite web|url=https://pubchem.ncbi.nlm.nih.gov/compound/Tyrosine|title=Tyrosine|last=PubChem|website=pubchem.ncbi.nlm.nih.gov|language=en|access-date=2021-03-05}}&amp;lt;/ref&amp;gt; it is a precursor to melanin which darkens skin,&amp;lt;ref name=&amp;quot;pubchem&amp;quot; /&amp;gt; dopa, which is converted to the [[neurotransmitter]]s [[dopamine]], [[noradrenaline]] (norepinephrine) and [[adrenaline]] (epinephrine).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt; Tyrosine is converted to [[l-dopa]] by the enzyme [[tyrosine hydroxylase]] (TH).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot;&amp;gt;{{Cite book|title=Guide to Nutritional Supplements|pages=8|isbn=978-0-12-375661-9|edition=|volume=|language=en|title-link=|url=https://books.google.co.uk/books?id=_VjxiHvdlOQC&amp;amp;newbks=0&amp;amp;lpg=PA8&amp;amp;pg=PA8#v=snippet&amp;amp;f=true|access-date=|date=2009-09-02|publisher=Academic Press|last=van der Poll|first=MCG|author-link=|last2=Luiking|first2=YC|author-link2=|last3=Dejong|first3=CHC|author-link3=|last4=Soeters|first4=PB|author-link4=|veditors=|others=|doi=|oclc=|quote=|archive-url=|archive-date=|location=Oxford, UK|editor-last=Caballero|editor-first=Benjamin|editor1-link=|editor-last2=|editor-first2=|chapter=Amino Acids}}&amp;lt;/ref&amp;gt; Dopamine is important for both pleasure and motivation, and both noradrenaline and adrenaline have a key role in the [[fight or flight response]] of the [[sympathetic nervous system]], which is activated by [[stress|emotional]] or physical arousal.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tyrosine is also an important precursor to the [[thyroid]] hormones [[triiodothyronine]] (T3) and [[thyroxine]] (T4).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot;/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Tyrosine deficiencies are known to cause [[hypothyroidism]], [[hypotension|low blood pressure]] and a [low body temperature]].&amp;lt;ref name=&amp;quot;pubchem&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Sources ==&lt;br /&gt;
Tyrosine and its precursor [[phenylalanine]] are required for the synthesis of [[coenzyme Q10]]. People with the genetic condition &#039;&#039;phenylketonuria&#039;&#039; (PKU) need tyrosine supplements because they are unable to convert phenylalanine into tyrosine.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ME/CFS ==&lt;br /&gt;
Reduced levels of plasma tyrosine have been found in ME/CFS patients.&amp;lt;ref name=&amp;quot;Georgiades&amp;quot;&amp;gt;{{Cite journal|last=Georgiades|first=Evelina|last2=Behan|first2=Wilhelmina M. H.|last3=Kilduff|first3=Liam P.|last4=Hadjicharalambous|first4=Marios|last5=Mackie|first5=Eileen E.|last6=Wilson|first6=John|last7=Ward|first7=Susan A.|last8=Pitsiladis|first8=Yannis P.|date=Aug 2003|title=Chronic fatigue syndrome: new evidence for a central fatigue disorder|url=https://www.ncbi.nlm.nih.gov/pubmed/12708966|journal=Clinical Science (London, England: 1979)|volume=105|issue=2|pages=213–218|doi=10.1042/CS20020354|issn=0143-5221|pmid=12708966|pmc=|quote=|author-link=|author-link2=|access-date=|author-link3=|author-link4=|author-link5=|author-link6=|via=}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Jones&amp;quot;&amp;gt;{{Cite journal|last=Jones|first=Mark G.|last2=Cooper|first2=Elizabeth|last3=Amjad|first3=Saira|last4=Goodwin|first4=C. Stewart|last5=Barron|first5=Jeffrey L.|last6=Chalmers|first6=Ronald A.|date=2005-11-01|title=Urinary and plasma organic acids and amino acids in chronic fatigue syndrome|url=http://www.sciencedirect.com/science/article/pii/S0009898105003116|journal=Clinica Chimica Acta|volume=361|issue=1|pages=150–158|doi=10.1016/j.cccn.2005.05.023|issn=0009-8981}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Evidence ==&lt;br /&gt;
Two studies of healthy adults have found that tyrosine supplements moderately increased cognitive performance and mental status after prolonged periods without sleep and under intensive military training.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
*[[Dopamine]]&lt;br /&gt;
*[[Noradrenaline]] (norepinephrine) &lt;br /&gt;
*[[Adrenaline]] (epinephrine)&lt;br /&gt;
*[[Fatty acid hypothesis]]&lt;br /&gt;
*[[Fight or flight response]]&lt;br /&gt;
&lt;br /&gt;
==Learn more==&lt;br /&gt;
* [https://pubchem.ncbi.nlm.nih.gov/compound/Tyrosine Tyrosine] - PubChem&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Biochemistry and cell biology]]&lt;br /&gt;
[[Category:Amino acids]]&lt;br /&gt;
[[Category:Supplements]]&lt;br /&gt;
[[Category:Potential treatments]]&lt;br /&gt;
[[Category:Depression alternative treatments]]&lt;br /&gt;
[[Category:Depression treatments]]&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Tyrosine&amp;diff=92939</id>
		<title>Tyrosine</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Tyrosine&amp;diff=92939"/>
		<updated>2021-09-01T10:06:22Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Tyrosine&#039;&#039;&#039; is a non-essential [[amino acid]];&amp;lt;ref name=&amp;quot;pubchem&amp;quot;&amp;gt;{{Cite web|url=https://pubchem.ncbi.nlm.nih.gov/compound/Tyrosine|title=Tyrosine|last=PubChem|website=pubchem.ncbi.nlm.nih.gov|language=en|access-date=2021-03-05}}&amp;lt;/ref&amp;gt; it is a precursor to melanin which darkens skin,&amp;lt;ref name=&amp;quot;pubchem&amp;quot; /&amp;gt; dopa, which is converted to the [[neurotransmitter]]s [[dopamine]], [[noradrenaline]] (norepinephrine) and [[adrenaline]] (epinephrine).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt; Tyrosine is converted to [[l-dopa]] by the enzyme [[tyrosine hydroxylase]] (TH).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot;&amp;gt;{{Cite book|title=Guide to Nutritional Supplements|pages=8|isbn=978-0-12-375661-9|edition=|volume=|language=en|title-link=|url=https://books.google.co.uk/books?id=_VjxiHvdlOQC&amp;amp;newbks=0&amp;amp;lpg=PA8&amp;amp;pg=PA8#v=snippet&amp;amp;f=true|access-date=|date=2009-09-02|publisher=Academic Press|last=van der Poll|first=MCG|author-link=|last2=Luiking|first2=YC|author-link2=|last3=Dejong|first3=CHC|author-link3=|last4=Soeters|first4=PB|author-link4=|veditors=|others=|doi=|oclc=|quote=|archive-url=|archive-date=|location=Oxford, UK|editor-last=Caballero|editor-first=Benjamin|editor1-link=|editor-last2=|editor-first2=|chapter=Amino Acids}}&amp;lt;/ref&amp;gt; Dopamine is important for both pleasure and motivation, and both noradrenaline and adrenaline have a key role in the [[fight or flight response]] of the [[sympathetic nervous system]], which is activated by [[stress|emotional]] or physical arousal.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tyrosine is also an important precursor to the [[thyroid]] hormones [[triiodothyronine]] (T3) and [[thyroxine]] (T4).&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot;/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Tyrosine deficiencies are known to cause [[hypothyroidism]], [[hypotension|low blood pressure]] and a [low body temperature]].&amp;lt;ref name=&amp;quot;pubchem&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Sources ==&lt;br /&gt;
Tyrosine and its precursor [[phenylalanine]] are required for the synthesis of [[coenzyme Q10]]. People with the genetic condition &#039;&#039;phenylketonuria&#039;&#039; (PKU) need tyrosine supplements because they are unable to convert phenylalanine into tyrosine.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ME/CFS ==&lt;br /&gt;
Reduced levels of plasma tyrosine have been found in ME/CFS patients.&amp;lt;ref name=&amp;quot;Georgiades&amp;quot;&amp;gt;{{Cite journal|last=Georgiades|first=Evelina|last2=Behan|first2=Wilhelmina M. H.|last3=Kilduff|first3=Liam P.|last4=Hadjicharalambous|first4=Marios|last5=Mackie|first5=Eileen E.|last6=Wilson|first6=John|last7=Ward|first7=Susan A.|last8=Pitsiladis|first8=Yannis P.|date=Aug 2003|title=Chronic fatigue syndrome: new evidence for a central fatigue disorder|url=https://www.ncbi.nlm.nih.gov/pubmed/12708966|journal=Clinical Science (London, England: 1979)|volume=105|issue=2|pages=213–218|doi=10.1042/CS20020354|issn=0143-5221|pmid=12708966|pmc=|quote=|author-link=|author-link2=|access-date=|author-link3=|author-link4=|author-link5=|author-link6=|via=}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Jones&amp;quot;&amp;gt;{{Cite journal|last=Jones|first=Mark G.|last2=Cooper|first2=Elizabeth|last3=Amjad|first3=Saira|last4=Goodwin|first4=C. Stewart|last5=Barron|first5=Jeffrey L.|last6=Chalmers|first6=Ronald A.|date=2005-11-01|title=Urinary and plasma organic acids and amino acids in chronic fatigue syndrome|url=http://www.sciencedirect.com/science/article/pii/S0009898105003116|journal=Clinica Chimica Acta|volume=361|issue=1|pages=150–158|doi=10.1016/j.cccn.2005.05.023|issn=0009-8981}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Evidence ==&lt;br /&gt;
Two studies of healthy adults have found that tyrosine supplements moderately increased cognitive performance and mental status after prolonged periods of without sleep and intensive military training.&amp;lt;ref name=&amp;quot;vanderPollch&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
*[[Dopamine]]&lt;br /&gt;
*[[Noradrenaline]] (norepinephrine) &lt;br /&gt;
*[[Adrenaline]] (epinephrine)&lt;br /&gt;
*[[Fatty acid hypothesis]]&lt;br /&gt;
*[[Fight or flight response]]&lt;br /&gt;
&lt;br /&gt;
==Learn more==&lt;br /&gt;
* [https://pubchem.ncbi.nlm.nih.gov/compound/Tyrosine Tyrosine] - PubChem&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Biochemistry and cell biology]]&lt;br /&gt;
[[Category:Amino acids]]&lt;br /&gt;
[[Category:Supplements]]&lt;br /&gt;
[[Category:Potential treatments]]&lt;br /&gt;
[[Category:Depression alternative treatments]]&lt;br /&gt;
[[Category:Depression treatments]]&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Category_talk:Communication_System&amp;diff=62462</id>
		<title>Category talk:Communication System</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Category_talk:Communication_System&amp;diff=62462"/>
		<updated>2019-07-24T19:59:49Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:/* Delete? -- notjusttired (talk) 14:09, July 23, 2019 (EDT) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Delete? -- [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:09, July 23, 2019 (EDT) ==&lt;br /&gt;
&lt;br /&gt;
We already have Endocrine system and neurotransmitters categories. Should this be deleted? [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:09, July 23, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Someone had requested we create Functional Medicine categories. To minimize duplication, I&#039;d just suggest labelin the &amp;quot;endocrine system&amp;quot;, etc. categories as belonging to this category, and this is one of them. We can have multiple organization schemes, but obviously we don&#039;t want a duplication of effort. [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 16:01, July 23, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: I think this, as well as the other Functional Medicine categories, should be deleted. They represent a very arbitrary and esoteric way to catalog bodily systems, one that is not accepted by mainstream medical professionals. The categories have not been used since they were created. My guess is because no one knows what they mean. I think using this obscure classification system will confuse people. [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 15:00, July 24, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Go ahead. [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 15:59, July 24, 2019 (EDT)&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=User_talk:Notjusttired&amp;diff=62439</id>
		<title>User talk:Notjusttired</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=User_talk:Notjusttired&amp;diff=62439"/>
		<updated>2019-07-23T20:06:49Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:/* Tagging -- ~~~~ */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Leave me a message ==&lt;br /&gt;
Hey Njt!  I noticed a weird error message regarding the Tweet/doc page at [[:category:Pages_with_incorrect_formatting_templates_use]].  I really don’t know what to make of it, maybe it makes more sense to you... Cheers!&lt;br /&gt;
&amp;lt;br&amp;gt;[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:07, July 6, 2019 (EDT)&lt;br /&gt;
:Do you mean the date script error? I think the Math extension might be needed for that template (which isn&#039;t in use yet). It fails because the Extract template it uses doesn&#039;t work. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:13, July 7, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Messages I&#039;ve seen ==&lt;br /&gt;
===Deleting pages problem ===&lt;br /&gt;
Hi [[User:Notjusttired|notjusttired]]! I started deleting some of the pages you cited for deletion, however, without them the references no longer populate, so I restored several. Please advise. Thanks, [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 16:44, June 26, 2019 (EDT)&lt;br /&gt;
:Hi [[User:Kmdenmark|Kmdenmark]]!  I see that the &amp;quot;Articles for deletion&amp;quot; category is broken, and it is showing a number of template pages that were never marked for deletion.  I will look into the problem later on today or tomorrow and then I will get back to you.  In the meantime, please restore the following templates that still need to be restored: [[Template:Chem2]], [[Template:Chem2/doc]], [[Template:Citation needed/doc]], [[Template:Composition bar]], [[Template:Composition bar/doc]], [[Template:Coord/doc]].  Thanks!&lt;br /&gt;
:[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 17:16, June 26, 2019 (EDT)&lt;br /&gt;
::[[User:Pyrrhus|Pyrrhus]] Thanks! Take your time with it. I&#039;ll restore the ones deleted and will ignore the list until further notice. [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 17:40, June 26, 2019 (EDT)&lt;br /&gt;
:::Yikes! [[User:Kmdenmark]] All the ones I marked for deletion today start with &amp;quot;Template:Template:&amp;quot; so those should be fine to delete, and all should have a similarly named page with &amp;quot;Template:&amp;quot; just mentioned once. I can&#039;t imagine what happened  here. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 18:05, June 26, 2019 (EDT)&lt;br /&gt;
::::Please hold off on deleting anything. There maybe some weird unanticipated link between the templates we want deleted and those we don’t want deleted...&lt;br /&gt;
::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 18:26, June 26, 2019 (EDT)&lt;br /&gt;
:::::[[User:Pyrrhus|Pyrrhus]] and [[User:Notjusttired|notjusttired]], I&#039;ll hold off from deleting anything for now. I&#039;m assuming that keeping the pages for now will not interfere with other operations. [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 11:51, June 27, 2019 (EDT)&lt;br /&gt;
::::::[[User:Pyrrhus]] [[User:Kmdenmark]] I believe it&#039;s fixed now. I accidentally marked 2 templates that are needed for deletion, and they must be transclusions, so they added the deletion category to every template that used them. Can you please add protection to these 2 pages to prevent this happening  again - the pages are [[Template:Template_other]] and [[Template:Template_error_report]]. The pages I had intended for deletion all had &amp;quot;Template:&amp;quot; in the name not just &amp;quot;Template&amp;quot;, and all should be blank except for the deletion category. Perhaps you can both check if [[:Category:Articles for deletion]] looks right now. I&#039;m really sorry for the problems caused by my mistake. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:16, June 27, 2019 (EDT)&lt;br /&gt;
:::::::looks good to me, thanks njt!&lt;br /&gt;
:::::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 14:48, June 27, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Pivot===&lt;br /&gt;
Hi Njt!  Hope you’re enjoying your weekend.  In case you missed it, the Pivot skin comes with some configuration variables.  For more info, see https://pivot.wikiproject.net/wiki/Pivot_features&lt;br /&gt;
&amp;lt;br&amp;gt;Here is some example code you may be interested in:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgPivotFeatures = [&lt;br /&gt;
 &#039;navbarIcon&#039; =&amp;gt; true,&lt;br /&gt;
 &#039;addThisPUBID&#039; =&amp;gt; &#039;ra-5cdfe8dacb9028fa&#039;&lt;br /&gt;
];&lt;br /&gt;
$wgAddThisSidebar = true;&lt;br /&gt;
$wgAddThispubid = &#039;ra-5cdfe8dacb9028fa&#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(Code obviously comes after &amp;lt;nowiki&amp;gt;wfLoadSkin( &#039;pivot&#039; );&amp;lt;/nowiki&amp;gt;.)  Hope this helps.&lt;br /&gt;
&amp;lt;br&amp;gt;[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 17:40, May 25, 2019 (EDT)&lt;br /&gt;
::I&#039;ve seen that, thanks. The publisher ID I requested and should sort the sidebar  issue. Oddly the side bar setting does not work as you&#039;d expect given the name! The logo setting might be withwhile but only applies to the smallest mobiles and puts the logo in the centre of the top bar! I&#039;ve swapped the font and style of the title bar for the moment, and got it displayed #MEpedia. See code on [[MediaWiki_talk:Pivot.css]] for .p-logo-text. When the weekend is over In going to put in a request to add the MEAction fonts for ALL skins, which will mean we can use the logo text style anywhere. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 17:51, May 25, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hi! Just checking if you need me to make any other changes. Hope all is well [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 17:31, 16 May 2019 (EDT)&lt;br /&gt;
:Thank you for the offer of help. I&#039;m making a lot of changes to the 2 new skins so that would be great. Can you do the new code for Timeless, like you did for the Pivot one? It&#039;s on here [[MediaWiki_talk:Timeless.css]] and needs to overwrite [[MediaWiki:Timeless.css]] totally, which will be easier than deleting the sections causing layout issues. Thanks again [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:41, 17 May 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Archived messages ==&lt;br /&gt;
&lt;br /&gt;
Skins {{Read more|text=&amp;quot;Hi Njt!  I noticed the following suggestion of yours in the Dev queue of [[MEpedia:Suggested_tasks]]:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;quot;Create custom Special page for tracking pages using NeedsImage template requested by User:Notjusttired&amp;quot;&lt;br /&gt;
&amp;lt;br&amp;gt;I was under the impression that this page accomplishes this: [[:Category:Articles_that_need_an_image_or_photo]]&lt;br /&gt;
&amp;lt;br&amp;gt;Am I wrong or missing something?  Thanks.&lt;br /&gt;
&amp;lt;br&amp;gt;[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 19:22, 28 March 2019 (EDT)&lt;br /&gt;
::Have done  that now. I originally hoped to add or as a Tracking category in special pages so it&#039;s easy to find, but there&#039;s no simple way to do this. Would rather focus on other dev tasks. &lt;br /&gt;
::Have you got any thoughts on different skins? I added some to the Dev queue including a dark one. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 17:18, 30 March 2019 (EDT)&lt;br /&gt;
:::BTW, I recently created a page to collate all those weird special pages together: [[MEpedia:Pages in need]]&lt;br /&gt;
:::The idea is that there would be a link in the lefthand sidebar to this &amp;quot;Pages in need&amp;quot; page so that contributors would have quick access to all these weird special pages.  I&#039;m pretty clueless on skins, so no opinion here, but I&#039;ll try to take a look.  Thanks for all your help, Njt!&lt;br /&gt;
:::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 18:47, 30 March 2019 (EDT)&lt;br /&gt;
:::okay, I’ve finally taken a look at skins.  It looks like you are recommending TimelessDarkCSS as a light-sensitive option and Pivot as the Mobile option.  Is this correct?&lt;br /&gt;
:::Also, i note that your user page mentions “collapsible lists”.  Do you know of any way to do that?  That would be ideal for the Contents page...&lt;br /&gt;
:::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 18:59, 10 April 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
::::Hi Pyrrhus. Yes to the Timeless-DarkCSS for those with photophobia or preferring a dark background.&lt;br /&gt;
::::The &#039;&#039;&#039;Pivot&#039;&#039;&#039; skin is brilliant for mobile devices and tablets but actually looks excellent on a Desktop (in my view) - Timeless without the dark CSS is a serif font I seem to remember and also looks good on mobiles, tablets and desktops. The norm is to default to Vector for wikis but Vector is really hard work on small screens because you can&#039;t hide the side menu - either you zoom and scroll a lot or need the most amazing vision. &lt;br /&gt;
::::Assuming these get installed and work as well as expected it should be nice to have a button to flip to the dark skin for those &#039;&#039;&#039;not logged in &#039;&#039;&#039;. I haven&#039;t seen the code to do this yet though. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 16:44, 11 April 2019 (EDT)&lt;br /&gt;
:::::okay, here’s what it looks like we should do:&lt;br /&gt;
:::::#Install Timeless-DarkCSS and Pivot skins&lt;br /&gt;
:::::#Put two links in the lefthand/top sidebar: “Light-sensitive interface” and “Mobile-friendly interface”.  These links will bring up instructions for how to switch skins in the user’s Preferences.  When we find the code for a not-logged-in-user button, we’ll replace the links with buttons. &lt;br /&gt;
:::::#If the Pivot interface turns out to be as good as you say, we should talk about making Pivot the default interface for all devices.&lt;br /&gt;
:::::Does that look right?  &lt;br /&gt;
:::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 17:25, 11 April 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
::::::Yes, that&#039;s right, although I think calling it &amp;quot;dark view&amp;quot; or &amp;quot;dark version&amp;quot; would be better. Dark timeless is simply a skin called Timeless with extra CSS, Timeless has almost the same features as Pivot so it might be a case of seeing whether Timeless in white is more popular than Pivot - I prefer Pivot myself. There&#039;s 2 different ways to automatically switch skins for mobile users [https://www.mediawiki.org/w/index.php?title=Simple_mobile_skin_auto_change/en&amp;amp;mobileaction=toggle_view_desktop Method 1] and [https://www.mediawiki.org/wiki/Extension:MobileFrontend Mobile Frontend method] which would allow desktop users to stay on Vector automatically. If you want to checkout hope they look on different screen sizes then [https://quirktools.com/screenfly/ Screenfly] is pretty good  [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 18:50, 11 April 2019 (EDT)&lt;br /&gt;
&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
==Renaming?==&lt;br /&gt;
&lt;br /&gt;
{{Read more|I renamed this page to use the US spelling, as per the Manual of Style. [[User:kmdenmark]]&lt;br /&gt;
But should the category be renamed to &#039;&#039;&#039;British Organizations&#039;&#039;&#039;?&lt;br /&gt;
This would be easier to browse from [[Category:Organizations]] because the country make would be first and the name is shorter. The same issue is there for Universities.&lt;br /&gt;
This would also fit with the Standard MEpedia country categories eg [[:Category:British research initiatives]].&lt;br /&gt;
I&#039;ve created a temporary [[MEpedia Page Outlines]] for both Universities and Organizations but would welcome input / Ch changes from others. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 18:14, 20 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
::The changes are fine with me. I have no attachment to either way. I think &amp;quot;Organizations based in the United Kingdom&amp;quot; is a bit long and awkward but it&#039;s the category title that Wikipedia uses. ([https://en.wikipedia.org/w/index.php?search=Category%3AOrganizations+based+in+the+United+Kingdom&amp;amp;title=Special%3ASearch&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;advancedSearch-current=%7B%22namespaces%22%3A%5B0%5D%7D&amp;amp;ns0=1 Wikipedia page for &amp;quot;Organizations based in the United Kingdom&amp;quot;]) [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 19:03, 21 February 2019 (EST)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Categories for UK politicians==&lt;br /&gt;
{{Read more|&lt;br /&gt;
Hi. Can you avoid removing politicians from the categories for political parties? This is crucial information for advocacy and not held elsewhere. Labour/Co-op members are considered members of both parties so need to be in more than one category. Keeping them as categories allows someone to look for UK adbocates, then use the subcategories to find just politicians for political parties or fod which committee they are on - one committee is investigating the PACE trial Parties cover both MPs and the unelected House of Lords.&lt;br /&gt;
&lt;br /&gt;
::Thank you for explaining the need for categories for politicians. I see your point and will not delete them anymore. [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 14:29, 11 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
::::Thanks [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 19:01, 11 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
Also please don&#039;t mark redirects for deletion - they are there to help from the correctly spelled page - searching the incorrect name means MEpedia then find the correct page name too. notjusttired (talk) 13:06, 7 February 2019 (EST) &lt;br /&gt;
&lt;br /&gt;
::Re: misspellings - I don&#039;t think misspellings should be honored with redirects. It is impossible to conceive of every misspelling that someone could use. I think the misspellings clutter the drop down menu in our search engine and make articles harder to find rather than easier. I support using redirects for alternative spellings, but not misspellings. If you can give me an example of one of the redirects you want to stay, it would help me understand your reasoning. I, also, eliminated some redirects where pages were not medically the same and to keep them as such would be inaccurate. A better way to link similar but different pages would be with links in the &#039;See also&#039; section. (I don&#039;t know if you were the author of those redirects, but I wanted to explain why I eliminated those redirects, also.) My best, [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 14:29, 11 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
::::It depends on the reason for the mispelling and how common it is. Eg if you delete the redirect for [[Intestinal permiability]] and type of into a search  the correct page name won&#039;t come up - there&#039;s no results. Delete redirects for different spacing in page names and that search phrase may not work any more (eg The M.E. Society vs The ME Society). There&#039;s also a few unexpected UK vs US spellings  (diarrhoea), and a few researchers with names that are commonly mispelled or have very similar spellings, which sometimes means their research is under several different names (AT Anbu vs Theo Anbu). When it comes to linking redirects have a link icon next to the page name, so it&#039;s easy to pick the right one - although perhaps there is a hidden property that can be used.&lt;br /&gt;
&lt;br /&gt;
::I&#039;m fine with trying it your way. Let&#039;s watch how the redirects work and see if we get other feedback from users. &lt;br /&gt;
:::A couple specific points: Sometimes the search engine is extra slow or temporary not working; that may explain why the correct spelling for [[Intestinal permeability]] didn&#039;t come up when you originally searched. I tested it and it came up every time I searched this morning. &lt;br /&gt;
:::Re: British spelling. I wholeheartedly agree that redirects for British spellings should have redirects. The main title is to be in American spelling as per MEpedia manual of style. My best, [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 12:01, 12 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
:::::::: Thanks [[User:Kmdenmark]] - I&#039;ve noticed performance problems but that has been loading pages rather than on searches. Maybe there&#039;s something else going on.&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
::::With making redirects for deletion, they need any pages using them to be updated first. The Contents page (which I can&#039;t edit) has a non-standard [[List of Quotes]] link, so deleting to use the correct capitalization breaks the link on the Contents page.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Messages I&#039;ve seen ==&lt;br /&gt;
{{Read more|RE: Csn the Mike Beadsworth page be the main one, with  Michael Beadsworth the redirect? Professionally he uses the name Mike far more.&lt;br /&gt;
 Njt&lt;br /&gt;
[[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 13:58, 23 January 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
Sure, sounds good.  [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 17:19, 23 January 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Just FYI: On the Pathogen page, you have left the following typo: &amp;quot;_Chia_201dorferi_paper.png&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I can&#039;t fix the typo since I&#039;m not sure what it was meant to say...&lt;br /&gt;
&lt;br /&gt;
Best, Pyrrhus&lt;br /&gt;
&lt;br /&gt;
[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:36, 10 February 2019 (EST)&lt;br /&gt;
&lt;br /&gt;
Thank you [[User:Pyrrhus|Pyrrhus]] - I&#039;m not sure what image it was supposed to be so I added an alternative and fixed the problem. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 09:07, 11 February 2019 (EST)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Priorities ==&lt;br /&gt;
* Image copyrights to organize &lt;br /&gt;
* Check copyrights on ICC and other files&lt;br /&gt;
* Better symptom photos e.g. malaise, levels of fatigue and disability, symptoms &lt;br /&gt;
* Infographics template - XMP CC info, large size, site name only in corner (font as wiki?)&lt;br /&gt;
* Infographic &amp;amp; poster creation &lt;br /&gt;
* Dark / large skin option? As per migraine websites&lt;br /&gt;
&lt;br /&gt;
== Brain fog tasks ==&lt;br /&gt;
* [[Articles that need an image or photo]]&lt;br /&gt;
* [[Category:Articles with unsourced statements]]&lt;br /&gt;
* [[Add source and copyright to existing images]]&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
* [[Science Guidelines]]&lt;br /&gt;
* [[Using the source_code editor]]&lt;br /&gt;
* [[Power user/editor tips]]&lt;br /&gt;
&lt;br /&gt;
==Welcome to MEpedia!==&lt;br /&gt;
* [[How_to_contribute|How to contribute]]&lt;br /&gt;
* If you need ideas of improvements to make to MEpedia, See [[MEpedia_suggestions|suggestions]]&lt;br /&gt;
* [[Contents|MEpedia Contents]]&lt;br /&gt;
&lt;br /&gt;
* To create new page, use one an outline: [MEpedia_article_outlines]&lt;br /&gt;
&lt;br /&gt;
To see your contributions history, click Contributions in the top-right corner. To see recent contributions by others, click Recent Changes on the left. Not ready to edit pages, but want to suggest a change? On the page, just click Discussion, and write your suggestion there for others to see.|realName=Anonymous|name=Notjusttired}}&lt;br /&gt;
&lt;br /&gt;
== Random code==&lt;br /&gt;
{{bar box&lt;br /&gt;
|title=Chronic Fatigue Syndrome: Common Symptoms&lt;br /&gt;
|titlebar=#DDD&lt;br /&gt;
|left1=&#039;&#039;&#039;Symptom&#039;&#039;&#039;&lt;br /&gt;
|right2=%&lt;br /&gt;
|width=400px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar pixel|Fatigue: persistent or relapsing|#0CBCBC|100}}&lt;br /&gt;
{{bar pixel|Symptoms last over 6 months|#0CBCBC|100}}&lt;br /&gt;
{{bar pixel|Significant reduction in activities|#0CBCBC|100}}&lt;br /&gt;
{{bar pixel|Post-exertional malaise|#0CBCBC|96}}&lt;br /&gt;
{{bar pixel|Memory &amp;amp;amp; concentration probs|#0CBCBC|98}}&lt;br /&gt;
{{bar pixel|Unrefreshing sleep|#0CBCBC|99}}&lt;br /&gt;
{{bar pixel|Headaches - new or different|#0CBCBC|100}}&lt;br /&gt;
{{bar pixel|Muscle pain (myalgia)|#0CBCBC|96}}&lt;br /&gt;
{{bar pixel|Sore throat|#0CBCBC|81}}&lt;br /&gt;
{{bar pixel|Joint pain (arthalgia)|#0CBCBC|86}}&lt;br /&gt;
{{bar pixel|Lymph node pain|#0CBCBC|81}}&lt;br /&gt;
|caption=Source: Jason et al.&lt;br /&gt;
}}‎&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Bar chart&lt;br /&gt;
| title = &amp;lt;div style=&amp;quot;font-size:1.4em; margin-bottom: 0.4em;&amp;quot;&amp;gt;Common Symptoms in Chronic Fatigue Syndrome&amp;lt;/div&amp;gt;&lt;br /&gt;
| bar_width   = 15&lt;br /&gt;
| width = 30&lt;br /&gt;
| width_units = em&lt;br /&gt;
| label_type  = Symptom&lt;br /&gt;
| label1  = Fatigue - persist or relapsing*&lt;br /&gt;
| label2  = Significant reduction in activities*&lt;br /&gt;
| label3  = Symptoms last over 6 months*&lt;br /&gt;
| label4  = Post-exertional malaise&lt;br /&gt;
| label5  = Memory &amp;amp;amp; concentration probs&lt;br /&gt;
| label6  = Unrefreshing sleep&lt;br /&gt;
| label7  = Headaches - new or different&lt;br /&gt;
| label8  = Muscle pain (myalgia)&lt;br /&gt;
| label9  = Sore throat&lt;br /&gt;
| color = #0CBCBC&lt;br /&gt;
| data_type = Mild to Severe&amp;lt;br&amp;gt; Symptom %&lt;br /&gt;
| data_max  = 101&lt;br /&gt;
| data1  = 100&lt;br /&gt;
| data2  = 100&lt;br /&gt;
| data3  = 100&lt;br /&gt;
| data4  = 96&lt;br /&gt;
| data5  = 98&lt;br /&gt;
| data6  = 99&lt;br /&gt;
| data7  = 90&lt;br /&gt;
| data8  = 96&lt;br /&gt;
| data9  = 81&lt;br /&gt;
| col2_data_type = Moderate to Severe&amp;lt;br&amp;gt; Symptom %&lt;br /&gt;
| col2_data_max  = 101&lt;br /&gt;
| col2_data1  = 95&lt;br /&gt;
| col2_data2  = 100&lt;br /&gt;
| col2_data3  = 100&lt;br /&gt;
| col2_data4  = 86&lt;br /&gt;
| col2_data5  = 80&lt;br /&gt;
| col2_data6  = 92&lt;br /&gt;
| col2_data7  = 50&lt;br /&gt;
| col2_data8  = 73&lt;br /&gt;
| col2_data9  = 31&lt;br /&gt;
|caption= &#039;&#039;&#039;Source: Jason et al.&#039;&#039;&#039;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Messages ====&lt;br /&gt;
Notjustired:  [[Severe and very severe ME]] Chronological order goes from earliest to latest. Citations are not placed under the study and instead, they are cited. If details like pages are necessary, they can be entered into the citation. --[[User:MEcfsFMS|MEcfsFMS]] ([[User talk:MEcfsFMS|talk]]) 09:51, 20 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hi. Is that somewhere in the editorial standards? I don&#039;t remember reading it. I think it&#039;s important to add doi to citations of they aren&#039;t already in there. I will look at adding author links to the citations too. I created a talk page for the Severe ME image to discuss ideas.&lt;br /&gt;
[[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 10:15, 20 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I put doi in and the PMID? But PMC causes an error and I don&#039;t think they have figured out why yet. Authors links don&#039;t get created and I thought they were in the &amp;quot;Reference&amp;quot; area.--[[User:MEcfsFMS|MEcfsFMS]] ([[User talk:MEcfsFMS|talk]]) 10:39, 20 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I see, if the citation automatically creates the citation, authors internal links are created. If they have to be manually input then it does not seem to create them.&lt;br /&gt;
&lt;br /&gt;
:That makes sense. I thought people had  been spending ages manually adding them or copying and pasting the code for the most common ones. I normally automatically generate a citation, if it doesn&#039;t work I use another link or the doi, then replace the finished link with a full text link if necessary. Links from investinme and researchgate normally don&#039;t generate automatically so I use a PubMed link and overwrite the link only after the citation is generated.&lt;br /&gt;
Could you update the [[Manual of style]] with anything else that isn&#039;t in there?&lt;br /&gt;
I&#039;ll go back sort the citations I changed. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 10:53, 20 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
== MOS - Dates ==&lt;br /&gt;
&lt;br /&gt;
Hi Notjusttired:&lt;br /&gt;
&lt;br /&gt;
Somewhere at some point early on, I remember the date format was to be US, Jun 10, 2016, and not 10 Jun 2016. I can&#039;t remember where or when I read this but a few of us started changing dates in UK format and going forward we used US format. I think Jen had posted about it but I&#039;m not sure. Also, we were to change any UK spellings to the US spelling unless it was a quote.--[[User:MEcfsFMS|MEcfsFMS]] ([[User talk:MEcfsFMS|talk]]) 14:26, 31 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
ty for letting me know, can you fix what I wrote on [[MOS]] - does the same apply to date in citations? Sometimes they cause an error so I presume I put them in as Jun, 28 2018 now?&lt;br /&gt;
&lt;br /&gt;
:Yes, that is how I write in the citations, but move the comma so it is Jun 28, 2018 or Jun 2018. I will change MOS.--[[User:MEcfsFMS|MEcfsFMS]] ([[User talk:MEcfsFMS|talk]]) 14:43, 31 October 2018 (EDT)&lt;br /&gt;
- Will do, do you know about fixing the citation template error at all? Dates generated in the form 2018-06 always give an error when you generate a citation from a link - I presume it&#039;s  possible to fix this? [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:49, 31 October 2018 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fibromyaliga Page ==&lt;br /&gt;
&lt;br /&gt;
Please be careful where information is added on the [[Fibromyalgia]] page. The blood test information you added should go on the [[Fibromyalgia notable studies]] page as it is not an accepted blood test yet. I moved the EpicGenetics blood test under the subheading &amp;quot;Blood tests&amp;quot; under &amp;quot;United States&amp;quot; and put the study you had added on the &#039;&#039;Fibromyalgia&#039;&#039; discussion page. You can post this research on the &#039;&#039;Fibromyalgia notable studies&#039;&#039; page.&lt;br /&gt;
&lt;br /&gt;
I created and edited most of these pages starting with the username DxCFS. I lost my PW when FF crashed and could not get it back using the PW retrieval as there is something wrong with MEpedia carrying out this task. I have had many usernames because I am really bad with remembering my usernames and usually just use a VPN now.--[[Special:Contributions/77.111.245.10|77.111.245.10]] 12:07, 25 March 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Also, the &#039;&#039;Fibromyalgia&#039;&#039; page became too long to use the &amp;quot;Edit&amp;quot; tab and the &amp;quot;Edit source&amp;quot; tab is not an option due to citations and that is why I broke &#039;&#039;Notable studies&#039;&#039; off. There is an area at the bottom of the &#039;&#039;Fibromyalgia&#039;&#039; page to post news articles about research as people usually want to read about research by media and bloggers and not the hard research.--[[Special:Contributions/77.111.245.10|77.111.245.10]] 12:13, 25 March 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the input - I&#039;ve never edited  that page before. I will update the redirects for blood test info - when I searched before adding it the Fibro Notable studies page wasn&#039;t near the top of the results (I don&#039;t recall seeing it at all). [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 16:49, 25 March 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Simon Wessely Page ==&lt;br /&gt;
&lt;br /&gt;
Wessely Page - Hi Notjusttired. I&#039;m currently editing the page on Simon Wessely by inserting many references. Please leave the page for a moment otherwise we crosspost and I loose all the changes which is many hours of work. Kind regards, Sisyphus.&lt;br /&gt;
:I&#039;ve just seen your notice. I will leave alone. I am going to put some improved citations on the talk page and leave it at that. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 08:08, July 16, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
Thanks. It&#039;s ok now. The references have been inserted (It took a while). Could you delete the warning &amp;quot;This article may require cleanup to meet MEpedia&#039;s quality standards&amp;quot;? If not, could you explain which sections or claims you disagree with (for example in the discussion section of the page). Kind regards, Sisyphus.&lt;br /&gt;
::I will take a look. Did you see the citations I suggested on the talk page, including the Camelford ones? [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 10:45, July 16, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
I used some of them. I only briefly mention Camelford as an example where Wessely controversially pointed towards psychosocial factors in a case that isn&#039;t clear. More information about this could be posted on a seperate MEpedia page. I unfortunately do not know the details of this case, so I&#039;ll leave it to you and others. - Sisypus.&lt;br /&gt;
:[[User:Sisyphus]] Can you explain why so many sections  have been removed or pretty much reverted? It was only recently changed about 3 weeks ago. It now reads as if everything Wessely claims via journalists or is in his research is a fact - even though at times he contradicts his previous statements so making it hard to know what he thinks. Eg the fact that Wessely claims CFS is part of MUS is his opinion, not a generally accept fact and that needs to be clear. In fact, one of the controversies around Wessely is him repeatedly making the claim that it can be classed as a psychological condition in the ICD-10 manual - despite confirmation from the World Health Organization that it is explicitly excluded and only classified as neurological. Including the death threats. The carefully phrased sections I added about those contesting his many claims are gone. He is known for saying one thing to one audience and something totally different to another. The links to the 3 pages of quotes complied from him are gone. I haven&#039;t seen a reason in the history or a mention of the removals or changes to the headings. Even his retirement claim is not a fact - he carried on publishing CFS research for years after &amp;quot;retiring&amp;quot;. Eg police freedom of information act requests contradict that. As far as Wessely&#039;s claims of victimization go, we should be reporting &amp;quot;In a 2017 interview, Wessely stated that&amp;quot; but not in a way that suggests that it is factual. Wessely refused to appear before the UK&#039;s Gibson Enquiry which was pressing him for answers on his views. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 11:59, July 17, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
I tried to rewrite the page in full text and provide more context to his work and the controversies. I’m sorry if have deleted things without providing a reason why. &lt;br /&gt;
Regarding the ICD, I personally think he was trying to say that patients with the symptoms of CFS can be diagnosed as having CFS (G93.3) or neurasthenia/fatigue syndrome (F48.8) and don’t see this as a big issue. If you disagree, perhaps we can make a section on this under controversies. Regarding the quotes: I am not a fan of quotes without context, certainly if it is used to criticize someone or cast someone in a certain light. That’s certainly the case of the links you mention. If you want them restored perhaps we could use them as example of criticism of Wessely rather than as an resource of quotes from him? Regarding the death threats I’m ok with restoring the info for example regarding the freedom of information request. I didn’t think this was vital because the information doesn’t permit us to make conclusions about what happened. And regarding the Gibson Enquiry if Wessely did actually get serious death threats, than I could understand why he prefers not to be questioned about the details on this. So I don&#039;t think this means much. If you insist on including more info about this, perhaps there is enough to make a separate page on this (there’s also some relevant info about this from Valerie Eliot Smith’s blog). Kind regards, Sispyhus.&lt;br /&gt;
::I&#039;m happy to have the quotes back under a heading &amp;quot;Quotes critical of Wessely&amp;quot; or similar. The classification of ME/CFS is a huge issue because it is part of his claims that it is not a disease / has no disease process  and that it is psychological or mostly psychological which justifies the CBT and even GET. He refuses to acknowledge any science he does not like such as mitochondria or immune days. It&#039;s quite likely he quit research rather than having his work proved wrong. Same with Michael Sharpe, also from the PACE trial. Peter White of the PACE trial allegedly retired early from clinical practice to avoid GMC complaints that could have removed his license to practice (he was under investigation). Wessely also helped design the PACE trial - a crucial fact now missing from the top of his page. Wessely and his policies largely in control of UK treatment and has been for over a decade. Regular political questions on him and his [[Wessely school]]. Thanks to his attempts to re-classify the illness all UK ME/CFS treatment comes from a mental health health budget, he controls the media via the Science Media Centre, and gives numerous interviews making nasty persons attacks on patients. Wessely and Deale provided the key randomized controlled trial in the 1990s still used as &amp;quot;evidence&amp;quot; for CBT. The Gibson Enquiry was a scientific one, many years before he stated his death threat claims - which some have suggested are simply a way to detect from PACE trial criticism, since that&#039;s when they appeared. Absolutely nothing to fear from that except scientific scrutiny. Several Freedom of Information Act requests have shown that PACE trial critics are not harassing let alone threatening anyone. Although they tried to use this argument to prevent the release of the data. &amp;lt;br &amp;gt;&lt;br /&gt;
I feel that the page re-write portrays Wessely incorrectly as mostly not controversial, and portrays his science as student accepted, and endorses his views given in newspaper interviews as accurate  and unbiased. He will make claims like Gulf War Illness doesn&#039;t exist, then later claim to have originally discovered it! He&#039;s also a social security advisor and does not believe patients should be entitled to disability benefits.As regards the quotes - they come from several charities and are certainly not taken out of context. It&#039;s very hard to see how many of the statements could be out of context given how rude and nasty they often are about patients, who he calls &amp;quot;disgusting&amp;quot; and &amp;quot;not wanting to get better&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
What do you think about adding back in the references that were removed, and then working together to tackle a section at once?  I think it important to be very careful not to claim Wessely has reported the truth about himself since this is often untrue or contradicted (either by himself or by independent sources). [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 13:35, July 17, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have thought about your comments but I think we have to be neutral and objective on this. I don’t think the texts of Margaret Williams and Malcolm Hooper should be used as a basis for the MEpedia page for exactly this reason. The page already contains much criticism of Wessely. It says in the introduction that his work is controversial and has been repeatedly criticized and it already contains numerous controversial quotes of him (including the “not wanting to get better” one). &lt;br /&gt;
Regarding the quotes out of context: I do think this is a big problem. The one about ME merely being a belief for example has been circulating within the ME community as it were to mean that ME patients are malingering, which isn’t what Wessely was saying. These kinds of misunderstandings are very unfortunate and distract from the real issues with his work.&lt;br /&gt;
I also think the MEpedia page should not only be directed towards patients but also to outsiders such as journalists or researchers who want objective information about Wessely. So a link to a list of controversial quotes with comments mocking what he said seems inappropriate. There are plenty of blogs and articles that criticize his work or scrutinize every word he said during his career, looking for inconsistencies or poorly nuanced statements. I don’t think the MEpedia page should be another of these and instead should offer an overview of his work and career like we do with other pages on researchers. If you see further problems with the page, I don’t mind discussing it further. But I think the current version is well balanced. - Sisyphus.&lt;br /&gt;
:I think the issue we are disagreeing on here is mostly neutrality. While parts of the previous page were not put across in a way that was fully neutrally totally excluding critical sources has in fact done the opposite. We can look at phrasing at the amount of text given to criticism but removing it is entirely inappropriate. I have an issue with passing off Wessely&#039;s views as facts when they are not - such as claiming CFS is part of MUS. We should not be doing that on any researcher&#039;s page. There is no doubt that Wessely is controversial - in fact he has given a number of interviews knowing that they would be controversial. &amp;quot;Controversial&amp;quot; is not a negative judgement - the Enterovirus theory is also controversial. ME itself and much of the research is controversial. The fact is his research is controversial too - after all the CDC, NHS and others followed it and the CDC and others then dumped it, plus there was the Stop GET petition too. The Institute of Medicine report disputes it. On neurality, we also can&#039;t claim Wessely invented CBT for CFS when he actually was one of 3 - Trudie Chalder has separately claimed to be the inventer. I am going to make some edits today, keeping in mind what you have said, to add in more neutral phrasing on his research &amp;quot;Wessely stated&amp;quot;, in &amp;quot;Sir Wessely&#039;s view&amp;quot; etc. And add back in some references critical. While Margaret Williams and Malcolm Hooper are very critical, that does not mean they should be totally left off the page - that&#039;s not neutrality - but neither should they be emphasized. Patient groups critical of Wessely should certainly be referenced, along with Freedom of Information Act requests since they are neutral and accurate. This might mean overall that less text is critical of Wessely than before, but that there are a large number of sources supporting certain points. Part of the guidelines we are writing for is to allow others to find out more information, so we do need to either reference or link to quotes or Hooper&#039;s Mental health movement, but also any articles praising him and summarizing his contribution. If Quotes aren&#039;t used as a heading then they could go in Learn more for example. Clearly given the significant time taken to collect all these, they do have significance and may bring people to do the page who are looking for &amp;quot;Weasel words&amp;quot; - in which case they would then see an article more balanced than just those quotes. Perhaps you would like to look for those, or have some in mind. Re: Malingering: Wessely has said exactly that, in fact using the phrase &amp;quot;malinger&#039;s charter&amp;quot;. Part of the basis of his scientific arguments is that around the &amp;quot;secondary gain&amp;quot; - his work and especially interviews repeatedly make this claim. That doesn&#039;t necessarily mean that particular quote needs including, but it is representative of his views. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 07:12, July 18, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
With all the respect notjusttired but I disagree with some of your changes and would prefer the original to be reinstated. I don’t want to use an argument of authority here, but my text does include 135 references, mostly scientific publications. I have worked many months on this and I know what I’m talking about. &lt;br /&gt;
For example regarding the Gulf War syndrome: there’s not really a contradiction: his 1999 epidemiological study demonstrated that there was an adverse effect of going to the Gulf war that goes beyond deployed to war or being a soldier at that time period. So his study was one of the most important ones in demonstrating that the health of soldiers who went to the Gulf War was affected by something. But he doesn’t want to say there is a Gulf War Syndrome because there was no evidence for a unique constellation of signs or symptoms – the Gulf war veterans reported more of all the 50 symptoms assessed in the study. That’s his view and it’s unambiguously presented in his publications. It’s only by relying on fragmented quotes or misrepresentations by Hooper and Williams that things get obscure and that’s what I’m trying to avoid on the page. &lt;br /&gt;
Malingering is another example. There is no evidence that Wessely thinks CFS patients are malingering. In fact he has repeatedly warned against this idea, saying “there is little evidence to suggest that the fatigue results from impaired motivation, and the use of terms such as ‘malingering’ or ‘hysteria’ is to be deplored.” (Source: https://studylib.net/doc/7895242/chronic-fatigue-syndrome). He made similar arguments about Gulf War Syndrme (see minute 50 of this lecture: https://vimeo.com/52995882).&lt;br /&gt;
I can also attest that Wessely developed CBT for CFS: he was to first to publish about this in 1988 and to first to publish a trial on this in 1991. Chalder worked for him at the time so when she says she first developed CBT, she probably meant she was part of the team that did and that team was lead by Wessely. I highly doubt that she would contest that. She has no problem with crediting him, even about the scale that now bears her name: “I think its more Simons research than mine that we developed a fatigue scale, which is now called The Chalder fatigue scale.” (source: https://www.s4me.info/threads/13-march-2019-chalder-%E2%80%98medically-unexplained-symptoms%E2%80%99-my-clinical-and-research-journey-over-30-years.5576/page-3#post-152193) &lt;br /&gt;
I have reread the page and don’t understand what you mean by presenting Wesselys&#039; view that CFS is part of MUS as a fact. I constantly use the phrase “they argued…” Williams and Hooper are allready on the page, they are references as examples of criticism of Wessely’s work.  And I don’t quite understand why you made a separate heading for the PACE trial: Wessely wasn’t an author of the PACE trial. It seems weird to focus on this. He has published approximately 600 papers, several books and numerous newspaper articles – most which don’t get a mention because of a lack of space.&lt;br /&gt;
I’ve waited on editing the Wessely page until I’ve read most of his work and got an overview. By working this way I hoped to achieve a balance in attention each items receives without making the page too long. So please be mindful of that if you change things. Kind regards - Sisyphus.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;CBT is is based on a psychological and fatigue-based approach, with an expectation that exercise would normally be part of the treatment.&amp;quot; is also not correct. In contrast to the CBT developed by Bleijenberg and Vercoulen, the CBT model developed at Kings&#039; College does not necessarily include exercise. Instead it is focussed on graded actvity which can be increases in social activities, reading etc. Furthermore it is strange to describe it as a fatigue-based approach as it was inspired by the treatment of chronic pain. Wessely and other CBT-authors acknowledge this repeatedly.&lt;br /&gt;
::Do you mind if I move this conversion to the Talk page for Wessely? We are getting into what feels like a stalemate, I think input and suggestions from others would help. There shouldn&#039;t be a question on authority here, I would like to achieve a consensus and that should be possible. One of the very difficult issues with Wessely is that he contradicts himself, and these are worth pointing out. He will claim one thing in one place and another to a different audience - &amp;quot;malinger&#039;s charter&amp;quot; is a direct quote from him which he later contradicted (just as an example). So we should be careful in claiming his view or one thing or another when he himself has contradicted it elsewhere. The new section I will respond on in a moment, with a paste from the research to clarify. &lt;br /&gt;
::I recognize you have worked hard on this, but I think to make huge changes at all once causes issues for other editors. I also have worked extensively in this page, in Nov/Dec, and in March and then in June, plus on related topics recently - eg CBM model, and CBT. I too would prefer a revert to before you made the changes (!) but I think a looking towards a consensus would be a better approach. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 09:20, July 18, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yes perhaps it&#039;s best to move the conversion to the talk page for Wessely. Perhaps we can just copy paste what we wrote here so that others can follow our conversation? &lt;br /&gt;
I also agree in working towards a consensus. But changes need to be carefully argued with good references (not just something someone else has claimed on a blog or tweet). I haven&#039;t seen any evidence that Wessely often contradicts himself, excepts perhaps for his statements on not seeing Ean P. Of course if one dissects everything a researcher has said or published in the last 30 years, you&#039;ll always find something. But haven&#039;t noticed clear contradictions. I&#039;m not aware however where the &#039;malinger&#039;s charter&#039; quote comes from - was this during a lecture?&lt;br /&gt;
One option would be to add more detailed criticism and information about Wessely on a seperate page - for example &#039;Wessely school&#039; and to add a prominent link on the Simon Wessely page to this one for further details on the criticism of his work, including what Hooper and Williams have written. &lt;br /&gt;
I apologize if I deleted information you saw as important. I tried to incorporate most in the text I&#039;ve wrote. I appreciate the hard work you put into MEpedia.&lt;br /&gt;
&lt;br /&gt;
== Tagging -- [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 16:06, July 23, 2019 (EDT) ==&lt;br /&gt;
&lt;br /&gt;
Hi there... I&#039;m really too drained and preoccupied to do much these days with the wiki, so if you wouldn&#039;t mind only tagging me in cases where I had added the content myself, I&#039;d appreciate it. Thanks! [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 16:06, July 23, 2019 (EDT)&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Category_talk:Communication_System&amp;diff=62438</id>
		<title>Category talk:Communication System</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Category_talk:Communication_System&amp;diff=62438"/>
		<updated>2019-07-23T20:01:25Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:fix sig.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Delete? -- [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:09, July 23, 2019 (EDT) ==&lt;br /&gt;
&lt;br /&gt;
We already have Endocrine system and neurotransmitters categories. Should this be deleted? [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 14:09, July 23, 2019 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Someone had requested we create Functional Medicine categories. To minimize duplication, I&#039;d just suggest labelin the &amp;quot;endocrine system&amp;quot;, etc. categories as belonging to this category, and this is one of them. We can have multiple organization schemes, but obviously we don&#039;t want a duplication of effort. [[User:Brettz9|Brettz9]] ([[User talk:Brettz9|talk]]) 16:01, July 23, 2019 (EDT)&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=MediaWiki:Licenses&amp;diff=40892</id>
		<title>MediaWiki:Licenses</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=MediaWiki:Licenses&amp;diff=40892"/>
		<updated>2018-10-11T02:19:36Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:add licenses per Innie FB request&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Unknown_copyright|I don&#039;t know exactly&lt;br /&gt;
&lt;br /&gt;
* Free licenses:&lt;br /&gt;
** PD|PD: public domain&lt;br /&gt;
** PD-USGov|Public domain US Government&lt;br /&gt;
** GFDL|GFDL: GNU Free Documentation License&lt;br /&gt;
** LGPL|LGPL: GNU Lesser General Public License&lt;br /&gt;
&lt;br /&gt;
* CC-zero|Creative Commons Zero (public domain)&lt;br /&gt;
&lt;br /&gt;
* CC Share-Alike:&lt;br /&gt;
** CC-by-sa-4.0|Creative Commons ShareAlike 4.0&lt;br /&gt;
** CC-by-sa-3.5|Creative Commons ShareAlike 3.5&lt;br /&gt;
** CC-by-sa-3.0|Creative Commons ShareAlike 3.0&lt;br /&gt;
** CC-by-sa-2.5|Creative Commons ShareAlike 2.5&lt;br /&gt;
** CC-by-sa-2.0|Creative Commons ShareAlike 2.0&lt;br /&gt;
&lt;br /&gt;
* CC Attribution only:&lt;br /&gt;
** CC-by-4.0|Creative Commons Attribution 4.0&lt;br /&gt;
** CC-by-3.5|Creative Commons Attribution 3.5&lt;br /&gt;
** CC-by-3.0|Creative Commons Attribution 3.0&lt;br /&gt;
** CC-by-2.5|Creative Commons Attribution 2.5&lt;br /&gt;
** CC-by-2.0|Creative Commons Attribution 2.0&lt;br /&gt;
* CC other:&lt;br /&gt;
** CC-by-nc-4.0|CC NonCommercial 4.0&lt;br /&gt;
** CC-by-nc-3.5|CC NonCommercial 3.5&lt;br /&gt;
** CC-by-nc-3.0|CC NonCommercial 3.0&lt;br /&gt;
** CC-by-nc-2.5|CC NonCommercial 2.5&lt;br /&gt;
** CC-by-nc-2.0|CC NonCommercial 2.0&lt;br /&gt;
** CC-by-nc-nd-4.0|CC NonCommercial No-Derivs 4.0&lt;br /&gt;
** CC-by-nd-4.0|CC No-Derivs 4.0&lt;br /&gt;
&lt;br /&gt;
*Fair_Use_License|Fair Use&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Opioids&amp;diff=36501</id>
		<title>Opioids</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Opioids&amp;diff=36501"/>
		<updated>2018-08-03T17:49:14Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:Move to template category stub (also, most are using Category:Stubs plural instead)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Opioids are drugs that bind to opioid receptors to produce [[morphine]]-like effects.[2] They provide moderate to very strong [[pain]] relief. A large range of opioids are used to treat pain in ME/CFS. Some of these are [[codeine]], [[tramadol]], [[oxycodone]], [[vicodin]], [[hydrocodone]], [[fentanyl]] and morphine.&lt;br /&gt;
[[Category:Analgesics]]&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:StubPagesInCategory&amp;diff=30166</id>
		<title>Template:StubPagesInCategory</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:StubPagesInCategory&amp;diff=30166"/>
		<updated>2018-05-04T00:35:07Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:Add page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;This template is for listing all stub page members within a category. Use like &amp;lt;nowiki&amp;gt;{{StubPagesInCategory|myCategoryToListOut}} or with full arguments, {{StubPagesInCategory|myCategoryToListOut|columnCount=3|mode=ordered}} where &amp;quot;columnCount&amp;quot; is optional and can be any integer representing the number of columns, and &amp;quot;mode&amp;quot; which is also optional and can be &amp;quot;ordered&amp;quot;, &amp;quot;unordered&amp;quot;, &amp;quot;none&amp;quot;, &amp;quot;gallery&amp;quot; (for images), &amp;quot;inline-bullets&amp;quot;, or &amp;quot;inline&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{#invoke:CategoryList|main|stubs|{{{1|}}}|columnCount={{{columnCount|}}}|mode={{{mode|}}}}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=User:Brettz9/test10&amp;diff=30116</id>
		<title>User:Brettz9/test10</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=User:Brettz9/test10&amp;diff=30116"/>
		<updated>2018-05-03T15:14:42Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:test&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#invoke:CategoryList|main|Potential treatments|stubs|mode=inline}}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:CategoryList&amp;diff=30115</id>
		<title>Module:CategoryList</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:CategoryList&amp;diff=30115"/>
		<updated>2018-05-03T15:13:45Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:restrict loop to numeric arguments&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--See Module:CategoryListOld for more complete, but failed attempt&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.pagesInCategory (frame)&lt;br /&gt;
    local categories = frame.args&lt;br /&gt;
    local listStyleType = frame.args.mode&lt;br /&gt;
    if listStyleType == nil or listStyleType == &#039;&#039; then listStyleType = &#039;inline-bullets&#039; end&lt;br /&gt;
    local columnCount = frame.args.columnCount or &#039;&#039;&lt;br /&gt;
    if columnCount then columnCount = &#039;columncount = &#039; .. columnCount end&lt;br /&gt;
    &lt;br /&gt;
    local categoryList = &#039;&#039;&lt;br /&gt;
    for k, category in pairs( frame.args ) do&lt;br /&gt;
    	if string.match(k, &#039;[0-9]&#039;) then categoryList = categoryList .. [[category = ]] .. category .. &#039;\n        &#039; end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    local opts = [[&lt;br /&gt;
&lt;br /&gt;
        ]] .. categoryList .. [[&lt;br /&gt;
&lt;br /&gt;
        shownamespace = true&lt;br /&gt;
&lt;br /&gt;
        mode = ]] .. listStyleType .. [[&lt;br /&gt;
&lt;br /&gt;
        ordermethod = sortkey&lt;br /&gt;
        order     = ascending&lt;br /&gt;
&lt;br /&gt;
        ]] .. columnCount .. [[&lt;br /&gt;
&lt;br /&gt;
    ]]&lt;br /&gt;
&lt;br /&gt;
    return frame:extensionTag(&#039;DynamicPageList&#039;, opts)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.categoriesInCategory (frame)&lt;br /&gt;
    local categories = frame.args&lt;br /&gt;
    local listStyleType = frame.args.mode&lt;br /&gt;
    if listStyleType == nil or listStyleType == &#039;&#039; then listStyleType = &#039;inline-bullets&#039; end&lt;br /&gt;
    local columnCount = frame.args.columnCount or &#039;&#039;&lt;br /&gt;
    if columnCount then columnCount = &#039;columncount = &#039; .. columnCount end&lt;br /&gt;
    &lt;br /&gt;
    local categoryList = &#039;&#039;&lt;br /&gt;
    for k, category in pairs( frame.args ) do&lt;br /&gt;
    	if string.match(k, &#039;[0-9]&#039;) then categoryList = categoryList .. [[category = ]] .. category .. &#039;\n        &#039; end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    local opts = [[&lt;br /&gt;
&lt;br /&gt;
        ]] .. categoryList .. [[&lt;br /&gt;
        &lt;br /&gt;
        namespace = Category&lt;br /&gt;
        shownamespace = false&lt;br /&gt;
&lt;br /&gt;
        mode = ]] .. listStyleType .. [[&lt;br /&gt;
&lt;br /&gt;
        ordermethod = sortkey&lt;br /&gt;
        order     = ascending&lt;br /&gt;
&lt;br /&gt;
        ]] .. columnCount .. [[&lt;br /&gt;
&lt;br /&gt;
    ]]&lt;br /&gt;
&lt;br /&gt;
    return frame:extensionTag(&#039;DynamicPageList&#039;, opts)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
    return p.pagesInCategory(frame)&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:CategoryList&amp;diff=30104</id>
		<title>Module:CategoryList</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:CategoryList&amp;diff=30104"/>
		<updated>2018-05-03T12:52:05Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:Support multiple categories&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--See Module:CategoryListOld for more complete, but failed attempt&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.pagesInCategory (frame)&lt;br /&gt;
    local categories = frame.args&lt;br /&gt;
    local listStyleType = frame.args.mode&lt;br /&gt;
    if listStyleType == nil or listStyleType == &#039;&#039; then listStyleType = &#039;inline-bullets&#039; end&lt;br /&gt;
    local columnCount = frame.args.columnCount or &#039;&#039;&lt;br /&gt;
    if columnCount then columnCount = &#039;columncount = &#039; .. columnCount end&lt;br /&gt;
    &lt;br /&gt;
    local categoryList = &#039;&#039;&lt;br /&gt;
    for k, category in pairs( frame.args ) do&lt;br /&gt;
    	categoryList = categoryList .. [[category = ]] .. category .. &#039;\n        &#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    local opts = [[&lt;br /&gt;
&lt;br /&gt;
        ]] .. categoryList .. [[&lt;br /&gt;
&lt;br /&gt;
        shownamespace = true&lt;br /&gt;
&lt;br /&gt;
        mode = ]] .. listStyleType .. [[&lt;br /&gt;
&lt;br /&gt;
        ordermethod = sortkey&lt;br /&gt;
        order     = ascending&lt;br /&gt;
&lt;br /&gt;
        ]] .. columnCount .. [[&lt;br /&gt;
&lt;br /&gt;
    ]]&lt;br /&gt;
&lt;br /&gt;
    return frame:extensionTag(&#039;DynamicPageList&#039;, opts)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.categoriesInCategory (frame)&lt;br /&gt;
    local categories = frame.args&lt;br /&gt;
    local listStyleType = frame.args.mode&lt;br /&gt;
    if listStyleType == nil or listStyleType == &#039;&#039; then listStyleType = &#039;inline-bullets&#039; end&lt;br /&gt;
    local columnCount = frame.args.columnCount or &#039;&#039;&lt;br /&gt;
    if columnCount then columnCount = &#039;columncount = &#039; .. columnCount end&lt;br /&gt;
    &lt;br /&gt;
    local categoryList = &#039;&#039;&lt;br /&gt;
    for k, category in pairs( categories ) do&lt;br /&gt;
    	categoryList = categoryList .. [[category = ]] .. category .. &#039;\n        &#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    local opts = [[&lt;br /&gt;
&lt;br /&gt;
        ]] .. categoryList .. [[&lt;br /&gt;
        &lt;br /&gt;
        namespace = Category&lt;br /&gt;
        shownamespace = false&lt;br /&gt;
&lt;br /&gt;
        mode = ]] .. listStyleType .. [[&lt;br /&gt;
&lt;br /&gt;
        ordermethod = sortkey&lt;br /&gt;
        order     = ascending&lt;br /&gt;
&lt;br /&gt;
        ]] .. columnCount .. [[&lt;br /&gt;
&lt;br /&gt;
    ]]&lt;br /&gt;
&lt;br /&gt;
    return frame:extensionTag(&#039;DynamicPageList&#039;, opts)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
    return p.pagesInCategory(frame)&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Asbox&amp;diff=29733</id>
		<title>Module:Asbox</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Asbox&amp;diff=29733"/>
		<updated>2018-04-24T06:35:49Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:Change Wikipedia reference to MEpedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[&lt;br /&gt;
This module was created by User:CodeHydro (Alexander Zhikun He).&lt;br /&gt;
User:Jackmcbarn and User:Mr._Stradivarius provided a great deal of assistance in writting p.main()&lt;br /&gt;
&lt;br /&gt;
p.main() draw heavily from the following version of Template:Asbox of the English Wikipedia, authored primarily by User:Rich_Farmbrough&lt;br /&gt;
https://en.wikipedia.org/w/index.php?title=Template:Asbox&amp;amp;oldid=619510287&lt;br /&gt;
&lt;br /&gt;
p.templatepage() is derived from the following revision of Template:Asbox/templatepage, authored primarily by User:MSGJ&lt;br /&gt;
https://en.wikipedia.org/w/index.php?title=Template:Asbox/templatepage&amp;amp;oldid=632914791&lt;br /&gt;
&lt;br /&gt;
Both templates had significant contributions from numerous others listed in the revision history tab of their respective pages.&lt;br /&gt;
--]]&lt;br /&gt;
local WRAPPER_TEMPLATE, args = &#039;Template:Asbox&#039;&lt;br /&gt;
local p, Buffer, stubCats = {&lt;br /&gt;
	--Prevents dupli-cats... get it? Maybe not?&lt;br /&gt;
	cats = setmetatable({}, {__newindex = function(t, i, v)&lt;br /&gt;
		if not rawget(t, i) then&lt;br /&gt;
			rawset(t, i, v)&lt;br /&gt;
			table.insert(t, i)&lt;br /&gt;
		end&lt;br /&gt;
	end}),&lt;br /&gt;
	--initializes variables required by both p.main and p.templatepage&lt;br /&gt;
	init = function(self, frame, page)&lt;br /&gt;
		args, page = args or require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
			wrappers = WRAPPER_TEMPLATE&lt;br /&gt;
		}), page or mw.title.getCurrentTitle()&lt;br /&gt;
		--Ensures demo parameter will never affect category() output for articles&lt;br /&gt;
		self.demo = self.demo or page.namespace ~= 0 and args.demo&lt;br /&gt;
		return args, page&lt;br /&gt;
	end&lt;br /&gt;
}, require(&#039;Module:Buffer&#039;)&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
Formats category links. Stores them until called with cat.done=true&lt;br /&gt;
Takes multiple or single categories in the form of &#039;cat&#039;&lt;br /&gt;
or a table of strings and/or tables containing parts. (See below)&lt;br /&gt;
]]&lt;br /&gt;
local attention, catTag, catKey = Buffer&#039;Stub message templates needing attention&#039;, &#039;[[Category:%s]]&#039;, &#039;%s|%s%s&#039;&lt;br /&gt;
local function category(cat)&lt;br /&gt;
	for _, v in ipairs((tostring(cat) == cat or cat.t) and {cat} or cat) do&lt;br /&gt;
		--[[&lt;br /&gt;
		If v is a table:&lt;br /&gt;
			[1] = full category name; defaults to local attention if blank&lt;br /&gt;
			k = Category sort key. Prefix before v.t&lt;br /&gt;
			t = page.text or args.tempsort#; appended after k (or in its place if omitted). Required if v is not a string&lt;br /&gt;
		Basically the same as v = (v[1] or attention) .. &#039; | &#039; .. (v.k or &#039;&#039;) .. v.t&lt;br /&gt;
		]]&lt;br /&gt;
		if v and v ~= true then--reject v = nil, false, or true&lt;br /&gt;
			p.cats[catTag:format(tostring(v) == v and&lt;br /&gt;
				v&lt;br /&gt;
				or (v[1] and Buffer(v[1]) or attention):_in(v.k):_(v.t):_str(2, nil, nil, &#039;|&#039;)&lt;br /&gt;
			)] = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return cat.done and table.concat(p.cats, p.demo and &#039; | &#039; or nil) or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
Makes an ombox warning;&lt;br /&gt;
Takes table {ifNot = Boolean, text, {cat. sort key, cat. sort name}}&lt;br /&gt;
Will return an empty string instead when ifNot evaluates to true &lt;br /&gt;
]]&lt;br /&gt;
local function ombox(v)&lt;br /&gt;
	if v.ifNot then return end&lt;br /&gt;
	p.ombox = p.ombox or require(&#039;Module:Message box&#039;).ombox&lt;br /&gt;
	category{v[2]}&lt;br /&gt;
	return p.ombox{&lt;br /&gt;
		type = &#039;content&#039;,&lt;br /&gt;
		text = v[1]&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
Unlike original template, module now takes unlimited cats! This function also performs&lt;br /&gt;
most stub category error checks except for the ombox for when main |category= is omitted (See p.template())&lt;br /&gt;
]]&lt;br /&gt;
local function catStub(page, pageDoc)&lt;br /&gt;
	stubCats = {missing = {}, v = {}}&lt;br /&gt;
	local code&lt;br /&gt;
	for k, _ in pairs(args) do&lt;br /&gt;
		--Find category parameters and store the number (main cat = &#039;&#039;)&lt;br /&gt;
		table.insert(stubCats, string.match(k, &#039;^category(%d*)$&#039;))&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(stubCats)&lt;br /&gt;
	for k, v in ipairs(stubCats) do&lt;br /&gt;
		--Get category names and, if called by p.templatepage, the optional sort key&lt;br /&gt;
		local tsort, cat = args[&#039;tempsort&#039; .. v], mw.ustring.gsub(args[&#039;category&#039; .. v], &#039;[^%w%p%s]&#039;, &#039;&#039;)--remove all hidden unicode chars &lt;br /&gt;
		--Do not place template in main category if |tempsort = &#039;no&#039;. However, DO place articles of that template in the main category.&lt;br /&gt;
		table.insert(stubCats.v,&lt;br /&gt;
			 page and (--p.templatepage passes page; p.main does not, i.e. articles are categorized without sort keys.&lt;br /&gt;
				v==&#039;&#039; and tsort == &#039;no&#039;--if true, inserts &#039;true&#039; in table, which category() will reject&lt;br /&gt;
				or tsort and {cat, k = &#039; &#039;, t = tsort}&lt;br /&gt;
				or {cat, k = &#039; *&#039;, t = page.text}--note space in front of sort key&lt;br /&gt;
			)&lt;br /&gt;
			or cat&lt;br /&gt;
		)&lt;br /&gt;
		--Check category existance only if on the template page (i.e. stub documentation)&lt;br /&gt;
		if page then&lt;br /&gt;
			if not mw.title.new(&#039;Category:&#039; .. cat).exists then&lt;br /&gt;
				code = code or mw.html.create&#039;code&#039;:wikitext&#039;|category&#039;&lt;br /&gt;
				table.insert(stubCats.missing, tostring(mw.clone(code):wikitext(v)))&lt;br /&gt;
			end&lt;br /&gt;
			--[[&lt;br /&gt;
			Checks non-demo stub template for documentation and flags if doc is present.&lt;br /&gt;
			All stub cats names are checked and flagged if it does not match &#039;Category: [] stub&#039;.&lt;br /&gt;
			The main stub cat is exempt from the name check if the stub template has its own doc&lt;br /&gt;
			(presumably, this doc would have an explanation as to why the main stub cat is non-conforming).&lt;br /&gt;
			]]&lt;br /&gt;
			table.insert(stubCats.v, v == &#039;&#039; and not p.demo and pageDoc.exists and&lt;br /&gt;
				&#039;Stub message templates with documentation subpages&#039;&lt;br /&gt;
				or not cat:match&#039; stubs$&#039; and {k = &#039;S&#039;, t = page.text}&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	--Add category names after loop is completed&lt;br /&gt;
	category(stubCats.v)&lt;br /&gt;
	return #stubCats.missing &amp;gt; 0 and ombox{&lt;br /&gt;
		--Changed, original msg:&lt;br /&gt;
		--One or more of the stub categories defined in this template do not seem to exist!&lt;br /&gt;
		--Please double-check the parameters {{para|category}}, {{para|category1}} and {{para|category2}}.&lt;br /&gt;
		&#039;The following parameter&#039;&lt;br /&gt;
			.. (#stubCats.missing == 1 and &#039; defines a stub category that does&#039; or &#039;s define stub categories that do&#039;)&lt;br /&gt;
			.. &#039; not exist: &#039; .. mw.text.listToText(stubCats.missing),&lt;br /&gt;
		{k = &#039;N&#039;, t = page.text}&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Shows population of categories found by catStub(). Outputs demo values if none&lt;br /&gt;
local function population()&lt;br /&gt;
	local wikitext, base = {}, &#039;* [[:Category:%s]] (population: %s)\n&#039;&lt;br /&gt;
	if not args.category and stubCats[1] ~= false then&lt;br /&gt;
		table.insert(stubCats, 1, false)&lt;br /&gt;
	end&lt;br /&gt;
	for _, v in ipairs(stubCats) do&lt;br /&gt;
		table.insert(wikitext, base:format(&lt;br /&gt;
			v and args[&#039;category&#039; .. v] or &#039;{{{category}}}&#039;,&lt;br /&gt;
			v and mw.site.stats.pagesInCategory(args[&#039;category&#039; .. v], &#039;all&#039;) or 0&lt;br /&gt;
		))&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(wikitext)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Includes standard stub documention and flags stub templates with bad parameter values.&lt;br /&gt;
function p.templatepage(frame, page)&lt;br /&gt;
	args, page = p:init(frame, page)&lt;br /&gt;
	local tStubDoc = mw.title.new&#039;Template:Stub documentation&#039;&lt;br /&gt;
	local pageDoc = page:subPageTitle(&#039;doc&#039;)&lt;br /&gt;
	--Reorganization note: Original Asbox alternates between outputting categories and checking on params |category#=.&lt;br /&gt;
	--Rather than checking multiple times and switching tasks, all stub category param operations have been rolled into catStub()&lt;br /&gt;
	return Buffer(&lt;br /&gt;
		ombox{--Show ombox warnings for missing args.&lt;br /&gt;
			ifNot = args.category,&lt;br /&gt;
			&#039;The &amp;lt;code&amp;gt;|category&amp;lt;/code&amp;gt; parameter is not set. Please add an appropriate stub category.&#039;,&lt;br /&gt;
			{k = &#039;C&#039;, t = page.text}&lt;br /&gt;
		})&lt;br /&gt;
		:_(ombox{&lt;br /&gt;
			ifNot = args.subject or args.article or args.qualifier,&lt;br /&gt;
			&#039;This stub template contains no description! At least one of the parameters &amp;lt;code&amp;gt;|subject&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;|article&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;|qualifier&amp;lt;/code&amp;gt; must be defined.&#039;,&lt;br /&gt;
			{k = &#039;D&#039;, t = page.text}&lt;br /&gt;
		})&lt;br /&gt;
		:_(catStub(page, pageDoc))--catStub() may also return an ombox if there are non-existing categories&lt;br /&gt;
		:_(category{&lt;br /&gt;
			done = p.demo ~= &#039;doc&#039;,--Outputs categories if not doc demo&lt;br /&gt;
			&#039;Stub message templates&#039;,&lt;br /&gt;
			&#039;Exclude in print&#039;,&lt;br /&gt;
			args.icon and&lt;br /&gt;
				&#039;Stub message templates using icon parameter&#039;&lt;br /&gt;
				or args.image and (&lt;br /&gt;
					mw.title.new(&#039;Media:&#039; .. mw.text.split(args.image, &#039;|&#039;)[1]).exists--do nothing if exists. category() will reject true&lt;br /&gt;
					or {k = &#039;B&#039;, t = page.text}&lt;br /&gt;
				)&lt;br /&gt;
				or &#039;Stub message templates without images&#039;,&lt;br /&gt;
			args.imagealt and {k = &#039;I&#039;, t = page.text},&lt;br /&gt;
		})&lt;br /&gt;
		:_((not p.demo or p.demo == &#039;doc&#039;) and--Add standard stub template documentation&lt;br /&gt;
			require(&#039;Module:Documentation&#039;).main{&lt;br /&gt;
				content = Buffer(page.text ~= &#039;Stub&#039; and--This comparison performed in {{Asbox/stubtree}} before it invokes Module:Asbox stubtree&lt;br /&gt;
						require(&#039;Module:Asbox stubtree&#039;).subtree{args = {pagename = page.text}}&lt;br /&gt;
					)&lt;br /&gt;
					:_in&#039;\n== About this template ==\nThis template is used to identify a&#039;:_(args.subject):_&#039;stub&#039;:_(args.qualifier):_out&#039; &#039;--space&lt;br /&gt;
					:_&#039;. It uses {{[[Template:Asbox|asbox]]}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.\n=== Usage ===\nTyping &#039;&lt;br /&gt;
					:_(mw.html.create&#039;code&#039;&lt;br /&gt;
						:wikitext(&#039;{{&#039;, page.text == &#039;Stub&#039; and &#039;stub&#039; or page.text, &#039;}}&#039;)&lt;br /&gt;
					)&lt;br /&gt;
					:_&#039; produces the message shown at the beginning, and adds the article to the following categor&#039;&lt;br /&gt;
					:_(#stubCats &amp;gt; 1 and &#039;ies&#039; or &#039;y&#039;)&lt;br /&gt;
					:_&#039;:\n&#039;&lt;br /&gt;
					:_(population())&lt;br /&gt;
					:_(pageDoc.exists and--transclusion of /doc if it exists&lt;br /&gt;
						frame:expandTemplate{title = pageDoc.text}&lt;br /&gt;
					)&lt;br /&gt;
					:_&#039;\n== General information ==\n&#039;&lt;br /&gt;
					:_(frame:expandTemplate{title = tStubDoc.text})&lt;br /&gt;
					:_&#039;\n\n&#039;(),&lt;br /&gt;
				[&#039;link box&#039;] = Buffer&#039;This documentation is automatically generated by [[Module:Asbox]].&#039;&lt;br /&gt;
					:_in&#039;The general information is transcluded from [[Template:Stub documentation]]. &#039;&lt;br /&gt;
						:_(mw.html.create&#039;span&#039;&lt;br /&gt;
							:cssText&#039;font-size:smaller;font-style:normal;line-height:130%&#039;&lt;br /&gt;
							:node((&#039;([%s edit] | [%s history])&#039;):format(&lt;br /&gt;
								tStubDoc:fullUrl(&#039;action=edit&#039;, &#039;relative&#039;),&lt;br /&gt;
								tStubDoc:fullUrl(&#039;action=history&#039;, &#039;relative&#039;)&lt;br /&gt;
							))&lt;br /&gt;
						)&lt;br /&gt;
						:_out()&lt;br /&gt;
					:_(page.protectionLevels.edit and page.protectionLevels.edit[1] == &#039;sysop&#039; and&lt;br /&gt;
						&amp;quot;This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] should be added to the template&#039;s [&amp;quot;&lt;br /&gt;
						.. pageDoc:fullUrl(&#039;action=edit&amp;amp;preload=Template:Category_interwiki/preload&#039;, &#039;relative&#039;)&lt;br /&gt;
						.. &#039;| /doc] subpage, which is not protected.&#039;&lt;br /&gt;
					)&#039; &amp;lt;br/&amp;gt;&#039;&lt;br /&gt;
			}&lt;br /&gt;
		)()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame, page)&lt;br /&gt;
	args, page = p:init(frame, page)&lt;br /&gt;
	local output = mw.html.create&#039;table&#039;&lt;br /&gt;
		:addClass&#039;metadata plainlinks stub&#039;&lt;br /&gt;
		:css{background = &#039;transparent&#039;}&lt;br /&gt;
		:attr{role = &#039;presentation&#039;}&lt;br /&gt;
		:tag&#039;tr&#039;&lt;br /&gt;
			:node((args.icon or args.image) and&lt;br /&gt;
				mw.html.create&#039;td&#039;&lt;br /&gt;
					:wikitext(args.icon or (&#039;[[File:%s|%spx|alt=%s]]&#039;):format(&lt;br /&gt;
						args.image or &#039;&#039;,&lt;br /&gt;
						args.pix or &#039;40x30&#039;,&lt;br /&gt;
						args.imagealt or &#039;Stub icon&#039;&lt;br /&gt;
					))&lt;br /&gt;
			)&lt;br /&gt;
			:tag&#039;td&#039;&lt;br /&gt;
				:tag&#039;i&#039;&lt;br /&gt;
					:wikitext(&lt;br /&gt;
						Buffer&#039;This&#039;:_(args.subject):_(args.article or &#039;article&#039;):_(args.qualifier)&#039; &#039;,--space&lt;br /&gt;
						&#039; is a [[Wikipedia:stub|stub]]. You can help MEpedia by [&#039;,&lt;br /&gt;
						page:fullUrl(&#039;action=edit&#039;, &#039;relative&#039;),&lt;br /&gt;
						&#039; expanding it].&#039;&lt;br /&gt;
					)&lt;br /&gt;
				:done()&lt;br /&gt;
				:node(args.name and&lt;br /&gt;
					require&#039;Module:Navbar&#039;._navbar{&lt;br /&gt;
						args.name,&lt;br /&gt;
						mini = &#039;yes&#039;,&lt;br /&gt;
						style = &#039;position: absolute; right: 15px; display: none;&#039;&lt;br /&gt;
					}&lt;br /&gt;
				)&lt;br /&gt;
				:node(args.note and&lt;br /&gt;
					mw.html.create()&lt;br /&gt;
						:tag&#039;br&#039;:done()&lt;br /&gt;
						:tag&#039;span&#039;&lt;br /&gt;
							:css{[&#039;font-style&#039;] = &#039;normal&#039;, [&#039;font-size&#039;] = &#039;smaller&#039;}&lt;br /&gt;
							:wikitext(args.note)&lt;br /&gt;
						:done()&lt;br /&gt;
				)&lt;br /&gt;
		:allDone()&lt;br /&gt;
	--[[&lt;br /&gt;
	Stub categories for templates include a sort key (Otherwise all will be indexed under the letter &#039;T&#039; for &#039;Template:[] stubs&#039;)&lt;br /&gt;
	Articles using the template do not need a sort key since they have unique names.&lt;br /&gt;
	When p.demo equals &#039;doc&#039;, the demo stub categories will appear as those for a stub template.&lt;br /&gt;
	Otherwise, any non-nil p.demo will emulate article space categories (plus any error cats unless set to &#039;art&#039;)&lt;br /&gt;
	]]&lt;br /&gt;
	if page.namespace == 0 then -- Main namespace&lt;br /&gt;
		category&#039;All stub articles&#039;&lt;br /&gt;
		catStub()&lt;br /&gt;
	elseif p.demo then&lt;br /&gt;
		if p.demo ~= &#039;doc&#039; then catStub() end&lt;br /&gt;
		--Unless p.demo is set to &#039;art&#039;, it will also include error categories normally only shown on&lt;br /&gt;
		--the template but not in the article. The elseif after namespace == 0 means demo cats will never show in article space.&lt;br /&gt;
		p.demodoc = p.demo ~= &#039;art&#039; and p.templatepage(frame, page)&lt;br /&gt;
		output = mw.html.create()&lt;br /&gt;
			:node(output)&lt;br /&gt;
			:tag&#039;small&#039;:wikitext(&lt;br /&gt;
				&#039;Demo categories: &#039;,&lt;br /&gt;
				(category{done = true}:gsub(&#039;(%[%[)(Category:)([^|%]]-)(%|)&#039;, &#039;%1%2%3|%2%3%4&#039;):gsub(&#039;(%[%[)(Category:)&#039;, &#039;%1:%2&#039;))&lt;br /&gt;
			):done()&lt;br /&gt;
			:wikitext(p.demo == &#039;doc&#039; and p.demodoc or nil)&lt;br /&gt;
	else&lt;br /&gt;
		--Checks for valid name; emulates original template&#039;s check using {{FULLPAGENAME:{{{name|}}}}}&lt;br /&gt;
		local normalizedName = mw.title.new(args.name or &#039;&#039;)&lt;br /&gt;
		if normalizedName and normalizedName.fullText == page.fullText then&lt;br /&gt;
			output = mw.html.create():node(output):wikitext(p.templatepage(frame, page))&lt;br /&gt;
		elseif not page.isSubpage and page.namespace == 10 then-- Template namespace and not a subpage&lt;br /&gt;
			category{{k = args.name and &#039;E&#039; or &#039;W&#039;, t = page.text}}&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return output:wikitext(not p.demo and category{done = true} or nil)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=MediaWiki:Sitenotice&amp;diff=29434</id>
		<title>MediaWiki:Sitenotice</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=MediaWiki:Sitenotice&amp;diff=29434"/>
		<updated>2018-04-22T11:21:51Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:MEPedia -&amp;gt; MEpedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;border-style: solid; border-color: blue; border-width: 5px&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&#039;&#039;&#039;This page was created by volunteers like you!&#039;&#039;&#039; Help us make it even better, click &amp;quot;edit&amp;quot; or &amp;quot;edit source.&amp;quot; For help or to learn more about MEpedia, [[How to contribute|go here]]. Visit [http://meaction.net #MEAction] to join the movement.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Vcite&amp;diff=28503</id>
		<title>Template:Vcite</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Vcite&amp;diff=28503"/>
		<updated>2018-04-06T09:40:53Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Help:Citation Style Vancouver|Citation Style Vancouver]]&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Documentation assistance templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Cite_journal/doc&amp;diff=28501</id>
		<title>Template:Cite journal/doc</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Cite_journal/doc&amp;diff=28501"/>
		<updated>2018-04-06T09:40:53Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high-risk|480000+}}&lt;br /&gt;
{{csdoc|lua|lua=yes}}&lt;br /&gt;
{{csdoc|cs1|lua=yes}}&lt;br /&gt;
{{csdoc|lead|academic and scientific papers and journals. For articles in magazines and newsletters, use {{tlx|cite magazine}}.  Note that if you have a [[Digital Object Identifier]] (i.e., a DOI) for the journal reference you wish to add, we have a citation bot which will read that DOI and expand it into a full reference with the author&#039;s name, journal name, date, volume, issue, pages, etc.  You can view instructions on how to add this gadget to your Wikipedia preferences at [[User:Citation bot/use]]|lua=yes}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{{csdoc|usage}}&lt;br /&gt;
{{csdoc|usage common}}&lt;br /&gt;
&lt;br /&gt;
;To cite a professional or scientific journal&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last1= |first1= |last2= |first2= |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;[[Vancouver system]] author style for a scientific journal&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |vauthors= |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |pmc= |pmid= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last1= |first1= |last2= |first2= |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |pmc= |pmid= |access-date= | name-list-format=vanc }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite a journal article with no credited author&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |author=&amp;lt;!--Staff writer(s); no by-line.--&amp;gt; |date= |title= |url= |journal= |volume= |issue= |pages= |doi= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite an online article that has been archived&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last= |first= |date= |title= |url= |dead-url= |journal=  |volume= |issue= |pages= |doi= |archive-url= |archive-date= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite an article written in a foreign language&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last= |first= |date= |title= |trans-title= |url= |language= |journal= |volume= |issue= |pages= |doi= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite and quote an archived, two-author, foreign language journal article re-published as a PDF on an information aggregation service requiring a subscription&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last1= |first1= |last2= |first2= |date= |title= |trans-title= |url= |access-date= |language= |journal= |volume= |issue= |pages= |doi= |archive-url= |archive-date= |dead-url= |via= |quote= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
{{csdoc|usage full}}&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |display-authors= |author-mask= |name-list-format= |last-author-amp= |date= |year= |orig-year= |editor1-last= |editor1-first= |editor1-link= |editor2-last= |editor2-first= |editor2-link= |editor3-last= |editor3-first= |editor3-link= |editor4-last= |editor4-first= |editor4-link= |editor5-last= |editor5-first= |editor5-link= |display-editors= |others= |title= |script-title= |trans-title= |url= |access-date=  |url-access= |format= |department= |journal= |type= |series= |language= |edition= |location= |publisher= |publication-place= |publication-date= |volume= |issue= |page= |pages= |at= |nopp= |arxiv= |asin= |bibcode= |bibcode-access= |biorxiv= |citeseerx= |doi= |doi-access= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |jstor-access= |lccn= |mr= |oclc= |ol= |ol-access= |osti= |osti-access= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archive-url= |archive-date= |dead-url=  |via= |layurl= |laysource= |laydate= |quote= |postscript= |ref= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
{{csdoc|usage vertical common}}&lt;br /&gt;
&lt;br /&gt;
;To cite a professional or scientific journal&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last       = &lt;br /&gt;
| first      = &lt;br /&gt;
| last2      = &lt;br /&gt;
| first2     = &lt;br /&gt;
| date       = &lt;br /&gt;
| title      = &lt;br /&gt;
| url        = &lt;br /&gt;
| journal    = &lt;br /&gt;
| volume     = &lt;br /&gt;
| issue      = &lt;br /&gt;
| pages      = &lt;br /&gt;
| doi        = &lt;br /&gt;
| access-date = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;[[Vancouver system]] author style for a scientific journal&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| vauthors   = &lt;br /&gt;
| date       = &lt;br /&gt;
| title      = &lt;br /&gt;
| url        = &lt;br /&gt;
| journal    = &lt;br /&gt;
| volume     = &lt;br /&gt;
| issue      = &lt;br /&gt;
| pages      = &lt;br /&gt;
| doi        = &lt;br /&gt;
| pmc        = &lt;br /&gt;
| pmid       = &lt;br /&gt;
| access-date = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last1      = &lt;br /&gt;
| first1     = &lt;br /&gt;
| last2      = &lt;br /&gt;
| first2     = &lt;br /&gt;
| date       = &lt;br /&gt;
| title      = &lt;br /&gt;
| url        = &lt;br /&gt;
| journal    = &lt;br /&gt;
| volume     = &lt;br /&gt;
| issue      = &lt;br /&gt;
| pages      = &lt;br /&gt;
| doi        = &lt;br /&gt;
| pmc        = &lt;br /&gt;
| pmid       = &lt;br /&gt;
| access-date = &lt;br /&gt;
| name-list-format = vanc&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite a journal article with no credited author&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| author     = &amp;lt;!--Staff writer(s); no by-line.--&amp;gt;&lt;br /&gt;
| date       = &lt;br /&gt;
| title      = &lt;br /&gt;
| url        = &lt;br /&gt;
| journal    = &lt;br /&gt;
| volume     = &lt;br /&gt;
| issue      = &lt;br /&gt;
| pages      = &lt;br /&gt;
| doi        = &lt;br /&gt;
| access-date = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite an online article that has been archived&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last        = &lt;br /&gt;
| first       = &lt;br /&gt;
| date        = &lt;br /&gt;
| title       = &lt;br /&gt;
| url         = &lt;br /&gt;
| dead-url    = &lt;br /&gt;
| journal     =&lt;br /&gt;
| volume      = &lt;br /&gt;
| issue       = &lt;br /&gt;
| pages       = &lt;br /&gt;
| doi         = &lt;br /&gt;
| archive-url = &lt;br /&gt;
| archive-date= &lt;br /&gt;
| access-date = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite a journal article written in a foreign language&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last        = &lt;br /&gt;
| first       = &lt;br /&gt;
| date        = &lt;br /&gt;
| title       = &lt;br /&gt;
| trans-title = &lt;br /&gt;
| url         = &lt;br /&gt;
| language    = &lt;br /&gt;
| journal     = &lt;br /&gt;
| volume      = &lt;br /&gt;
| issue       = &lt;br /&gt;
| pages       = &lt;br /&gt;
| doi         = &lt;br /&gt;
| access-date = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;To cite and quote an archived, two-author, foreign language journal article re-published as a PDF on an information aggregation service requiring a subscription&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last1        = &lt;br /&gt;
| first1       = &lt;br /&gt;
| last2        = &lt;br /&gt;
| first2       = &lt;br /&gt;
| date         = &lt;br /&gt;
| title        = &lt;br /&gt;
| trans-title  = &lt;br /&gt;
| url          = &lt;br /&gt;
| dead-url     = &lt;br /&gt;
| format       = &lt;br /&gt;
| language     = &lt;br /&gt;
| journal      = &lt;br /&gt;
| volume       = &lt;br /&gt;
| issue        = &lt;br /&gt;
| pages        = &lt;br /&gt;
| doi          = &lt;br /&gt;
| archive-url  = &lt;br /&gt;
| archive-date = &lt;br /&gt;
| access-date  = &lt;br /&gt;
| via          = &lt;br /&gt;
| url-access   = &lt;br /&gt;
| quote        = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
{{csdoc|usage vertical}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
| last1                 = &lt;br /&gt;
| first1                = &lt;br /&gt;
| author-link1          = &lt;br /&gt;
| last2                 = &lt;br /&gt;
| first2                = &lt;br /&gt;
| author-link2          = &lt;br /&gt;
| last3                 = &lt;br /&gt;
| first3                = &lt;br /&gt;
| author-link3          = &lt;br /&gt;
| last4                 = &lt;br /&gt;
| first4                = &lt;br /&gt;
| author-link4          = &lt;br /&gt;
| last5                 = &lt;br /&gt;
| first5                = &lt;br /&gt;
| author-link5          = &lt;br /&gt;
| display-authors       = &lt;br /&gt;
| author-mask           = &lt;br /&gt;
| name-list-format      =&lt;br /&gt;
| last-author-amp       = &lt;br /&gt;
| date                  = &lt;br /&gt;
| year                  = &lt;br /&gt;
| orig-year             = &lt;br /&gt;
| editor1-last          = &lt;br /&gt;
| editor1-first         = &lt;br /&gt;
| editor1-link          = &lt;br /&gt;
| editor2-last          = &lt;br /&gt;
| editor2-first         = &lt;br /&gt;
| editor2-link          = &lt;br /&gt;
| editor3-last          = &lt;br /&gt;
| editor3-first         = &lt;br /&gt;
| editor3-link          = &lt;br /&gt;
| editor4-last          = &lt;br /&gt;
| editor4-first         = &lt;br /&gt;
| editor4-link          = &lt;br /&gt;
| editor5-last          = &lt;br /&gt;
| editor5-first         = &lt;br /&gt;
| editor5-link          = &lt;br /&gt;
| display-editors       = &lt;br /&gt;
| others                = &lt;br /&gt;
| title                 = &lt;br /&gt;
| script-title          = &lt;br /&gt;
| trans-title           = &lt;br /&gt;
| url                   = &lt;br /&gt;
| dead-url              = &lt;br /&gt;
| format                = &lt;br /&gt;
| url-access            =&lt;br /&gt;
| department            = &lt;br /&gt;
| journal               = &lt;br /&gt;
| type                  = &lt;br /&gt;
| series                = &lt;br /&gt;
| language              = &lt;br /&gt;
| edition               = &lt;br /&gt;
| location              = &lt;br /&gt;
| publisher             = &lt;br /&gt;
| publication-place     = &lt;br /&gt;
| publication-date      = &lt;br /&gt;
| volume                = &lt;br /&gt;
| issue                 = &lt;br /&gt;
| page                  = &lt;br /&gt;
| pages                 = &lt;br /&gt;
| at                    = &lt;br /&gt;
| nopp                  = &lt;br /&gt;
| arxiv                 = &lt;br /&gt;
| asin                  = &lt;br /&gt;
| bibcode               = &lt;br /&gt;
| biorxiv               = &lt;br /&gt;
| citeseerx             = &lt;br /&gt;
| doi                   = &lt;br /&gt;
| doi-broken-date       = &lt;br /&gt;
| doi-access            = &lt;br /&gt;
| isbn                  =&lt;br /&gt;
| issn                  = &lt;br /&gt;
| jfm                   = &lt;br /&gt;
| jstor                 = &lt;br /&gt;
| jstor-access          = &lt;br /&gt;
| lccn                  = &lt;br /&gt;
| mr                    = &lt;br /&gt;
| oclc                  = &lt;br /&gt;
| ol                    =&lt;br /&gt;
| ol-access             =&lt;br /&gt;
| osti                  =&lt;br /&gt;
| osti-access           =&lt;br /&gt;
| pmc                   = &lt;br /&gt;
| pmid                  = &lt;br /&gt;
| rfc                   = &lt;br /&gt;
| ssrn                  = &lt;br /&gt;
| zbl                   = &lt;br /&gt;
| id                    = &lt;br /&gt;
| archive-url           = &lt;br /&gt;
| archive-date          = &lt;br /&gt;
| access-date           = &lt;br /&gt;
| via                   = &lt;br /&gt;
| registration          = &lt;br /&gt;
| subscription          = &lt;br /&gt;
| lay-url               = &lt;br /&gt;
| lay-source            = &lt;br /&gt;
| lay-date              = &lt;br /&gt;
| quote                 = &lt;br /&gt;
| postscript            = &lt;br /&gt;
| ref                   =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical mid}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;last1&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;last1&lt;br /&gt;
&amp;amp;nbsp;last2&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;last2&lt;br /&gt;
&amp;amp;nbsp;last3&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;last3&lt;br /&gt;
&amp;amp;nbsp;last4&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;last4&lt;br /&gt;
&amp;amp;nbsp;last5&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;editor1-last&lt;br /&gt;
&amp;amp;nbsp;editor2-last&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;editor2-last&lt;br /&gt;
&amp;amp;nbsp;editor3-last&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;editor3-last&lt;br /&gt;
&amp;amp;nbsp;editor4-last&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;editor4-last&lt;br /&gt;
&amp;amp;nbsp;editor5-last&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;title or script-title&lt;br /&gt;
&amp;amp;nbsp;archive-url&lt;br /&gt;
&amp;amp;nbsp;url&lt;br /&gt;
&amp;amp;nbsp;url&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;doi&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;jstor&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;ol&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;osti&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;url&lt;br /&gt;
&amp;amp;nbsp;archive-url&lt;br /&gt;
&amp;amp;nbsp;url&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical mid}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical end}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
;Journal article &lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Overpeck |first=J. T. |last2=Webb |first2=T. |last3=Prentice |first3=I. C. |date=January 1985 |title=Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs |journal=Quaternary Research |volume=23 |pages=87–108 |bibcode=1985QuRes..23...87O |doi=10.1016/0033-5894(85)90074-2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Overpeck |first=J. T. |last2=Webb |first2=T. |last3=Prentice |first3=I. C. |date=January 1985 |title=Quantitative interpretation of fossil pollen spectra: Dissimilarity coefficients and the method of modern analogs |journal=Quaternary Research |volume=23 |pages=87–108 |doi=10.1016/0033-5894(85)90074-2|bibcode=1985QuRes..23...87O}}&lt;br /&gt;
&lt;br /&gt;
;Vancouver style (common in biomedicine); see {{vcite}} for specific templates&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |vauthors=Bannen R, Suresh V, Phillips GN Jr, Wright S, Mitchell J |date=2008 |title=Optimal design of thermally stable proteins |url=http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339 |journal=Bioinformatics |volume=24 |issue=20 |pages=2339–2343 |doi=10.1093/bioinformatics/btn450 |pmc=2562006 |pmid=18723523}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
*{{cite journal |vauthors=Bannen R, Suresh V, Phillips GN Jr, Wright S, Mitchell J |date=2008 |title=Optimal design of thermally stable proteins |url=http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339 |journal=Bioinformatics |volume=24 |issue=20 |pages=2339–2343 |doi=10.1093/bioinformatics/btn450 &amp;lt;!--|doi-access=free --&amp;gt; |pmc=2562006 |pmid=18723523}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Bannen |first=RM |last2=Suresh |first2=V |last3=Phillips |first3=GN Jr |last4=Wright |first4=SJ |last5=Mitchell |first5=JC |date=2008 |title=Optimal design of thermally stable proteins |url=http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339 |journal=Bioinformatics |volume=24 |issue=20 |pages=2339–2343 |doi=10.1093/bioinformatics/btn450 |pmc=2562006 |pmid=18723523 |name-list-format=vanc}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Bannen |first=RM |last2=Suresh |first2=V |last3=Phillips |first3=GN Jr |last4=Wright |first4=SJ |last5=Mitchell |first5=JC |date=2008 |title=Optimal design of thermally stable proteins |url=http://bioinformatics.oxfordjournals.org/cgi/content/full/24/20/2339 |journal=Bioinformatics |volume=24 |issue=20 |pages=2339–2343 |doi=10.1093/bioinformatics/btn450 &amp;lt;!--|doi-access=free --&amp;gt; |pmc=2562006 |pmid=18723523 |name-list-format=vanc}}&lt;br /&gt;
&lt;br /&gt;
;Include URL link to article, pre-print or abstract.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Aries |first=Myriam B. C. |last2=Newsham |first2=Guy R. |last-author-amp=yes |date=2008 |title=Effect of daylight saving time on lighting energy use: a literature review |url=http://archive.nrc-cnrc.gc.ca/obj/irc/doc/pubs/nrcc49212/nrcc49212.pdf |format=PDF |journal=Energy Policy |volume=36 |issue=6 |pages=1858–1866 |doi=10.1016/j.enpol.2007.05.021 |access-date=October 18, 2013}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Aries |first=Myriam B. C. |last2=Newsham |first2=Guy R. |last-author-amp=yes |date=2008 |title=Effect of daylight saving time on lighting energy use: a literature review |url=http://archive.nrc-cnrc.gc.ca/obj/irc/doc/pubs/nrcc49212/nrcc49212.pdf |format=PDF |journal=Energy Policy |volume=36 |issue=6 |pages=1858–1866 |doi=10.1016/j.enpol.2007.05.021 |access-date=October 18, 2013}}&lt;br /&gt;
&lt;br /&gt;
;Specify the [[Digital object identifier|DOI]] to provide a permanent link. Also give the [[PMID]] abstract for medical articles, and the URL if the article is free. [[PubMed Central]] free full-text repository links may also be supplied and will link the title if the URL is not specified, else as an additional linked PMC value. Note that {{para|access-date}} is not necessary when a permanent identifier is used.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |url=http://www.jci.org/articles/view/16567 |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 |pmc=151837 |pmid=12511592 |access-date=2012-11-17}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |url=http://www.jci.org/articles/view/16567 |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 &amp;lt;!--|doi-access=free --&amp;gt; |pmc=151837 |pmid=12511592 |access-date=2012-11-17}}&lt;br /&gt;
&lt;br /&gt;
Whereas if the URL had not been specified, then the title is linked to the PMC link, which is repeated:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 |pmc=151837 |pmid=12511592}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 &amp;lt;!--|doi-access=free --&amp;gt; |pmc=151837 |pmid=12511592}}&lt;br /&gt;
&lt;br /&gt;
If the doi link is broken, then use of &#039;&#039;&#039;doi-broken-date&#039;&#039;&#039; unlinks the doi value, indicates when the doi-problem was first noticed, and will also add the page to &amp;quot;Category:Pages with DOIs broken since YYYY&amp;quot;:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 |doi-broken-date=2017-01-01 |pmc=151837 |pmid=12511592}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Viollet |first=Benoît |last2=Andreelli |first2=Fabrizio |last3=Jørgensen |first3=Sebastian B. |last4=Perrin |first4=Christophe |last5=Geloen |first5=Alain |last6=Flamez |first6=Daisy |last7=Mu |first7=James |last8=Lenzner |first8=Claudia |last9=Baud |first9=Olivier |last10=Bennoun |first10=Myriam |last11=Gomas |first11=Emmanuel |last12=Nicolas |first12=Gaël |last13=Wojtaszewski |first13=Jørgen F. P. |last14=Kahn1 |first14=Axel |last15=Carling |first15=David |last16=Schuit |first16=Frans C. |last17=Birnbaum |first17=Morris J. |last18=Richter |first18=Erik A. |last19=Burcelin |first19=Rémy |last20=Vaulont |first20=Sophie |display-authors=5 |date=January 2003 |title=The AMP-activated protein kinase α2 catalytic subunit controls whole-body insulin sensitivity |journal=The Journal of Clinical Investigation |volume=111 |issue=1 |pages=91–98 |doi=10.1172/JCI16567 |doi-broken-date=2017-01-01 |pmc=151837 |pmid=12511592}}&lt;br /&gt;
&lt;br /&gt;
;If the article is in a foreign language, and the original title is unknown, enclose the translated title in square brackets and use {{para|title}}. Otherwise use {{para|title}} for the foreign-language title and {{para|trans-title}} for the English-language title.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Huang |first=Y. |last2=Lu |first2=J. |last3=Shen |first3=Y. |last4=Lu |first4=J. |last-author-amp=yes |date=March 1999 |title=[The protective effects of total flavonoids from Lycium Barbarum L. on lipid peroxidation of liver mitochondria and red blood cell in rats] |journal=Wei Sheng Yan Jiu |language=Chinese |volume=28 |issue=2 |pages=115–116 |pmid=11938998}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
:{{cite journal |last=Huang |first=Y. |last2=Lu |first2=J. |last3=Shen |first3=Y. |last4=Lu |first4=J. |last-author-amp=yes |date=March 1999 |title=[The protective effects of total flavonoids from Lycium Barbarum L. on lipid peroxidation of liver mitochondria and red blood cell in rats] |journal=Wei Sheng Yan Jiu |language=Chinese |volume=28 |issue=2 |pages=115–116 |pmid=11938998}}&lt;br /&gt;
&lt;br /&gt;
;Example using other identifiers&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite journal |last=Merimovich |first=C. |date=2007 |title=A power function with a fixed finite gap everywhere |journal=Journal of Symbolic Logic |volume=72 |issue=2 |pages=361–417 |doi=10.2178/jsl/1185803615 |mr=2320282}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Displays as:&lt;br /&gt;
* {{cite journal |last=Merimovich |first=C. |date=2007 |title=A power function with a fixed finite gap everywhere |journal=Journal of Symbolic Logic |volume=72 |issue=2 |pages=361–417 |doi=10.2178/jsl/1185803615 |mr=2320282}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Syntax===&lt;br /&gt;
{{csdoc|syntax}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|sep_period}}&lt;br /&gt;
&lt;br /&gt;
===COinS===&lt;br /&gt;
{{csdoc|coins}}&lt;br /&gt;
&lt;br /&gt;
===Deprecated===&lt;br /&gt;
{{csdoc|deprecated}}&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
====Authors====&lt;br /&gt;
{{csdoc|author|others=yes}}&lt;br /&gt;
&lt;br /&gt;
====Date====&lt;br /&gt;
{{csdoc|date}}&lt;br /&gt;
&lt;br /&gt;
====Editors====&lt;br /&gt;
{{csdoc|editor}}&lt;br /&gt;
&lt;br /&gt;
====Title====&lt;br /&gt;
{{csdoc|title|title_format=quotes}}&lt;br /&gt;
{{csdoc|type}}&lt;br /&gt;
{{csdoc|language}}&lt;br /&gt;
&lt;br /&gt;
====URL====&lt;br /&gt;
{{csdoc|url|pmc=yes}}&lt;br /&gt;
&lt;br /&gt;
====Periodical====&lt;br /&gt;
{{csdoc|journal|department=yes}}&lt;br /&gt;
&lt;br /&gt;
====Publisher====&lt;br /&gt;
{{csdoc|publisher}}&lt;br /&gt;
&lt;br /&gt;
====Edition, series, volume====&lt;br /&gt;
{{csdoc|edition}}&lt;br /&gt;
{{csdoc|series}}&lt;br /&gt;
{{csdoc|volume}}&lt;br /&gt;
&lt;br /&gt;
====In-source locations====&lt;br /&gt;
{{csdoc|pages|work=y}}&lt;br /&gt;
&lt;br /&gt;
====Identifiers====&lt;br /&gt;
{{csdoc|id1}}&lt;br /&gt;
{{csdoc|id2}}&lt;br /&gt;
&lt;br /&gt;
====Subscription or registration required====&lt;br /&gt;
{{csdoc|registration}}&lt;br /&gt;
&lt;br /&gt;
====Lay summary====&lt;br /&gt;
{{anchor|Laysummary}}{{csdoc|lay}}&lt;br /&gt;
&lt;br /&gt;
====Quote====&lt;br /&gt;
{{csdoc|quote}}&lt;br /&gt;
&lt;br /&gt;
====Anchor====&lt;br /&gt;
{{csdoc|ref}}&lt;br /&gt;
&lt;br /&gt;
====Display options====&lt;br /&gt;
{{csdoc|display}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Although it may appear redundant to include multiple ids for articles, it is helpful for many editors who only have access to a certain resource. If only one ID is to be included, the DOI should be used, as this is the universal standard preferred by professional publications. Specifying a link as a DOI, PMID, etc. is always preferable to including it as a URL parameter, as it makes it clear that the link is accurate and stable, but not necessarily openly accessible. Note that {{para|access-date}} is not necessary when a permanent identifier is used.&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template formats a citation to an article in a magazine or journal, using the provided source information (e.g. journal name, author, title, issue, URL) and various formatting options.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The URL of the online location where the text of the publication can be found. Requires schemes of the type \&amp;quot;http://...\&amp;quot; or maybe even the &amp;amp;nbsp;protocol relative scheme \&amp;quot;//...\&amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;URL&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;https://www.nytimes.com/...&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The title of the article; can be wikilinked to an existing Wikipedia article or url may be used to add an external link, but not both. Displays in quotes.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the author; don&#039;t wikilink, use &#039;authorlink&#039;; can suffix with a numeral to add additional authors&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author&amp;quot;,&lt;br /&gt;
				&amp;quot;author1&amp;quot;,&lt;br /&gt;
				&amp;quot;authors&amp;quot;,&lt;br /&gt;
				&amp;quot;last1&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the author; don&#039;t wikilink, use &#039;authorlink&#039;; can suffix with a numeral to add additional authors&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;first1&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the second author; don&#039;t wikilink, use &#039;authorlink2&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author2&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the second author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Source date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date of the source; do not wikilink. As listed in the publication&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Summer 2017&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;journal&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Journal&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the source journal; may be wikilinked; displays in italics; alias of &#039;work&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publisher&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Publisher&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the publisher; displays after title&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;issue&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Issue&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Issue identifier when the source is part of a series that is published periodically&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;doi&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;DOI&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Digital Object Identifier; begins with &#039;10.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;doi-broken-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;DOI broken date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The date that the DOI was determined to be broken&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;others&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Others&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Used to record other contributions to the work, such as &#039;Illustrated by John Smith&#039; or &#039;Translated by John Smith&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;year&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Year of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Year of the source being referenced; recommended only when date parameter format is YYYY-MM-DD and a CITEREF disambiguator is needed&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;orig-year&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Original year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Original year of publication; provide specifics&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;origyear&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the editor; don&#039;t wikilink, use &#039;editor-link&#039;; can suffix with a numeral to add additional editors; alias of &#039;editor1-last&#039;, &#039;editor&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor1-last&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the editor; don&#039;t wikilink, use &#039;editor-link&#039;; can suffix with a numeral to add additional editors; alias of &#039;editor1-first&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor1-first&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the editor; can suffix with a numeral to add additional editors; alias of &#039;editor1-link&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;series&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Series&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Series identifier when the source is part of a series, such as a book series or a journal; alias of &#039;version&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;version&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;department&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Department&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Department within the periodical&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;location&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Location of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of &#039;place&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publication-place&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Place of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Publication place shows after title; if &#039;place&#039; or &#039;location&#039; are also given, they are displayed before the title prefixed with &#039;written at&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publication-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Publication date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date of publication when different from the date the work was written; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;edition&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Edition&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;When the publication has more than one edition; for example: &#039;2nd&#039;, &#039;Revised&#039; etc.; suffixed with &#039; ed.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;volume&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Volume&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For one publication published in several volumes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;page&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Page&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Page in the source that supports the content; displays after &#039;p.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pages&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Pages&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Pages in the source that support the content (not an indication of the number of pages in the source; displays after &#039;pp.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nopp&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;No pp&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set to &#039;y&#039; to suppress the &#039;p.&#039; or &#039;pp.&#039; display with &#039;page&#039; or &#039;pages&#039; when inappropriate (such as &#039;Front cover&#039;)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;at&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;At&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;May be used instead of &#039;page&#039; or &#039;pages&#039; where a page number is inappropriate or insufficient&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;language&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Language&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The language in which the source is written, if not English; use the full language name; do not use icons or templates&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;script-title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Script title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;trans-title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Translated title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An English language title, if the source cited is in a foreign language; &#039;language&#039; is recommended&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;trans_title&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;type&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Type&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Additional information about the media type of the source; format in sentence case&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;format&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Format&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Format of the work referred to by &#039;url&#039; (&#039;url&#039; is required when using &#039;format&#039;); examples: PDF, DOC, XLS; do not specify HTML&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;arxiv&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;arXiv identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An identifier for arXive electronic preprints of scientific papers&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;asin&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ASIN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Amazon Standard Identification Number; 10 characters&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;asin-tld&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ASIN TLD&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;ASIN top-level domain for Amazon sites other than the US&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;bibcode&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Bibcode&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Bibliographic Reference Code (REFCODE); 19 characters&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;biorxiv&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;biorXiv&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;biorXiv identifier; 6 digits&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;citeseerx&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;CiteSeerX&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;CiteSeerX identifier; found after the &#039;doi=&#039; query parameter&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;isbn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ISBN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;International Standard Book Number; use the 13-digit ISBN where possible&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;issn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ISSN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;International Standard Serial Number (print); 8 characters; usually split into two groups of four using a hyphen&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;eissn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;eISSN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;International Standard Serial Number (online); 8 characters; usually split into two groups of four using a hyphen&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;jfm&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;jfm code&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Jahrbuch über die Fortschritte der Mathematik classification code&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;jstor&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;JSTOR&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;JSTOR identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lccn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;LCCN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Library of Congress Control Number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mr&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;MR&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Mathematical Reviews identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;oclc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OCLC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Online Computer Library Center number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ol&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Open Library identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;osti&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OSTI&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Office of Scientific and Technical Information identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pmc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;PMC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;PubMed Center article number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pmid&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;PMID&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;PubMed Unique Identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;rfc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;RFC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Request for Comments number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ssrn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;SSRN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Social Science Research Network&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;zbl&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Zbl&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Zentralblatt MATH journal identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;id&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;id&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;A unique identifier used where none of the specialized ones are applicable&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;quote&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Quote&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Relevant text quoted from the source; displays last, enclosed in quotes; needs to include terminating punctuation&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ref&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Ref&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An anchor identifier; can be made the target of wikilinks to full references; special value &#039;harv&#039; generates an anchor suitable for the harv and sfn templates&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;separator&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The punctuation used to separate lists of authors, editors, etc.; a space must be encoded as &amp;amp;#32; to suppress use reserved keyword &#039;none&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;postscript&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Postscript&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The closing punctuation for the citation; ignored if &#039;quote&#039; is defined; to suppress use reserved keyword &#039;none&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the third author; don&#039;t wikilink, use &#039;authorlink3&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author3&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the third author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the forth author; don&#039;t wikilink, use &#039;authorlink4&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author4&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the forth author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the fifth author; don&#039;t wikilink, use &#039;authorlink5&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author5&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the fifth author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the sixth author; don&#039;t wikilink, use &#039;authorlink6&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author6&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the sixth author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the seventh author; don&#039;t wikilink, use &#039;authorlink7&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author7&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the seventh author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the eighth author; don&#039;t wikilink, use &#039;authorlink8&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author8&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the eighth author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the ninth author; don&#039;t wikilink, use &#039;authorlink9&#039;. If nine authors are defined, then only eight will show and &#039;et al.&#039; will show in place of the last author.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author9&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the ninth author; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor2-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the second editor; don&#039;t wikilink, use &#039;editor2-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor2&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor2-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the second editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor3-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the third editor; don&#039;t wikilink, use &#039;editor3-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor3&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor3-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the third editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor4-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the fourth editor; don&#039;t wikilink, use &#039;editor4-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor4&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor4-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the fourth editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor5-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the fifth editor; don&#039;t wikilink, use &#039;editor5-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor5&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor5-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the fifth editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor6-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the sixth editor; don&#039;t wikilink, use &#039;editor6-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor6&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor6-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the sixth editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor7-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the seventh editor; don&#039;t wikilink, use &#039;editor7-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor7&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor7-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the seventh editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor8-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the eighth editor; don&#039;t wikilink, use &#039;editor8-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor8&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor8-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the eighth editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor9-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the ninth editor; don&#039;t wikilink, use &#039;editor9-link&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor9&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor9-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the ninth editor; don&#039;t wikilink.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-mask&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author mask&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Replaces the name of the first author with em dashes or text; set to a numeric value &#039;n&#039; to set the dash &#039;n&#039; em spaces wide; set to a text value to display the text without a trailing author separator; for example, &#039;with&#039; instead&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-name-separator&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author name separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Changes the separator between last and first names; defaults to a comma and space; a space must be encoded as &amp;amp;#32;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;, &amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-separator&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Changes the separator between authors; defaults to a semicolon and space; a space must be encoded as &amp;amp;#32;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;; &amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;subscription&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Subscription&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the reference requires a subscription, type &#039;yes&#039; to notify the reader.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the author; can suffix with a numeral to add additional authors&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the second author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author2-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;access-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL access date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The full date when the original URL was accessed; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;accessdate&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;archive-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Archive URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires &#039;archivedate&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;archiveurl&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;archive-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Archive date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date when the original URL was archived; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;archivedate&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;dead-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Dead URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to &#039;no&#039;, the title display is adjusted; useful for when the URL is archived preemptively but still live&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;deadurl&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;URL link to a non-technical summary or review of the source; alias of &#039;laysummary&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;layurl&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-source&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay source&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the source of the laysummary; displays in italics, preceded by an en dash&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;laysource&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date of the summary; displays in parentheses&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;laydate&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the third author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author3-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink3&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the forth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author4-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink4&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the sixth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author5-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink5&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the sixth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author6-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink6&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the seventh author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author7-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink7&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the eighth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author8-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink8&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the ninth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author9-link&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink9&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor2-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the second editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor2link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor3-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the third editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor3link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink3&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor4-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the fourth editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor4link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink4&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor5-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the fifth editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor5link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink5&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor6-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the sixth editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor6link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink6&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor7-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the seventh editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor7link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink7&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor8-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the eighth editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor8link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink8&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor9-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the ninth editor.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor9link&amp;quot;,&lt;br /&gt;
				&amp;quot;editorlink9&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;displayauthors&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Display authors&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;number of authors to display before &#039;et al.&#039; is used;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;display-authors&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last-author-amp&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last author ampersand&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;When set to any value, changes the separator between the last two names of the author list to &#039;space ampersand space&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;lastauthoramp&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;registration&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Registration&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the reference requires registration, type &#039;yes&#039; to notify the reader.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;chapter&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Chapter&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The chapter heading of the source&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;via&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Content deliverer (i.e. Database)&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Provider of the article (not the publisher), usually an aggregator of journal articles or a repository&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;JSTOR, Project MUSE, Elsevier Science Direct&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;url-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Classification of the access restrictions on the URL (&#039;registration&#039;, &#039;subscription&#039; or &#039;limited&#039;)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;bibcode-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Bibcode access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is available from ADS via this Bibcode, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;doi-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;DOI access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is free to read via the DOI, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;hdl-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;HDL access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is free to read via the HDL, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;jstor-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Jstor access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is free to read on Jstor, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ol-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OpenLibrary access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is free to read on OpenLibrary, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;osti-access&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;HDL access level&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the full text is free to read on OSTI, type &#039;free&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;vauthors&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Vancouver style authors&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;comma-separated list of author names in Vancouver style; enclose corporate or institutional author names in doubled parentheses&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;last&amp;quot;,&lt;br /&gt;
		&amp;quot;first&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link&amp;quot;,&lt;br /&gt;
		&amp;quot;last2&amp;quot;,&lt;br /&gt;
		&amp;quot;first2&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link2&amp;quot;,&lt;br /&gt;
		&amp;quot;last3&amp;quot;,&lt;br /&gt;
		&amp;quot;first3&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link3&amp;quot;,&lt;br /&gt;
		&amp;quot;last4&amp;quot;,&lt;br /&gt;
		&amp;quot;first4&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link4&amp;quot;,&lt;br /&gt;
		&amp;quot;last5&amp;quot;,&lt;br /&gt;
		&amp;quot;first5&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link5&amp;quot;,&lt;br /&gt;
		&amp;quot;last6&amp;quot;,&lt;br /&gt;
		&amp;quot;first6&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link6&amp;quot;,&lt;br /&gt;
		&amp;quot;last7&amp;quot;,&lt;br /&gt;
		&amp;quot;first7&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link7&amp;quot;,&lt;br /&gt;
		&amp;quot;last8&amp;quot;,&lt;br /&gt;
		&amp;quot;first8&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link8&amp;quot;,&lt;br /&gt;
		&amp;quot;last9&amp;quot;,&lt;br /&gt;
		&amp;quot;first9&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link9&amp;quot;,&lt;br /&gt;
		&amp;quot;displayauthors&amp;quot;,&lt;br /&gt;
		&amp;quot;author-mask&amp;quot;,&lt;br /&gt;
		&amp;quot;last-author-amp&amp;quot;,&lt;br /&gt;
		&amp;quot;author-separator&amp;quot;,&lt;br /&gt;
		&amp;quot;author-name-separator&amp;quot;,&lt;br /&gt;
		&amp;quot;vauthors&amp;quot;,&lt;br /&gt;
		&amp;quot;date&amp;quot;,&lt;br /&gt;
		&amp;quot;year&amp;quot;,&lt;br /&gt;
		&amp;quot;orig-year&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor2-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor2-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor2-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor3-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor3-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor3-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor4-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor4-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor4-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor5-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor5-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor5-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor6-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor6-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor6-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor7-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor7-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor7-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor8-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor8-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor8-link&amp;quot;,&lt;br /&gt;
		&amp;quot;editor9-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor9-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor9-link&amp;quot;,&lt;br /&gt;
		&amp;quot;others&amp;quot;,&lt;br /&gt;
		&amp;quot;title&amp;quot;,&lt;br /&gt;
		&amp;quot;script-title&amp;quot;,&lt;br /&gt;
		&amp;quot;trans-title&amp;quot;,&lt;br /&gt;
		&amp;quot;url&amp;quot;,&lt;br /&gt;
		&amp;quot;dead-url&amp;quot;,&lt;br /&gt;
		&amp;quot;format&amp;quot;,&lt;br /&gt;
		&amp;quot;department&amp;quot;,&lt;br /&gt;
		&amp;quot;journal&amp;quot;,&lt;br /&gt;
		&amp;quot;chapter&amp;quot;,&lt;br /&gt;
		&amp;quot;type&amp;quot;,&lt;br /&gt;
		&amp;quot;series&amp;quot;,&lt;br /&gt;
		&amp;quot;language&amp;quot;,&lt;br /&gt;
		&amp;quot;edition&amp;quot;,&lt;br /&gt;
		&amp;quot;location&amp;quot;,&lt;br /&gt;
		&amp;quot;publisher&amp;quot;,&lt;br /&gt;
		&amp;quot;publication-place&amp;quot;,&lt;br /&gt;
		&amp;quot;publication-date&amp;quot;,&lt;br /&gt;
		&amp;quot;volume&amp;quot;,&lt;br /&gt;
		&amp;quot;issue&amp;quot;,&lt;br /&gt;
		&amp;quot;page&amp;quot;,&lt;br /&gt;
		&amp;quot;pages&amp;quot;,&lt;br /&gt;
		&amp;quot;at&amp;quot;,&lt;br /&gt;
		&amp;quot;nopp&amp;quot;,&lt;br /&gt;
		&amp;quot;arxiv&amp;quot;,&lt;br /&gt;
		&amp;quot;asin&amp;quot;,&lt;br /&gt;
		&amp;quot;asin-tld&amp;quot;,&lt;br /&gt;
		&amp;quot;bibcode&amp;quot;,&lt;br /&gt;
		&amp;quot;biorxiv&amp;quot;,&lt;br /&gt;
		&amp;quot;citeseerx&amp;quot;,&lt;br /&gt;
		&amp;quot;doi&amp;quot;,&lt;br /&gt;
		&amp;quot;doi-broken-date&amp;quot;,&lt;br /&gt;
		&amp;quot;isbn&amp;quot;,&lt;br /&gt;
		&amp;quot;issn&amp;quot;,&lt;br /&gt;
		&amp;quot;eissn&amp;quot;,&lt;br /&gt;
		&amp;quot;jfm&amp;quot;,&lt;br /&gt;
		&amp;quot;jstor&amp;quot;,&lt;br /&gt;
		&amp;quot;lccn&amp;quot;,&lt;br /&gt;
		&amp;quot;mr&amp;quot;,&lt;br /&gt;
		&amp;quot;oclc&amp;quot;,&lt;br /&gt;
		&amp;quot;ol&amp;quot;,&lt;br /&gt;
		&amp;quot;osti&amp;quot;,&lt;br /&gt;
		&amp;quot;pmc&amp;quot;,&lt;br /&gt;
		&amp;quot;pmid&amp;quot;,&lt;br /&gt;
		&amp;quot;rfc&amp;quot;,&lt;br /&gt;
		&amp;quot;ssrn&amp;quot;,&lt;br /&gt;
		&amp;quot;zbl&amp;quot;,&lt;br /&gt;
		&amp;quot;id&amp;quot;,&lt;br /&gt;
		&amp;quot;url-access&amp;quot;,&lt;br /&gt;
		&amp;quot;archive-url&amp;quot;,&lt;br /&gt;
		&amp;quot;archive-date&amp;quot;,&lt;br /&gt;
		&amp;quot;access-date&amp;quot;,&lt;br /&gt;
		&amp;quot;registration&amp;quot;,&lt;br /&gt;
		&amp;quot;subscription&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-url&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-source&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-date&amp;quot;,&lt;br /&gt;
		&amp;quot;quote&amp;quot;,&lt;br /&gt;
		&amp;quot;postscript&amp;quot;,&lt;br /&gt;
		&amp;quot;ref&amp;quot;,&lt;br /&gt;
		&amp;quot;separator&amp;quot;,&lt;br /&gt;
		&amp;quot;via&amp;quot;,&lt;br /&gt;
		&amp;quot;bibcode-access&amp;quot;,&lt;br /&gt;
		&amp;quot;doi-access&amp;quot;,&lt;br /&gt;
		&amp;quot;hdl-access&amp;quot;,&lt;br /&gt;
		&amp;quot;jstor-access&amp;quot;,&lt;br /&gt;
		&amp;quot;ol-access&amp;quot;,&lt;br /&gt;
		&amp;quot;osti-access&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;maps&amp;quot;: {&lt;br /&gt;
		&amp;quot;citoid&amp;quot;: {&lt;br /&gt;
			&amp;quot;title&amp;quot;: &amp;quot;title&amp;quot;,&lt;br /&gt;
			&amp;quot;url&amp;quot;: &amp;quot;url&amp;quot;,&lt;br /&gt;
			&amp;quot;publisher&amp;quot;: &amp;quot;publisher&amp;quot;,&lt;br /&gt;
			&amp;quot;publicationTitle&amp;quot;: &amp;quot;journal&amp;quot;,&lt;br /&gt;
			&amp;quot;proceedingsTitle&amp;quot;: &amp;quot;journal&amp;quot;,&lt;br /&gt;
			&amp;quot;encyclopediaTitle&amp;quot;: &amp;quot;journal&amp;quot;,&lt;br /&gt;
			&amp;quot;dictionaryTitle&amp;quot;: &amp;quot;journal&amp;quot;,&lt;br /&gt;
			&amp;quot;date&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;place&amp;quot;: &amp;quot;location&amp;quot;,&lt;br /&gt;
			&amp;quot;ISSN&amp;quot;: [&lt;br /&gt;
				&amp;quot;issn&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;ISBN&amp;quot;: [&lt;br /&gt;
				&amp;quot;isbn&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;PMCID&amp;quot;: &amp;quot;pmc&amp;quot;,&lt;br /&gt;
			&amp;quot;PMID&amp;quot;: &amp;quot;pmid&amp;quot;,&lt;br /&gt;
			&amp;quot;pages&amp;quot;: &amp;quot;pages&amp;quot;,&lt;br /&gt;
			&amp;quot;volume&amp;quot;: &amp;quot;volume&amp;quot;,&lt;br /&gt;
			&amp;quot;series&amp;quot;: &amp;quot;series&amp;quot;,&lt;br /&gt;
			&amp;quot;seriesNumber&amp;quot;: &amp;quot;volume&amp;quot;,&lt;br /&gt;
			&amp;quot;issue&amp;quot;: &amp;quot;issue&amp;quot;,&lt;br /&gt;
			&amp;quot;DOI&amp;quot;: &amp;quot;doi&amp;quot;,&lt;br /&gt;
			&amp;quot;oclc&amp;quot;: &amp;quot;oclc&amp;quot;,&lt;br /&gt;
			&amp;quot;language&amp;quot;: &amp;quot;language&amp;quot;,&lt;br /&gt;
			&amp;quot;contributor&amp;quot;: &amp;quot;others&amp;quot;,&lt;br /&gt;
			&amp;quot;author&amp;quot;: [&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first&amp;quot;,&lt;br /&gt;
					&amp;quot;last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first2&amp;quot;,&lt;br /&gt;
					&amp;quot;last2&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first3&amp;quot;,&lt;br /&gt;
					&amp;quot;last3&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first4&amp;quot;,&lt;br /&gt;
					&amp;quot;last4&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first5&amp;quot;,&lt;br /&gt;
					&amp;quot;last5&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first6&amp;quot;,&lt;br /&gt;
					&amp;quot;last6&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first7&amp;quot;,&lt;br /&gt;
					&amp;quot;last7&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first8&amp;quot;,&lt;br /&gt;
					&amp;quot;last8&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first9&amp;quot;,&lt;br /&gt;
					&amp;quot;last9&amp;quot;&lt;br /&gt;
				]&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;editor&amp;quot;: [&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor2-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor2-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor3-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor3-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor4-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor4-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor5-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor5-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor6-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor6-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor7-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor7-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor8-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor8-last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor9-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor9-last&amp;quot;&lt;br /&gt;
				]&lt;br /&gt;
			]&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alternate usages==&lt;br /&gt;
For medical articles, [https://tools.wmflabs.org/citation-template-filling/cgi-bin/index.cgi this citation-filling template] can be used to generate a cite journal template from a [[PubMed]] identifier (PMID).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Citation Style 1}}&lt;br /&gt;
{{Wikipedia referencing}}&lt;br /&gt;
{{UF-COinS}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Citation Style 1 templates|J]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Cite_news/doc&amp;diff=28499</id>
		<title>Template:Cite news/doc</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Cite_news/doc&amp;diff=28499"/>
		<updated>2018-04-06T09:40:46Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{csdoc|lua}}&lt;br /&gt;
{{csdoc|cs1}}&lt;br /&gt;
{{csdoc|lead|news articles in print, video, audio or web}}&lt;br /&gt;
{{High-risk|200000+}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{{csdoc|usage}}&lt;br /&gt;
{{csdoc|usage common}}&lt;br /&gt;
;To cite a news article with a credited author&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last= |first= |date= |title= |url= |work= |location= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
;To cite a news article with no credited author&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |author=&amp;lt;!--Staff writer(s); no by-line.--&amp;gt; |title= |url= |work= |location= |date= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
;To cite an online news article that has been archived&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last= |first= |date= |title= |url= |dead-url= |work= |location= |archive-url= |archive-date= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
;To cite a news article written in a foreign language&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last= |first= |date= |title= |trans-title= |url= |language= |work= |location= |access-date= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;To cite and quote an archived, two-author, foreign language news article re-published as a PDF on an information aggregation service requiring a subscription&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last1= |first1= |last2= |first2= |date= |title= |trans-title= |url= |dead-url= |format= |language= |work= |location= |archive-url= |archive-date= |access-date= |via= |subscription= |quote= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|usage full}}&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |display-authors= |author-mask= |name-list-format= |last-author-amp= |date= |year= |title= |script-title= |trans-title= |url= |dead-url= |format= |editor1-last= |editor1-first= |editor1-link= |editor2-last= |editor2-first= |editor2-link= |editor3-last= |editor3-first= |editor3-link= |editor4-last= |editor4-first= |editor4-link= |editor5-last= |editor5-first= |editor5-link= |display-editors= |department= |work= |type= |series= |language= |volume= |issue= |others= |edition= |location= |publisher= |publication-date= |agency= |page= |pages= |at= |nopp= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archive-url= |archive-date= |access-date= |via= |registration= |subscription= |lay-url= |lay-source= |lay-date= |quote= |postscript= |ref= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|usage vertical common}}&lt;br /&gt;
;To cite a news article with a credited author&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| last         = &lt;br /&gt;
| first        = &lt;br /&gt;
| date         = &lt;br /&gt;
| title        = &lt;br /&gt;
| url          = &lt;br /&gt;
| work         = &lt;br /&gt;
| location     = &lt;br /&gt;
| access-date  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;To cite a news article with no credited author&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| author       =&amp;lt;!--Staff writer(s); no by-line.--&amp;gt;&lt;br /&gt;
| title        = &lt;br /&gt;
| url          = &lt;br /&gt;
| work         = &lt;br /&gt;
| location     = &lt;br /&gt;
| date         = &lt;br /&gt;
| access-date  =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;To cite an online news article that has been archived&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| last         = &lt;br /&gt;
| first        = &lt;br /&gt;
| date         = &lt;br /&gt;
| title        = &lt;br /&gt;
| url          = &lt;br /&gt;
| dead-url     = &lt;br /&gt;
| work         = &lt;br /&gt;
| location     = &lt;br /&gt;
| archive-url  = &lt;br /&gt;
| archive-date = &lt;br /&gt;
| access-date  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;To cite a news article written in a foreign language&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| last         = &lt;br /&gt;
| first        = &lt;br /&gt;
| date         = &lt;br /&gt;
| title        = &lt;br /&gt;
| trans-title  = &lt;br /&gt;
| url          = &lt;br /&gt;
| language     = &lt;br /&gt;
| work         = &lt;br /&gt;
| location     = &lt;br /&gt;
| access-date  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;To cite and quote an archived, two-author, foreign language news article re-published as a PDF on an information aggregation service requiring a subscription&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| last1        = &lt;br /&gt;
| first1       = &lt;br /&gt;
| last2        = &lt;br /&gt;
| first2       = &lt;br /&gt;
| date         = &lt;br /&gt;
| title        = &lt;br /&gt;
| trans-title  = &lt;br /&gt;
| url          = &lt;br /&gt;
| dead-url     = &lt;br /&gt;
| format       = &lt;br /&gt;
| language     = &lt;br /&gt;
| work    = &lt;br /&gt;
| location     = &lt;br /&gt;
| archive-url  = &lt;br /&gt;
| archive-date = &lt;br /&gt;
| access-date  = &lt;br /&gt;
| via          = &lt;br /&gt;
| subscription = &lt;br /&gt;
| quote        = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|usage vertical}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite news&lt;br /&gt;
| last1                 = &lt;br /&gt;
| first1                = &lt;br /&gt;
| author-link1          = &lt;br /&gt;
| last2                 = &lt;br /&gt;
| first2                = &lt;br /&gt;
| author-link2          = &lt;br /&gt;
| last3                 = &lt;br /&gt;
| first3                = &lt;br /&gt;
| author-link3          = &lt;br /&gt;
| last4                 = &lt;br /&gt;
| first4                = &lt;br /&gt;
| author-link4          = &lt;br /&gt;
| last5                 = &lt;br /&gt;
| first5                = &lt;br /&gt;
| author-link5          = &lt;br /&gt;
| display-authors       = &lt;br /&gt;
| author-mask           = &lt;br /&gt;
| name-list-format      = &lt;br /&gt;
| last-author-amp       = &lt;br /&gt;
| date                  = &lt;br /&gt;
| year                  = &lt;br /&gt;
| title                 = &lt;br /&gt;
| script-title          = &lt;br /&gt;
| trans-title           = &lt;br /&gt;
| url                   = &lt;br /&gt;
| dead-url              = &lt;br /&gt;
| format                = &lt;br /&gt;
| editor1-last          = &lt;br /&gt;
| editor1-first         = &lt;br /&gt;
| editor1-link          = &lt;br /&gt;
| editor2-last          = &lt;br /&gt;
| editor2-first         = &lt;br /&gt;
| editor2-link          = &lt;br /&gt;
| editor3-last          = &lt;br /&gt;
| editor3-first         = &lt;br /&gt;
| editor3-link          = &lt;br /&gt;
| editor4-last          = &lt;br /&gt;
| editor4-first         = &lt;br /&gt;
| editor4-link          = &lt;br /&gt;
| editor5-last          = &lt;br /&gt;
| editor5-first         = &lt;br /&gt;
| editor5-link          = &lt;br /&gt;
| display-editors       = &lt;br /&gt;
| department            = &lt;br /&gt;
| work                  = &lt;br /&gt;
| type                  = &lt;br /&gt;
| series                = &lt;br /&gt;
| language              = &lt;br /&gt;
| volume                = &lt;br /&gt;
| issue                 = &lt;br /&gt;
| others                = &lt;br /&gt;
| edition               = &lt;br /&gt;
| location              = &lt;br /&gt;
| publisher             = &lt;br /&gt;
| publication-date      = &lt;br /&gt;
| agency                = &lt;br /&gt;
| page                  = &lt;br /&gt;
| pages                 = &lt;br /&gt;
| at                    = &lt;br /&gt;
| nopp                  = &lt;br /&gt;
| arxiv                 = &lt;br /&gt;
| asin                  = &lt;br /&gt;
| bibcode               = &lt;br /&gt;
| doi                   = &lt;br /&gt;
| doi-broken-date       = &lt;br /&gt;
| isbn                  = &lt;br /&gt;
| issn                  = &lt;br /&gt;
| jfm                   = &lt;br /&gt;
| jstor                 = &lt;br /&gt;
| lccn                  = &lt;br /&gt;
| mr                    = &lt;br /&gt;
| oclc                  = &lt;br /&gt;
| ol                    = &lt;br /&gt;
| osti                  = &lt;br /&gt;
| pmc                   = &lt;br /&gt;
| pmid                  = &lt;br /&gt;
| rfc                   = &lt;br /&gt;
| ssrn                  = &lt;br /&gt;
| zbl                   = &lt;br /&gt;
| id                    = &lt;br /&gt;
| archive-url           = &lt;br /&gt;
| archive-date          = &lt;br /&gt;
| access-date           = &lt;br /&gt;
| via                   = &lt;br /&gt;
| registration          = &lt;br /&gt;
| subscription          = &lt;br /&gt;
| lay-url               = &lt;br /&gt;
| lay-source            = &lt;br /&gt;
| lay-date              = &lt;br /&gt;
| quote                 = &lt;br /&gt;
| postscript            = &lt;br /&gt;
| ref                   = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical mid}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical mid}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{csdoc|usage vertical end}}&lt;br /&gt;
&lt;br /&gt;
===Choosing between {{tlf|Cite web}} and {{tlf|Cite news}}===&lt;br /&gt;
{{anchor|Consistency}}&lt;br /&gt;
Before 2014, editors needed to decide whether to use {{tl|Cite web}} or {{tlf|Cite news}} based on their features. In 2014, however, &#039;&#039;most of&#039;&#039; the differences between the two templates were eliminated.&lt;br /&gt;
&lt;br /&gt;
As of {{diff|Module:Citation/CS1|732205428|723907342|29 July 2016}}, {{tlf|Cite web}} and {{tlf|Cite news}} have the following differences:&lt;br /&gt;
*{{tlf|Cite news}} can be used for offline (paper) sources whereas {{tlf|Cite web}} generates a missing URL error when no URL is provided&lt;br /&gt;
*{{tlf|Cite news}} accepts {{para|issue}} and {{para|volume}} parameters while {{tlf|Cite web}} does not (See {{section link|1=Help talk:Citation Style 1/Archive 10|2=&amp;amp;#x7C;volume=, &amp;amp;#x7C;issue=, &amp;amp;#x7C;page(s)= and cite magazine}}.)&lt;br /&gt;
But given the same set of valid parameters, their output is exactly the same:&lt;br /&gt;
&amp;lt;!-- ATTENTION!&lt;br /&gt;
The following example only serves to demonstrate parameter rending results.&lt;br /&gt;
&lt;br /&gt;
Whether you must include all these parameters in actual articles is not a concern here.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
| &#039;&#039;&#039;Cite web&#039;&#039;&#039;:  || {{cite web  |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=[[Houston Chronicle]] |publisher=[[Hearst Corporation]] |accessdate=May 26, 2015}}&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Cite news&#039;&#039;&#039;: || {{cite news |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=[[Houston Chronicle]] |publisher=[[Hearst Corporation]] |accessdate=May 26, 2015}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
;A news article with a credited author&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last=Wolford |first=Ben |date=2013-10-16 |title=Citrus Canker Lawsuit Headed Back to Trial |url=http://www.sun-sentinel.com/news/palm-beach/fl-citrus-canker-ruling-20131016,0,7602285.story |work=South Florida Sun-Sentinel |access-date=2013-10-17}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:Displays as:&lt;br /&gt;
* {{cite news |last=Wolford |first=Ben |date=2013-10-16 |title=Citrus Canker Lawsuit Headed Back to Trial |url=http://www.sun-sentinel.com/news/palm-beach/fl-citrus-canker-ruling-20131016,0,7602285.story |work=South Florida Sun-Sentinel |access-date=2013-10-17}}&lt;br /&gt;
&lt;br /&gt;
;A news article released by a news agency and having no credited author&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |author=&amp;lt;!--Staff writer(s); no by-line.--&amp;gt; |title=Bellingham Police Arrest WWU Student in Melee |url=http://blogs.seattletimes.com/today/2013/10/bellingham-police-arrest-wwu-student-in-melee/ |work=The Seattle Times |agency=Associated Press |date=2013-10-17 |access-date=2013-10-17}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:Displays as:&lt;br /&gt;
* {{cite news |author=&amp;lt;!--Staff writer(s); no by-line.--&amp;gt; |title=Bellingham Police Arrest WWU Student in Melee |url=http://blogs.seattletimes.com/today/2013/10/bellingham-police-arrest-wwu-student-in-melee/ |work=The Seattle Times |agency=Associated Press |date=2013-10-17 |access-date=2013-10-17}}&lt;br /&gt;
&lt;br /&gt;
;A news article that has been archived&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last=Pank |first=Philip |date=2013-10-18 |title=Families Accuse Network Rail of Cover-Up |url=http://www.thetimes.co.uk/tto/business/industries/transport/article3897709.ece |dead-url=no |work=The Times |location=London |archiveurl=https://www.webcitation.org/6KS5scqfE |archivedate=2013-10-18 |access-date=2013-10-18}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:Displays as:&lt;br /&gt;
* {{cite news |last=Pank |first=Philip |date=2013-10-18 |title=Families Accuse Network Rail of Cover-Up |url=http://www.thetimes.co.uk/tto/business/industries/transport/article3897709.ece |dead-url=no |work=The Times |location=London |archiveurl=https://www.webcitation.org/6KS5scqfE |archivedate=2013-10-18 |access-date=2013-10-18}}&lt;br /&gt;
&lt;br /&gt;
;A news article written in a foreign language&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last=Bourmaud |first=François-Xavier |date=2013-10-17 |title=Hollande dans le Bourbier de L&#039;affaire Leonarda |trans-title=Holland in the Quagmire of the Leonarda Case |url=http://www.lefigaro.fr/politique/2013/10/17/01002-20131017ARTFIG00575-hollande-dans-le-bourbier-de-l-affaire-leonarda.php |language=French |work=Le Figaro |location=Paris |access-date=2013-10-17}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:Displays as:&lt;br /&gt;
* {{cite news |last=Bourmaud |first=François-Xavier |date=2013-10-17 |title=Hollande dans le Bourbier de L&#039;affaire Leonarda |trans-title=Holland in the Quagmire of the Leonarda Case |url=http://www.lefigaro.fr/politique/2013/10/17/01002-20131017ARTFIG00575-hollande-dans-le-bourbier-de-l-affaire-leonarda.php |language=French |work=Le Figaro |location=Paris |access-date=2013-10-17}}&lt;br /&gt;
&lt;br /&gt;
;A two author news article that you quote and archive, is written in a foreign language and has been re-published as a PDF on an information aggregation service requiring a subscription&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |last1=Sueiro |first1=Marcos |last2=Guzman |first2=Lucia |date=2012-05-12 |title=El Crimen de Lucia Barranta Será Juzgado por un Jurado Popular |trans-title=Lucia Barranta&#039;s Crime Will Be Judged by a Jury |url=http://www.elmundo.es/elmundo/2013/10/17/espana/6845003888.html |dead-url=yes |format=PDF |language=Spanish |work=El Mundo |location=Madrid, Spain |archiveurl=https://www.webcitation.org/6KS7JR04T |archivedate=2012-06-22 |access-date=2012-06-22 |via=Highbeam Research |subscription=yes |quote=Los comparecientes lo harán en calidad de imputados por un delito de homicidio.}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:Displays as:&lt;br /&gt;
* {{cite news |last1=Sueiro |first1=Marcos |last2=Guzman |first2=Lucia |date=2012-05-12 |title=El Crimen de Lucia Barranta Será Juzgado por un Jurado Popular |trans-title=Lucia Barranta&#039;s Crime Will Be Judged by a Jury |url=http://www.elmundo.es/elmundo/2013/10/17/espana/6845003888.html |dead-url=no |format=PDF |language=Spanish |work=El Mundo |location=Madrid, Spain |archiveurl=https://www.webcitation.org/6KS7JR04T |archivedate=2012-06-22 |access-date=2012-06-22 |via=Highbeam Research |subscription=yes |quote=Los comparecientes lo harán en calidad de imputados por un delito de homicidio.}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Syntax===&lt;br /&gt;
{{csdoc|syntax}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|sep_period}}&lt;br /&gt;
&lt;br /&gt;
===COinS===&lt;br /&gt;
{{csdoc|coins}}&lt;br /&gt;
&lt;br /&gt;
===Deprecated===&lt;br /&gt;
{{csdoc|deprecated}}&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
====Authors====&lt;br /&gt;
{{csdoc|author|others=yes}}&lt;br /&gt;
&lt;br /&gt;
====Title====&lt;br /&gt;
{{csdoc|title|title_format=work}}&lt;br /&gt;
{{csdoc|language}}&lt;br /&gt;
&lt;br /&gt;
====Periodical====&lt;br /&gt;
{{csdoc|journal|department=yes}}&lt;br /&gt;
&lt;br /&gt;
====Date====&lt;br /&gt;
{{csdoc|date}}&lt;br /&gt;
&lt;br /&gt;
====Publisher====&lt;br /&gt;
{{csdoc|publisher}}&lt;br /&gt;
{{csdoc|agency}}&lt;br /&gt;
&lt;br /&gt;
====Edition, volume====&lt;br /&gt;
{{csdoc|edition}}&lt;br /&gt;
{{csdoc|volume}}&lt;br /&gt;
&lt;br /&gt;
====In-source locations====&lt;br /&gt;
{{csdoc|pages}}&lt;br /&gt;
&lt;br /&gt;
====URL====&lt;br /&gt;
{{csdoc|url}}&lt;br /&gt;
&lt;br /&gt;
====Anchor====&lt;br /&gt;
{{csdoc|ref}}&lt;br /&gt;
&lt;br /&gt;
====Identifiers====&lt;br /&gt;
{{csdoc|id1}}&lt;br /&gt;
{{csdoc|id2}}&lt;br /&gt;
&lt;br /&gt;
====Quote====&lt;br /&gt;
{{csdoc|quote}}&lt;br /&gt;
&lt;br /&gt;
====Editors====&lt;br /&gt;
{{csdoc|editor}}&lt;br /&gt;
&lt;br /&gt;
====Laysummary====&lt;br /&gt;
{{csdoc|lay}}&lt;br /&gt;
&lt;br /&gt;
====Display options====&lt;br /&gt;
{{csdoc|display}}&lt;br /&gt;
&lt;br /&gt;
====Subscription or registration required====&lt;br /&gt;
{{csdoc|registration}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template formats a citation to a news article in print, video, audio or web using the provided source information (e.g. author, publication, date) and various formatting options.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The URL of the online location where the text of the publication can be found. Requires schemes of the type \&amp;quot;http://...\&amp;quot; or maybe even the  protocol relative scheme \&amp;quot;//...\&amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;URL&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;https://www.nytimes.com/...&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Source title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The title of the article as it appears in the source; displays in quotes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the author; don&#039;t wikilink, use &#039;authorlink&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;last1&amp;quot;,&lt;br /&gt;
				&amp;quot;author&amp;quot;,&lt;br /&gt;
				&amp;quot;author1&amp;quot;,&lt;br /&gt;
				&amp;quot;authors&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the author; don&#039;t wikilink, use &#039;authorlink&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;first1&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Source date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Full date of the source; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publisher&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Publisher&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the parent institution or company that publishes the newspaper, magazine, or periodical; displays after name of the publication&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;distributor&amp;quot;,&lt;br /&gt;
				&amp;quot;institution&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;News Corp&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the second author; don&#039;t wikilink, use &#039;authorlink2&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the second author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;work&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Name of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the newspaper, magazine or periodical; displays after title&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;journal&amp;quot;,&lt;br /&gt;
				&amp;quot;magazine&amp;quot;,&lt;br /&gt;
				&amp;quot;periodical&amp;quot;,&lt;br /&gt;
				&amp;quot;newspaper&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;The Wall Street Journal&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;others&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Others&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Used to record other contributions to the work, such as &#039;Illustrated by John Smith&#039; or &#039;Translated by John Smith&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;month&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Month of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the month of publication; do not wikilink; use &#039;date&#039; instead, if day of month is also known&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;year&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Year of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Year of the source being referenced; use &#039;date&#039; instead, if month and day are also known&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-last&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor last name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the editor; don&#039;t wikilink, use &#039;editor-link&#039;; can suffix with a numeral to add additional editors; alias of &#039;editor1-last&#039;, &#039;editor&#039;, and &#039;editors&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor-last1&amp;quot;,&lt;br /&gt;
				&amp;quot;editor1-last&amp;quot;,&lt;br /&gt;
				&amp;quot;editor-surname&amp;quot;,&lt;br /&gt;
				&amp;quot;editor-surname1&amp;quot;,&lt;br /&gt;
				&amp;quot;editor1-surname&amp;quot;,&lt;br /&gt;
				&amp;quot;editor&amp;quot;,&lt;br /&gt;
				&amp;quot;editor1&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-first&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor first name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the editor; don&#039;t wikilink, use &#039;editor-link&#039;; can suffix with a numeral to add additional editors; alias of &#039;editor1-first&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor-first1&amp;quot;,&lt;br /&gt;
				&amp;quot;editor1-first&amp;quot;,&lt;br /&gt;
				&amp;quot;editor-given&amp;quot;,&lt;br /&gt;
				&amp;quot;editor-given1&amp;quot;,&lt;br /&gt;
				&amp;quot;editor1-given&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Editor link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the editor; can suffix with a numeral to add additional editors; alias of &#039;editor1-link&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;editor-link1&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;issue&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Issue&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Issue identifier when the source is part of a series that is published periodically&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;number&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;department&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Department&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Department within the periodical&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;location&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Location of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of &#039;place&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;place&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publication-place&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Place of publication&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Publication place shows after title; if &#039;place&#039; or &#039;location&#039; are also given, they are displayed before the title prefixed with &#039;written at&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;publication-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Publication date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date of publication when different from the date the work was written; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;agency&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Agency&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;edition&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Edition&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;When the publication has more than one edition; for example: &#039;2nd&#039;, &#039;Revised&#039; etc.; suffixed with &#039; ed.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;volume&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Volume&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For one publication published in several volumes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;page&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Page&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Page in the source that supports the content; displays after &#039;p.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pages&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Pages&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Pages in the source that support the content (not an indication of the number of pages in the source; displays after &#039;pp.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nopp&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;No pp&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set to &#039;y&#039; to suppress the &#039;p.&#039; or &#039;pp.&#039; display with &#039;page&#039; or &#039;pages&#039; when inappropriate (such as &#039;Front cover&#039;)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;at&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;At&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;May be used instead of &#039;page&#039; or &#039;pages&#039; where a page number is inappropriate or insufficient&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;language&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Language&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The language in which the source is written, if not English; use the full language name; do not use icons or templates&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;script-title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Script title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon.  For Japanese use: |script-title=ja:...&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;trans-title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Translated title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An English language title, if the source cited is in a foreign language; &#039;language&#039; is recommended&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;trans_title&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;type&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Type&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Additional information about the media type of the source; format in sentence case&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;format&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Format&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Format of the work referred to by &#039;url&#039;; examples: PDF, DOC, XLS; do not specify HTML&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;arxiv&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;arXiv identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An identifier for arXive electronic preprints of scientific papers&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;asin&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ASIN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Amazon Standard Identification Number; 10 characters&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;asin-tld&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ASIN TLD&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;ASIN top-level domain for Amazon sites other than the US&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;bibcode&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Bibcode&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Bibliographic Reference Code (REFCODE); 19 characters&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;doi&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;DOI&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Digital Object Identifier; begins with &#039;10.&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;doi-broken-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;DOI broken date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The date that the DOI was determined to be broken&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;doi_brokendate&amp;quot;,&lt;br /&gt;
				&amp;quot;doi-inactive-date&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;isbn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ISBN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;International Standard Book Number; use the 13-digit ISBN where possible&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;ISBN&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;issn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ISSN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;International Standard Serial Number; 8 characters; may be split into two groups of four using a hyphen&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;ISSN&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;jfm&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;jfm code&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Jahrbuch über die Fortschritte der Mathematik classification code&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;jstor&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;JSTOR&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;JSTOR identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lccn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;LCCN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Library of Congress Control Number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mr&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;MR&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Mathematical Reviews identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;oclc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OCLC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Online Computer Library Center number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ol&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Open Library identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;osti&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;OSTI&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Office of Scientific and Technical Information identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pmc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;PMC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;PubMed Center article number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pmid&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;PMID&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;PubMed Unique Identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;rfc&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;RFC&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Request for Comments number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ssrn&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;SSRN&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Social Science Research Network&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;zbl&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Zbl&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Zentralblatt MATH journal identifier&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;id&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;id&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;A unique identifier used where none of the specialized ones are applicable&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;quote&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Quote&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Relevant text quoted from the source; displays last, enclosed in quotes; needs to include terminating punctuation&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ref&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Ref&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;An anchor identifier; can be made the target of wikilinks to full references; special value &#039;harv&#039; generates an anchor suitable for the harv and sfn templates&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;postscript&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Postscript&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The closing punctuation for the citation; ignored if &#039;quote&#039; is defined; to suppress use reserved keyword &#039;none&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;registration&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Registration&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For online sources that require registration, set to &#039;yes&#039; (or &#039;y&#039;, or &#039;true&#039;); superseded by subscription if both are set&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;subscription&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Subscription&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;For online sources that require subscription, set to &#039;yes&#039; (or &#039;y&#039;, or &#039;true&#039;); supersedes registration if both are set&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the third author; don&#039;t wikilink, use &#039;authorlink3&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author3&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the third author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the fourth author; don&#039;t wikilink, use &#039;authorlink4&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author4&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the fourth author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the fifth author; don&#039;t wikilink, use &#039;authorlink5&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author5&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the fifth author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the sixth author; don&#039;t wikilink, use &#039;authorlink6&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author6&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the sixth author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the seventh author; don&#039;t wikilink, use &#039;authorlink7&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author7&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the seventh author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the eighth author; don&#039;t wikilink, use &#039;authorlink8&#039;.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author8&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the eighth author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The surname of the ninth author; don&#039;t wikilink, use &#039;authorlink9&#039;. If nine authors are defined, then only eight will show and &#039;et al.&#039; will show in place of the last author.&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;author9&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;first9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;First name 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Given or first name, middle names, or initials of the ninth author; don&#039;t wikilink.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-mask&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author mask&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Replaces the name of the first author with em dashes or text; set to a numeric value &#039;n&#039; to set the dash &#039;n&#039; em spaces wide; set to a text value to display the text without a trailing author separator; for example, &#039;with&#039; instead&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-name-separator&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author name separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Changes the separator between last and first names; defaults to a comma and space; a space must be encoded as &amp;amp;#32;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;, &amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-separator&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Changes the separator between authors; defaults to a semicolon and space; a space must be encoded as &amp;amp;#32;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;; &amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;display-authors&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Display authors&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;number of authors to display before &#039;et al.&#039; is used;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;displayauthors&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the author; can suffix with a numeral to add additional authors&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink&amp;quot;,&lt;br /&gt;
				&amp;quot;authorlink1&amp;quot;,&lt;br /&gt;
				&amp;quot;author-link1&amp;quot;,&lt;br /&gt;
				&amp;quot;author1-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the second author. (Up to nine authors can be listed, 3-9 are toward the end of the parameter list)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink2&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;archive-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Archive URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires &#039;archivedate&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;archiveurl&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;archive-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Archive date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date when the original URL was archived; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;archivedate&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;dead-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Dead URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to &#039;no&#039;, the title display is adjusted; useful for when the URL is archived preemptively but still live&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;deadurl&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-url&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;URL link to a non-technical summary or review of the source; alias of &#039;laysummary&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;layurl&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-source&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay source&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the source of the laysummary; displays in italics, preceded by an en dash&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;laysource&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lay-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Lay date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Date of the summary; displays in parentheses&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;laydate&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the third author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink3&amp;quot;,&lt;br /&gt;
				&amp;quot;author3-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the fourth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink4&amp;quot;,&lt;br /&gt;
				&amp;quot;author4-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 5&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the fifth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink5&amp;quot;,&lt;br /&gt;
				&amp;quot;author5-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 6&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the sixth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink6&amp;quot;,&lt;br /&gt;
				&amp;quot;author6-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 7&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the seventh author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink7&amp;quot;,&lt;br /&gt;
				&amp;quot;author7-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 8&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the eighth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink8&amp;quot;,&lt;br /&gt;
				&amp;quot;author8-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;author-link9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Author link 9&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of existing Wikipedia article about the ninth author.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;authorlink9&amp;quot;,&lt;br /&gt;
				&amp;quot;author9-link&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;last-author-amp&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Last author ampersand&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;When set to any value, changes the separator between the last two names of the author list to &#039;space ampersand space&#039;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;lastauthoramp&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;access-date&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL access date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The full date when the original URL was accessed; do not wikilink&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;accessdate&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;orig-year&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Original year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Original year of publication; provide specifics&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;origyear&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;via&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;via&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Identify the aggregator of the resource that provided the digital version (usually a database provider), when it differs from the publisher (e.g., for The Wikipedia Library)&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;EBSCOHost , Proquest, Newspapers.com&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;maps&amp;quot;: {&lt;br /&gt;
		&amp;quot;proveit&amp;quot;: {&lt;br /&gt;
			&amp;quot;main&amp;quot;: &amp;quot;title&amp;quot;,&lt;br /&gt;
			&amp;quot;textarea&amp;quot;: [&lt;br /&gt;
				&amp;quot;quote&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;citoid&amp;quot;: {&lt;br /&gt;
			&amp;quot;title&amp;quot;: &amp;quot;title&amp;quot;,&lt;br /&gt;
			&amp;quot;url&amp;quot;: &amp;quot;url&amp;quot;,&lt;br /&gt;
			&amp;quot;publisher&amp;quot;: &amp;quot;publisher&amp;quot;,&lt;br /&gt;
			&amp;quot;publicationTitle&amp;quot;: &amp;quot;work&amp;quot;,&lt;br /&gt;
			&amp;quot;date&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;accessDate&amp;quot;: &amp;quot;access-date&amp;quot;,&lt;br /&gt;
			&amp;quot;location&amp;quot;: &amp;quot;location&amp;quot;,&lt;br /&gt;
			&amp;quot;ISSN&amp;quot;: [&lt;br /&gt;
				&amp;quot;issn&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;ISBN&amp;quot;: [&lt;br /&gt;
				&amp;quot;isbn&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;PMCID&amp;quot;: &amp;quot;pmc&amp;quot;,&lt;br /&gt;
			&amp;quot;PMID&amp;quot;: &amp;quot;pmid&amp;quot;,&lt;br /&gt;
			&amp;quot;pages&amp;quot;: &amp;quot;pages&amp;quot;,&lt;br /&gt;
			&amp;quot;volume&amp;quot;: &amp;quot;volume&amp;quot;,&lt;br /&gt;
			&amp;quot;issue&amp;quot;: &amp;quot;issue&amp;quot;,&lt;br /&gt;
			&amp;quot;DOI&amp;quot;: &amp;quot;doi&amp;quot;,&lt;br /&gt;
			&amp;quot;oclc&amp;quot;: &amp;quot;oclc&amp;quot;,&lt;br /&gt;
			&amp;quot;language&amp;quot;: &amp;quot;language&amp;quot;,&lt;br /&gt;
			&amp;quot;contributor&amp;quot;: &amp;quot;others&amp;quot;,&lt;br /&gt;
			&amp;quot;author&amp;quot;: [&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first&amp;quot;,&lt;br /&gt;
					&amp;quot;last&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first2&amp;quot;,&lt;br /&gt;
					&amp;quot;last2&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first3&amp;quot;,&lt;br /&gt;
					&amp;quot;last3&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first4&amp;quot;,&lt;br /&gt;
					&amp;quot;last4&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first5&amp;quot;,&lt;br /&gt;
					&amp;quot;last5&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first6&amp;quot;,&lt;br /&gt;
					&amp;quot;last6&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first7&amp;quot;,&lt;br /&gt;
					&amp;quot;last7&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first8&amp;quot;,&lt;br /&gt;
					&amp;quot;last8&amp;quot;&lt;br /&gt;
				],&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;first9&amp;quot;,&lt;br /&gt;
					&amp;quot;last9&amp;quot;&lt;br /&gt;
				]&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;editor&amp;quot;: [&lt;br /&gt;
				[&lt;br /&gt;
					&amp;quot;editor-first&amp;quot;,&lt;br /&gt;
					&amp;quot;editor-last&amp;quot;&lt;br /&gt;
				]&lt;br /&gt;
			]&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;,&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;url&amp;quot;,&lt;br /&gt;
		&amp;quot;title&amp;quot;,&lt;br /&gt;
		&amp;quot;last&amp;quot;,&lt;br /&gt;
		&amp;quot;first&amp;quot;,&lt;br /&gt;
		&amp;quot;date&amp;quot;,&lt;br /&gt;
		&amp;quot;work&amp;quot;,&lt;br /&gt;
		&amp;quot;access-date&amp;quot;,&lt;br /&gt;
		&amp;quot;archive-url&amp;quot;,&lt;br /&gt;
		&amp;quot;archive-date&amp;quot;,&lt;br /&gt;
		&amp;quot;dead-url&amp;quot;,&lt;br /&gt;
		&amp;quot;publisher&amp;quot;,&lt;br /&gt;
		&amp;quot;agency&amp;quot;,&lt;br /&gt;
		&amp;quot;last2&amp;quot;,&lt;br /&gt;
		&amp;quot;first2&amp;quot;,&lt;br /&gt;
		&amp;quot;others&amp;quot;,&lt;br /&gt;
		&amp;quot;month&amp;quot;,&lt;br /&gt;
		&amp;quot;year&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-last&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-first&amp;quot;,&lt;br /&gt;
		&amp;quot;editor-link&amp;quot;,&lt;br /&gt;
		&amp;quot;issue&amp;quot;,&lt;br /&gt;
		&amp;quot;department&amp;quot;,&lt;br /&gt;
		&amp;quot;location&amp;quot;,&lt;br /&gt;
		&amp;quot;publication-place&amp;quot;,&lt;br /&gt;
		&amp;quot;publication-date&amp;quot;,&lt;br /&gt;
		&amp;quot;edition&amp;quot;,&lt;br /&gt;
		&amp;quot;volume&amp;quot;,&lt;br /&gt;
		&amp;quot;page&amp;quot;,&lt;br /&gt;
		&amp;quot;pages&amp;quot;,&lt;br /&gt;
		&amp;quot;nopp&amp;quot;,&lt;br /&gt;
		&amp;quot;at&amp;quot;,&lt;br /&gt;
		&amp;quot;language&amp;quot;,&lt;br /&gt;
		&amp;quot;script-title&amp;quot;,&lt;br /&gt;
		&amp;quot;trans-title&amp;quot;,&lt;br /&gt;
		&amp;quot;type&amp;quot;,&lt;br /&gt;
		&amp;quot;format&amp;quot;,&lt;br /&gt;
		&amp;quot;arxiv&amp;quot;,&lt;br /&gt;
		&amp;quot;asin&amp;quot;,&lt;br /&gt;
		&amp;quot;asin-tld&amp;quot;,&lt;br /&gt;
		&amp;quot;bibcode&amp;quot;,&lt;br /&gt;
		&amp;quot;doi&amp;quot;,&lt;br /&gt;
		&amp;quot;doi-broken-date&amp;quot;,&lt;br /&gt;
		&amp;quot;isbn&amp;quot;,&lt;br /&gt;
		&amp;quot;issn&amp;quot;,&lt;br /&gt;
		&amp;quot;jfm&amp;quot;,&lt;br /&gt;
		&amp;quot;jstor&amp;quot;,&lt;br /&gt;
		&amp;quot;lccn&amp;quot;,&lt;br /&gt;
		&amp;quot;mr&amp;quot;,&lt;br /&gt;
		&amp;quot;oclc&amp;quot;,&lt;br /&gt;
		&amp;quot;ol&amp;quot;,&lt;br /&gt;
		&amp;quot;osti&amp;quot;,&lt;br /&gt;
		&amp;quot;pmc&amp;quot;,&lt;br /&gt;
		&amp;quot;pmid&amp;quot;,&lt;br /&gt;
		&amp;quot;rfc&amp;quot;,&lt;br /&gt;
		&amp;quot;ssrn&amp;quot;,&lt;br /&gt;
		&amp;quot;zbl&amp;quot;,&lt;br /&gt;
		&amp;quot;id&amp;quot;,&lt;br /&gt;
		&amp;quot;quote&amp;quot;,&lt;br /&gt;
		&amp;quot;ref&amp;quot;,&lt;br /&gt;
		&amp;quot;postscript&amp;quot;,&lt;br /&gt;
		&amp;quot;registration&amp;quot;,&lt;br /&gt;
		&amp;quot;subscription&amp;quot;,&lt;br /&gt;
		&amp;quot;last3&amp;quot;,&lt;br /&gt;
		&amp;quot;first3&amp;quot;,&lt;br /&gt;
		&amp;quot;last4&amp;quot;,&lt;br /&gt;
		&amp;quot;first4&amp;quot;,&lt;br /&gt;
		&amp;quot;last5&amp;quot;,&lt;br /&gt;
		&amp;quot;first5&amp;quot;,&lt;br /&gt;
		&amp;quot;last6&amp;quot;,&lt;br /&gt;
		&amp;quot;first6&amp;quot;,&lt;br /&gt;
		&amp;quot;last7&amp;quot;,&lt;br /&gt;
		&amp;quot;first7&amp;quot;,&lt;br /&gt;
		&amp;quot;last8&amp;quot;,&lt;br /&gt;
		&amp;quot;first8&amp;quot;,&lt;br /&gt;
		&amp;quot;last9&amp;quot;,&lt;br /&gt;
		&amp;quot;first9&amp;quot;,&lt;br /&gt;
		&amp;quot;author-mask&amp;quot;,&lt;br /&gt;
		&amp;quot;author-name-separator&amp;quot;,&lt;br /&gt;
		&amp;quot;author-separator&amp;quot;,&lt;br /&gt;
		&amp;quot;display-authors&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link2&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-url&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-source&amp;quot;,&lt;br /&gt;
		&amp;quot;lay-date&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link3&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link4&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link5&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link6&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link7&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link8&amp;quot;,&lt;br /&gt;
		&amp;quot;author-link9&amp;quot;,&lt;br /&gt;
		&amp;quot;last-author-amp&amp;quot;,&lt;br /&gt;
		&amp;quot;orig-year&amp;quot;,&lt;br /&gt;
		&amp;quot;via&amp;quot;&lt;br /&gt;
	]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Citation Style 1}}&lt;br /&gt;
{{Wikipedia referencing}}&lt;br /&gt;
{{UF-COinS}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
[[Category:Citation Style 1 templates|N]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Citation_Style_documentation/journal&amp;diff=28497</id>
		<title>Template:Citation Style documentation/journal</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Citation_Style_documentation/journal&amp;diff=28497"/>
		<updated>2018-04-06T09:40:40Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &amp;lt;b id=&amp;quot;csdoc_work&amp;quot;&amp;gt;work&amp;lt;/b&amp;gt;: Name of the source periodical; may be wikilinked if relevant. Displays in italics. Aliases: &#039;&#039;&#039;journal&#039;&#039;&#039;, &#039;&#039;&#039;newspaper&#039;&#039;&#039;, &#039;&#039;&#039;magazine&#039;&#039;&#039;, &#039;&#039;&#039;periodical&#039;&#039;&#039;, &#039;&#039;&#039;website&#039;&#039;&#039;.&lt;br /&gt;
** &amp;lt;b id=&amp;quot;csdoc_issue&amp;quot;&amp;gt;issue&amp;lt;/b&amp;gt;: When the publication is one of a series that is published periodically. Alias: &#039;&#039;&#039;number&#039;&#039;&#039;. When the issue has a special title of its own, this may be given, in italics, along with the issue number, e.g. {{para|issue|2, &amp;lt;nowiki&amp;gt;&#039;&#039;Modern Canadian Literature&#039;&#039;&amp;lt;/nowiki&amp;gt;}}. {{#if:{{{magazine|}}}|Prefixed with &#039;No. &#039;|Displayed in parentheses}} following &#039;&#039;&#039;volume&#039;&#039;&#039;.{{#if:{{{department|}}}|&lt;br /&gt;
** &amp;lt;b id=&amp;quot;csdoc_department&amp;quot;&amp;gt;department&amp;lt;/b&amp;gt;: Title of a regular department, [[column (periodical)|column]], or section within the periodical or journal. Examples include &amp;quot;Communication&amp;quot;, &amp;quot;Editorial&amp;quot;, &amp;quot;Letter to the Editor&amp;quot;, and &amp;quot;Review&amp;quot;. Displays after &#039;&#039;&#039;title&#039;&#039;&#039; and is in plain text.}}&lt;br /&gt;
:When set, &#039;&#039;&#039;work&#039;&#039;&#039; changes the formatting of other parameters:&lt;br /&gt;
:: &#039;&#039;&#039;title&#039;&#039;&#039; is not italicized and is enclosed in quotes.&lt;br /&gt;
:: &#039;&#039;&#039;chapter&#039;&#039;&#039; does not display in this citation template (and will produce an error message). &lt;br /&gt;
:: &#039;&#039;&#039;location&#039;&#039;&#039; and &#039;&#039;&#039;publisher&#039;&#039;&#039; are enclosed in parentheses.&lt;br /&gt;
:: &#039;&#039;&#039;page&#039;&#039;&#039; and &#039;&#039;&#039;pages&#039;&#039;&#039; do not show p. or pp.&lt;br /&gt;
:: &#039;&#039;&#039;edition&#039;&#039;&#039; does not display.&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Collapse_top&amp;diff=28495</id>
		<title>Template:Collapse top</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Collapse_top&amp;diff=28495"/>
		<updated>2018-04-06T09:40:40Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;margin-left:{{{indent|0}}}&amp;quot;&amp;gt;&amp;lt;!-- NOTE: width renders incorrectly if added to main STYLE section --&amp;gt;&lt;br /&gt;
{| &amp;lt;!-- Template:Collapse top --&amp;gt; class=&amp;quot;mw-collapsible {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}&amp;quot; style=&amp;quot;background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;background: {{{bg|#{{main other|F0F2F5|CCFFCC}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}&amp;quot; | &amp;lt;span style=&amp;quot;font-size:115%&amp;quot;&amp;gt;{{{1|{{{title|{{{reason|{{{header|{{{heading|Extended content}}} }}} }}} }}} }}}&amp;lt;/span&amp;gt;   &lt;br /&gt;
{{{{{|safesubst:}}}#if:{{{warning|{{{2|}}}}}}&lt;br /&gt;
|{{{{{|safesubst:}}}!}}-&lt;br /&gt;
{{{{{|safesubst:}}}!}} style=&amp;quot;text-align:center; font-style:italic;&amp;quot; {{{{{|safesubst:}}}!}} {{{2|The following is a closed debate. {{strongbad|Please do not modify it.}} }}} }}&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border: solid {{{border2|1px Silver}}}; padding: {{{padding|0.6em}}}; background: {{{bg2|White}}};&amp;quot; {{{{{|safesubst:}}}!}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{lorem ipsum|3}}&lt;br /&gt;
{{Collapse bottom}}&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
{{Collapse top/TemplateData}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Collapse_bottom&amp;diff=28493</id>
		<title>Template:Collapse bottom</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Collapse_bottom&amp;diff=28493"/>
		<updated>2018-04-06T09:40:39Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;|}&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation|Template:Collapse top/doc}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD THIS TEMPLATE&#039;S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Cite_book/doc&amp;diff=28491</id>
		<title>Template:Cite book/doc</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Cite_book/doc&amp;diff=28491"/>
		<updated>2018-04-06T09:40:39Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --&amp;gt;&lt;br /&gt;
{{high-risk| 846000+ }}&lt;br /&gt;
{{csdoc|lua}}&lt;br /&gt;
{{csdoc|cs1}}&lt;br /&gt;
{{csdoc|lead|books}} When citing an article in a periodical, use {{tl|cite journal}}. For edited collections, use {{tl|cite encyclopedia}}. For theses, use {{tl|cite thesis}}.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{{csdoc|usage}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|usage common}}&lt;br /&gt;
&#039;&#039;&#039;To cite a book with a credited author&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |last= |first= |date= |title= |url= |location= |publisher= |page= |isbn= |author-link= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To cite a book with no credited author&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |author=&amp;lt;!--Staff writer(s); no by-line.--&amp;gt; |title= |url= |location= |publisher= |page= |date= |isbn=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To cite an online book that has been archived&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |last= |first= |date= |title= |url= |dead-url= |location= |publisher= |isbn= |archive-url= |archive-date=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To cite a book written in a foreign language&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |last= |first= |date= |title= |trans-title= |url= |language= |location= |publisher= |isbn=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To cite and quote an archived, two-author, foreign language book re-published as a PDF on an information aggregation service requiring a subscription&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |last1= |first1= |last2= |first2= |date= |title= |trans-title= |url= |dead-url= |format= |language= |location= |publisher= |isbn= |archive-url= |archive-date= |via= |subscription= |quote= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
&lt;br /&gt;
{{csdoc|usage full}}&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite book |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |display-authors= |author-mask= |last-author-amp= |translator-last= |translator-first= |date= |year= |orig-year= |chapter= |script-chapter= |trans-chapter= |chapter-url= |chapter-format= |editor1-last= |editor1-first= |editor1-link= |editor2-last= |editor2-first= |editor2-link= |editor3-last= |editor3-first= |editor3-link= |editor4-last= |editor4-first= |editor4-link= |editor5-last= |editor5-first= |editor5-link= |display-editors= |title= |script-title= |trans-title= |url= |dead-url= |format= |type= |series= |language= |volume= |issue= |others= |edition= |location= |publisher= |publication-date= |page= |pages= |at= |nopp= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archive-url= |archive-date= |access-date= |via= |registration= |subscription= |lay-summary= |lay-source= |lay-date= |quote= |name-list-format= |mode= |postscript= |ref= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{end}}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Full parameter set in vertical format&lt;br /&gt;
! Parameters !! Prerequisites !! Brief instructions / notes !! Vertical list&lt;br /&gt;
|-&lt;br /&gt;
|| last1 ||  || may also use &amp;quot;last&amp;quot;; for additional authors, &amp;quot;last2&amp;quot;, &amp;quot;last3&amp;quot;, etc. || rowspan=&amp;quot;75&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; | &amp;lt;pre style=&amp;quot;margin:0px; border:none;&amp;quot;&amp;gt;&lt;br /&gt;
{{cite book&lt;br /&gt;
|last1=&lt;br /&gt;
|first1=&lt;br /&gt;
|author-link1=&lt;br /&gt;
|author-mask1=&lt;br /&gt;
|last2=&lt;br /&gt;
|first2=&lt;br /&gt;
|display-authors=&lt;br /&gt;
|last-author-amp=&lt;br /&gt;
|translator-last=&lt;br /&gt;
|translator-first=&lt;br /&gt;
|date=&lt;br /&gt;
|year=&lt;br /&gt;
|orig-year=&lt;br /&gt;
|chapter=&lt;br /&gt;
|script-chapter=&lt;br /&gt;
|trans-chapter=&lt;br /&gt;
|chapter-url=&lt;br /&gt;
|chapter-format=&lt;br /&gt;
|editor1-last=&lt;br /&gt;
|editor1-first=&lt;br /&gt;
|editor1-link=&lt;br /&gt;
|editor1-mask=&lt;br /&gt;
|display-editors=&lt;br /&gt;
|title=&lt;br /&gt;
|script-title=&lt;br /&gt;
|trans-title=&lt;br /&gt;
|url=&lt;br /&gt;
|dead-url=&lt;br /&gt;
|format=&lt;br /&gt;
|type=&lt;br /&gt;
|series=&lt;br /&gt;
|language=&lt;br /&gt;
|volume=&lt;br /&gt;
|issue=&lt;br /&gt;
|others=&lt;br /&gt;
|edition=&lt;br /&gt;
|location=&lt;br /&gt;
|publisher=&lt;br /&gt;
|publication-date=&lt;br /&gt;
|page=&lt;br /&gt;
|pages=&lt;br /&gt;
|at=&lt;br /&gt;
|nopp=&lt;br /&gt;
|arxiv=&lt;br /&gt;
|asin=&lt;br /&gt;
|bibcode=&lt;br /&gt;
|doi=&lt;br /&gt;
|doi-broken-date=&lt;br /&gt;
|isbn=&lt;br /&gt;
|issn=&lt;br /&gt;
|jfm=&lt;br /&gt;
|jstor=&lt;br /&gt;
|lccn=&lt;br /&gt;
|mr=&lt;br /&gt;
|oclc=&lt;br /&gt;
|ol=&lt;br /&gt;
|osti=&lt;br /&gt;
|pmc=&lt;br /&gt;
|pmid=&lt;br /&gt;
|rfc=&lt;br /&gt;
|ssrn=&lt;br /&gt;
|zbl=&lt;br /&gt;
|id=&lt;br /&gt;
|archive-url=&lt;br /&gt;
|archive-date=&lt;br /&gt;
|access-date=&lt;br /&gt;
|via=&lt;br /&gt;
|registration=&lt;br /&gt;
|subscription=&lt;br /&gt;
|lay-summary=&lt;br /&gt;
|lay-source=&lt;br /&gt;
|lay-date=&lt;br /&gt;
|quote=&lt;br /&gt;
|name-list-format=&lt;br /&gt;
|mode=&lt;br /&gt;
|postscript=&lt;br /&gt;
|ref=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| first1 || last or last1 || may also use &amp;quot;first&amp;quot;; for additional authors, &amp;quot;first2&amp;quot;, &amp;quot;first3&amp;quot;, etc.&lt;br /&gt;
|-&lt;br /&gt;
|| author-link1 || last or last1 || may also use &amp;quot;author-link&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| author-mask1 || last or last1 || may also use &amp;quot;author-mask&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| last2 || last1 ||&lt;br /&gt;
|-&lt;br /&gt;
|| first2 || last2 ||&lt;br /&gt;
|-&lt;br /&gt;
|| display-authors || last or last1 ||&lt;br /&gt;
|-&lt;br /&gt;
|| last-author-amp ||  last or last1 ||&lt;br /&gt;
|-&lt;br /&gt;
|| translator || || &lt;br /&gt;
|-&lt;br /&gt;
|| date || ||&lt;br /&gt;
|-&lt;br /&gt;
|| year || ||&lt;br /&gt;
|-&lt;br /&gt;
|| orig-year || year or date ||&lt;br /&gt;
|-&lt;br /&gt;
|| chapter || || This should be the title of the chapter cited. Do not wikilink &amp;quot;chapter&amp;quot; if &amp;quot;chapterurl&amp;quot; is provided&lt;br /&gt;
|-&lt;br /&gt;
|| script-chapter || ||&lt;br /&gt;
|-&lt;br /&gt;
|| trans-chapter || chapter  or script-chapter ||&lt;br /&gt;
|-&lt;br /&gt;
|| chapter-url || chapter or script-chapter ||&lt;br /&gt;
|-&lt;br /&gt;
|| chapter-format || chapter-url ||&lt;br /&gt;
|-&lt;br /&gt;
|| editor1-last ||   || may also use &amp;quot;editor-last&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| editor1-first ||  editor1-last || may also use &#039;editor-first&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| editor1-link ||  editor1-last || may also use &amp;quot;editor-link&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| editor1-mask ||  editor1-last&lt;br /&gt;
|-&lt;br /&gt;
|| display-editors || ||&lt;br /&gt;
|-&lt;br /&gt;
|| title || ||&lt;br /&gt;
|-&lt;br /&gt;
|| script-title || ||&lt;br /&gt;
|-&lt;br /&gt;
|| trans-title || title or script-title ||&lt;br /&gt;
|-&lt;br /&gt;
|| url || title or script-title ||&lt;br /&gt;
|-&lt;br /&gt;
|| dead-url || ||&lt;br /&gt;
|-&lt;br /&gt;
|| format || url ||&lt;br /&gt;
|-&lt;br /&gt;
|| type || ||&lt;br /&gt;
|-&lt;br /&gt;
|| series || ||&lt;br /&gt;
|-&lt;br /&gt;
|| language || ||&lt;br /&gt;
|-&lt;br /&gt;
|| volume || ||&lt;br /&gt;
|-&lt;br /&gt;
|| issue || ||&lt;br /&gt;
|-&lt;br /&gt;
|| others || ||&lt;br /&gt;
|-&lt;br /&gt;
|| edition || ||&lt;br /&gt;
|-&lt;br /&gt;
|| location || publisher ||&lt;br /&gt;
|-&lt;br /&gt;
|| publisher || ||&lt;br /&gt;
|-&lt;br /&gt;
|| publication-date || ||&lt;br /&gt;
|-&lt;br /&gt;
|| page || || choose one: &amp;quot;page&amp;quot;, &amp;quot;pages&amp;quot;, or &amp;quot;at&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| pages || || choose one: &amp;quot;page&amp;quot;, &amp;quot;pages&amp;quot;, or &amp;quot;at&amp;quot;. Use when content on multiple pages supports the article text.&lt;br /&gt;
|-&lt;br /&gt;
|| at || || choose one: &amp;quot;page&amp;quot;, &amp;quot;pages&amp;quot;, or &amp;quot;at&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| nopp || page or pages || set nopp to &amp;quot;yes&amp;quot; to suppress the &amp;quot;p.&amp;quot; or &amp;quot;pp.&amp;quot; before page numbers&lt;br /&gt;
|-&lt;br /&gt;
|| arxiv || ||&lt;br /&gt;
|-&lt;br /&gt;
|| asin || ||&lt;br /&gt;
|-&lt;br /&gt;
|| bibcode || ||&lt;br /&gt;
|-&lt;br /&gt;
|| doi || ||&lt;br /&gt;
|-&lt;br /&gt;
|| doi-broken-date ||  doi ||&lt;br /&gt;
|-&lt;br /&gt;
|| isbn || || &#039;&#039;&#039;always include ISBN&#039;&#039;&#039;, if one has been assigned&lt;br /&gt;
|-&lt;br /&gt;
|| issn || || &lt;br /&gt;
|-&lt;br /&gt;
|| jfm || ||&lt;br /&gt;
|-&lt;br /&gt;
|| jstor || ||&lt;br /&gt;
|-&lt;br /&gt;
|| lccn || ||&lt;br /&gt;
|-&lt;br /&gt;
|| mr || ||&lt;br /&gt;
|-&lt;br /&gt;
|| oclc || ||&lt;br /&gt;
|-&lt;br /&gt;
|| ol || ||&lt;br /&gt;
|-&lt;br /&gt;
|| osti || ||&lt;br /&gt;
|-&lt;br /&gt;
|| pmc || ||&lt;br /&gt;
|-&lt;br /&gt;
|| pmid || ||&lt;br /&gt;
|-&lt;br /&gt;
|| rfc || ||&lt;br /&gt;
|-&lt;br /&gt;
|| ssrn || ||&lt;br /&gt;
|-&lt;br /&gt;
|| zbl || ||&lt;br /&gt;
|-&lt;br /&gt;
|| id || ||&lt;br /&gt;
|-&lt;br /&gt;
|| archive-url ||  archive-date, url ||&lt;br /&gt;
|-&lt;br /&gt;
|| archive-date ||  archive-url ||&lt;br /&gt;
|-&lt;br /&gt;
|| access-date || url ||&lt;br /&gt;
|-&lt;br /&gt;
|| via || ||&lt;br /&gt;
|-&lt;br /&gt;
|| registration || ||&lt;br /&gt;
|-&lt;br /&gt;
|| subscription || ||&lt;br /&gt;
|-&lt;br /&gt;
|| lay-summary || ||&lt;br /&gt;
|-&lt;br /&gt;
|| lay-source || lay-summary ||&lt;br /&gt;
|-&lt;br /&gt;
|| lay-date || lay-summary ||&lt;br /&gt;
|-&lt;br /&gt;
|| quote || ||&lt;br /&gt;
|-&lt;br /&gt;
|| name-list-format || || &amp;lt;code&amp;gt;vanc&amp;lt;/code&amp;gt; to emulate [[Vancouver style]]&lt;br /&gt;
|-&lt;br /&gt;
|| mode || || &amp;lt;code&amp;gt;cs1&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cs2&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|| postscript || ||&lt;br /&gt;
|-&lt;br /&gt;
|| ref || ||&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center &amp;quot; | If a field name is listed in the &#039;&#039;&#039;Prerequisites&#039;&#039;&#039; column it is a prerequisite for the field to the left.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
{{markup2|t=Title&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |title=Mysterious Book}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |title=Mysterious Book}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Title and year&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |title=Mysterious Book |date=1901}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |title=Mysterious Book |date=1901}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Basic usage (single author)&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Basic usage (two authors)&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Bloggs |first2=Fred |authorlink2=Fred Bloggs |date=1974 |title=Book of Bloggs}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Bloggs |first2=Fred |authorlink2=Fred Bloggs |date=1974 |title=Book of Bloggs}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Basic usage with url (and access-date) and edition&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}&lt;br /&gt;
}}{{anchor|different authors}}&lt;br /&gt;
{{markup2|t=Citing a chapter in a book with different authors for different chapters and an editor&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=Bloggs |first=Fred |editor-last=Doe |editor-first=John |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=Bloggs |first=Fred |editor-last=Doe |editor-first=John |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Citing a chapter in a book with two joint authors and an editor&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Bloggs |first1=Joe |last2=Egg |first2=Fred |editor-last=Doe |editor-first=John |title=Big Book with Many Chapters and Two Co-authors |publisher=Book Publishers |date=January 1, 2001 |orig-year=1st pub. 1986 |pages=100–110 |chapter=Chapter 6: Getting There |chapterurl=http://en.wikipedia.org/ |isbn=978-1-234-56789-7 |lastauthoramp=y}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Bloggs |first1=Joe |last2=Egg |first2=Fred |editor-last=Doe |editor-first=John |title=Big Book with Many Chapters and Two Co-authors |publisher=Book Publishers |date=January 1, 2001 |orig-year=1st pub. 1986 |pages=100–110 |chapter=Chapter 6: Getting There |chapterurl=http://en.wikipedia.org/ |isbn=978-1-234-56789-7 |lastauthoramp=y}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Three authors, title with a piped wikilink, edition&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Smith |first2=John |last3=Smythe |first3=Jim |title=[[A Thousand Acres|1000 Acres]] |edition=2nd}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Smith |first2=John |last3=Smythe |first3=Jim |title=[[A Thousand Acres|1000 Acres]] |edition=2nd}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Complex usage showing effect of using volume parameter and lastauthoramp parameter (without volume and lastauthoramp)&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East. Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East. Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Complex usage showing effect of using volume parameter and lastauthoramp parameter (with volume and lastauthoramp)&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East |volume=Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East |volume=Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Date without day, wikilinked title and publisher, pages, edition, location&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Cordell |first1=Bruce R. |last2=Grubb |first2=Jeff |last3=Noonan |first3=David |date=September 2001 |title=[[Manual of the Planes]] |edition=3rd |publisher=[[Wizards of the Coast]] |location=Renton, Washington |isbn=0-7869-1850-0 |pages=134–137}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Cordell |first1=Bruce R. |last2=Grubb |first2=Jeff |last3=Noonan |first3=David |date=September 2001 |title=[[Manual of the Planes]] |edition=3rd |publisher=[[Wizards of the Coast]] |location=Renton, Washington |isbn=0-7869-1850-0 |pages=134–137}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Other language&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=Bloggs |first=Jean |date=1974 |title=Livre de Bloggs |edition=1st |language=French |trans-title=Book of Bloggs |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=Bloggs |first=Jean |date=1974 |title=Livre de Bloggs |edition=1st |language=French |trans-title=Book of Bloggs |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Using a [[Digital object identifier|DOI]]&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=Mumford |first=David |authorlink=David Mumford |date=1999 |title=The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians |edition=2nd |publisher=Springer-Verlag |doi=10.1007/b62130 |isbn=354063293X}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=Mumford |first=David |authorlink=David Mumford |date=1999 |title=The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians |edition=2nd |publisher=Springer-Verlag |doi=10.1007/b62130 |isbn=354063293X}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Using author-mask parameter&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|m2=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume II: The Germans Come to the Help of Their Ally (1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954  |isbn=1-845740-66-1 |lastauthoramp=y |author-mask=2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|m3=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Gleave |first4=Group Captain T.P. |editor-last=Butler |editor-first=Sir James |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume III: British Fortunes Reach Their Lowest Ebb (September 1941 to September 1942) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954  |isbn=1-845740-67-X |lastauthoramp=y |author-mask=2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}&lt;br /&gt;
|r2={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume II: The Germans Come to the Help of Their Ally (1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954  |isbn=1-845740-66-1 |lastauthoramp=y |author-mask=2}}&lt;br /&gt;
|r3={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Gleave |first4=Group Captain T.P. |editor-last=Butler |editor-first=Sir James |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume III: British Fortunes Reach Their Lowest Ebb (September 1941 to September 1942) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954  |isbn=1-845740-67-X |lastauthoramp=y |author-mask=2}}&lt;br /&gt;
}}&lt;br /&gt;
{{markup2|t=Using display-authors parameter&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |display-authors=1}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval &amp;amp; Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954  |isbn=1-845740-65-3 |display-authors=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Syntax===&lt;br /&gt;
{{csdoc|syntax}}&lt;br /&gt;
&lt;br /&gt;
===COinS===&lt;br /&gt;
{{csdoc|coins}}&lt;br /&gt;
&lt;br /&gt;
===Deprecated===&lt;br /&gt;
{{csdoc|deprecated}}&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
====Authors====&lt;br /&gt;
{{csdoc|author|contributor=yes|others=yes}}&lt;br /&gt;
&lt;br /&gt;
====Title====&lt;br /&gt;
{{csdoc|title|title_format=italics}}&lt;br /&gt;
{{csdoc|type}}&lt;br /&gt;
{{csdoc|chapter}}&lt;br /&gt;
{{csdoc|language}}&lt;br /&gt;
&lt;br /&gt;
====Date====&lt;br /&gt;
{{csdoc|date}}&lt;br /&gt;
&lt;br /&gt;
====Publisher====&lt;br /&gt;
{{csdoc|publisher}}&lt;br /&gt;
&lt;br /&gt;
====Edition, series, volume====&lt;br /&gt;
{{csdoc|edition}}&lt;br /&gt;
{{csdoc|series}}&lt;br /&gt;
{{csdoc|volume}}&lt;br /&gt;
&lt;br /&gt;
====In-source locations====&lt;br /&gt;
{{csdoc|pages}}&lt;br /&gt;
&lt;br /&gt;
====URL====&lt;br /&gt;
{{csdoc|url}}&lt;br /&gt;
&lt;br /&gt;
====Chapter URL====&lt;br /&gt;
{{csdoc|chapterurl}}&lt;br /&gt;
&lt;br /&gt;
====Anchor====&lt;br /&gt;
{{csdoc|ref}}&lt;br /&gt;
&lt;br /&gt;
====Identifiers====&lt;br /&gt;
{{csdoc|id1}}&lt;br /&gt;
{{csdoc|id2}}&lt;br /&gt;
&lt;br /&gt;
====Quote====&lt;br /&gt;
{{csdoc|quote}}&lt;br /&gt;
&lt;br /&gt;
====Editors====&lt;br /&gt;
{{csdoc|editor}}&lt;br /&gt;
&lt;br /&gt;
====Laysummary====&lt;br /&gt;
{{csdoc|lay}}&lt;br /&gt;
&lt;br /&gt;
====Display options====&lt;br /&gt;
{{csdoc|display}}&lt;br /&gt;
&lt;br /&gt;
====Subscription or registration required====&lt;br /&gt;
{{csdoc|registration}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&lt;br /&gt;
See [[Template:Cite book/TemplateData]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://reftag.appspot.com/ Reftag], tool for translating [[Google Books]] permalinks into Wikipedia references&lt;br /&gt;
{{Citation Style 1}}&lt;br /&gt;
{{Wikipedia referencing}}&lt;br /&gt;
{{UF-COinS}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
[[Category:Citation Style 1 templates|B]]&lt;br /&gt;
[[Category:Book templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Citation_Style_documentation/title&amp;diff=28487</id>
		<title>Template:Citation Style documentation/title</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Citation_Style_documentation/title&amp;diff=28487"/>
		<updated>2018-04-06T09:40:31Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Crossreference|(See also [[Help:Citation Style 1#Titles and chapters|Help:Citation Style 1 §Titles and chapters]].)}}&lt;br /&gt;
* &#039;&#039;&#039;{{#switch:{{{title_title}}}&lt;br /&gt;
|encyclopedia=encyclopedia&lt;br /&gt;
|#default = title}}&#039;&#039;&#039;: Title of source. {{#switch:{{{link}}}|no=|wikilink_only=Can be wikilinked to an existing Wikipedia article.|Can be wikilinked to an existing Wikipedia article or &#039;&#039;&#039;url&#039;&#039;&#039; may be used to add an external link, but not both.}} {{#switch:{{BASEPAGENAME}}&lt;br /&gt;
|Cite arXiv = Displays in quotes&lt;br /&gt;
|Cite book = Displays in italics&lt;br /&gt;
|Cite conference = Displays in quotes&lt;br /&gt;
|Cite journal = Displays in quotes&lt;br /&gt;
|Cite news = Displays in quotes&lt;br /&gt;
|Cite web = Displays in quotes&lt;br /&gt;
|Cite press release = Displays in quotes&lt;br /&gt;
|Cite podcast = Displays in quotes&lt;br /&gt;
|Cite report = Displays unformatted, without italics or quotes&lt;br /&gt;
|#default = Displays in italics}}. If &#039;&#039;&#039;script-title&#039;&#039;&#039; is defined, &#039;&#039;&#039;title&#039;&#039;&#039; holds romanized transliteration of title in &#039;&#039;&#039;script-title&#039;&#039;&#039;.&lt;br /&gt;
** &#039;&#039;&#039;script-title&#039;&#039;&#039;: Original title for languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc); not italicized, follows italicized transliteration defined in &#039;&#039;&#039;title&#039;&#039;&#039;. May be prefixed with an [[List of ISO 639-1 codes|ISO 639-1]] two-character code to help browsers properly display the script:&lt;br /&gt;
**:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;... |title=Tōkyō tawā |script-title=ja:東京タワー |trans-title=Tokyo Tower ...&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &#039;&#039;&#039;trans-title&#039;&#039;&#039;: English translation of the title if the source cited is in a foreign language. Displays in square brackets after &#039;&#039;&#039;{{#switch:{{{title_title}}}&lt;br /&gt;
|encyclopedia=encyclopedia&lt;br /&gt;
|#default = title}}&#039;&#039;&#039;; if &#039;&#039;&#039;url&#039;&#039;&#039; is defined, then &#039;&#039;&#039;trans-title&#039;&#039;&#039; is included in the link. Use of the &#039;&#039;&#039;language&#039;&#039;&#039; parameter is recommended.&lt;br /&gt;
:Titles containing certain characters will not display and link correctly unless those characters are encoded.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: 5em&amp;quot;&lt;br /&gt;
! newline !! [ !! ] !! &amp;amp;#124;&lt;br /&gt;
|-&lt;br /&gt;
| space || style=&amp;quot;text-align: center;&amp;quot; | &amp;amp;amp;#91; || style=&amp;quot;text-align: center;&amp;quot; | &amp;amp;amp;#93; || style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (preferred)&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | [[Template:Bracket|&amp;lt;nowiki&amp;gt;{{bracket|text}}&amp;lt;/nowiki&amp;gt;]] || &amp;amp;amp;#124; or [[Template:Pipe|&amp;lt;nowiki&amp;gt;{{pipe}}&amp;lt;/nowiki&amp;gt;]] – {{crossref|see also {{section link|Help:Table|Rendering the pipe}}}}&lt;br /&gt;
|}&lt;br /&gt;
:* &#039;&#039;&#039;title-link&#039;&#039;&#039;: Title of existing Wikipedia article about the source named in &#039;&#039;&#039;title&#039;&#039;&#039; – do not use a web address; do not wikilink. Alias: &#039;&#039;&#039;titlelink&#039;&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Yesno&amp;diff=28485</id>
		<title>Module:Yesno</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Yesno&amp;diff=28485"/>
		<updated>2018-04-06T09:40:31Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- Function allowing for consistent treatment of boolean-like wikitext input.&lt;br /&gt;
-- It works similarly to the template {{yesno}}.&lt;br /&gt;
&lt;br /&gt;
return function (val, default)&lt;br /&gt;
	-- If your wiki uses non-ascii characters for any of &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, etc., you&lt;br /&gt;
	-- should replace &amp;quot;val:lower()&amp;quot; with &amp;quot;mw.ustring.lower(val)&amp;quot; in the&lt;br /&gt;
	-- following line.&lt;br /&gt;
	val = type(val) == &#039;string&#039; and val:lower() or val&lt;br /&gt;
	if val == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
	elseif val == true &lt;br /&gt;
		or val == &#039;yes&#039;&lt;br /&gt;
		or val == &#039;y&#039;&lt;br /&gt;
		or val == &#039;true&#039;&lt;br /&gt;
		or val == &#039;t&#039;&lt;br /&gt;
		or val == &#039;on&#039;&lt;br /&gt;
		or tonumber(val) == 1&lt;br /&gt;
	then&lt;br /&gt;
		return true&lt;br /&gt;
	elseif val == false&lt;br /&gt;
		or val == &#039;no&#039;&lt;br /&gt;
		or val == &#039;n&#039;&lt;br /&gt;
		or val == &#039;false&#039;&lt;br /&gt;
		or val == &#039;f&#039;&lt;br /&gt;
		or val == &#039;off&#039;&lt;br /&gt;
		or tonumber(val) == 0&lt;br /&gt;
	then&lt;br /&gt;
		return false&lt;br /&gt;
	else&lt;br /&gt;
		return default&lt;br /&gt;
	end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Section_link&amp;diff=28483</id>
		<title>Module:Section link</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Section_link&amp;diff=28483"/>
		<updated>2018-04-06T09:40:30Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements {{section link}}.&lt;br /&gt;
&lt;br /&gt;
local checkType = require(&#039;libraryUtil&#039;).checkType&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function makeSectionLink(page, section, display)&lt;br /&gt;
	display = display or section&lt;br /&gt;
	page = page or &#039;&#039;&lt;br /&gt;
	return string.format(&#039;[[%s#%s|%s]]&#039;, page, section, display)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function normalizeTitle(title)&lt;br /&gt;
	title = mw.ustring.gsub(mw.ustring.gsub(title,&amp;quot;&#039;&amp;quot;,&amp;quot;&amp;quot;),&#039;&amp;quot;&#039;,&#039;&#039;)&lt;br /&gt;
	return mw.title.new(mw.ustring.gsub(title,&amp;quot;%b&amp;lt;&amp;gt;&amp;quot;,&amp;quot;&amp;quot;)).prefixedText&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(page, sections, options, title)&lt;br /&gt;
	-- Validate input.&lt;br /&gt;
	checkType(&#039;_main&#039;, 1, page, &#039;string&#039;, true)&lt;br /&gt;
	checkType(&#039;_main&#039;, 3, options, &#039;table&#039;, true)&lt;br /&gt;
	if sections == nil then&lt;br /&gt;
		sections = {}&lt;br /&gt;
	elseif type(sections) == &#039;string&#039; then&lt;br /&gt;
		sections = {sections}&lt;br /&gt;
	elseif type(sections) ~= &#039;table&#039; then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;type error in argument #2 to &#039;_main&#039; &amp;quot; ..&lt;br /&gt;
			&amp;quot;(string, table or nil expected, got %s)&amp;quot;,&lt;br /&gt;
			type(sections)&lt;br /&gt;
		), 2)&lt;br /&gt;
	end&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	title = title or mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
	-- Deal with blank page names elegantly&lt;br /&gt;
	if page and not page:find(&#039;%S&#039;) then&lt;br /&gt;
		page = nil&lt;br /&gt;
		options.nopage = true&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Make the link(s).&lt;br /&gt;
	local isShowingPage = not options.nopage&lt;br /&gt;
	if #sections &amp;lt;= 1 then&lt;br /&gt;
		local linkPage = page or &#039;&#039;&lt;br /&gt;
		local section = sections[1] or &#039;Notes&#039;&lt;br /&gt;
		local display = &#039;§&amp;amp;nbsp;&#039; .. section&lt;br /&gt;
		if isShowingPage then&lt;br /&gt;
			page = page or title.prefixedText&lt;br /&gt;
			if options.display and options.display ~= &#039;&#039; then&lt;br /&gt;
				if normalizeTitle(options.display) == normalizeTitle(page) then&lt;br /&gt;
					display = options.display .. &#039; &#039; .. display&lt;br /&gt;
				else&lt;br /&gt;
					error(string.format(&lt;br /&gt;
						&#039;Display title &amp;quot;%s&amp;quot; was ignored since it is &#039; ..&lt;br /&gt;
						&amp;quot;not equivalent to the page&#039;s actual title&amp;quot;,&lt;br /&gt;
						options.display&lt;br /&gt;
					), 0)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				display = page .. &#039; &#039; .. display&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return makeSectionLink(linkPage, section, display)&lt;br /&gt;
	else&lt;br /&gt;
		-- Multiple sections. First, make a list of the links to display.&lt;br /&gt;
		local ret = {}&lt;br /&gt;
		for i, section in ipairs(sections) do&lt;br /&gt;
			ret[i] = makeSectionLink(page, section)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Assemble the list of links into a string with mw.text.listToText.&lt;br /&gt;
		-- We use the default separator for mw.text.listToText, but a custom&lt;br /&gt;
		-- conjunction. There is also a special case conjunction if we only&lt;br /&gt;
		-- have two links.&lt;br /&gt;
		local conjunction&lt;br /&gt;
		if #sections == 2 then&lt;br /&gt;
			conjunction = &#039;&amp;amp;#8203; and &#039;&lt;br /&gt;
		else&lt;br /&gt;
			conjunction = &#039;, and &#039;&lt;br /&gt;
		end&lt;br /&gt;
		ret = mw.text.listToText(ret, nil, conjunction)&lt;br /&gt;
&lt;br /&gt;
		-- Add the intro text.&lt;br /&gt;
		local intro = &#039;§§&amp;amp;nbsp;&#039;&lt;br /&gt;
		if isShowingPage then&lt;br /&gt;
			intro = (page or title.prefixedText) .. &#039; &#039; .. intro&lt;br /&gt;
		end&lt;br /&gt;
		ret = intro .. ret&lt;br /&gt;
&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, {&lt;br /&gt;
		wrappers = &#039;Template:Section link&#039;,&lt;br /&gt;
		valueFunc = function (key, value)&lt;br /&gt;
			value = value:match(&#039;^%s*(.-)%s*$&#039;) -- Trim whitespace&lt;br /&gt;
			-- Allow blank first parameters, as the wikitext template does this.&lt;br /&gt;
			if value ~= &#039;&#039; or key == 1 then&lt;br /&gt;
				return value&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	-- Sort the arguments.&lt;br /&gt;
	local page&lt;br /&gt;
	local sections, options = {}, {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if k == 1 then&lt;br /&gt;
			-- Doing this in the loop because of a bug in [[Module:Arguments]]&lt;br /&gt;
			-- when using pairs with deleted arguments.&lt;br /&gt;
			page = v&lt;br /&gt;
		elseif type(k) == &#039;number&#039; then&lt;br /&gt;
			sections[k] = v&lt;br /&gt;
		else&lt;br /&gt;
			options[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Extract section from page, if present&lt;br /&gt;
	if page then&lt;br /&gt;
		local p, s = page:match(&#039;^(.-)#(.*)$&#039;)&lt;br /&gt;
		if p then page, sections[1] = p, s end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Compress the sections array.&lt;br /&gt;
	local function compressArray(t)&lt;br /&gt;
		local nums, ret = {}, {}&lt;br /&gt;
		for num in pairs(t) do&lt;br /&gt;
			nums[#nums + 1] = num&lt;br /&gt;
		end&lt;br /&gt;
		table.sort(nums)&lt;br /&gt;
		for i, num in ipairs(nums) do&lt;br /&gt;
			ret[i] = t[num]&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	sections = compressArray(sections)&lt;br /&gt;
&lt;br /&gt;
	return p._main(page, sections, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Purge&amp;diff=28481</id>
		<title>Module:Purge</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Purge&amp;diff=28481"/>
		<updated>2018-04-06T09:40:30Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements [[Template:Purge]].&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function makeUrlLink(url, display)&lt;br /&gt;
	return string.format(&#039;[%s %s]&#039;, url, display)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	-- Make the URL&lt;br /&gt;
	local url&lt;br /&gt;
	do&lt;br /&gt;
		local title&lt;br /&gt;
		if args.page then&lt;br /&gt;
			title = mw.title.new(args.page)&lt;br /&gt;
			if not title then&lt;br /&gt;
				error(string.format(&lt;br /&gt;
					&amp;quot;&#039;%s&#039; is not a valid page name&amp;quot;,&lt;br /&gt;
					args.page&lt;br /&gt;
				), 2)&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			title = mw.title.getCurrentTitle()&lt;br /&gt;
		end&lt;br /&gt;
		if args.anchor then&lt;br /&gt;
			title.fragment = args.anchor&lt;br /&gt;
		end&lt;br /&gt;
		url = title:fullUrl{action = &#039;purge&#039;}&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Make the display&lt;br /&gt;
	local display&lt;br /&gt;
	if args.page then&lt;br /&gt;
		display = args[1] or &#039;Purge&#039;&lt;br /&gt;
	else&lt;br /&gt;
		display = mw.html.create(&#039;span&#039;)&lt;br /&gt;
		display&lt;br /&gt;
			:attr(&#039;title&#039;, &#039;Purge this page&#039;)&lt;br /&gt;
			:wikitext(args[1] or &#039;Purge&#039;)&lt;br /&gt;
		display = tostring(display)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Output the HTML&lt;br /&gt;
	local root = mw.html.create(&#039;span&#039;)&lt;br /&gt;
	root&lt;br /&gt;
		:addClass(&#039;noprint&#039;)&lt;br /&gt;
		:addClass(&#039;plainlinks&#039;)&lt;br /&gt;
		:addClass(&#039;purgelink&#039;)&lt;br /&gt;
		:wikitext(makeUrlLink(url, display))&lt;br /&gt;
	&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Protection_banner/config&amp;diff=28479</id>
		<title>Module:Protection banner/config</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Protection_banner/config&amp;diff=28479"/>
		<updated>2018-04-06T09:40:29Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module provides configuration data for [[Module:Protection banner]].&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
--                                BANNER DATA&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- Banner data consists of six fields:&lt;br /&gt;
-- * text - the main protection text that appears at the top of protection&lt;br /&gt;
--   banners.&lt;br /&gt;
-- * explanation - the text that appears below the main protection text, used&lt;br /&gt;
--   to explain the details of the protection.&lt;br /&gt;
-- * tooltip - the tooltip text you see when you move the mouse over a small&lt;br /&gt;
--   padlock icon.&lt;br /&gt;
-- * link - the page that the small padlock icon links to.&lt;br /&gt;
-- * alt - the alt text for the small padlock icon. This is also used as tooltip&lt;br /&gt;
--   text for the large protection banners.&lt;br /&gt;
-- * image - the padlock image used in both protection banners and small padlock&lt;br /&gt;
--   icons.&lt;br /&gt;
--&lt;br /&gt;
-- The module checks in three separate tables to find a value for each field.&lt;br /&gt;
-- First it checks the banners table, which has values specific to the reason&lt;br /&gt;
-- for the page being protected. Then the module checks the defaultBanners&lt;br /&gt;
-- table, which has values specific to each protection level. Finally, the&lt;br /&gt;
-- module checks the masterBanner table, which holds data for protection&lt;br /&gt;
-- templates to use if no data has been found in the previous two tables.&lt;br /&gt;
--&lt;br /&gt;
-- The values in the banner data can take parameters. These are specified&lt;br /&gt;
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name&lt;br /&gt;
-- enclosed in curly braces).&lt;br /&gt;
--&lt;br /&gt;
--                          Available parameters:&lt;br /&gt;
--&lt;br /&gt;
-- ${CURRENTVERSION} - a link to the page history or the move log, with the&lt;br /&gt;
-- display message &amp;quot;current-version-edit-display&amp;quot; or&lt;br /&gt;
-- &amp;quot;current-version-move-display&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${EDITREQUEST} - a link to create an edit request for the current page.&lt;br /&gt;
--&lt;br /&gt;
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. &amp;quot;Please discuss any changes&lt;br /&gt;
-- on the talk page; you may submit a request to ask an administrator to make&lt;br /&gt;
-- an edit if it is minor or supported by consensus.&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${IMAGELINK} - a link to set the image to, depending on the protection&lt;br /&gt;
-- action and protection level.&lt;br /&gt;
--&lt;br /&gt;
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry&lt;br /&gt;
-- is set. E.g. &amp;quot;Editing of this page by new or unregistered users is currently &lt;br /&gt;
-- disabled until dd Month YYYY.&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation&lt;br /&gt;
-- so that it can be used in run-on sentences.&lt;br /&gt;
--&lt;br /&gt;
-- ${PAGETYPE} - the type of the page, e.g. &amp;quot;article&amp;quot; or &amp;quot;template&amp;quot;.&lt;br /&gt;
-- Defined in the cfg.pagetypes table.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.&lt;br /&gt;
-- &amp;quot;Editing of this page by new or unregistered users is currently disabled&amp;quot;&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the&lt;br /&gt;
-- template.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONLEVEL} - the protection level, e.g. &amp;quot;fully protected&amp;quot; or&lt;br /&gt;
-- &amp;quot;semi-protected&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,&lt;br /&gt;
-- depending on the protection action.&lt;br /&gt;
--&lt;br /&gt;
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links&lt;br /&gt;
-- straight to that talk page section.&lt;br /&gt;
--&lt;br /&gt;
-- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to&lt;br /&gt;
-- create a blurb like &amp;quot;This template is semi-protected&amp;quot;, or &amp;quot;This article is&lt;br /&gt;
-- move-protected until DD Month YYYY&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- ${VANDAL} - links for the specified username (or the root page name)&lt;br /&gt;
-- using Module:Vandal-m.&lt;br /&gt;
--&lt;br /&gt;
--                                 Functions&lt;br /&gt;
--&lt;br /&gt;
-- For advanced users, it is possible to use Lua functions instead of strings&lt;br /&gt;
-- in the banner config tables. Using functions gives flexibility that is not&lt;br /&gt;
-- possible just by using parameters. Functions take two arguments, the&lt;br /&gt;
-- protection object and the template arguments, and they must output a string.&lt;br /&gt;
--&lt;br /&gt;
-- For example:&lt;br /&gt;
--&lt;br /&gt;
-- text = function (protectionObj, args)&lt;br /&gt;
--     if protectionObj.level == &#039;autoconfirmed&#039; then&lt;br /&gt;
--         return &#039;foo&#039;&lt;br /&gt;
--     else&lt;br /&gt;
--         return &#039;bar&#039;&lt;br /&gt;
--     end&lt;br /&gt;
-- end&lt;br /&gt;
--&lt;br /&gt;
-- Some protection object properties and methods that may be useful:&lt;br /&gt;
-- protectionObj.action - the protection action&lt;br /&gt;
-- protectionObj.level - the protection level&lt;br /&gt;
-- protectionObj.reason - the protection reason&lt;br /&gt;
-- protectionObj.expiry - the expiry. Nil if unset, the string &amp;quot;indef&amp;quot; if set&lt;br /&gt;
--     to indefinite, and the protection time in unix time if temporary.&lt;br /&gt;
-- protectionObj.protectionDate - the protection date in unix time, or nil if&lt;br /&gt;
--     unspecified.&lt;br /&gt;
-- protectionObj.bannerConfig - the banner config found by the module. Beware&lt;br /&gt;
--     of editing the config field used by the function, as it could create an&lt;br /&gt;
--     infinite loop.&lt;br /&gt;
-- protectionObj:isProtected - returns a boolean showing whether the page is&lt;br /&gt;
--     protected.&lt;br /&gt;
-- protectionObj:isTemporary - returns a boolean showing whether the expiry is&lt;br /&gt;
--     temporary.&lt;br /&gt;
-- protectionObj:isIncorrect - returns a boolean showing whether the protection&lt;br /&gt;
--     template is incorrect.&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- The master banner data, used if no values have been found in banners or&lt;br /&gt;
-- defaultBanners.&lt;br /&gt;
masterBanner = {&lt;br /&gt;
	text = &#039;${INTROBLURB}&#039;,&lt;br /&gt;
	explanation = &#039;${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
	tooltip = &#039;${TOOLTIPBLURB}&#039;,&lt;br /&gt;
	link = &#039;${IMAGELINK}&#039;,&lt;br /&gt;
	alt = &#039;Page ${PROTECTIONLEVEL}&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The default banner data. This holds banner data for different protection&lt;br /&gt;
-- levels.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
defaultBanners = {&lt;br /&gt;
	edit = {},&lt;br /&gt;
	move = {},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		autoconfirmed = {&lt;br /&gt;
			alt = &#039;Page protected with pending changes level 1&#039;,&lt;br /&gt;
			tooltip = &#039;All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users&#039;,&lt;br /&gt;
			image = &#039;Padlock-silver-light.svg&#039;&lt;br /&gt;
		},&lt;br /&gt;
		default = {&lt;br /&gt;
			alt = &#039;Page protected with pending changes level 2&#039;,&lt;br /&gt;
			tooltip = &#039;All edits by users who are not reviewers or administrators are&#039;&lt;br /&gt;
				.. &#039; subject to review prior to becoming visible to unregistered users&#039;,&lt;br /&gt;
			image = &#039;Padlock-orange.svg&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	upload = {}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The banner data. This holds banner data for different protection reasons.&lt;br /&gt;
-- In fact, the reasons specified in this table control which reasons are&lt;br /&gt;
-- valid inputs to the first positional parameter.&lt;br /&gt;
--&lt;br /&gt;
-- There is also a non-standard &amp;quot;description&amp;quot; field that can be used for items&lt;br /&gt;
-- in this table. This is a description of the protection reason for use in the&lt;br /&gt;
-- module documentation.&lt;br /&gt;
--&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
banners = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		blp = {&lt;br /&gt;
			description = &#039;For pages protected to promote compliance with the&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Biographies of living persons&#039;&lt;br /&gt;
				.. &#039;|biographies of living persons]] policy&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to promote compliance with&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Biographies of living persons&#039;&lt;br /&gt;
				.. &amp;quot;|Wikipedia&#039;s&amp;amp;nbsp;policy on&amp;amp;nbsp;the&amp;amp;nbsp;biographies&amp;quot;&lt;br /&gt;
				.. &#039; of&amp;amp;nbsp;living&amp;amp;nbsp;people]].&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} to promote compliance with the policy on&#039;&lt;br /&gt;
				.. &#039; biographies of living people&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		dmca = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation&#039;&lt;br /&gt;
				.. &#039; due to [[Digital Millennium Copyright Act]] takedown requests&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;Pursuant to a rights owner notice under the Digital&#039;&lt;br /&gt;
					.. &#039; Millennium Copyright Act (DMCA) regarding some content&#039;&lt;br /&gt;
					.. &#039; in this article, the Wikimedia Foundation acted under&#039;&lt;br /&gt;
					.. &#039; applicable law and took down and restricted the content&#039;&lt;br /&gt;
					.. &#039; in question.&#039;&lt;br /&gt;
				if args.notice then&lt;br /&gt;
					ret = ret .. &#039; A copy of the received notice can be found here: &#039;&lt;br /&gt;
						.. args.notice .. &#039;.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				ret = ret .. &#039; For more information, including websites discussing&#039;&lt;br /&gt;
					.. &#039; how to file a counter-notice, please see&#039;&lt;br /&gt;
					.. &amp;quot; [[Wikipedia:Office actions]] and the article&#039;s ${TALKPAGE}.&amp;quot;&lt;br /&gt;
					.. &amp;quot;&#039;&#039;&#039;Do not remove this template from the article until the&amp;quot;&lt;br /&gt;
					.. &amp;quot; restrictions are withdrawn&#039;&#039;&#039;.&amp;quot;&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			image = &#039;Padlock-black.svg&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		dispute = {&lt;br /&gt;
			description = &#039;For pages protected due to editing disputes&#039;,&lt;br /&gt;
			text = function (protectionObj, args)&lt;br /&gt;
				-- Find the value of &amp;quot;disputes&amp;quot;.&lt;br /&gt;
				local display = &#039;disputes&#039;&lt;br /&gt;
				local disputes&lt;br /&gt;
				if args.section then&lt;br /&gt;
					disputes = string.format(&lt;br /&gt;
						&#039;[[%s:%s#%s|%s]]&#039;,&lt;br /&gt;
						mw.site.namespaces[protectionObj.title.namespace].talk.name,&lt;br /&gt;
						protectionObj.title.text,&lt;br /&gt;
						args.section,&lt;br /&gt;
						display&lt;br /&gt;
					)&lt;br /&gt;
				else&lt;br /&gt;
					disputes = display&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				-- Make the blurb, depending on the expiry.&lt;br /&gt;
				local msg&lt;br /&gt;
				if type(protectionObj.expiry) == &#039;number&#039; then&lt;br /&gt;
					msg = &#039;${INTROFRAGMENT} or until editing %s have been resolved.&#039;&lt;br /&gt;
				else&lt;br /&gt;
					msg = &#039;${INTROFRAGMENT} until editing %s have been resolved.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				return string.format(msg, disputes)&lt;br /&gt;
			end,&lt;br /&gt;
			explanation = &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
				.. &#039; ${CURRENTVERSION}. ${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} due to editing disputes&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		ecp = {&lt;br /&gt;
			description = &#039;For articles in topic areas authorized by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Arbitration Committee|ArbCom]] or&#039;&lt;br /&gt;
				.. &#039; meets the criteria for community use&#039;,&lt;br /&gt;
			tooltip = &#039;This ${PAGETYPE} is extended-confirmed protected&#039;,&lt;br /&gt;
			alt = &#039;Extended-protected ${PAGETYPE}&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		mainpage = {&lt;br /&gt;
			description = &#039;For pages protected for being displayed on the [[Main Page]]&#039;,&lt;br /&gt;
			text = &#039;This file is currently&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:This page is protected|protected]] from&#039;&lt;br /&gt;
				.. &#039; editing because it is currently or will soon be displayed&#039;&lt;br /&gt;
				.. &#039; on the [[Main Page]].&#039;,&lt;br /&gt;
			explanation = &#039;Images on the Main Page are protected due to their high&#039;&lt;br /&gt;
				.. &#039; visibility. Please discuss any necessary changes on the ${TALKPAGE}.&#039;&lt;br /&gt;
				.. &#039;&amp;lt;br /&amp;gt;&amp;lt;span style=&amp;quot;font-size:90%;&amp;quot;&amp;gt;&#039;&lt;br /&gt;
				.. &amp;quot;&#039;&#039;&#039;Administrators:&#039;&#039;&#039; Once this image is definitely off the Main Page,&amp;quot;&lt;br /&gt;
				.. &#039; please unprotect this file, or reduce to semi-protection,&#039;&lt;br /&gt;
				.. &#039; as appropriate.&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		office = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation&#039;,&lt;br /&gt;
			text = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;This ${PAGETYPE} is currently under the&#039;&lt;br /&gt;
					.. &#039; scrutiny of the&#039;&lt;br /&gt;
					.. &#039; [[Wikipedia:Office actions|Wikimedia Foundation Office]]&#039;&lt;br /&gt;
					.. &#039; and is protected.&#039;&lt;br /&gt;
				if protectionObj.protectionDate then&lt;br /&gt;
					ret = ret .. &#039; It has been protected since ${PROTECTIONDATE}.&#039;&lt;br /&gt;
				end&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			explanation = &amp;quot;If you can edit this page, please discuss all changes and&amp;quot;&lt;br /&gt;
				.. &amp;quot; additions on the ${TALKPAGE} first. &#039;&#039;&#039;Do not remove protection from this&amp;quot;&lt;br /&gt;
				.. &amp;quot; page unless you are authorized by the Wikimedia Foundation to do&amp;quot;&lt;br /&gt;
				.. &amp;quot; so.&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
			image = &#039;Padlock-black.svg&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		reset = {&lt;br /&gt;
			description = &#039;For pages protected by the Wikimedia Foundation and&#039;&lt;br /&gt;
				.. &#039; &amp;quot;reset&amp;quot; to a bare-bones version&#039;,&lt;br /&gt;
 			text = &#039;This ${PAGETYPE} is currently under the&#039;&lt;br /&gt;
					.. &#039; scrutiny of the&#039;&lt;br /&gt;
					.. &#039; [[Wikipedia:Office actions|Wikimedia Foundation Office]]&#039;&lt;br /&gt;
					.. &#039; and is protected.&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;&#039;&lt;br /&gt;
				if protectionObj.protectionDate then&lt;br /&gt;
					ret = ret .. &#039;On ${PROTECTIONDATE} this ${PAGETYPE} was&#039;&lt;br /&gt;
				else&lt;br /&gt;
					ret = ret .. &#039;This ${PAGETYPE} has been&#039;&lt;br /&gt;
				end&lt;br /&gt;
				ret = ret .. &#039; reduced to a&#039;&lt;br /&gt;
				.. &#039; simplified, &amp;quot;bare bones&amp;quot; version so that it may be completely&#039;&lt;br /&gt;
				.. &#039; rewritten to ensure it meets the policies of&#039;&lt;br /&gt;
				.. &#039; [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].&#039;&lt;br /&gt;
				.. &#039; Standard Wikipedia policies will apply to its rewriting—which&#039;&lt;br /&gt;
				.. &#039; will eventually be open to all editors—and will be strictly&#039;&lt;br /&gt;
				.. &#039; enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while&#039;&lt;br /&gt;
				.. &#039; it is being rebuilt.\n\n&#039;&lt;br /&gt;
				.. &#039;Any insertion of material directly from&#039;&lt;br /&gt;
				.. &#039; pre-protection revisions of the ${PAGETYPE} will be removed, as&#039;&lt;br /&gt;
				.. &#039; will any material added to the ${PAGETYPE} that is not properly&#039;&lt;br /&gt;
				.. &#039; sourced. The associated talk page(s) were also cleared on the&#039;&lt;br /&gt;
				.. &amp;quot; same date.\n\n&amp;quot;&lt;br /&gt;
				.. &amp;quot;If you can edit this page, please discuss all changes and&amp;quot;&lt;br /&gt;
				.. &amp;quot; additions on the ${TALKPAGE} first. &#039;&#039;&#039;Do not override&amp;quot;&lt;br /&gt;
				.. &amp;quot; this action, and do not remove protection from this page,&amp;quot;&lt;br /&gt;
				.. &amp;quot; unless you are authorized by the Wikimedia Foundation&amp;quot;&lt;br /&gt;
				.. &amp;quot; to do so. No editor may remove this notice.&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
				return ret&lt;br /&gt;
			end,&lt;br /&gt;
			image = &#039;Padlock-black.svg&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		sock = {&lt;br /&gt;
			description = &#039;For pages protected due to&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Sock puppetry|sock puppetry]]&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Blocking policy|blocked]] or&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Banning policy|banned users]]&#039;&lt;br /&gt;
				.. &#039; from editing it.&#039;,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from&#039;&lt;br /&gt;
				.. &#039; editing it&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		template = {&lt;br /&gt;
			description = &#039;For [[Wikipedia:High-risk templates|high-risk]]&#039;&lt;br /&gt;
				.. &#039; templates and Lua modules&#039;,&lt;br /&gt;
			text = &#039;This is a permanently [[Help:Protection|protected]] ${PAGETYPE},&#039;&lt;br /&gt;
				.. &#039; as it is [[Wikipedia:High-risk templates|high-risk]].&#039;,&lt;br /&gt;
			explanation = &#039;Please discuss any changes on the ${TALKPAGE}; you may&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Administrators|administrator]] or&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Template editor|template editor]] to make an edit if&#039;&lt;br /&gt;
				.. &#039; it is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
				.. &#039;|uncontroversial]] or supported by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Consensus|consensus]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;,&lt;br /&gt;
			tooltip = &#039;This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}&#039;&lt;br /&gt;
				.. &#039; to prevent vandalism&#039;,&lt;br /&gt;
			alt = &#039;Permanently protected ${PAGETYPE}&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		usertalk = {&lt;br /&gt;
			description = &#039;For pages protected against disruptive edits by a&#039;&lt;br /&gt;
				.. &#039; particular user&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,&#039;&lt;br /&gt;
				.. &#039; such as abusing the&#039;&lt;br /&gt;
				.. &#039; &amp;amp;#123;&amp;amp;#123;[[Template:unblock|unblock]]&amp;amp;#125;&amp;amp;#125; template.&#039;,&lt;br /&gt;
			explanation = &#039;If you cannot edit this user talk page and you need to&#039;&lt;br /&gt;
				.. &#039; make a change or leave a message, you can&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for edits to a protected page&#039;&lt;br /&gt;
				.. &#039;|request an edit]],&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]],&#039;&lt;br /&gt;
				.. &#039; [[Special:Userlogin|log in]],&#039;&lt;br /&gt;
				.. &#039; or [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		vandalism = {&lt;br /&gt;
			description = &#039;For pages protected against&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Vandalism|vandalism]]&#039;,&lt;br /&gt;
			text = &#039;${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].&#039;,&lt;br /&gt;
			explanation = function (protectionObj, args)&lt;br /&gt;
				local ret = &#039;&#039;&lt;br /&gt;
				if protectionObj.level == &#039;sysop&#039; then&lt;br /&gt;
					ret = ret .. &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
						.. &#039; ${CURRENTVERSION}. &#039;&lt;br /&gt;
				end&lt;br /&gt;
				return ret .. &#039;${EXPLANATIONBLURB}&#039;&lt;br /&gt;
			end,&lt;br /&gt;
			tooltip = &#039;${TOOLTIPFRAGMENT} due to vandalism&#039;,&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		dispute = {&lt;br /&gt;
			description = &#039;For pages protected against page moves due to&#039;&lt;br /&gt;
				.. &#039; disputes over the page title&#039;,&lt;br /&gt;
			explanation = &amp;quot;This protection is &#039;&#039;&#039;not&#039;&#039;&#039; an endorsement of the&amp;quot;&lt;br /&gt;
				.. &#039; ${CURRENTVERSION}. ${EXPLANATIONBLURB}&#039;,&lt;br /&gt;
			image = &#039;Padlock-olive.svg&#039;&lt;br /&gt;
		},&lt;br /&gt;
		vandalism = {&lt;br /&gt;
			description = &#039;For pages protected against&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Vandalism#Page-move vandalism&#039;&lt;br /&gt;
				.. &#039; |page-move vandalism]]&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {},&lt;br /&gt;
	upload = {}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
--&lt;br /&gt;
--                            GENERAL DATA TABLES&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection blurbs&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the protection blurbs available with the&lt;br /&gt;
-- ${PROTECTIONBLURB} parameter. It is sorted by protection action and&lt;br /&gt;
-- protection level, and is checked by the module in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
protectionBlurbs = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;This ${PAGETYPE} is currently [[Help:Protection|&#039;&lt;br /&gt;
			.. &#039;protected]] from editing&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Editing of this ${PAGETYPE} by [[Wikipedia:User access&#039;&lt;br /&gt;
			.. &#039; levels#New users|new]] or [[Wikipedia:User access levels#Unregistered&#039;&lt;br /&gt;
			.. &#039; users|unregistered]] users is currently [[Help:Protection|disabled]]&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL} as a result of&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Arbitration Committee|ArbCom]] enforcement or meets the&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Protection policy#extended|criteria for community use]]&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;This ${PAGETYPE} is currently [[Help:Protection|protected]]&#039;&lt;br /&gt;
			.. &#039; from [[Help:Moving a page|page moves]]&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		autoconfirmed = &#039;All edits made to this ${PAGETYPE} by&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:User access levels#New users|new]] or&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:User access levels#Unregistered users|unregistered]]&#039;&lt;br /&gt;
			.. &#039; users are currently&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Pending changes|subject to review]]&#039;,&lt;br /&gt;
		default = &#039;All edits made to this ${PAGETYPE} by users who are not&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Reviewing|reviewers]] or&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Administrators|administrators]] are currently&#039;&lt;br /&gt;
			.. &#039; [[Wikipedia:Pending changes|subject to review]]&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Uploading new versions of this ${PAGETYPE} is currently disabled&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Explanation blurbs&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the explanation blurbs available with the&lt;br /&gt;
-- ${EXPLANATIONBLURB} parameter. It is sorted by protection action,&lt;br /&gt;
-- protection level, and whether the page is a talk page or not. If the page is&lt;br /&gt;
-- a talk page it will have a talk key of &amp;quot;talk&amp;quot;; otherwise it will have a talk&lt;br /&gt;
-- key of &amp;quot;subject&amp;quot;. The table is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level, page&#039;s talk key&lt;br /&gt;
-- 2. page&#039;s protection action, page&#039;s protection level, default talk key&lt;br /&gt;
-- 3. page&#039;s protection action, default protection level, page&#039;s talk key&lt;br /&gt;
-- 4. page&#039;s protection action, default protection level, default talk key&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
explanationBlurbs = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		autoconfirmed = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details. If you&#039;&lt;br /&gt;
				.. &#039; cannot edit this ${PAGETYPE} and you wish to make a change, you can&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST}, discuss changes on the ${TALKPAGE},&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details. If you&#039;&lt;br /&gt;
				.. &#039; cannot edit this ${PAGETYPE} and you wish to make a change, you can&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;,&lt;br /&gt;
		},&lt;br /&gt;
		extendedconfirmed = {&lt;br /&gt;
			default = &#039;Extended confirmed protection prevents edits from all IP editors&#039;&lt;br /&gt;
				.. &#039; and registered users with fewer than 30 days tenure and 500 edits.&#039;&lt;br /&gt;
				.. &#039; The [[Wikipedia:Protection policy#extended|policy on community use]]&#039;&lt;br /&gt;
				.. &#039; specifies that extended confirmed protection can be applied to combat&#039;&lt;br /&gt;
				.. &#039; disruption, given that semi-protection has proven to be ineffective.&#039;&lt;br /&gt;
				.. &#039; Please discuss any changes on the ${TALKPAGE}; you may&#039;&lt;br /&gt;
				.. &#039; ${EDITREQUEST} to ask for unconversial changes supported by&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Consensus|consensus]].&#039;&lt;br /&gt;
		},&lt;br /&gt;
		default = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; Please discuss any changes on the ${TALKPAGE}; you&#039;&lt;br /&gt;
				.. &#039; may ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Administrators|administrator]] to make an edit if it&#039;&lt;br /&gt;
				.. &#039; is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
				.. &#039;|uncontroversial]] or supported by [[Wikipedia:Consensus&#039;&lt;br /&gt;
				.. &#039;|consensus]]. You may also [[Wikipedia:Requests for&#039;&lt;br /&gt;
				.. &#039; page protection#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request]] that this page be unprotected.&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; You may [[Wikipedia:Requests for page&#039;&lt;br /&gt;
				.. &#039; protection#Current requests for edits to a protected page|request an&#039;&lt;br /&gt;
				.. &#039; edit]] to this page, or [[Wikipedia:Requests for&#039;&lt;br /&gt;
				.. &#039; page protection#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|ask]] for it to be unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = {&lt;br /&gt;
			subject = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but cannot be moved&#039;&lt;br /&gt;
				.. &#039; until unprotected. Please discuss any suggested moves on the&#039;&lt;br /&gt;
				.. &#039; ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but cannot be moved&#039;&lt;br /&gt;
				.. &#039; until unprotected. Please discuss any suggested moves at&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requested moves]]. You can also&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection|request]] that the page be&#039;&lt;br /&gt;
				.. &#039; unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		default = {&lt;br /&gt;
			reviewer = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; Edits to this ${PAGETYPE} will not be visible to readers&#039;&lt;br /&gt;
				.. &#039; until they are accepted by a reviewer or an administrator.&#039;&lt;br /&gt;
				.. &#039; To avoid the need for your edits to be reviewed, you may&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]]. Experienced editors may also&#039;&lt;br /&gt;
				.. &#039; request the [[Wikipedia:Reviewing|reviewer user right]].&#039;,&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; Edits to this ${PAGETYPE} by new and unregistered users&#039;&lt;br /&gt;
				.. &#039; will not be visible to readers until they are accepted by&#039;&lt;br /&gt;
				.. &#039; a reviewer. To avoid the need for your edits to be&#039;&lt;br /&gt;
				.. &#039; reviewed, you may&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Requests for page protection&#039;&lt;br /&gt;
				.. &#039;#Current requests for reduction in protection level&#039;&lt;br /&gt;
				.. &#039;|request unprotection]], [[Special:Userlogin|log in]], or&#039;&lt;br /&gt;
				.. &#039; [[Special:UserLogin/signup|create an account]].&#039;&lt;br /&gt;
		},&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = {&lt;br /&gt;
			default = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
				.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
				.. &#039; The page may still be edited but new versions of the file&#039;&lt;br /&gt;
				.. &#039; cannot be uploaded until it is unprotected. You can&#039;&lt;br /&gt;
				.. &#039; request that a new version be uploaded by using a&#039;&lt;br /&gt;
				.. &#039; [[Wikipedia:Edit requests|protected edit request]], or you&#039;&lt;br /&gt;
				.. &#039; can  [[Wikipedia:Requests for page protection|request]]&#039;&lt;br /&gt;
				.. &#039; that the file be unprotected.&#039;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection levels&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which&lt;br /&gt;
-- produces a short label for different protection levels. It is sorted by&lt;br /&gt;
-- protection action and protection level, and is checked in the following&lt;br /&gt;
-- order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
protectionLevels = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;protected&#039;,&lt;br /&gt;
		templateeditor = &#039;template-protected&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;extended-protected&#039;,&lt;br /&gt;
		autoconfirmed = &#039;semi-protected&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;move-protected&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;upload-protected&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Images&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table lists different padlock images for each protection action and&lt;br /&gt;
-- protection level. It is used if an image is not specified in any of the&lt;br /&gt;
-- banner data tables, and if the page does not satisfy the conditions for using&lt;br /&gt;
-- the [&#039;image-filename-indef&#039;] image. It is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
images = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;Padlock.svg&#039;,&lt;br /&gt;
		templateeditor = &#039;Padlock-pink.svg&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;Padlock-blue.svg&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Padlock-silver.svg&#039;&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;Padlock-olive.svg&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		autoconfirmed = &#039;Padlock-silver-light.svg&#039;,&lt;br /&gt;
		default = &#039;Padlock-orange.svg&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Padlock-purple.svg&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- Pages with a reason specified in this table will show the special &amp;quot;indef&amp;quot;&lt;br /&gt;
-- padlock, defined in the &#039;image-filename-indef&#039; message, if no expiry is set.&lt;br /&gt;
indefImageReasons = {&lt;br /&gt;
	template = true&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Image links&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the data for the ${IMAGELINK} parameter, which gets&lt;br /&gt;
-- the image link for small padlock icons based on the page&#039;s protection action&lt;br /&gt;
-- and protection level. It is checked in the following order:&lt;br /&gt;
-- 1. page&#039;s protection action, page&#039;s protection level&lt;br /&gt;
-- 2. page&#039;s protection action, default protection level&lt;br /&gt;
-- 3. &amp;quot;edit&amp;quot; protection action, default protection level&lt;br /&gt;
--&lt;br /&gt;
-- It is possible to use banner parameters inside this table.&lt;br /&gt;
-- *required* - this table needs edit, move, autoreview and upload subtables.&lt;br /&gt;
imageLinks = {&lt;br /&gt;
	edit = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#full&#039;,&lt;br /&gt;
		templateeditor = &#039;Wikipedia:Protection policy#template&#039;,&lt;br /&gt;
		extendedconfirmed = &#039;Wikipedia:Protection policy#extended&#039;,&lt;br /&gt;
		autoconfirmed = &#039;Wikipedia:Protection policy#semi&#039;&lt;br /&gt;
	},&lt;br /&gt;
	move = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#move&#039;&lt;br /&gt;
	},&lt;br /&gt;
	autoreview = {&lt;br /&gt;
		autoconfirmed = &#039;Wikipedia:Protection policy#pc1&#039;,&lt;br /&gt;
		reviewer = &#039;Wikipedia:Protection policy#pc2&#039;&lt;br /&gt;
	},&lt;br /&gt;
	upload = {&lt;br /&gt;
		default = &#039;Wikipedia:Protection policy#upload&#039;&lt;br /&gt;
	}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Padlock indicator names&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table provides the &amp;quot;name&amp;quot; attribute for the &amp;lt;indicator&amp;gt; extension tag&lt;br /&gt;
-- with which small padlock icons are generated. All indicator tags on a page&lt;br /&gt;
-- are displayed in alphabetical order based on this attribute, and with&lt;br /&gt;
-- indicator tags with duplicate names, the last tag on the page wins.&lt;br /&gt;
-- The attribute is chosen based on the protection action; table keys must be a&lt;br /&gt;
-- protection action name or the string &amp;quot;default&amp;quot;.&lt;br /&gt;
padlockIndicatorNames = {&lt;br /&gt;
	autoreview = &#039;pp-autoreview&#039;,&lt;br /&gt;
	default = &#039;pp-default&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection categories&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
-- The protection categories are stored in the protectionCategories table.&lt;br /&gt;
-- Keys to this table are made up of the following strings:&lt;br /&gt;
--&lt;br /&gt;
-- 1. the expiry date&lt;br /&gt;
-- 2. the namespace&lt;br /&gt;
-- 3. the protection reason (e.g. &amp;quot;dispute&amp;quot; or &amp;quot;vandalism&amp;quot;)&lt;br /&gt;
-- 4. the protection level (e.g. &amp;quot;sysop&amp;quot; or &amp;quot;autoconfirmed&amp;quot;)&lt;br /&gt;
-- 5. the action (e.g. &amp;quot;edit&amp;quot; or &amp;quot;move&amp;quot;)&lt;br /&gt;
-- &lt;br /&gt;
-- When the module looks up a category in the table, first it will will check to&lt;br /&gt;
-- see a key exists that corresponds to all five parameters. For example, a&lt;br /&gt;
-- user page semi-protected from vandalism for two weeks would have the key&lt;br /&gt;
-- &amp;quot;temp-user-vandalism-autoconfirmed-edit&amp;quot;. If no match is found, the module&lt;br /&gt;
-- changes the first part of the key to &amp;quot;all&amp;quot; and checks the table again. It&lt;br /&gt;
-- keeps checking increasingly generic key combinations until it finds the&lt;br /&gt;
-- field, or until it reaches the key &amp;quot;all-all-all-all-all&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
-- The module uses a binary matrix to determine the order in which to search.&lt;br /&gt;
-- This is best demonstrated by a table. In this table, the &amp;quot;0&amp;quot; values&lt;br /&gt;
-- represent &amp;quot;all&amp;quot;, and the &amp;quot;1&amp;quot; values represent the original data (e.g.&lt;br /&gt;
-- &amp;quot;indef&amp;quot; or &amp;quot;file&amp;quot; or &amp;quot;vandalism&amp;quot;).&lt;br /&gt;
--&lt;br /&gt;
--        expiry    namespace reason   level     action&lt;br /&gt;
-- order&lt;br /&gt;
-- 1      1         1         1        1         1&lt;br /&gt;
-- 2      0         1         1        1         1&lt;br /&gt;
-- 3      1         0         1        1         1&lt;br /&gt;
-- 4      0         0         1        1         1&lt;br /&gt;
-- 5      1         1         0        1         1&lt;br /&gt;
-- 6      0         1         0        1         1&lt;br /&gt;
-- 7      1         0         0        1         1&lt;br /&gt;
-- 8      0         0         0        1         1&lt;br /&gt;
-- 9      1         1         1        0         1&lt;br /&gt;
-- 10     0         1         1        0         1&lt;br /&gt;
-- 11     1         0         1        0         1&lt;br /&gt;
-- 12     0         0         1        0         1&lt;br /&gt;
-- 13     1         1         0        0         1&lt;br /&gt;
-- 14     0         1         0        0         1&lt;br /&gt;
-- 15     1         0         0        0         1&lt;br /&gt;
-- 16     0         0         0        0         1&lt;br /&gt;
-- 17     1         1         1        1         0&lt;br /&gt;
-- 18     0         1         1        1         0&lt;br /&gt;
-- 19     1         0         1        1         0&lt;br /&gt;
-- 20     0         0         1        1         0&lt;br /&gt;
-- 21     1         1         0        1         0&lt;br /&gt;
-- 22     0         1         0        1         0&lt;br /&gt;
-- 23     1         0         0        1         0&lt;br /&gt;
-- 24     0         0         0        1         0&lt;br /&gt;
-- 25     1         1         1        0         0&lt;br /&gt;
-- 26     0         1         1        0         0&lt;br /&gt;
-- 27     1         0         1        0         0&lt;br /&gt;
-- 28     0         0         1        0         0&lt;br /&gt;
-- 29     1         1         0        0         0&lt;br /&gt;
-- 30     0         1         0        0         0&lt;br /&gt;
-- 31     1         0         0        0         0&lt;br /&gt;
-- 32     0         0         0        0         0&lt;br /&gt;
--&lt;br /&gt;
-- In this scheme the action has the highest priority, as it is the last&lt;br /&gt;
-- to change, and the expiry has the least priority, as it changes the most.&lt;br /&gt;
-- The priorities of the expiry, the protection level and the action are&lt;br /&gt;
-- fixed, but the priorities of the reason and the namespace can be swapped&lt;br /&gt;
-- through the use of the cfg.bannerDataNamespaceHasPriority table.&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
-- If the reason specified to the template is listed in this table,&lt;br /&gt;
-- namespace data will take priority over reason data in the protectionCategories&lt;br /&gt;
-- table.&lt;br /&gt;
reasonsWithNamespacePriority = {&lt;br /&gt;
	vandalism = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
-- The string to use as a namespace key for the protectionCategories table for each&lt;br /&gt;
-- namespace number.&lt;br /&gt;
categoryNamespaceKeys = {&lt;br /&gt;
	[  2] = &#039;user&#039;,&lt;br /&gt;
	[  3] = &#039;user&#039;,&lt;br /&gt;
	[  4] = &#039;project&#039;,&lt;br /&gt;
	[  6] = &#039;file&#039;,&lt;br /&gt;
	[  8] = &#039;mediawiki&#039;,&lt;br /&gt;
	[ 10] = &#039;template&#039;,&lt;br /&gt;
	[ 12] = &#039;project&#039;,&lt;br /&gt;
	[ 14] = &#039;category&#039;,&lt;br /&gt;
	[100] = &#039;portal&#039;,&lt;br /&gt;
	[828] = &#039;module&#039;,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
protectionCategories = {&lt;br /&gt;
	[&#039;all|all|all|all|all&#039;]                  = &#039;Wikipedia fully protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|office|all|all&#039;]               = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|reset|all|all&#039;]                = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|dmca|all|all&#039;]                 = &#039;Wikipedia Office-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|mainpage|all|all&#039;]             = &#039;Wikipedia fully-protected main page files&#039;,&lt;br /&gt;
	[&#039;all|all|all|extendedconfirmed|all&#039;]    = &#039;Wikipedia pages under 30-500 editing restriction&#039;,&lt;br /&gt;
	[&#039;all|all|ecp|extendedconfirmed|all&#039;]    = &#039;Wikipedia pages under 30-500 editing restriction&#039;,&lt;br /&gt;
	[&#039;all|template|all|all|edit&#039;]            = &#039;Wikipedia fully-protected templates&#039;,&lt;br /&gt;
	[&#039;all|all|all|autoconfirmed|edit&#039;]       = &#039;Wikipedia semi-protected pages&#039;,&lt;br /&gt;
	[&#039;indef|all|all|autoconfirmed|edit&#039;]     = &#039;Wikipedia indefinitely semi-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|blp|autoconfirmed|edit&#039;]       = &#039;Wikipedia indefinitely semi-protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;temp|all|blp|autoconfirmed|edit&#039;]      = &#039;Wikipedia temporarily semi-protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|autoconfirmed|edit&#039;]   = &#039;Wikipedia pages semi-protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|sock|autoconfirmed|edit&#039;]      = &#039;Wikipedia pages semi-protected from banned users&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|autoconfirmed|edit&#039;] = &#039;Wikipedia pages semi-protected against vandalism&#039;,&lt;br /&gt;
	[&#039;all|category|all|autoconfirmed|edit&#039;]  = &#039;Wikipedia semi-protected categories&#039;,&lt;br /&gt;
	[&#039;all|file|all|autoconfirmed|edit&#039;]      = &#039;Wikipedia semi-protected files&#039;,&lt;br /&gt;
	[&#039;all|portal|all|autoconfirmed|edit&#039;]    = &#039;Wikipedia semi-protected portals&#039;,&lt;br /&gt;
	[&#039;all|project|all|autoconfirmed|edit&#039;]   = &#039;Wikipedia semi-protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|autoconfirmed|edit&#039;]      = &#039;Wikipedia semi-protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|autoconfirmed|edit&#039;]  = &#039;Wikipedia semi-protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|autoconfirmed|edit&#039;]      = &#039;Wikipedia semi-protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|templateeditor|edit&#039;] = &#039;Wikipedia template-protected templates&#039;,&lt;br /&gt;
	[&#039;all|all|blp|sysop|edit&#039;]               = &#039;Wikipedia indefinitely protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;temp|all|blp|sysop|edit&#039;]              = &#039;Wikipedia temporarily protected biographies of living people&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|sysop|edit&#039;]           = &#039;Wikipedia pages protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|sock|sysop|edit&#039;]              = &#039;Wikipedia pages protected from banned users&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|sysop|edit&#039;]         = &#039;Wikipedia pages protected against vandalism&#039;,&lt;br /&gt;
	[&#039;all|category|all|sysop|edit&#039;]          = &#039;Wikipedia protected categories&#039;,&lt;br /&gt;
	[&#039;all|file|all|sysop|edit&#039;]              = &#039;Wikipedia fully-protected files&#039;,&lt;br /&gt;
	[&#039;all|project|all|sysop|edit&#039;]           = &#039;Wikipedia fully-protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|sysop|edit&#039;]              = &#039;Wikipedia fully-protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|sysop|edit&#039;]          = &#039;Wikipedia fully-protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|sysop|edit&#039;]              = &#039;Wikipedia protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|module|all|all|edit&#039;]              = &#039;Wikipedia fully-protected modules&#039;,&lt;br /&gt;
	[&#039;all|module|all|templateeditor|edit&#039;]   = &#039;Wikipedia template-protected modules&#039;,&lt;br /&gt;
	[&#039;all|module|all|autoconfirmed|edit&#039;]    = &#039;Wikipedia semi-protected modules&#039;,&lt;br /&gt;
	[&#039;all|all|all|sysop|move&#039;]               = &#039;Wikipedia move-protected pages&#039;,&lt;br /&gt;
	[&#039;indef|all|all|sysop|move&#039;]             = &#039;Wikipedia indefinitely move-protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|dispute|sysop|move&#039;]           = &#039;Wikipedia pages move-protected due to dispute&#039;,&lt;br /&gt;
	[&#039;all|all|vandalism|sysop|move&#039;]         = &#039;Wikipedia pages move-protected due to vandalism&#039;,&lt;br /&gt;
	[&#039;all|portal|all|sysop|move&#039;]            = &#039;Wikipedia move-protected portals&#039;,&lt;br /&gt;
	[&#039;all|portal|all|sysop|move&#039;]            = &#039;Wikipedia move-protected portals&#039;,&lt;br /&gt;
	[&#039;all|project|all|sysop|move&#039;]           = &#039;Wikipedia move-protected project pages&#039;,&lt;br /&gt;
	[&#039;all|talk|all|sysop|move&#039;]              = &#039;Wikipedia move-protected talk pages&#039;,&lt;br /&gt;
	[&#039;all|template|all|sysop|move&#039;]          = &#039;Wikipedia move-protected templates&#039;,&lt;br /&gt;
	[&#039;all|user|all|sysop|move&#039;]              = &#039;Wikipedia move-protected user and user talk pages&#039;,&lt;br /&gt;
	[&#039;all|all|all|autoconfirmed|autoreview&#039;] = &#039;Wikipedia pending changes protected pages&#039;,&lt;br /&gt;
	[&#039;all|all|all|reviewer|autoreview&#039;]      = &#039;Wikipedia pending changes protected pages (level 2)&#039;,&lt;br /&gt;
	[&#039;all|file|all|all|upload&#039;]              = &#039;Wikipedia upload-protected files&#039;,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Expiry category config&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table configures the expiry category behaviour for each protection&lt;br /&gt;
-- action.&lt;br /&gt;
-- * If set to true, setting that action will always categorise the page if&lt;br /&gt;
--   an expiry parameter is not set.&lt;br /&gt;
-- * If set to false, setting that action will never categorise the page.&lt;br /&gt;
-- * If set to nil, the module will categorise the page if:&lt;br /&gt;
--   1) an expiry parameter is not set, and&lt;br /&gt;
--   2) a reason is provided, and&lt;br /&gt;
--   3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck&lt;br /&gt;
--      table.&lt;br /&gt;
&lt;br /&gt;
expiryCheckActions = {&lt;br /&gt;
	edit = nil,&lt;br /&gt;
	move = false,&lt;br /&gt;
	autoreview = true,&lt;br /&gt;
	upload = false&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
reasonsWithoutExpiryCheck = {&lt;br /&gt;
	blp = true,&lt;br /&gt;
	template = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Pagetypes&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table produces the page types available with the ${PAGETYPE} parameter.&lt;br /&gt;
-- Keys are namespace numbers, or the string &amp;quot;default&amp;quot; for the default value.&lt;br /&gt;
pagetypes = {&lt;br /&gt;
	[0] = &#039;article&#039;,&lt;br /&gt;
	[6] = &#039;file&#039;,&lt;br /&gt;
	[10] = &#039;template&#039;,&lt;br /&gt;
	[14] = &#039;category&#039;,&lt;br /&gt;
	[828] = &#039;module&#039;,&lt;br /&gt;
	default = &#039;page&#039;&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Strings marking indefinite protection&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table contains values passed to the expiry parameter that mean the page&lt;br /&gt;
-- is protected indefinitely.&lt;br /&gt;
indefStrings = {&lt;br /&gt;
	[&#039;indef&#039;] = true,&lt;br /&gt;
	[&#039;indefinite&#039;] = true,&lt;br /&gt;
	[&#039;indefinitely&#039;] = true,&lt;br /&gt;
	[&#039;infinite&#039;] = true,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Group hierarchy&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table maps each group to all groups that have a superset of the original&lt;br /&gt;
-- group&#039;s page editing permissions.&lt;br /&gt;
hierarchy = {&lt;br /&gt;
	sysop = {},&lt;br /&gt;
	reviewer = {&#039;sysop&#039;},&lt;br /&gt;
	filemover = {&#039;sysop&#039;},&lt;br /&gt;
	templateeditor = {&#039;sysop&#039;},&lt;br /&gt;
	extendedconfirmed = {&#039;sysop&#039;},&lt;br /&gt;
	autoconfirmed = {&#039;reviewer&#039;, &#039;filemover&#039;, &#039;templateeditor&#039;, &#039;extendedconfirmed&#039;},&lt;br /&gt;
	user = {&#039;autoconfirmed&#039;},&lt;br /&gt;
	[&#039;*&#039;] = {&#039;user&#039;}&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Wrapper templates and their default arguments&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This table contains wrapper templates used with the module, and their&lt;br /&gt;
-- default arguments. Templates specified in this table should contain the&lt;br /&gt;
-- following invocation, and no other template content:&lt;br /&gt;
--&lt;br /&gt;
-- {{#invoke:Protection banner|main}}&lt;br /&gt;
--&lt;br /&gt;
-- If other content is desired, it can be added between&lt;br /&gt;
-- &amp;lt;noinclude&amp;gt;...&amp;lt;/noinclude&amp;gt; tags.&lt;br /&gt;
--&lt;br /&gt;
-- When a user calls one of these wrapper templates, they will use the&lt;br /&gt;
-- default arguments automatically. However, users can override any of the&lt;br /&gt;
-- arguments.&lt;br /&gt;
wrappers = {&lt;br /&gt;
	[&#039;Template:Pp&#039;]                         = {},&lt;br /&gt;
	[&#039;Template:Pp-30-500&#039;]                  = {&#039;ecp&#039;},&lt;br /&gt;
	[&#039;Template:Pp-blp&#039;]                     = {&#039;blp&#039;},&lt;br /&gt;
	-- we don&#039;t need Template:Pp-create&lt;br /&gt;
	[&#039;Template:Pp-dispute&#039;]                 = {&#039;dispute&#039;},&lt;br /&gt;
	[&#039;Template:Pp-main-page&#039;]               = {&#039;mainpage&#039;},&lt;br /&gt;
	[&#039;Template:Pp-move&#039;]                    = {action = &#039;move&#039;},&lt;br /&gt;
	[&#039;Template:Pp-move-dispute&#039;]            = {&#039;dispute&#039;, action = &#039;move&#039;},&lt;br /&gt;
	-- we don&#039;t need Template:Pp-move-indef&lt;br /&gt;
	[&#039;Template:Pp-move-vandalism&#039;]          = {&#039;vandalism&#039;, action = &#039;move&#039;},&lt;br /&gt;
	[&#039;Template:Pp-office&#039;]                  = {&#039;office&#039;},&lt;br /&gt;
	[&#039;Template:Pp-office-dmca&#039;]             = {&#039;dmca&#039;},&lt;br /&gt;
	[&#039;Template:Pp-pc1&#039;]                     = {action = &#039;autoreview&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-pc2&#039;]                     = {action = &#039;autoreview&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-reset&#039;]                   = {&#039;reset&#039;},&lt;br /&gt;
	[&#039;Template:Pp-semi-indef&#039;]              = {small = true},&lt;br /&gt;
	[&#039;Template:Pp-sock&#039;]                    = {&#039;sock&#039;},&lt;br /&gt;
	[&#039;Template:Pp-template&#039;]                = {&#039;template&#039;, small = true},&lt;br /&gt;
	[&#039;Template:Pp-upload&#039;]                  = {action = &#039;upload&#039;},&lt;br /&gt;
	[&#039;Template:Pp-usertalk&#039;]                = {&#039;usertalk&#039;},&lt;br /&gt;
	[&#039;Template:Pp-vandalism&#039;]               = {&#039;vandalism&#039;},&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- &lt;br /&gt;
--                                 MESSAGES&lt;br /&gt;
-- &lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
msg = {&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Intro blurb and intro fragment&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages specify what is produced by the ${INTROBLURB} and&lt;br /&gt;
-- ${INTROFRAGMENT} parameters. If the protection is temporary they use the&lt;br /&gt;
-- intro-blurb-expiry or intro-fragment-expiry, and if not they use&lt;br /&gt;
-- intro-blurb-noexpiry or intro-fragment-noexpiry.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;intro-blurb-expiry&#039;] = &#039;${PROTECTIONBLURB} until ${EXPIRY}.&#039;,&lt;br /&gt;
[&#039;intro-blurb-noexpiry&#039;] = &#039;${PROTECTIONBLURB}.&#039;,&lt;br /&gt;
[&#039;intro-fragment-expiry&#039;] = &#039;${PROTECTIONBLURB} until ${EXPIRY},&#039;,&lt;br /&gt;
[&#039;intro-fragment-noexpiry&#039;] = &#039;${PROTECTIONBLURB}&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Tooltip blurb&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages specify what is produced by the ${TOOLTIPBLURB} parameter.&lt;br /&gt;
-- If the protection is temporary the tooltip-blurb-expiry message is used, and&lt;br /&gt;
-- if not the tooltip-blurb-noexpiry message is used.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;tooltip-blurb-expiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.&#039;,&lt;br /&gt;
[&#039;tooltip-blurb-noexpiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL}.&#039;,&lt;br /&gt;
[&#039;tooltip-fragment-expiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},&#039;,&lt;br /&gt;
[&#039;tooltip-fragment-noexpiry&#039;] = &#039;This ${PAGETYPE} is ${PROTECTIONLEVEL}&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Special explanation blurb&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- An explanation blurb for pages that cannot be unprotected, e.g. for pages&lt;br /&gt;
-- in the MediaWiki namespace.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;explanation-blurb-nounprotect&#039;] = &#039;See the [[Wikipedia:Protection policy|&#039;&lt;br /&gt;
	.. &#039;protection policy]] and ${PROTECTIONLOG} for more details.&#039;&lt;br /&gt;
	.. &#039; Please discuss any changes on the ${TALKPAGE}; you&#039;&lt;br /&gt;
	.. &#039; may ${EDITREQUEST} to ask an&#039;&lt;br /&gt;
	.. &#039; [[Wikipedia:Administrators|administrator]] to make an edit if it&#039;&lt;br /&gt;
	.. &#039; is [[Help:Minor edit#When to mark an edit as a minor edit&#039;&lt;br /&gt;
	.. &#039;|uncontroversial]] or supported by [[Wikipedia:Consensus&#039;&lt;br /&gt;
	.. &#039;|consensus]].&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Protection log display values&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine the display values for the protection log link&lt;br /&gt;
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;protection-log-display&#039;] = &#039;protection log&#039;,&lt;br /&gt;
[&#039;pc-log-display&#039;] = &#039;pending changes log&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Current version display values&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine the display values for the page history link&lt;br /&gt;
-- or the move log link produced by the ${CURRENTVERSION} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in these messages.&lt;br /&gt;
[&#039;current-version-move-display&#039;] = &#039;current title&#039;,&lt;br /&gt;
[&#039;current-version-edit-display&#039;] = &#039;current version&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Talk page&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This message determines the display value of the talk page link produced&lt;br /&gt;
-- with the ${TALKPAGE} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;talk-page-link-display&#039;] = &#039;talk page&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Edit requests&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This message determines the display value of the edit request link produced&lt;br /&gt;
-- with the ${EDITREQUEST} parameter.&lt;br /&gt;
-- It is possible to use banner parameters in this message.&lt;br /&gt;
[&#039;edit-request-display&#039;] = &#039;submit an edit request&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Expiry date format&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- This is the format for the blurb expiry date. It should be valid input for&lt;br /&gt;
-- the first parameter of the #time parser function.&lt;br /&gt;
[&#039;expiry-date-format&#039;] = &#039;F j, Y&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Tracking categories&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These messages determine which tracking categories the module outputs.&lt;br /&gt;
[&#039;tracking-category-incorrect&#039;] = &#039;Wikipedia pages with incorrect protection templates&#039;,&lt;br /&gt;
[&#039;tracking-category-template&#039;] = &#039;Wikipedia template-protected pages other than templates and modules&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Images&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- These are images that are not defined by their protection action and protection level.&lt;br /&gt;
[&#039;image-filename-indef&#039;] = &#039;Padlock.svg&#039;,&lt;br /&gt;
[&#039;image-filename-default&#039;] = &#039;Transparent.gif&#039;,&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- End messages&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Navbox&amp;diff=28477</id>
		<title>Module:Navbox</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Navbox&amp;diff=28477"/>
		<updated>2018-04-06T09:40:28Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--&lt;br /&gt;
-- This module implements {{Navbox}}&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local navbar = require(&#039;Module:Navbar&#039;)._navbar&lt;br /&gt;
local getArgs -- lazily initialized&lt;br /&gt;
&lt;br /&gt;
local args&lt;br /&gt;
local border&lt;br /&gt;
local listnums = {}&lt;br /&gt;
local ODD_EVEN_MARKER = &#039;\127_ODDEVEN_\127&#039;&lt;br /&gt;
local RESTART_MARKER = &#039;\127_ODDEVEN0_\127&#039;&lt;br /&gt;
local REGEX_MARKER = &#039;\127_ODDEVEN(%d?)_\127&#039;&lt;br /&gt;
&lt;br /&gt;
local function striped(wikitext)&lt;br /&gt;
	-- Return wikitext with markers replaced for odd/even striping.&lt;br /&gt;
	-- Child (subgroup) navboxes are flagged with a category that is removed&lt;br /&gt;
	-- by parent navboxes. The result is that the category shows all pages&lt;br /&gt;
	-- where a child navbox is not contained in a parent navbox.&lt;br /&gt;
	local orphanCat = &#039;[[Category:Navbox orphans]]&#039;&lt;br /&gt;
	if border == &#039;subgroup&#039; and args.orphan ~= &#039;yes&#039; then&lt;br /&gt;
		-- No change; striping occurs in outermost navbox.&lt;br /&gt;
		return wikitext .. orphanCat&lt;br /&gt;
	end&lt;br /&gt;
	local first, second = &#039;odd&#039;, &#039;even&#039;&lt;br /&gt;
	if args.evenodd then&lt;br /&gt;
		if args.evenodd == &#039;swap&#039; then&lt;br /&gt;
			first, second = second, first&lt;br /&gt;
		else&lt;br /&gt;
			first = args.evenodd&lt;br /&gt;
			second = first&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local changer&lt;br /&gt;
	if first == second then&lt;br /&gt;
		changer = first&lt;br /&gt;
	else&lt;br /&gt;
		local index = 0&lt;br /&gt;
		changer = function (code)&lt;br /&gt;
			if code == &#039;0&#039; then&lt;br /&gt;
				-- Current occurrence is for a group before a nested table.&lt;br /&gt;
				-- Set it to first as a valid although pointless class.&lt;br /&gt;
				-- The next occurrence will be the first row after a title&lt;br /&gt;
				-- in a subgroup and will also be first.&lt;br /&gt;
				index = 0&lt;br /&gt;
				return first&lt;br /&gt;
			end&lt;br /&gt;
			index = index + 1&lt;br /&gt;
			return index % 2 == 1 and first or second&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local regex = orphanCat:gsub(&#039;([%[%]])&#039;, &#039;%%%1&#039;)&lt;br /&gt;
	return (wikitext:gsub(regex, &#039;&#039;):gsub(REGEX_MARKER, changer))  -- () omits gsub count&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function processItem(item, nowrapitems)&lt;br /&gt;
	if item:sub(1, 2) == &#039;{|&#039; then&lt;br /&gt;
		-- Applying nowrap to lines in a table does not make sense.&lt;br /&gt;
		-- Add newlines to compensate for trim of x in |parm=x in a template.&lt;br /&gt;
		return &#039;\n&#039; .. item ..&#039;\n&#039;&lt;br /&gt;
	end&lt;br /&gt;
	if nowrapitems == &#039;yes&#039; then&lt;br /&gt;
		local lines = {}&lt;br /&gt;
		for line in (item .. &#039;\n&#039;):gmatch(&#039;([^\n]*)\n&#039;) do&lt;br /&gt;
			local prefix, content = line:match(&#039;^([*:;#]+)%s*(.*)&#039;)&lt;br /&gt;
			if prefix and not content:match(&#039;^&amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt;&#039;) then&lt;br /&gt;
				line = prefix .. &#039;&amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt;&#039; .. content .. &#039;&amp;lt;/span&amp;gt;&#039;&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(lines, line)&lt;br /&gt;
		end&lt;br /&gt;
		item = table.concat(lines, &#039;\n&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	if item:match(&#039;^[*:;#]&#039;) then&lt;br /&gt;
		return &#039;\n&#039; .. item ..&#039;\n&#039;&lt;br /&gt;
	end&lt;br /&gt;
	return item&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderNavBar(titleCell)&lt;br /&gt;
&lt;br /&gt;
	if args.navbar ~= &#039;off&#039; and args.navbar ~= &#039;plain&#039; and not (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub(&#039;/sandbox$&#039;, &#039;&#039;) == &#039;Template:Navbox&#039;) then&lt;br /&gt;
		titleCell:wikitext(navbar{&lt;br /&gt;
			args.name,&lt;br /&gt;
			mini = 1,&lt;br /&gt;
			fontstyle = (args.basestyle or &#039;&#039;) .. &#039;;&#039; .. (args.titlestyle or &#039;&#039;) .. &#039;;background:none transparent;border:none;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;&#039;&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
--   Title row&lt;br /&gt;
--&lt;br /&gt;
local function renderTitleRow(tbl)&lt;br /&gt;
	if not args.title then return end&lt;br /&gt;
&lt;br /&gt;
	local titleRow = tbl:tag(&#039;tr&#039;)&lt;br /&gt;
&lt;br /&gt;
	if args.titlegroup then&lt;br /&gt;
		titleRow&lt;br /&gt;
			:tag(&#039;th&#039;)&lt;br /&gt;
				:attr(&#039;scope&#039;, &#039;row&#039;)&lt;br /&gt;
				:addClass(&#039;navbox-group&#039;)&lt;br /&gt;
				:addClass(args.titlegroupclass)&lt;br /&gt;
				:cssText(args.basestyle)&lt;br /&gt;
				:cssText(args.groupstyle)&lt;br /&gt;
				:cssText(args.titlegroupstyle)&lt;br /&gt;
				:wikitext(args.titlegroup)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local titleCell = titleRow:tag(&#039;th&#039;):attr(&#039;scope&#039;, &#039;col&#039;)&lt;br /&gt;
&lt;br /&gt;
	if args.titlegroup then&lt;br /&gt;
		titleCell&lt;br /&gt;
			:css(&#039;border-left&#039;, &#039;2px solid #fdfdfd&#039;)&lt;br /&gt;
			:css(&#039;width&#039;, &#039;100%&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local titleColspan = 2&lt;br /&gt;
	if args.imageleft then titleColspan = titleColspan + 1 end&lt;br /&gt;
	if args.image then titleColspan = titleColspan + 1 end&lt;br /&gt;
	if args.titlegroup then titleColspan = titleColspan - 1 end&lt;br /&gt;
&lt;br /&gt;
	titleCell&lt;br /&gt;
		:cssText(args.basestyle)&lt;br /&gt;
		:cssText(args.titlestyle)&lt;br /&gt;
		:addClass(&#039;navbox-title&#039;)&lt;br /&gt;
		:attr(&#039;colspan&#039;, titleColspan)&lt;br /&gt;
&lt;br /&gt;
	renderNavBar(titleCell)&lt;br /&gt;
&lt;br /&gt;
	titleCell&lt;br /&gt;
		:tag(&#039;div&#039;)&lt;br /&gt;
			:attr(&#039;id&#039;, mw.uri.anchorEncode(args.title))&lt;br /&gt;
			:addClass(args.titleclass)&lt;br /&gt;
			:css(&#039;font-size&#039;, &#039;114%&#039;)&lt;br /&gt;
			:css(&#039;margin&#039;, &#039;0 4em&#039;)&lt;br /&gt;
			:wikitext(processItem(args.title))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
--   Above/Below rows&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local function getAboveBelowColspan()&lt;br /&gt;
	local ret = 2&lt;br /&gt;
	if args.imageleft then ret = ret + 1 end&lt;br /&gt;
	if args.image then ret = ret + 1 end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderAboveRow(tbl)&lt;br /&gt;
	if not args.above then return end&lt;br /&gt;
&lt;br /&gt;
	tbl:tag(&#039;tr&#039;)&lt;br /&gt;
		:tag(&#039;td&#039;)&lt;br /&gt;
			:addClass(&#039;navbox-abovebelow&#039;)&lt;br /&gt;
			:addClass(args.aboveclass)&lt;br /&gt;
			:cssText(args.basestyle)&lt;br /&gt;
			:cssText(args.abovestyle)&lt;br /&gt;
			:attr(&#039;colspan&#039;, getAboveBelowColspan())&lt;br /&gt;
			:tag(&#039;div&#039;)&lt;br /&gt;
				:wikitext(processItem(args.above, args.nowrapitems))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderBelowRow(tbl)&lt;br /&gt;
	if not args.below then return end&lt;br /&gt;
&lt;br /&gt;
	tbl:tag(&#039;tr&#039;)&lt;br /&gt;
		:tag(&#039;td&#039;)&lt;br /&gt;
			:addClass(&#039;navbox-abovebelow&#039;)&lt;br /&gt;
			:addClass(args.belowclass)&lt;br /&gt;
			:cssText(args.basestyle)&lt;br /&gt;
			:cssText(args.belowstyle)&lt;br /&gt;
			:attr(&#039;colspan&#039;, getAboveBelowColspan())&lt;br /&gt;
			:tag(&#039;div&#039;)&lt;br /&gt;
				:wikitext(processItem(args.below, args.nowrapitems))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
--   List rows&lt;br /&gt;
--&lt;br /&gt;
local function renderListRow(tbl, index, listnum)&lt;br /&gt;
	local row = tbl:tag(&#039;tr&#039;)&lt;br /&gt;
&lt;br /&gt;
	if index == 1 and args.imageleft then&lt;br /&gt;
		row&lt;br /&gt;
			:tag(&#039;td&#039;)&lt;br /&gt;
				:addClass(&#039;navbox-image&#039;)&lt;br /&gt;
				:addClass(args.imageclass)&lt;br /&gt;
				:css(&#039;width&#039;, &#039;1px&#039;)               -- Minimize width&lt;br /&gt;
				:css(&#039;padding&#039;, &#039;0px 2px 0px 0px&#039;)&lt;br /&gt;
				:cssText(args.imageleftstyle)&lt;br /&gt;
				:attr(&#039;rowspan&#039;, #listnums)&lt;br /&gt;
				:tag(&#039;div&#039;)&lt;br /&gt;
					:wikitext(processItem(args.imageleft))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args[&#039;group&#039; .. listnum] then&lt;br /&gt;
		local groupCell = row:tag(&#039;th&#039;)&lt;br /&gt;
&lt;br /&gt;
		groupCell&lt;br /&gt;
			:attr(&#039;scope&#039;, &#039;row&#039;)&lt;br /&gt;
			:addClass(&#039;navbox-group&#039;)&lt;br /&gt;
			:addClass(args.groupclass)&lt;br /&gt;
			:cssText(args.basestyle)&lt;br /&gt;
            :css(&#039;width&#039;, args.groupwidth or &#039;1%&#039;) -- If groupwidth not specified, minimize width&lt;br /&gt;
&lt;br /&gt;
		groupCell&lt;br /&gt;
			:cssText(args.groupstyle)&lt;br /&gt;
			:cssText(args[&#039;group&#039; .. listnum .. &#039;style&#039;])&lt;br /&gt;
			:wikitext(args[&#039;group&#039; .. listnum])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local listCell = row:tag(&#039;td&#039;)&lt;br /&gt;
&lt;br /&gt;
	if args[&#039;group&#039; .. listnum] then&lt;br /&gt;
		listCell&lt;br /&gt;
			:css(&#039;text-align&#039;, &#039;left&#039;)&lt;br /&gt;
			:css(&#039;border-left-width&#039;, &#039;2px&#039;)&lt;br /&gt;
			:css(&#039;border-left-style&#039;, &#039;solid&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		listCell:attr(&#039;colspan&#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not args.groupwidth then&lt;br /&gt;
		listCell:css(&#039;width&#039;, &#039;100%&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local rowstyle  -- usually nil so cssText(rowstyle) usually adds nothing&lt;br /&gt;
	if index % 2 == 1 then&lt;br /&gt;
		rowstyle = args.oddstyle&lt;br /&gt;
	else&lt;br /&gt;
		rowstyle = args.evenstyle&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local listText = args[&#039;list&#039; .. listnum]&lt;br /&gt;
	local oddEven = ODD_EVEN_MARKER&lt;br /&gt;
	if listText:sub(1, 12) == &#039;&amp;lt;/div&amp;gt;&amp;lt;table&#039; then&lt;br /&gt;
		-- Assume list text is for a subgroup navbox so no automatic striping for this row.&lt;br /&gt;
		oddEven = listText:find(&#039;&amp;lt;th[^&amp;gt;]*&amp;quot;navbox%-title&amp;quot;&#039;) and RESTART_MARKER or &#039;odd&#039;&lt;br /&gt;
	end&lt;br /&gt;
	listCell&lt;br /&gt;
		:css(&#039;padding&#039;, &#039;0px&#039;)&lt;br /&gt;
		:cssText(args.liststyle)&lt;br /&gt;
		:cssText(rowstyle)&lt;br /&gt;
		:cssText(args[&#039;list&#039; .. listnum .. &#039;style&#039;])&lt;br /&gt;
		:addClass(&#039;navbox-list&#039;)&lt;br /&gt;
		:addClass(&#039;navbox-&#039; .. oddEven)&lt;br /&gt;
		:addClass(args.listclass)&lt;br /&gt;
		:tag(&#039;div&#039;)&lt;br /&gt;
			:css(&#039;padding&#039;, (index == 1 and args.list1padding) or args.listpadding or &#039;0em 0.25em&#039;)&lt;br /&gt;
			:wikitext(processItem(listText, args.nowrapitems))&lt;br /&gt;
&lt;br /&gt;
	if index == 1 and args.image then&lt;br /&gt;
		row&lt;br /&gt;
			:tag(&#039;td&#039;)&lt;br /&gt;
				:addClass(&#039;navbox-image&#039;)&lt;br /&gt;
				:addClass(args.imageclass)&lt;br /&gt;
				:css(&#039;width&#039;, &#039;1px&#039;)               -- Minimize width&lt;br /&gt;
				:css(&#039;padding&#039;, &#039;0px 0px 0px 2px&#039;)&lt;br /&gt;
				:cssText(args.imagestyle)&lt;br /&gt;
				:attr(&#039;rowspan&#039;, #listnums)&lt;br /&gt;
				:tag(&#039;div&#039;)&lt;br /&gt;
					:wikitext(processItem(args.image))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
--   Tracking categories&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local function needsHorizontalLists()&lt;br /&gt;
	if border == &#039;subgroup&#039; or args.tracking == &#039;no&#039; then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	local listClasses = {&lt;br /&gt;
		[&#039;plainlist&#039;] = true, [&#039;hlist&#039;] = true, [&#039;hlist hnum&#039;] = true,&lt;br /&gt;
		[&#039;hlist hwrap&#039;] = true, [&#039;hlist vcard&#039;] = true, [&#039;vcard hlist&#039;] = true,&lt;br /&gt;
		[&#039;hlist vevent&#039;] = true,&lt;br /&gt;
	}&lt;br /&gt;
	return not (listClasses[args.listclass] or listClasses[args.bodyclass])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function hasBackgroundColors()&lt;br /&gt;
	for _, key in ipairs({&#039;titlestyle&#039;, &#039;groupstyle&#039;, &#039;basestyle&#039;, &#039;abovestyle&#039;, &#039;belowstyle&#039;}) do&lt;br /&gt;
		if tostring(args[key]):find(&#039;background&#039;, 1, true) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function hasBorders()&lt;br /&gt;
	for _, key in ipairs({&#039;groupstyle&#039;, &#039;basestyle&#039;, &#039;abovestyle&#039;, &#039;belowstyle&#039;}) do&lt;br /&gt;
		if tostring(args[key]):find(&#039;border&#039;, 1, true) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isIllegible()&lt;br /&gt;
	local styleratio = require(&#039;Module:Color contrast&#039;)._styleratio&lt;br /&gt;
&lt;br /&gt;
	for key, style in pairs(args) do&lt;br /&gt;
		if tostring(key):match(&amp;quot;style$&amp;quot;) then&lt;br /&gt;
			if styleratio{mw.text.unstripNoWiki(style)} &amp;lt; 4.5 then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getTrackingCategories()&lt;br /&gt;
	local cats = {}&lt;br /&gt;
	if needsHorizontalLists() then table.insert(cats, &#039;Navigational boxes without horizontal lists&#039;) end&lt;br /&gt;
	if hasBackgroundColors() then table.insert(cats, &#039;Navboxes using background colours&#039;) end&lt;br /&gt;
	if isIllegible() then table.insert(cats, &#039;Potentially illegible navboxes&#039;) end&lt;br /&gt;
	if hasBorders() then table.insert(cats, &#039;Navboxes using borders&#039;) end&lt;br /&gt;
	return cats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderTrackingCategories(builder)&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	if title.namespace ~= 10 then return end -- not in template space&lt;br /&gt;
	local subpage = title.subpageText&lt;br /&gt;
	if subpage == &#039;doc&#039; or subpage == &#039;sandbox&#039; or subpage == &#039;testcases&#039; then return end&lt;br /&gt;
&lt;br /&gt;
	for _, cat in ipairs(getTrackingCategories()) do&lt;br /&gt;
		builder:wikitext(&#039;[[Category:&#039; .. cat .. &#039;]]&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
--   Main navbox tables&lt;br /&gt;
--&lt;br /&gt;
local function renderMainTable()&lt;br /&gt;
	local tbl = mw.html.create(&#039;table&#039;)&lt;br /&gt;
		:addClass(&#039;nowraplinks&#039;)&lt;br /&gt;
		:addClass(args.bodyclass)&lt;br /&gt;
&lt;br /&gt;
	if args.title and (args.state ~= &#039;plain&#039; and args.state ~= &#039;off&#039;) then&lt;br /&gt;
		tbl&lt;br /&gt;
			:addClass(&#039;collapsible&#039;)&lt;br /&gt;
			:addClass(args.state or &#039;autocollapse&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	tbl:css(&#039;border-spacing&#039;, 0)&lt;br /&gt;
	if border == &#039;subgroup&#039; or border == &#039;none&#039; then&lt;br /&gt;
		tbl&lt;br /&gt;
			:addClass(&#039;navbox-subgroup&#039;)&lt;br /&gt;
			:cssText(args.bodystyle)&lt;br /&gt;
			:cssText(args.style)&lt;br /&gt;
	else  -- regular navbox - bodystyle and style will be applied to the wrapper table&lt;br /&gt;
		tbl&lt;br /&gt;
			:addClass(&#039;navbox-inner&#039;)&lt;br /&gt;
			:css(&#039;background&#039;, &#039;transparent&#039;)&lt;br /&gt;
			:css(&#039;color&#039;, &#039;inherit&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	tbl:cssText(args.innerstyle)&lt;br /&gt;
&lt;br /&gt;
	renderTitleRow(tbl)&lt;br /&gt;
	renderAboveRow(tbl)&lt;br /&gt;
	for i, listnum in ipairs(listnums) do&lt;br /&gt;
		renderListRow(tbl, i, listnum)&lt;br /&gt;
	end&lt;br /&gt;
	renderBelowRow(tbl)&lt;br /&gt;
&lt;br /&gt;
	return tbl&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._navbox(navboxArgs)&lt;br /&gt;
	args = navboxArgs&lt;br /&gt;
&lt;br /&gt;
	for k, _ in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;string&#039; then&lt;br /&gt;
			local listnum = k:match(&#039;^list(%d+)$&#039;)&lt;br /&gt;
			if listnum then table.insert(listnums, tonumber(listnum)) end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(listnums)&lt;br /&gt;
&lt;br /&gt;
	border = mw.text.trim(args.border or args[1] or &#039;&#039;)&lt;br /&gt;
	if border == &#039;child&#039; then&lt;br /&gt;
		border = &#039;subgroup&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- render the main body of the navbox&lt;br /&gt;
	local tbl = renderMainTable()&lt;br /&gt;
&lt;br /&gt;
	-- render the appropriate wrapper around the navbox, depending on the border param&lt;br /&gt;
	local res = mw.html.create()&lt;br /&gt;
	if border == &#039;none&#039; then&lt;br /&gt;
		local nav = res:tag(&#039;div&#039;)&lt;br /&gt;
			:attr(&#039;role&#039;, &#039;navigation&#039;)&lt;br /&gt;
			:node(tbl)&lt;br /&gt;
		if args.title then&lt;br /&gt;
			nav:attr(&#039;aria-labelledby&#039;, mw.uri.anchorEncode(args.title))&lt;br /&gt;
		else&lt;br /&gt;
			nav:attr(&#039;aria-label&#039;, &#039;Navbox&#039;)&lt;br /&gt;
		end&lt;br /&gt;
	elseif border == &#039;subgroup&#039; then&lt;br /&gt;
		-- We assume that this navbox is being rendered in a list cell of a parent navbox, and is&lt;br /&gt;
		-- therefore inside a div with padding:0em 0.25em. We start with a &amp;lt;/div&amp;gt; to avoid the&lt;br /&gt;
		-- padding being applied, and at the end add a &amp;lt;div&amp;gt; to balance out the parent&#039;s &amp;lt;/div&amp;gt;&lt;br /&gt;
		res&lt;br /&gt;
			:wikitext(&#039;&amp;lt;/div&amp;gt;&#039;)&lt;br /&gt;
			:node(tbl)&lt;br /&gt;
			:wikitext(&#039;&amp;lt;div&amp;gt;&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		local nav = res:tag(&#039;div&#039;)&lt;br /&gt;
			:attr(&#039;role&#039;, &#039;navigation&#039;)&lt;br /&gt;
			:addClass(&#039;navbox&#039;)&lt;br /&gt;
			:cssText(args.bodystyle)&lt;br /&gt;
			:cssText(args.style)&lt;br /&gt;
			:css(&#039;padding&#039;, &#039;3px&#039;)&lt;br /&gt;
			:node(tbl)&lt;br /&gt;
		if args.title then&lt;br /&gt;
			nav:attr(&#039;aria-labelledby&#039;, mw.uri.anchorEncode(args.title))&lt;br /&gt;
		else&lt;br /&gt;
			nav:attr(&#039;aria-label&#039;, &#039;Navbox&#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	renderTrackingCategories(res)&lt;br /&gt;
&lt;br /&gt;
	return striped(tostring(res))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.navbox(frame)&lt;br /&gt;
	if not getArgs then&lt;br /&gt;
		getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
	end&lt;br /&gt;
	args = getArgs(frame, {wrappers = {&#039;Template:Navbox&#039;, &#039;Template:Navbox subgroup&#039;}})&lt;br /&gt;
	if frame.args.border then&lt;br /&gt;
		-- This allows Template:Navbox_subgroup to use {{#invoke:Navbox|navbox|border=...}}.&lt;br /&gt;
		args.border = frame.args.border&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Read the arguments in the order they&#039;ll be output in, to make references number in the right order.&lt;br /&gt;
	local _&lt;br /&gt;
	_ = args.title&lt;br /&gt;
	_ = args.above&lt;br /&gt;
	for i = 1, 20 do&lt;br /&gt;
		_ = args[&amp;quot;group&amp;quot; .. tostring(i)]&lt;br /&gt;
		_ = args[&amp;quot;list&amp;quot; .. tostring(i)]&lt;br /&gt;
	end&lt;br /&gt;
	_ = args.below&lt;br /&gt;
&lt;br /&gt;
	return p._navbox(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Message_box&amp;diff=28475</id>
		<title>Module:Message box</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Message_box&amp;diff=28475"/>
		<updated>2018-04-06T09:40:27Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This is a meta-module for producing message box templates, including&lt;br /&gt;
-- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}.&lt;br /&gt;
&lt;br /&gt;
-- Load necessary modules.&lt;br /&gt;
require(&#039;Module:No globals&#039;)&lt;br /&gt;
local getArgs&lt;br /&gt;
local categoryHandler = require(&#039;Module:Category handler&#039;)._main&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
&lt;br /&gt;
-- Get a language object for formatDate and ucfirst.&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
-- Define constants&lt;br /&gt;
local CONFIG_MODULE = &#039;Module:Message box/configuration&#039;&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function getTitleObject(...)&lt;br /&gt;
	-- Get the title object, passing the function through pcall&lt;br /&gt;
	-- in case we are over the expensive function count limit.&lt;br /&gt;
	local success, title = pcall(mw.title.new, ...)&lt;br /&gt;
	if success then&lt;br /&gt;
		return title&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function union(t1, t2)&lt;br /&gt;
	-- Returns the union of two arrays.&lt;br /&gt;
	local vals = {}&lt;br /&gt;
	for i, v in ipairs(t1) do&lt;br /&gt;
		vals[v] = true&lt;br /&gt;
	end&lt;br /&gt;
	for i, v in ipairs(t2) do&lt;br /&gt;
		vals[v] = true&lt;br /&gt;
	end&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k in pairs(vals) do&lt;br /&gt;
		table.insert(ret, k)&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(ret)&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getArgNums(args, prefix)&lt;br /&gt;
	local nums = {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		local num = mw.ustring.match(tostring(k), &#039;^&#039; .. prefix .. &#039;([1-9]%d*)$&#039;)&lt;br /&gt;
		if num then&lt;br /&gt;
			table.insert(nums, tonumber(num))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(nums)&lt;br /&gt;
	return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Box class definition&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local MessageBox = {}&lt;br /&gt;
MessageBox.__index = MessageBox&lt;br /&gt;
&lt;br /&gt;
function MessageBox.new(boxType, args, cfg)&lt;br /&gt;
	args = args or {}&lt;br /&gt;
	local obj = {}&lt;br /&gt;
&lt;br /&gt;
	-- Set the title object and the namespace.&lt;br /&gt;
	obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
	-- Set the config for our box type.&lt;br /&gt;
	obj.cfg = cfg[boxType]&lt;br /&gt;
	if not obj.cfg then&lt;br /&gt;
		local ns = obj.title.namespace&lt;br /&gt;
		-- boxType is &amp;quot;mbox&amp;quot; or invalid input&lt;br /&gt;
		if ns == 0 then&lt;br /&gt;
			obj.cfg = cfg.ambox -- main namespace&lt;br /&gt;
		elseif ns == 6 then&lt;br /&gt;
			obj.cfg = cfg.imbox -- file namespace&lt;br /&gt;
		elseif ns == 14 then&lt;br /&gt;
			obj.cfg = cfg.cmbox -- category namespace&lt;br /&gt;
		else&lt;br /&gt;
			local nsTable = mw.site.namespaces[ns]&lt;br /&gt;
			if nsTable and nsTable.isTalk then&lt;br /&gt;
				obj.cfg = cfg.tmbox -- any talk namespace&lt;br /&gt;
			else&lt;br /&gt;
				obj.cfg = cfg.ombox -- other namespaces or invalid input&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set the arguments, and remove all blank arguments except for the ones&lt;br /&gt;
	-- listed in cfg.allowBlankParams.&lt;br /&gt;
	do&lt;br /&gt;
		local newArgs = {}&lt;br /&gt;
		for k, v in pairs(args) do&lt;br /&gt;
			if v ~= &#039;&#039; then&lt;br /&gt;
				newArgs[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		for i, param in ipairs(obj.cfg.allowBlankParams or {}) do&lt;br /&gt;
			newArgs[param] = args[param]&lt;br /&gt;
		end&lt;br /&gt;
		obj.args = newArgs&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Define internal data structure.&lt;br /&gt;
	obj.categories = {}&lt;br /&gt;
	obj.classes = {}&lt;br /&gt;
&lt;br /&gt;
	return setmetatable(obj, MessageBox)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:addCat(ns, cat, sort)&lt;br /&gt;
	if not cat then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if sort then&lt;br /&gt;
		cat = string.format(&#039;[[Category:%s|%s]]&#039;, cat, sort)&lt;br /&gt;
	else&lt;br /&gt;
		cat = string.format(&#039;[[Category:%s]]&#039;, cat)&lt;br /&gt;
	end&lt;br /&gt;
	self.categories[ns] = self.categories[ns] or {}&lt;br /&gt;
	table.insert(self.categories[ns], cat)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:addClass(class)&lt;br /&gt;
	if not class then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(self.classes, class)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:setParameters()&lt;br /&gt;
	local args = self.args&lt;br /&gt;
	local cfg = self.cfg&lt;br /&gt;
&lt;br /&gt;
	-- Get type data.&lt;br /&gt;
	self.type = args.type&lt;br /&gt;
	local typeData = cfg.types[self.type]&lt;br /&gt;
	self.invalidTypeError = cfg.showInvalidTypeError&lt;br /&gt;
		and self.type&lt;br /&gt;
		and not typeData&lt;br /&gt;
	typeData = typeData or cfg.types[cfg.default]&lt;br /&gt;
	self.typeClass = typeData.class&lt;br /&gt;
	self.typeImage = typeData.image&lt;br /&gt;
&lt;br /&gt;
	-- Find if the box has been wrongly substituted.&lt;br /&gt;
	self.isSubstituted = cfg.substCheck and args.subst == &#039;SUBST&#039;&lt;br /&gt;
&lt;br /&gt;
	-- Find whether we are using a small message box.&lt;br /&gt;
	self.isSmall = cfg.allowSmall and (&lt;br /&gt;
		cfg.smallParam and args.small == cfg.smallParam&lt;br /&gt;
		or not cfg.smallParam and yesno(args.small)&lt;br /&gt;
	)&lt;br /&gt;
&lt;br /&gt;
	-- Add attributes, classes and styles.&lt;br /&gt;
	self.id = args.id&lt;br /&gt;
	if yesno(args.plainlinks) ~= false then&lt;br /&gt;
		self:addClass(&#039;plainlinks&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	for _, class in ipairs(cfg.classes or {}) do&lt;br /&gt;
		self:addClass(class)&lt;br /&gt;
	end&lt;br /&gt;
	if self.isSmall then&lt;br /&gt;
		self:addClass(cfg.smallClass or &#039;mbox-small&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	self:addClass(self.typeClass)&lt;br /&gt;
	self:addClass(args.class)&lt;br /&gt;
	self.style = args.style&lt;br /&gt;
	self.attrs = args.attrs&lt;br /&gt;
&lt;br /&gt;
	-- Set text style.&lt;br /&gt;
	self.textstyle = args.textstyle&lt;br /&gt;
&lt;br /&gt;
	-- Find if we are on the template page or not. This functionality is only&lt;br /&gt;
	-- used if useCollapsibleTextFields is set, or if both cfg.templateCategory&lt;br /&gt;
	-- and cfg.templateCategoryRequireName are set.&lt;br /&gt;
	self.useCollapsibleTextFields = cfg.useCollapsibleTextFields&lt;br /&gt;
	if self.useCollapsibleTextFields&lt;br /&gt;
		or cfg.templateCategory&lt;br /&gt;
		and cfg.templateCategoryRequireName&lt;br /&gt;
	then&lt;br /&gt;
		self.name = args.name&lt;br /&gt;
		if self.name then&lt;br /&gt;
			local templateName = mw.ustring.match(&lt;br /&gt;
				self.name,&lt;br /&gt;
				&#039;^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$&#039;&lt;br /&gt;
			) or self.name&lt;br /&gt;
			templateName = &#039;Template:&#039; .. templateName&lt;br /&gt;
			self.templateTitle = getTitleObject(templateName)&lt;br /&gt;
		end&lt;br /&gt;
		self.isTemplatePage = self.templateTitle&lt;br /&gt;
			and mw.title.equals(self.title, self.templateTitle)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Process data for collapsible text fields. At the moment these are only&lt;br /&gt;
	-- used in {{ambox}}.&lt;br /&gt;
	if self.useCollapsibleTextFields then&lt;br /&gt;
		-- Get the self.issue value.&lt;br /&gt;
		if self.isSmall and args.smalltext then&lt;br /&gt;
			self.issue = args.smalltext&lt;br /&gt;
		else&lt;br /&gt;
			local sect&lt;br /&gt;
			if args.sect == &#039;&#039; then&lt;br /&gt;
				sect = &#039;This &#039; .. (cfg.sectionDefault or &#039;page&#039;)&lt;br /&gt;
			elseif type(args.sect) == &#039;string&#039; then&lt;br /&gt;
				sect = &#039;This &#039; .. args.sect&lt;br /&gt;
			end&lt;br /&gt;
			local issue = args.issue&lt;br /&gt;
			issue = type(issue) == &#039;string&#039; and issue ~= &#039;&#039; and issue or nil&lt;br /&gt;
			local text = args.text&lt;br /&gt;
			text = type(text) == &#039;string&#039; and text or nil&lt;br /&gt;
			local issues = {}&lt;br /&gt;
			table.insert(issues, sect)&lt;br /&gt;
			table.insert(issues, issue)&lt;br /&gt;
			table.insert(issues, text)&lt;br /&gt;
			self.issue = table.concat(issues, &#039; &#039;)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Get the self.talk value.&lt;br /&gt;
		local talk = args.talk&lt;br /&gt;
		-- Show talk links on the template page or template subpages if the talk&lt;br /&gt;
		-- parameter is blank.&lt;br /&gt;
		if talk == &#039;&#039;&lt;br /&gt;
			and self.templateTitle&lt;br /&gt;
			and (&lt;br /&gt;
				mw.title.equals(self.templateTitle, self.title)&lt;br /&gt;
				or self.title:isSubpageOf(self.templateTitle)&lt;br /&gt;
			)&lt;br /&gt;
		then&lt;br /&gt;
			talk = &#039;#&#039;&lt;br /&gt;
		elseif talk == &#039;&#039; then&lt;br /&gt;
			talk = nil&lt;br /&gt;
		end&lt;br /&gt;
		if talk then&lt;br /&gt;
			-- If the talk value is a talk page, make a link to that page. Else&lt;br /&gt;
			-- assume that it&#039;s a section heading, and make a link to the talk&lt;br /&gt;
			-- page of the current page with that section heading.&lt;br /&gt;
			local talkTitle = getTitleObject(talk)&lt;br /&gt;
			local talkArgIsTalkPage = true&lt;br /&gt;
			if not talkTitle or not talkTitle.isTalkPage then&lt;br /&gt;
				talkArgIsTalkPage = false&lt;br /&gt;
				talkTitle = getTitleObject(&lt;br /&gt;
					self.title.text,&lt;br /&gt;
					mw.site.namespaces[self.title.namespace].talk.id&lt;br /&gt;
				)&lt;br /&gt;
			end&lt;br /&gt;
			if talkTitle and talkTitle.exists then&lt;br /&gt;
				local talkText = &#039;Relevant discussion may be found on&#039;&lt;br /&gt;
				if talkArgIsTalkPage then&lt;br /&gt;
					talkText = string.format(&lt;br /&gt;
						&#039;%s [[%s|%s]].&#039;,&lt;br /&gt;
						talkText,&lt;br /&gt;
						talk,&lt;br /&gt;
						talkTitle.prefixedText&lt;br /&gt;
					)&lt;br /&gt;
				else&lt;br /&gt;
					talkText = string.format(&lt;br /&gt;
						&#039;%s the [[%s#%s|talk page]].&#039;,&lt;br /&gt;
						talkText,&lt;br /&gt;
						talkTitle.prefixedText,&lt;br /&gt;
						talk&lt;br /&gt;
					)&lt;br /&gt;
				end&lt;br /&gt;
				self.talk = talkText&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Get other values.&lt;br /&gt;
		self.fix = args.fix ~= &#039;&#039; and args.fix or nil&lt;br /&gt;
		local date&lt;br /&gt;
		if args.date and args.date ~= &#039;&#039; then&lt;br /&gt;
			date = args.date&lt;br /&gt;
		elseif args.date == &#039;&#039; and self.isTemplatePage then&lt;br /&gt;
			date = lang:formatDate(&#039;F Y&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		if date then&lt;br /&gt;
			self.date = string.format(&amp;quot; &amp;lt;small&amp;gt;&#039;&#039;(%s)&#039;&#039;&amp;lt;/small&amp;gt;&amp;quot;, date)&lt;br /&gt;
		end&lt;br /&gt;
		self.info = args.info&lt;br /&gt;
		if yesno(args.removalnotice) then&lt;br /&gt;
			self.removalNotice = cfg.removalNotice&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set the non-collapsible text field. At the moment this is used by all box&lt;br /&gt;
	-- types other than ambox, and also by ambox when small=yes.&lt;br /&gt;
	if self.isSmall then&lt;br /&gt;
		self.text = args.smalltext or args.text&lt;br /&gt;
	else&lt;br /&gt;
		self.text = args.text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set the below row.&lt;br /&gt;
	self.below = cfg.below and args.below&lt;br /&gt;
&lt;br /&gt;
	-- General image settings.&lt;br /&gt;
	self.imageCellDiv = not self.isSmall and cfg.imageCellDiv&lt;br /&gt;
	self.imageEmptyCell = cfg.imageEmptyCell&lt;br /&gt;
	if cfg.imageEmptyCellStyle then&lt;br /&gt;
		self.imageEmptyCellStyle = &#039;border:none;padding:0px;width:1px&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Left image settings.&lt;br /&gt;
	local imageLeft = self.isSmall and args.smallimage or args.image&lt;br /&gt;
	if cfg.imageCheckBlank and imageLeft ~= &#039;blank&#039; and imageLeft ~= &#039;none&#039;&lt;br /&gt;
		or not cfg.imageCheckBlank and imageLeft ~= &#039;none&#039;&lt;br /&gt;
	then&lt;br /&gt;
		self.imageLeft = imageLeft&lt;br /&gt;
		if not imageLeft then&lt;br /&gt;
			local imageSize = self.isSmall&lt;br /&gt;
				and (cfg.imageSmallSize or &#039;30x30px&#039;)&lt;br /&gt;
				or &#039;40x40px&#039;&lt;br /&gt;
			self.imageLeft = string.format(&#039;[[File:%s|%s|link=|alt=]]&#039;, self.typeImage&lt;br /&gt;
				or &#039;Imbox notice.png&#039;, imageSize)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Right image settings.&lt;br /&gt;
	local imageRight = self.isSmall and args.smallimageright or args.imageright&lt;br /&gt;
	if not (cfg.imageRightNone and imageRight == &#039;none&#039;) then&lt;br /&gt;
		self.imageRight = imageRight&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:setMainspaceCategories()&lt;br /&gt;
	local args = self.args&lt;br /&gt;
	local cfg = self.cfg&lt;br /&gt;
&lt;br /&gt;
	if not cfg.allowMainspaceCategories then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local nums = {}&lt;br /&gt;
	for _, prefix in ipairs{&#039;cat&#039;, &#039;category&#039;, &#039;all&#039;} do&lt;br /&gt;
		args[prefix .. &#039;1&#039;] = args[prefix]&lt;br /&gt;
		nums = union(nums, getArgNums(args, prefix))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- The following is roughly equivalent to the old {{Ambox/category}}.&lt;br /&gt;
	local date = args.date&lt;br /&gt;
	date = type(date) == &#039;string&#039; and date&lt;br /&gt;
	local preposition = &#039;from&#039;&lt;br /&gt;
	for _, num in ipairs(nums) do&lt;br /&gt;
		local mainCat = args[&#039;cat&#039; .. tostring(num)]&lt;br /&gt;
			or args[&#039;category&#039; .. tostring(num)]&lt;br /&gt;
		local allCat = args[&#039;all&#039; .. tostring(num)]&lt;br /&gt;
		mainCat = type(mainCat) == &#039;string&#039; and mainCat&lt;br /&gt;
		allCat = type(allCat) == &#039;string&#039; and allCat&lt;br /&gt;
		if mainCat and date and date ~= &#039;&#039; then&lt;br /&gt;
			local catTitle = string.format(&#039;%s %s %s&#039;, mainCat, preposition, date)&lt;br /&gt;
			self:addCat(0, catTitle)&lt;br /&gt;
			catTitle = getTitleObject(&#039;Category:&#039; .. catTitle)&lt;br /&gt;
			if not catTitle or not catTitle.exists then&lt;br /&gt;
				self:addCat(0, &#039;Articles with invalid date parameter in template&#039;)&lt;br /&gt;
			end&lt;br /&gt;
		elseif mainCat and (not date or date == &#039;&#039;) then&lt;br /&gt;
			self:addCat(0, mainCat)&lt;br /&gt;
		end&lt;br /&gt;
		if allCat then&lt;br /&gt;
			self:addCat(0, allCat)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:setTemplateCategories()&lt;br /&gt;
	local args = self.args&lt;br /&gt;
	local cfg = self.cfg&lt;br /&gt;
&lt;br /&gt;
	-- Add template categories.&lt;br /&gt;
	if cfg.templateCategory then&lt;br /&gt;
		if cfg.templateCategoryRequireName then&lt;br /&gt;
			if self.isTemplatePage then&lt;br /&gt;
				self:addCat(10, cfg.templateCategory)&lt;br /&gt;
			end&lt;br /&gt;
		elseif not self.title.isSubpage then&lt;br /&gt;
			self:addCat(10, cfg.templateCategory)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add template error categories.&lt;br /&gt;
	if cfg.templateErrorCategory then&lt;br /&gt;
		local templateErrorCategory = cfg.templateErrorCategory&lt;br /&gt;
		local templateCat, templateSort&lt;br /&gt;
		if not self.name and not self.title.isSubpage then&lt;br /&gt;
			templateCat = templateErrorCategory&lt;br /&gt;
		elseif self.isTemplatePage then&lt;br /&gt;
			local paramsToCheck = cfg.templateErrorParamsToCheck or {}&lt;br /&gt;
			local count = 0&lt;br /&gt;
			for i, param in ipairs(paramsToCheck) do&lt;br /&gt;
				if not args[param] then&lt;br /&gt;
					count = count + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if count &amp;gt; 0 then&lt;br /&gt;
				templateCat = templateErrorCategory&lt;br /&gt;
				templateSort = tostring(count)&lt;br /&gt;
			end&lt;br /&gt;
			if self.categoryNums and #self.categoryNums &amp;gt; 0 then&lt;br /&gt;
				templateCat = templateErrorCategory&lt;br /&gt;
				templateSort = &#039;C&#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		self:addCat(10, templateCat, templateSort)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:setAllNamespaceCategories()&lt;br /&gt;
	-- Set categories for all namespaces.&lt;br /&gt;
	if self.invalidTypeError then&lt;br /&gt;
		local allSort = (self.title.namespace == 0 and &#039;Main:&#039; or &#039;&#039;) .. self.title.prefixedText&lt;br /&gt;
		self:addCat(&#039;all&#039;, &#039;Wikipedia message box parameter needs fixing&#039;, allSort)&lt;br /&gt;
	end&lt;br /&gt;
	if self.isSubstituted then&lt;br /&gt;
		self:addCat(&#039;all&#039;, &#039;Pages with incorrectly substituted templates&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:setCategories()&lt;br /&gt;
	if self.title.namespace == 0 then&lt;br /&gt;
		self:setMainspaceCategories()&lt;br /&gt;
	elseif self.title.namespace == 10 then&lt;br /&gt;
		self:setTemplateCategories()&lt;br /&gt;
	end&lt;br /&gt;
	self:setAllNamespaceCategories()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:renderCategories()&lt;br /&gt;
	-- Convert category tables to strings and pass them through&lt;br /&gt;
	-- [[Module:Category handler]].&lt;br /&gt;
	return categoryHandler{&lt;br /&gt;
		main = table.concat(self.categories[0] or {}),&lt;br /&gt;
		template = table.concat(self.categories[10] or {}),&lt;br /&gt;
		all = table.concat(self.categories.all or {}),&lt;br /&gt;
		nocat = self.args.nocat,&lt;br /&gt;
		page = self.args.page&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function MessageBox:export()&lt;br /&gt;
	local root = mw.html.create()&lt;br /&gt;
&lt;br /&gt;
	-- Add the subst check error.&lt;br /&gt;
	if self.isSubstituted and self.name then&lt;br /&gt;
		root:tag(&#039;b&#039;)&lt;br /&gt;
			:addClass(&#039;error&#039;)&lt;br /&gt;
			:wikitext(string.format(&lt;br /&gt;
				&#039;Template &amp;lt;code&amp;gt;%s[[Template:%s|%s]]%s&amp;lt;/code&amp;gt; has been incorrectly substituted.&#039;,&lt;br /&gt;
				mw.text.nowiki(&#039;{{&#039;), self.name, self.name, mw.text.nowiki(&#039;}}&#039;)&lt;br /&gt;
			))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Create the box table.&lt;br /&gt;
	local boxTable = root:tag(&#039;table&#039;)&lt;br /&gt;
	boxTable:attr(&#039;id&#039;, self.id or nil)&lt;br /&gt;
	for i, class in ipairs(self.classes or {}) do&lt;br /&gt;
		boxTable:addClass(class or nil)&lt;br /&gt;
	end&lt;br /&gt;
	boxTable&lt;br /&gt;
		:cssText(self.style or nil)&lt;br /&gt;
		:attr(&#039;role&#039;, &#039;presentation&#039;)&lt;br /&gt;
&lt;br /&gt;
	if self.attrs then&lt;br /&gt;
		boxTable:attr(self.attrs)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add the left-hand image.&lt;br /&gt;
	local row = boxTable:tag(&#039;tr&#039;)&lt;br /&gt;
	if self.imageLeft then&lt;br /&gt;
		local imageLeftCell = row:tag(&#039;td&#039;):addClass(&#039;mbox-image&#039;)&lt;br /&gt;
		if self.imageCellDiv then&lt;br /&gt;
			-- If we are using a div, redefine imageLeftCell so that the image&lt;br /&gt;
			-- is inside it. Divs use style=&amp;quot;width: 52px;&amp;quot;, which limits the&lt;br /&gt;
			-- image width to 52px. If any images in a div are wider than that,&lt;br /&gt;
			-- they may overlap with the text or cause other display problems.&lt;br /&gt;
			imageLeftCell = imageLeftCell:tag(&#039;div&#039;):css(&#039;width&#039;, &#039;52px&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		imageLeftCell:wikitext(self.imageLeft or nil)&lt;br /&gt;
	elseif self.imageEmptyCell then&lt;br /&gt;
		-- Some message boxes define an empty cell if no image is specified, and&lt;br /&gt;
		-- some don&#039;t. The old template code in templates where empty cells are&lt;br /&gt;
		-- specified gives the following hint: &amp;quot;No image. Cell with some width&lt;br /&gt;
		-- or padding necessary for text cell to have 100% width.&amp;quot;&lt;br /&gt;
		row:tag(&#039;td&#039;)&lt;br /&gt;
			:addClass(&#039;mbox-empty-cell&#039;)&lt;br /&gt;
			:cssText(self.imageEmptyCellStyle or nil)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add the text.&lt;br /&gt;
	local textCell = row:tag(&#039;td&#039;):addClass(&#039;mbox-text&#039;)&lt;br /&gt;
	if self.useCollapsibleTextFields then&lt;br /&gt;
		-- The message box uses advanced text parameters that allow things to be&lt;br /&gt;
		-- collapsible. At the moment, only ambox uses this.&lt;br /&gt;
		textCell:cssText(self.textstyle or nil)&lt;br /&gt;
		local textCellDiv = textCell:tag(&#039;div&#039;)&lt;br /&gt;
		textCellDiv&lt;br /&gt;
			:addClass(&#039;mbox-text-span&#039;)&lt;br /&gt;
			:wikitext(self.issue or nil)&lt;br /&gt;
		if (self.talk or self.fix) and not self.isSmall then&lt;br /&gt;
			textCellDiv:tag(&#039;span&#039;)&lt;br /&gt;
				:addClass(&#039;hide-when-compact&#039;)&lt;br /&gt;
				:wikitext(self.talk and (&#039; &#039; .. self.talk) or nil)&lt;br /&gt;
				:wikitext(self.fix and (&#039; &#039; .. self.fix) or nil)&lt;br /&gt;
		end&lt;br /&gt;
		textCellDiv:wikitext(self.date and (&#039; &#039; .. self.date) or nil)&lt;br /&gt;
		if self.info and not self.isSmall then&lt;br /&gt;
			textCellDiv&lt;br /&gt;
				:tag(&#039;span&#039;)&lt;br /&gt;
				:addClass(&#039;hide-when-compact&#039;)&lt;br /&gt;
				:wikitext(self.info and (&#039; &#039; .. self.info) or nil)&lt;br /&gt;
		end&lt;br /&gt;
		if self.removalNotice then&lt;br /&gt;
			textCellDiv:tag(&#039;small&#039;)&lt;br /&gt;
				:addClass(&#039;hide-when-compact&#039;)&lt;br /&gt;
				:tag(&#039;i&#039;)&lt;br /&gt;
					:wikitext(string.format(&amp;quot; (%s)&amp;quot;, self.removalNotice))&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Default text formatting - anything goes.&lt;br /&gt;
		textCell&lt;br /&gt;
			:cssText(self.textstyle or nil)&lt;br /&gt;
			:wikitext(self.text or nil)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add the right-hand image.&lt;br /&gt;
	if self.imageRight then&lt;br /&gt;
		local imageRightCell = row:tag(&#039;td&#039;):addClass(&#039;mbox-imageright&#039;)&lt;br /&gt;
		if self.imageCellDiv then&lt;br /&gt;
			-- If we are using a div, redefine imageRightCell so that the image&lt;br /&gt;
			-- is inside it.&lt;br /&gt;
			imageRightCell = imageRightCell:tag(&#039;div&#039;):css(&#039;width&#039;, &#039;52px&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		imageRightCell&lt;br /&gt;
			:wikitext(self.imageRight or nil)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add the below row.&lt;br /&gt;
	if self.below then&lt;br /&gt;
		boxTable:tag(&#039;tr&#039;)&lt;br /&gt;
			:tag(&#039;td&#039;)&lt;br /&gt;
				:attr(&#039;colspan&#039;, self.imageRight and &#039;3&#039; or &#039;2&#039;)&lt;br /&gt;
				:addClass(&#039;mbox-text&#039;)&lt;br /&gt;
				:cssText(self.textstyle or nil)&lt;br /&gt;
				:wikitext(self.below or nil)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add error message for invalid type parameters.&lt;br /&gt;
	if self.invalidTypeError then&lt;br /&gt;
		root:tag(&#039;div&#039;)&lt;br /&gt;
			:css(&#039;text-align&#039;, &#039;center&#039;)&lt;br /&gt;
			:wikitext(string.format(&lt;br /&gt;
				&#039;This message box is using an invalid &amp;quot;type=%s&amp;quot; parameter and needs fixing.&#039;,&lt;br /&gt;
				self.type or &#039;&#039;&lt;br /&gt;
			))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add categories.&lt;br /&gt;
	root:wikitext(self:renderCategories() or nil)&lt;br /&gt;
&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Exports&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p, mt = {}, {}&lt;br /&gt;
&lt;br /&gt;
function p._exportClasses()&lt;br /&gt;
	-- For testing.&lt;br /&gt;
	return {&lt;br /&gt;
		MessageBox = MessageBox&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(boxType, args, cfgTables)&lt;br /&gt;
	local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))&lt;br /&gt;
	box:setParameters()&lt;br /&gt;
	box:setCategories()&lt;br /&gt;
	return box:export()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function mt.__index(t, k)&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		if not getArgs then&lt;br /&gt;
			getArgs = require(&#039;Module:Arguments&#039;).getArgs&lt;br /&gt;
		end&lt;br /&gt;
		return t.main(k, getArgs(frame, {trim = false, removeBlanks = false}))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return setmetatable(p, mt)&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Lua_banner&amp;diff=28473</id>
		<title>Module:Lua banner</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Lua_banner&amp;diff=28473"/>
		<updated>2018-04-06T09:40:26Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module implements the {{lua}} template.&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local mList = require(&#039;Module:List&#039;)&lt;br /&gt;
local mTableTools = require(&#039;Module:TableTools&#039;)&lt;br /&gt;
local mMessageBox = require(&#039;Module:Message box&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local origArgs = frame:getParent().args&lt;br /&gt;
	local args = {}&lt;br /&gt;
	for k, v in pairs(origArgs) do&lt;br /&gt;
		v = v:match(&#039;^%s*(.-)%s*$&#039;)&lt;br /&gt;
		if v ~= &#039;&#039; then&lt;br /&gt;
			args[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local modules = mTableTools.compressSparseArray(args)&lt;br /&gt;
	local box = p.renderBox(modules)&lt;br /&gt;
	local trackingCategories = p.renderTrackingCategories(args, modules)&lt;br /&gt;
	return box .. trackingCategories&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderBox(modules)&lt;br /&gt;
	local boxArgs = {}&lt;br /&gt;
	if #modules &amp;lt; 1 then&lt;br /&gt;
		boxArgs.text = &#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error: no modules specified&amp;lt;/strong&amp;gt;&#039;&lt;br /&gt;
	else&lt;br /&gt;
		local moduleLinks = {}&lt;br /&gt;
		for i, module in ipairs(modules) do&lt;br /&gt;
			moduleLinks[i] = string.format(&#039;[[:%s]]&#039;, module)&lt;br /&gt;
		end&lt;br /&gt;
		local moduleList = mList.makeList(&#039;bulleted&#039;, moduleLinks)&lt;br /&gt;
		boxArgs.text = &#039;Uses [[Wikipedia:Lua|Lua]]:\n&#039; .. moduleList&lt;br /&gt;
	end&lt;br /&gt;
	boxArgs.type = &#039;notice&#039;&lt;br /&gt;
	boxArgs.small = true&lt;br /&gt;
	boxArgs.image = &#039;[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]&#039;&lt;br /&gt;
	return mMessageBox.main(&#039;mbox&#039;, boxArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderTrackingCategories(args, modules, titleObj)&lt;br /&gt;
	if yesno(args.nocat) then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local cats = {}&lt;br /&gt;
	&lt;br /&gt;
	-- Error category&lt;br /&gt;
	if #modules &amp;lt; 1 then&lt;br /&gt;
		cats[#cats + 1] = &#039;Lua templates with errors&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Lua templates category&lt;br /&gt;
	titleObj = titleObj or mw.title.getCurrentTitle()&lt;br /&gt;
	local subpageBlacklist = {&lt;br /&gt;
		doc = true,&lt;br /&gt;
		sandbox = true,&lt;br /&gt;
		sandbox2 = true,&lt;br /&gt;
		testcases = true&lt;br /&gt;
	}&lt;br /&gt;
	if titleObj.namespace == 10 &lt;br /&gt;
		and not subpageBlacklist[titleObj.subpageText]&lt;br /&gt;
	then&lt;br /&gt;
		local category = args.category&lt;br /&gt;
		if not category then&lt;br /&gt;
			local categories = {&lt;br /&gt;
				[&#039;Module:String&#039;] = &#039;Lua String-based templates&#039;,&lt;br /&gt;
				[&#039;Module:Math&#039;] = &#039;Templates based on the Math Lua module&#039;,&lt;br /&gt;
				[&#039;Module:BaseConvert&#039;] = &#039;Templates based on the BaseConvert Lua module&#039;,&lt;br /&gt;
				[&#039;Module:Citation&#039;] = &#039;Lua-based citation templates&#039;&lt;br /&gt;
			}&lt;br /&gt;
			categories[&#039;Module:Citation/CS1&#039;] = categories[&#039;Module:Citation&#039;]&lt;br /&gt;
			category = modules[1] and categories[modules[1]]&lt;br /&gt;
			category = category or &#039;Lua-based templates&#039;&lt;br /&gt;
		end&lt;br /&gt;
		cats[#cats + 1] = category&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for i, cat in ipairs(cats) do&lt;br /&gt;
		cats[i] = string.format(&#039;[[Category:%s]]&#039;, cat)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(cats)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Infobox&amp;diff=28471</id>
		<title>Module:Infobox</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Infobox&amp;diff=28471"/>
		<updated>2018-04-06T09:40:25Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--&lt;br /&gt;
-- This module implements {{Infobox}}&lt;br /&gt;
--&lt;br /&gt;
 &lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local navbar = require(&#039;Module:Navbar&#039;)._navbar&lt;br /&gt;
&lt;br /&gt;
local args = {}&lt;br /&gt;
local origArgs&lt;br /&gt;
local root&lt;br /&gt;
&lt;br /&gt;
local function notempty( s ) return s and s:match( &#039;%S&#039; ) end&lt;br /&gt;
&lt;br /&gt;
local function fixChildBoxes(sval, tt)&lt;br /&gt;
	if notempty(sval) then&lt;br /&gt;
		local marker = &#039;&amp;lt;span class=special_infobox_marker&amp;gt;&#039;&lt;br /&gt;
		local s = sval&lt;br /&gt;
		s = mw.ustring.gsub(s, &#039;(&amp;lt;%s*[Tt][Rr])&#039;, marker .. &#039;%1&#039;)&lt;br /&gt;
		s = mw.ustring.gsub(s, &#039;(&amp;lt;/[Tt][Rr]%s*&amp;gt;)&#039;, &#039;%1&#039; .. marker)&lt;br /&gt;
		if s:match(marker) then&lt;br /&gt;
			s = mw.ustring.gsub(s, marker .. &#039;%s*&#039; .. marker, &#039;&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, &#039;([\r\n]|-[^\r\n]*[\r\n])%s*&#039; .. marker, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, marker .. &#039;%s*([\r\n]|-)&#039;, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, &#039;(&amp;lt;/[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*&amp;gt;%s*)&#039; .. marker, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, &#039;(&amp;lt;%s*[Tt][Aa][Bb][Ll][Ee][^&amp;lt;&amp;gt;]*&amp;gt;%s*)&#039; .. marker, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, &#039;^(%{|[^\r\n]*[\r\n]%s*)&#039; .. marker, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s, &#039;([\r\n]%{|[^\r\n]*[\r\n]%s*)&#039; .. marker, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s,  marker .. &#039;(%s*&amp;lt;/[Tt][Aa][Bb][Ll][Ee]%s*&amp;gt;)&#039;, &#039;%1&#039;)&lt;br /&gt;
			s = mw.ustring.gsub(s,  marker .. &#039;(%s*\n|%})&#039;, &#039;%1&#039;)&lt;br /&gt;
		end&lt;br /&gt;
		if s:match(marker) then&lt;br /&gt;
			local subcells = mw.text.split(s, marker)&lt;br /&gt;
			s = &#039;&#039;&lt;br /&gt;
			for k = 1, #subcells do&lt;br /&gt;
				if k == 1 then&lt;br /&gt;
					s = s .. subcells[k] .. &#039;&amp;lt;/&#039; .. tt .. &#039;&amp;gt;&amp;lt;/tr&amp;gt;&#039;&lt;br /&gt;
				elseif k == #subcells then&lt;br /&gt;
					local rowstyle = &#039; style=&amp;quot;display:none&amp;quot;&#039;&lt;br /&gt;
					if notempty(subcells[k]) then rowstyle = &#039;&#039;	end&lt;br /&gt;
					s = s .. &#039;&amp;lt;tr&#039; .. rowstyle ..&#039;&amp;gt;&amp;lt;&#039; .. tt .. &#039; colspan=2&amp;gt;\n&#039; .. subcells[k]&lt;br /&gt;
				elseif notempty(subcells[k]) then&lt;br /&gt;
					if (k % 2) == 0 then&lt;br /&gt;
						s = s .. subcells[k]&lt;br /&gt;
					else&lt;br /&gt;
						s = s .. &#039;&amp;lt;tr&amp;gt;&amp;lt;&#039; .. tt .. &#039; colspan=2&amp;gt;\n&#039; .. subcells[k] .. &#039;&amp;lt;/&#039; .. tt .. &#039;&amp;gt;&amp;lt;/tr&amp;gt;&#039;&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return s&lt;br /&gt;
	else&lt;br /&gt;
		return sval&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function union(t1, t2)&lt;br /&gt;
    -- Returns the union of the values of two tables, as a sequence.&lt;br /&gt;
    local vals = {}&lt;br /&gt;
    for k, v in pairs(t1) do&lt;br /&gt;
        vals[v] = true&lt;br /&gt;
    end&lt;br /&gt;
    for k, v in pairs(t2) do&lt;br /&gt;
        vals[v] = true&lt;br /&gt;
    end&lt;br /&gt;
    local ret = {}&lt;br /&gt;
    for k, v in pairs(vals) do&lt;br /&gt;
        table.insert(ret, k)&lt;br /&gt;
    end&lt;br /&gt;
    return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getArgNums(prefix)&lt;br /&gt;
    -- Returns a table containing the numbers of the arguments that exist&lt;br /&gt;
    -- for the specified prefix. For example, if the prefix was &#039;data&#039;, and&lt;br /&gt;
    -- &#039;data1&#039;, &#039;data2&#039;, and &#039;data5&#039; exist, it would return {1, 2, 5}.&lt;br /&gt;
    local nums = {}&lt;br /&gt;
    for k, v in pairs(args) do&lt;br /&gt;
        local num = tostring(k):match(&#039;^&#039; .. prefix .. &#039;([1-9]%d*)$&#039;)&lt;br /&gt;
        if num then table.insert(nums, tonumber(num)) end&lt;br /&gt;
    end&lt;br /&gt;
    table.sort(nums)&lt;br /&gt;
    return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function addRow(rowArgs)&lt;br /&gt;
    -- Adds a row to the infobox, with either a header cell&lt;br /&gt;
    -- or a label/data cell combination.&lt;br /&gt;
    if rowArgs.header then&lt;br /&gt;
        root&lt;br /&gt;
            :tag(&#039;tr&#039;)&lt;br /&gt;
                :addClass(rowArgs.rowclass)&lt;br /&gt;
                :cssText(rowArgs.rowstyle)&lt;br /&gt;
                :attr(&#039;id&#039;, rowArgs.rowid)&lt;br /&gt;
                :tag(&#039;th&#039;)&lt;br /&gt;
                    :attr(&#039;colspan&#039;, 2)&lt;br /&gt;
                    :attr(&#039;id&#039;, rowArgs.headerid)&lt;br /&gt;
                    :addClass(rowArgs.class)&lt;br /&gt;
                    :addClass(args.headerclass)&lt;br /&gt;
                    :css(&#039;text-align&#039;, &#039;center&#039;)&lt;br /&gt;
                    :cssText(args.headerstyle)&lt;br /&gt;
                    :cssText(rowArgs.rowcellstyle)&lt;br /&gt;
                    :wikitext(fixChildBoxes(rowArgs.header, &#039;th&#039;))&lt;br /&gt;
    elseif rowArgs.data then&lt;br /&gt;
        local row = root:tag(&#039;tr&#039;)&lt;br /&gt;
        row:addClass(rowArgs.rowclass)&lt;br /&gt;
        row:cssText(rowArgs.rowstyle)&lt;br /&gt;
        row:attr(&#039;id&#039;, rowArgs.rowid)&lt;br /&gt;
        if rowArgs.label then&lt;br /&gt;
            row&lt;br /&gt;
                :tag(&#039;th&#039;)&lt;br /&gt;
                    :attr(&#039;scope&#039;, &#039;row&#039;)&lt;br /&gt;
                    :attr(&#039;id&#039;, rowArgs.labelid)&lt;br /&gt;
                    :cssText(args.labelstyle)&lt;br /&gt;
                    :cssText(rowArgs.rowcellstyle)&lt;br /&gt;
                    :wikitext(rowArgs.label)&lt;br /&gt;
                    :done()&lt;br /&gt;
        end&lt;br /&gt;
        &lt;br /&gt;
        local dataCell = row:tag(&#039;td&#039;)&lt;br /&gt;
        if not rowArgs.label then &lt;br /&gt;
            dataCell&lt;br /&gt;
                :attr(&#039;colspan&#039;, 2)&lt;br /&gt;
                :css(&#039;text-align&#039;, &#039;center&#039;) &lt;br /&gt;
        end&lt;br /&gt;
        dataCell&lt;br /&gt;
            :attr(&#039;id&#039;, rowArgs.dataid)&lt;br /&gt;
            :addClass(rowArgs.class)&lt;br /&gt;
            :cssText(rowArgs.datastyle)&lt;br /&gt;
            :cssText(rowArgs.rowcellstyle)&lt;br /&gt;
            :newline()&lt;br /&gt;
            :wikitext(fixChildBoxes(rowArgs.data, &#039;td&#039;))&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderTitle()&lt;br /&gt;
    if not args.title then return end&lt;br /&gt;
&lt;br /&gt;
    root&lt;br /&gt;
        :tag(&#039;caption&#039;)&lt;br /&gt;
            :addClass(args.titleclass)&lt;br /&gt;
            :cssText(args.titlestyle)&lt;br /&gt;
            :wikitext(args.title)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderAboveRow()&lt;br /&gt;
    if not args.above then return end&lt;br /&gt;
    &lt;br /&gt;
    root&lt;br /&gt;
        :tag(&#039;tr&#039;)&lt;br /&gt;
            :tag(&#039;th&#039;)&lt;br /&gt;
                :attr(&#039;colspan&#039;, 2)&lt;br /&gt;
                :addClass(args.aboveclass)&lt;br /&gt;
                :css(&#039;text-align&#039;, &#039;center&#039;)&lt;br /&gt;
                :css(&#039;font-size&#039;, &#039;125%&#039;)&lt;br /&gt;
                :css(&#039;font-weight&#039;, &#039;bold&#039;)&lt;br /&gt;
                :cssText(args.abovestyle)&lt;br /&gt;
                :wikitext(fixChildBoxes(args.above,&#039;th&#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderBelowRow()&lt;br /&gt;
    if not args.below then return end&lt;br /&gt;
    &lt;br /&gt;
    root&lt;br /&gt;
        :tag(&#039;tr&#039;)&lt;br /&gt;
            :tag(&#039;td&#039;)&lt;br /&gt;
                :attr(&#039;colspan&#039;, &#039;2&#039;)&lt;br /&gt;
                :addClass(args.belowclass)&lt;br /&gt;
                :css(&#039;text-align&#039;, &#039;center&#039;)&lt;br /&gt;
                :cssText(args.belowstyle)&lt;br /&gt;
                :newline()&lt;br /&gt;
                :wikitext(fixChildBoxes(args.below,&#039;td&#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderSubheaders()&lt;br /&gt;
    if args.subheader then&lt;br /&gt;
        args.subheader1 = args.subheader&lt;br /&gt;
    end&lt;br /&gt;
    if args.subheaderrowclass then&lt;br /&gt;
        args.subheaderrowclass1 = args.subheaderrowclass&lt;br /&gt;
    end&lt;br /&gt;
    local subheadernums = getArgNums(&#039;subheader&#039;)&lt;br /&gt;
    for k, num in ipairs(subheadernums) do&lt;br /&gt;
        addRow({&lt;br /&gt;
            data = args[&#039;subheader&#039; .. tostring(num)],&lt;br /&gt;
            datastyle = args.subheaderstyle or args[&#039;subheaderstyle&#039; .. tostring(num)],&lt;br /&gt;
            class = args.subheaderclass,&lt;br /&gt;
            rowclass = args[&#039;subheaderrowclass&#039; .. tostring(num)]&lt;br /&gt;
        })&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderImages()&lt;br /&gt;
    if args.image then&lt;br /&gt;
        args.image1 = args.image&lt;br /&gt;
    end&lt;br /&gt;
    if args.caption then&lt;br /&gt;
        args.caption1 = args.caption&lt;br /&gt;
    end&lt;br /&gt;
    local imagenums = getArgNums(&#039;image&#039;)&lt;br /&gt;
    for k, num in ipairs(imagenums) do&lt;br /&gt;
        local caption = args[&#039;caption&#039; .. tostring(num)]&lt;br /&gt;
        local data = mw.html.create():wikitext(args[&#039;image&#039; .. tostring(num)])&lt;br /&gt;
        if caption then&lt;br /&gt;
            data&lt;br /&gt;
                :tag(&#039;div&#039;)&lt;br /&gt;
                    :cssText(args.captionstyle)&lt;br /&gt;
                    :wikitext(caption)&lt;br /&gt;
        end&lt;br /&gt;
        addRow({&lt;br /&gt;
            data = tostring(data),&lt;br /&gt;
            datastyle = args.imagestyle,&lt;br /&gt;
            class = args.imageclass,&lt;br /&gt;
            rowclass = args[&#039;imagerowclass&#039; .. tostring(num)]&lt;br /&gt;
        })&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderRows()&lt;br /&gt;
    -- Gets the union of the header and data argument numbers,&lt;br /&gt;
    -- and renders them all in order using addRow.&lt;br /&gt;
    local rownums = union(getArgNums(&#039;header&#039;), getArgNums(&#039;data&#039;))&lt;br /&gt;
    table.sort(rownums)&lt;br /&gt;
    for k, num in ipairs(rownums) do&lt;br /&gt;
        addRow({&lt;br /&gt;
            header = args[&#039;header&#039; .. tostring(num)],&lt;br /&gt;
            label = args[&#039;label&#039; .. tostring(num)],&lt;br /&gt;
            data = args[&#039;data&#039; .. tostring(num)],&lt;br /&gt;
            datastyle = args.datastyle,&lt;br /&gt;
            class = args[&#039;class&#039; .. tostring(num)],&lt;br /&gt;
            rowclass = args[&#039;rowclass&#039; .. tostring(num)],&lt;br /&gt;
            rowstyle = args[&#039;rowstyle&#039; .. tostring(num)],&lt;br /&gt;
            rowcellstyle = args[&#039;rowcellstyle&#039; .. tostring(num)],&lt;br /&gt;
            dataid = args[&#039;dataid&#039; .. tostring(num)],&lt;br /&gt;
            labelid = args[&#039;labelid&#039; .. tostring(num)],&lt;br /&gt;
            headerid = args[&#039;headerid&#039; .. tostring(num)],&lt;br /&gt;
            rowid = args[&#039;rowid&#039; .. tostring(num)]&lt;br /&gt;
        })&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderNavBar()&lt;br /&gt;
    if not args.name then return end&lt;br /&gt;
    &lt;br /&gt;
    root&lt;br /&gt;
        :tag(&#039;tr&#039;)&lt;br /&gt;
            :tag(&#039;td&#039;)&lt;br /&gt;
                :attr(&#039;colspan&#039;, &#039;2&#039;)&lt;br /&gt;
                :css(&#039;text-align&#039;, &#039;right&#039;)&lt;br /&gt;
                :wikitext(navbar{&lt;br /&gt;
                    args.name,&lt;br /&gt;
                    mini = 1,&lt;br /&gt;
                })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderItalicTitle()&lt;br /&gt;
    local italicTitle = args[&#039;italic title&#039;] and mw.ustring.lower(args[&#039;italic title&#039;])&lt;br /&gt;
    if italicTitle == &#039;&#039; or italicTitle == &#039;force&#039; or italicTitle == &#039;yes&#039; then&lt;br /&gt;
        root:wikitext(mw.getCurrentFrame():expandTemplate({title = &#039;italic title&#039;}))&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderTrackingCategories()&lt;br /&gt;
    if args.decat ~= &#039;yes&#039; then&lt;br /&gt;
        if #(getArgNums(&#039;data&#039;)) == 0 and mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
            root:wikitext(&#039;[[Category:Articles which use infobox templates with no data rows]]&#039;)&lt;br /&gt;
        end&lt;br /&gt;
        if args.child == &#039;yes&#039; and args.title then&lt;br /&gt;
            root:wikitext(&#039;[[Category:Pages which use embedded infobox templates with the title parameter]]&#039;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function _infobox()&lt;br /&gt;
    -- Specify the overall layout of the infobox, with special settings&lt;br /&gt;
    -- if the infobox is used as a &#039;child&#039; inside another infobox.&lt;br /&gt;
    if args.child ~= &#039;yes&#039; then&lt;br /&gt;
        root = mw.html.create(&#039;table&#039;)&lt;br /&gt;
        &lt;br /&gt;
        root&lt;br /&gt;
            :addClass((args.subbox ~= &#039;yes&#039;) and &#039;infobox&#039; or nil)&lt;br /&gt;
            :addClass(args.bodyclass)&lt;br /&gt;
            &lt;br /&gt;
            if args.subbox == &#039;yes&#039; then&lt;br /&gt;
                root&lt;br /&gt;
                    :css(&#039;padding&#039;, &#039;0&#039;)&lt;br /&gt;
                    :css(&#039;border&#039;, &#039;none&#039;)&lt;br /&gt;
                    :css(&#039;margin&#039;, &#039;-3px&#039;)&lt;br /&gt;
                    :css(&#039;width&#039;, &#039;auto&#039;)&lt;br /&gt;
                    :css(&#039;min-width&#039;, &#039;100%&#039;)&lt;br /&gt;
                    :css(&#039;font-size&#039;, &#039;100%&#039;)&lt;br /&gt;
                    :css(&#039;clear&#039;, &#039;none&#039;)&lt;br /&gt;
                    :css(&#039;float&#039;, &#039;none&#039;)&lt;br /&gt;
                    :css(&#039;background-color&#039;, &#039;transparent&#039;)&lt;br /&gt;
            else&lt;br /&gt;
                root&lt;br /&gt;
                    :css(&#039;width&#039;, &#039;22em&#039;)&lt;br /&gt;
            end&lt;br /&gt;
        root&lt;br /&gt;
            :cssText(args.bodystyle)&lt;br /&gt;
    &lt;br /&gt;
        renderTitle()&lt;br /&gt;
        renderAboveRow()&lt;br /&gt;
    else&lt;br /&gt;
        root = mw.html.create()&lt;br /&gt;
        &lt;br /&gt;
        root&lt;br /&gt;
            :wikitext(args.title)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    renderSubheaders()&lt;br /&gt;
    renderImages() &lt;br /&gt;
    renderRows() &lt;br /&gt;
    renderBelowRow()  &lt;br /&gt;
    renderNavBar()&lt;br /&gt;
    renderItalicTitle()&lt;br /&gt;
    renderTrackingCategories()&lt;br /&gt;
    &lt;br /&gt;
    return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function preprocessSingleArg(argName)&lt;br /&gt;
    -- If the argument exists and isn&#039;t blank, add it to the argument table.&lt;br /&gt;
    -- Blank arguments are treated as nil to match the behaviour of ParserFunctions.&lt;br /&gt;
    if origArgs[argName] and origArgs[argName] ~= &#039;&#039; then&lt;br /&gt;
        args[argName] = origArgs[argName]&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function preprocessArgs(prefixTable, step)&lt;br /&gt;
    -- Assign the parameters with the given prefixes to the args table, in order, in batches&lt;br /&gt;
    -- of the step size specified. This is to prevent references etc. from appearing in the&lt;br /&gt;
    -- wrong order. The prefixTable should be an array containing tables, each of which has&lt;br /&gt;
    -- two possible fields, a &amp;quot;prefix&amp;quot; string and a &amp;quot;depend&amp;quot; table. The function always parses&lt;br /&gt;
    -- parameters containing the &amp;quot;prefix&amp;quot; string, but only parses parameters in the &amp;quot;depend&amp;quot;&lt;br /&gt;
    -- table if the prefix parameter is present and non-blank.&lt;br /&gt;
    if type(prefixTable) ~= &#039;table&#039; then&lt;br /&gt;
        error(&amp;quot;Non-table value detected for the prefix table&amp;quot;, 2)&lt;br /&gt;
    end&lt;br /&gt;
    if type(step) ~= &#039;number&#039; then&lt;br /&gt;
        error(&amp;quot;Invalid step value detected&amp;quot;, 2)&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Get arguments without a number suffix, and check for bad input.&lt;br /&gt;
    for i,v in ipairs(prefixTable) do&lt;br /&gt;
        if type(v) ~= &#039;table&#039; or type(v.prefix) ~= &amp;quot;string&amp;quot; or (v.depend and type(v.depend) ~= &#039;table&#039;) then&lt;br /&gt;
            error(&#039;Invalid input detected to preprocessArgs prefix table&#039;, 2)&lt;br /&gt;
        end&lt;br /&gt;
        preprocessSingleArg(v.prefix)&lt;br /&gt;
        -- Only parse the depend parameter if the prefix parameter is present and not blank.&lt;br /&gt;
        if args[v.prefix] and v.depend then&lt;br /&gt;
            for j, dependValue in ipairs(v.depend) do&lt;br /&gt;
                if type(dependValue) ~= &#039;string&#039; then&lt;br /&gt;
                    error(&#039;Invalid &amp;quot;depend&amp;quot; parameter value detected in preprocessArgs&#039;)&lt;br /&gt;
                end&lt;br /&gt;
                preprocessSingleArg(dependValue)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Get arguments with number suffixes.&lt;br /&gt;
    local a = 1 -- Counter variable.&lt;br /&gt;
    local moreArgumentsExist = true&lt;br /&gt;
    while moreArgumentsExist == true do&lt;br /&gt;
        moreArgumentsExist = false&lt;br /&gt;
        for i = a, a + step - 1 do&lt;br /&gt;
            for j,v in ipairs(prefixTable) do&lt;br /&gt;
                local prefixArgName = v.prefix .. tostring(i)&lt;br /&gt;
                if origArgs[prefixArgName] then&lt;br /&gt;
                    moreArgumentsExist = true -- Do another loop if any arguments are found, even blank ones.&lt;br /&gt;
                    preprocessSingleArg(prefixArgName)&lt;br /&gt;
                end&lt;br /&gt;
                -- Process the depend table if the prefix argument is present and not blank, or&lt;br /&gt;
                -- we are processing &amp;quot;prefix1&amp;quot; and &amp;quot;prefix&amp;quot; is present and not blank, and&lt;br /&gt;
                -- if the depend table is present.&lt;br /&gt;
                if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then&lt;br /&gt;
                    for j,dependValue in ipairs(v.depend) do&lt;br /&gt;
                        local dependArgName = dependValue .. tostring(i)&lt;br /&gt;
                        preprocessSingleArg(dependArgName)&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        a = a + step&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.infobox(frame)&lt;br /&gt;
    -- If called via #invoke, use the args passed into the invoking template.&lt;br /&gt;
    -- Otherwise, for testing purposes, assume args are being passed directly in.&lt;br /&gt;
    if frame == mw.getCurrentFrame() then&lt;br /&gt;
        origArgs = frame:getParent().args&lt;br /&gt;
    else&lt;br /&gt;
        origArgs = frame&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Parse the data parameters in the same order that the old {{infobox}} did, so that&lt;br /&gt;
    -- references etc. will display in the expected places. Parameters that depend on&lt;br /&gt;
    -- another parameter are only processed if that parameter is present, to avoid&lt;br /&gt;
    -- phantom references appearing in article reference lists.&lt;br /&gt;
    preprocessSingleArg(&#039;child&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;bodyclass&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;subbox&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;bodystyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;title&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;titleclass&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;titlestyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;above&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;aboveclass&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;abovestyle&#039;)&lt;br /&gt;
    preprocessArgs({&lt;br /&gt;
        {prefix = &#039;subheader&#039;, depend = {&#039;subheaderstyle&#039;, &#039;subheaderrowclass&#039;}}&lt;br /&gt;
    }, 10)&lt;br /&gt;
    preprocessSingleArg(&#039;subheaderstyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;subheaderclass&#039;)&lt;br /&gt;
    preprocessArgs({&lt;br /&gt;
        {prefix = &#039;image&#039;, depend = {&#039;caption&#039;, &#039;imagerowclass&#039;}}&lt;br /&gt;
    }, 10)&lt;br /&gt;
    preprocessSingleArg(&#039;captionstyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;imagestyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;imageclass&#039;)&lt;br /&gt;
    preprocessArgs({&lt;br /&gt;
        {prefix = &#039;header&#039;},&lt;br /&gt;
        {prefix = &#039;data&#039;, depend = {&#039;label&#039;}},&lt;br /&gt;
        {prefix = &#039;rowclass&#039;},&lt;br /&gt;
        {prefix = &#039;rowstyle&#039;},&lt;br /&gt;
        {prefix = &#039;rowcellstyle&#039;},&lt;br /&gt;
        {prefix = &#039;class&#039;},&lt;br /&gt;
        {prefix = &#039;dataid&#039;},&lt;br /&gt;
        {prefix = &#039;labelid&#039;},&lt;br /&gt;
        {prefix = &#039;headerid&#039;},&lt;br /&gt;
        {prefix = &#039;rowid&#039;}&lt;br /&gt;
    }, 50)&lt;br /&gt;
    preprocessSingleArg(&#039;headerclass&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;headerstyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;labelstyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;datastyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;below&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;belowclass&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;belowstyle&#039;)&lt;br /&gt;
    preprocessSingleArg(&#039;name&#039;)&lt;br /&gt;
    args[&#039;italic title&#039;] = origArgs[&#039;italic title&#039;] -- different behaviour if blank or absent&lt;br /&gt;
    preprocessSingleArg(&#039;decat&#039;)&lt;br /&gt;
 &lt;br /&gt;
    return _infobox()&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Hatnote&amp;diff=28469</id>
		<title>Module:Hatnote</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Hatnote&amp;diff=28469"/>
		<updated>2018-04-06T09:40:24Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--------------------------------------------------------------------------------&lt;br /&gt;
--                              Module:Hatnote                                --&lt;br /&gt;
--                                                                            --&lt;br /&gt;
-- This module produces hatnote links and links to related articles. It       --&lt;br /&gt;
-- implements the {{hatnote}} and {{format link}} meta-templates and includes --&lt;br /&gt;
-- helper functions for other Lua hatnote modules.                            --&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local libraryUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
local mArguments -- lazily initialise [[Module:Arguments]]&lt;br /&gt;
local yesno -- lazily initialise [[Module:Yesno]]&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function getArgs(frame)&lt;br /&gt;
	-- Fetches the arguments from the parent frame. Whitespace is trimmed and&lt;br /&gt;
	-- blanks are removed.&lt;br /&gt;
	mArguments = require(&#039;Module:Arguments&#039;)&lt;br /&gt;
	return mArguments.getArgs(frame, {parentOnly = true})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removeInitialColon(s)&lt;br /&gt;
	-- Removes the initial colon from a string, if present.&lt;br /&gt;
	return s:match(&#039;^:?(.*)&#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.findNamespaceId(link, removeColon)&lt;br /&gt;
	-- Finds the namespace id (namespace number) of a link or a pagename. This&lt;br /&gt;
	-- function will not work if the link is enclosed in double brackets. Colons&lt;br /&gt;
	-- are trimmed from the start of the link by default. To skip colon&lt;br /&gt;
	-- trimming, set the removeColon parameter to false.&lt;br /&gt;
	checkType(&#039;findNamespaceId&#039;, 1, link, &#039;string&#039;)&lt;br /&gt;
	checkType(&#039;findNamespaceId&#039;, 2, removeColon, &#039;boolean&#039;, true)&lt;br /&gt;
	if removeColon ~= false then&lt;br /&gt;
		link = removeInitialColon(link)&lt;br /&gt;
	end&lt;br /&gt;
	local namespace = link:match(&#039;^(.-):&#039;)&lt;br /&gt;
	if namespace then&lt;br /&gt;
		local nsTable = mw.site.namespaces[namespace]&lt;br /&gt;
		if nsTable then&lt;br /&gt;
			return nsTable.id&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.formatPages(...)&lt;br /&gt;
	-- Formats a list of pages using formatLink and returns it as an array. Nil&lt;br /&gt;
	-- values are not allowed.&lt;br /&gt;
	local pages = {...}&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for i, page in ipairs(pages) do&lt;br /&gt;
		ret[i] = p._formatLink(page)&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.formatPageTables(...)&lt;br /&gt;
	-- Takes a list of page/display tables and returns it as a list of&lt;br /&gt;
	-- formatted links. Nil values are not allowed.&lt;br /&gt;
	local pages = {...}&lt;br /&gt;
	local links = {}&lt;br /&gt;
	for i, t in ipairs(pages) do&lt;br /&gt;
		checkType(&#039;formatPageTables&#039;, i, t, &#039;table&#039;)&lt;br /&gt;
		local link = t[1]&lt;br /&gt;
		local display = t[2]&lt;br /&gt;
		links[i] = p._formatLink(link, display)&lt;br /&gt;
	end&lt;br /&gt;
	return links&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeWikitextError(msg, helpLink, addTrackingCategory, title)&lt;br /&gt;
	-- Formats an error message to be returned to wikitext. If&lt;br /&gt;
	-- addTrackingCategory is not false after being returned from&lt;br /&gt;
	-- [[Module:Yesno]], and if we are not on a talk page, a tracking category&lt;br /&gt;
	-- is added.&lt;br /&gt;
	checkType(&#039;makeWikitextError&#039;, 1, msg, &#039;string&#039;)&lt;br /&gt;
	checkType(&#039;makeWikitextError&#039;, 2, helpLink, &#039;string&#039;, true)&lt;br /&gt;
	yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
	title = title or mw.title.getCurrentTitle()&lt;br /&gt;
	-- Make the help link text.&lt;br /&gt;
	local helpText&lt;br /&gt;
	if helpLink then&lt;br /&gt;
		helpText = &#039; ([[&#039; .. helpLink .. &#039;|help]])&#039;&lt;br /&gt;
	else&lt;br /&gt;
		helpText = &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	-- Make the category text.&lt;br /&gt;
	local category&lt;br /&gt;
	if not title.isTalkPage and yesno(addTrackingCategory) ~= false then&lt;br /&gt;
		category = &#039;Hatnote templates with errors&#039;&lt;br /&gt;
		category = string.format(&lt;br /&gt;
			&#039;[[%s:%s]]&#039;,&lt;br /&gt;
			mw.site.namespaces[14].name,&lt;br /&gt;
			category&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		category = &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error: %s%s.&amp;lt;/strong&amp;gt;%s&#039;,&lt;br /&gt;
		msg,&lt;br /&gt;
		helpText,&lt;br /&gt;
		category&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.disambiguate(page, disambiguator)&lt;br /&gt;
	-- Formats a page title with a disambiguation parenthetical,&lt;br /&gt;
	-- i.e. &amp;quot;Example&amp;quot; → &amp;quot;Example (disambiguation)&amp;quot;.&lt;br /&gt;
	checkType(&#039;disambiguate&#039;, 1, page, &#039;string&#039;)&lt;br /&gt;
	checkType(&#039;disambiguate&#039;, 2, disambiguator, &#039;string&#039;, true)&lt;br /&gt;
	disambiguator = disambiguator or &#039;disambiguation&#039;&lt;br /&gt;
	return string.format(&#039;%s (%s)&#039;, page, disambiguator)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Format link&lt;br /&gt;
--&lt;br /&gt;
-- Makes a wikilink from the given link and display values. Links are escaped&lt;br /&gt;
-- with colons if necessary, and links to sections are detected and displayed&lt;br /&gt;
-- with &amp;quot; § &amp;quot; as a separator rather than the standard MediaWiki &amp;quot;#&amp;quot;. Used in&lt;br /&gt;
-- the {{format hatnote link}} template.&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.formatLink(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local link = args[1]&lt;br /&gt;
	local display = args[2]&lt;br /&gt;
	if not link then&lt;br /&gt;
		return p.makeWikitextError(&lt;br /&gt;
			&#039;no link specified&#039;,&lt;br /&gt;
			&#039;Template:Format hatnote link#Errors&#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&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;
	checkType(&#039;_formatLink&#039;, 1, link, &#039;string&#039;)&lt;br /&gt;
	checkType(&#039;_formatLink&#039;, 2, display, &#039;string&#039;, true)&lt;br /&gt;
&lt;br /&gt;
	-- Remove the initial colon for links where it was specified manually.&lt;br /&gt;
	link = removeInitialColon(link)&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(&#039;^(.-)|(.*)$&#039;)&lt;br /&gt;
		link = prePipe or link&lt;br /&gt;
		display = postPipe&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(&#039;^(.-)#(.*)$&#039;)&lt;br /&gt;
		if page then&lt;br /&gt;
			display = page .. &#039; §&amp;amp;nbsp;&#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(&lt;br /&gt;
			&#039;[[:%s|%s]]&#039;,&lt;br /&gt;
			string.gsub(link, &#039;|(.*)$&#039;, &#039;&#039;), --display overwrites manual piping&lt;br /&gt;
			display&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		return string.format(&#039;[[:%s]]&#039;, link)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Hatnote&lt;br /&gt;
--&lt;br /&gt;
-- Produces standard hatnote text. Implements the {{hatnote}} template.&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.hatnote(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local s = args[1]&lt;br /&gt;
	local options = {}&lt;br /&gt;
	if not s then&lt;br /&gt;
		return p.makeWikitextError(&lt;br /&gt;
			&#039;no text specified&#039;,&lt;br /&gt;
			&#039;Template:Hatnote#Errors&#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	options.extraclasses = args.extraclasses&lt;br /&gt;
	options.selfref = args.selfref&lt;br /&gt;
	return p._hatnote(s, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._hatnote(s, options)&lt;br /&gt;
	checkType(&#039;_hatnote&#039;, 1, s, &#039;string&#039;)&lt;br /&gt;
	checkType(&#039;_hatnote&#039;, 2, options, &#039;table&#039;, true)&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	local classes = {&#039;hatnote&#039;, &#039;navigation-not-searchable&#039;}&lt;br /&gt;
	local extraclasses = options.extraclasses&lt;br /&gt;
	local selfref = options.selfref&lt;br /&gt;
	if type(extraclasses) == &#039;string&#039; then&lt;br /&gt;
		classes[#classes + 1] = extraclasses&lt;br /&gt;
	end&lt;br /&gt;
	if selfref then&lt;br /&gt;
		classes[#classes + 1] = &#039;selfref&#039;&lt;br /&gt;
	end&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&#039;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;%s&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&#039;,&lt;br /&gt;
		table.concat(classes, &#039; &#039;),&lt;br /&gt;
		s&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Color_contrast&amp;diff=28467</id>
		<title>Module:Color contrast</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Color_contrast&amp;diff=28467"/>
		<updated>2018-04-06T09:40:23Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--&lt;br /&gt;
-- This module implements &lt;br /&gt;
--  {{Color contrast ratio}}&lt;br /&gt;
--  {{Greater color contrast ratio}}&lt;br /&gt;
--  {{ColorToLum}}&lt;br /&gt;
--  {{RGBColorToLum}}&lt;br /&gt;
--&lt;br /&gt;
local p = {}&lt;br /&gt;
local HTMLcolor = mw.loadData( &#039;Module:Color contrast/colors&#039; )&lt;br /&gt;
&lt;br /&gt;
local function sRGB ( v ) &lt;br /&gt;
	if (v &amp;lt;= 0.03928) then &lt;br /&gt;
		v = v / 12.92&lt;br /&gt;
	else&lt;br /&gt;
		v = math.pow((v+0.055)/1.055, 2.4)&lt;br /&gt;
	end&lt;br /&gt;
	return v&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function rgbdec2lum( R, G, B )&lt;br /&gt;
	if ( 0 &amp;lt;= R and R &amp;lt; 256 and 0 &amp;lt;= G and G &amp;lt; 256 and 0 &amp;lt;= B and B &amp;lt; 256 ) then&lt;br /&gt;
		return 0.2126 * sRGB(R/255) + 0.7152 * sRGB(G/255) + 0.0722 * sRGB(B/255)&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function hsl2lum( h, s, l )&lt;br /&gt;
	if ( 0 &amp;lt;= h and h &amp;lt; 360 and 0 &amp;lt;= s and s &amp;lt;= 1 and 0 &amp;lt;= l and l &amp;lt;= 1 ) then&lt;br /&gt;
		local c = (1 - math.abs(2*l - 1))*s&lt;br /&gt;
		local x = c*(1 - math.abs( math.fmod(h/60, 2) - 1) )&lt;br /&gt;
		local m = l - c/2&lt;br /&gt;
&lt;br /&gt;
		local r, g, b = m, m, m&lt;br /&gt;
		if( 0 &amp;lt;= h and h &amp;lt; 60 ) then&lt;br /&gt;
			r = r + c&lt;br /&gt;
			g = g + x&lt;br /&gt;
		elseif( 60 &amp;lt;= h and h &amp;lt; 120 ) then&lt;br /&gt;
			r = r + x&lt;br /&gt;
			g = g + c&lt;br /&gt;
		elseif( 120 &amp;lt;= h and h &amp;lt; 180 ) then&lt;br /&gt;
			g = g + c&lt;br /&gt;
			b = b + x&lt;br /&gt;
		elseif( 180 &amp;lt;= h and h &amp;lt; 240 ) then&lt;br /&gt;
			g = g + x&lt;br /&gt;
			b = b + c&lt;br /&gt;
		elseif( 240 &amp;lt;= h and h &amp;lt; 300 ) then&lt;br /&gt;
			r = r + x&lt;br /&gt;
			b = b + c&lt;br /&gt;
		elseif( 300 &amp;lt;= h and h &amp;lt; 360 ) then&lt;br /&gt;
			r = r + c&lt;br /&gt;
			b = b + x&lt;br /&gt;
		end&lt;br /&gt;
		return rgbdec2lum(255*r, 255*g, 255*b)&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function color2lum( c )&lt;br /&gt;
&lt;br /&gt;
	if (c == nil) then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	-- whitespace&lt;br /&gt;
	c = c:match( &#039;^%s*(.-)[%s;]*$&#039; )&lt;br /&gt;
&lt;br /&gt;
	-- unstrip nowiki strip markers&lt;br /&gt;
	c = mw.text.unstripNoWiki(c)&lt;br /&gt;
&lt;br /&gt;
	-- lowercase&lt;br /&gt;
	c = c:lower()&lt;br /&gt;
&lt;br /&gt;
	-- first try to look it up&lt;br /&gt;
	local L = HTMLcolor[c]&lt;br /&gt;
	if (L ~= nil) then&lt;br /&gt;
		return L&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
   	-- convert from hsl&lt;br /&gt;
   	if mw.ustring.match(c,&#039;^hsl%([%s]*[0-9][0-9%.]*[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$&#039;) then&lt;br /&gt;
		local h, s, l = mw.ustring.match(c,&#039;^hsl%([%s]*([0-9][0-9%.]*)[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$&#039;)&lt;br /&gt;
		return hsl2lum(tonumber(h), tonumber(s)/100, tonumber(l)/100)&lt;br /&gt;
   	end&lt;br /&gt;
&lt;br /&gt;
   	-- convert from rgb&lt;br /&gt;
   	if mw.ustring.match(c,&#039;^rgb%([%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*%)$&#039;) then&lt;br /&gt;
		local R, G, B = mw.ustring.match(c,&#039;^rgb%([%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*%)$&#039;)&lt;br /&gt;
		return rgbdec2lum(tonumber(R), tonumber(G), tonumber(B))&lt;br /&gt;
   	end&lt;br /&gt;
&lt;br /&gt;
   	-- convert from rgb percent&lt;br /&gt;
   	if mw.ustring.match(c,&#039;^rgb%([%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$&#039;) then&lt;br /&gt;
		local R, G, B = mw.ustring.match(c,&#039;^rgb%([%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$&#039;)&lt;br /&gt;
		return rgbdec2lum(255*tonumber(R)/100, 255*tonumber(G)/100, 255*tonumber(B)/100)&lt;br /&gt;
   	end&lt;br /&gt;
&lt;br /&gt;
	-- remove leading # (if there is one) and whitespace&lt;br /&gt;
	c = mw.ustring.match(c, &#039;^[%s#]*([a-f0-9]*)[%s]*$&#039;)&lt;br /&gt;
&lt;br /&gt;
	-- split into rgb&lt;br /&gt;
	local cs = mw.text.split(c or &#039;&#039;, &#039;&#039;)&lt;br /&gt;
	if( #cs == 6 ) then&lt;br /&gt;
		local R = 16*tonumber(&#039;0x&#039; .. cs[1]) + tonumber(&#039;0x&#039; .. cs[2])&lt;br /&gt;
		local G = 16*tonumber(&#039;0x&#039; .. cs[3]) + tonumber(&#039;0x&#039; .. cs[4])&lt;br /&gt;
		local B = 16*tonumber(&#039;0x&#039; .. cs[5]) + tonumber(&#039;0x&#039; .. cs[6])&lt;br /&gt;
&lt;br /&gt;
		return rgbdec2lum(R, G, B)&lt;br /&gt;
	elseif ( #cs == 3 ) then&lt;br /&gt;
		local R = 16*tonumber(&#039;0x&#039; .. cs[1]) + tonumber(&#039;0x&#039; .. cs[1])&lt;br /&gt;
		local G = 16*tonumber(&#039;0x&#039; .. cs[2]) + tonumber(&#039;0x&#039; .. cs[2])&lt;br /&gt;
		local B = 16*tonumber(&#039;0x&#039; .. cs[3]) + tonumber(&#039;0x&#039; .. cs[3])&lt;br /&gt;
&lt;br /&gt;
		return rgbdec2lum(R, G, B)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- failure, return blank&lt;br /&gt;
	return &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._greatercontrast(args)&lt;br /&gt;
	local bias = tonumber(args[&#039;bias&#039;] or &#039;0&#039;) or 0&lt;br /&gt;
	local css = (args[&#039;css&#039;] and args[&#039;css&#039;] ~= &#039;&#039;) and true or false&lt;br /&gt;
	local v1 = color2lum(args[1] or &#039;&#039;)&lt;br /&gt;
	local c2 = args[2] or &#039;#FFFFFF&#039;&lt;br /&gt;
	local v2 = color2lum(c2)&lt;br /&gt;
	local c3 = args[3] or &#039;#000000&#039;&lt;br /&gt;
	local v3 = color2lum(c3)&lt;br /&gt;
	local ratio1 = -1;&lt;br /&gt;
	local ratio2 = -1;&lt;br /&gt;
	if (type(v1) == &#039;number&#039; and type(v2) == &#039;number&#039;) then&lt;br /&gt;
		ratio1 = (v2 + 0.05)/(v1 + 0.05)&lt;br /&gt;
		ratio1 = (ratio1 &amp;lt; 1) and 1/ratio1 or ratio1&lt;br /&gt;
	end&lt;br /&gt;
	if (type(v1) == &#039;number&#039; and type(v3) == &#039;number&#039;) then&lt;br /&gt;
		ratio2 = (v3 + 0.05)/(v1 + 0.05)&lt;br /&gt;
		ratio2 = (ratio2 &amp;lt; 1) and 1/ratio2 or ratio2&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if css then&lt;br /&gt;
		local c1 = args[1] or &#039;&#039;&lt;br /&gt;
		if mw.ustring.match(c1, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) or&lt;br /&gt;
			mw.ustring.match(c1, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) then&lt;br /&gt;
				c1 = &#039;#&#039; .. c1&lt;br /&gt;
		end&lt;br /&gt;
		if mw.ustring.match(c2, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) or&lt;br /&gt;
			mw.ustring.match(c2, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) then&lt;br /&gt;
				c2 = &#039;#&#039; .. c2&lt;br /&gt;
		end&lt;br /&gt;
		if mw.ustring.match(v3, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) or&lt;br /&gt;
			mw.ustring.match(v3, &#039;^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$&#039;) then&lt;br /&gt;
				c3 = &#039;#&#039; .. c3&lt;br /&gt;
		end&lt;br /&gt;
		return &#039;background-color:&#039; .. c1 .. &#039;; color:&#039; .. ((ratio1 &amp;gt; 0) and (ratio2 &amp;gt; 0) and ((ratio1 + bias &amp;gt; ratio2) and c2 or c3) or &#039;&#039;) .. &#039;;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return (ratio1 &amp;gt; 0) and (ratio2 &amp;gt; 0) and ((ratio1 + bias &amp;gt; ratio2) and c2 or c3) or &#039;&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._ratio(args)&lt;br /&gt;
	local v1 = color2lum(args[1])&lt;br /&gt;
	local v2 = color2lum(args[2])&lt;br /&gt;
	if (type(v1) == &#039;number&#039; and type(v2) == &#039;number&#039;) then&lt;br /&gt;
		-- v1 should be the brighter of the two.&lt;br /&gt;
		if v2 &amp;gt; v1 then&lt;br /&gt;
			v1, v2 = v2, v1&lt;br /&gt;
		end&lt;br /&gt;
		return (v1 + 0.05)/(v2 + 0.05)&lt;br /&gt;
	else&lt;br /&gt;
		return args[&#039;error&#039;] or &#039;?&#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._styleratio(args)&lt;br /&gt;
	local style = (args[1] or &#039;&#039;):lower()&lt;br /&gt;
	local bg, fg = &#039;white&#039;, &#039;black&#039;&lt;br /&gt;
	local lum_bg, lum_fg = 1, 0&lt;br /&gt;
&lt;br /&gt;
	if args[2] then&lt;br /&gt;
		local lum = color2lum(args[2])&lt;br /&gt;
		if lum ~= &#039;&#039; then bg, lum_bg = args[2], lum end&lt;br /&gt;
	end&lt;br /&gt;
	if args[3] then&lt;br /&gt;
		local lum = color2lum(args[3])&lt;br /&gt;
		if lum ~= &#039;&#039; then fg, lum_fg = args[3], lum end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(style or &#039;&#039;, &#039;&amp;amp;#[Xx]23;&#039;, &#039;#&#039;), &#039;&amp;amp;#35;&#039;, &#039;#&#039;), &#039;;&#039;)&lt;br /&gt;
	for k = 1,#slist do&lt;br /&gt;
		local s = slist[k]&lt;br /&gt;
		local k,v = s:match( &#039;^[%s]*([^:]-):([^:]-)[%s;]*$&#039; )&lt;br /&gt;
		k = k or &#039;&#039;&lt;br /&gt;
		v = v or &#039;&#039;&lt;br /&gt;
		if (k:match(&#039;^[%s]*(background)[%s]*$&#039;) or k:match(&#039;^[%s]*(background%-color)[%s]*$&#039;)) then&lt;br /&gt;
			local lum = color2lum(v)&lt;br /&gt;
			if( lum ~= &#039;&#039; ) then bg, lum_bg = v, lum end&lt;br /&gt;
		elseif (k:match(&#039;^[%s]*(color)[%s]*$&#039;)) then&lt;br /&gt;
			local lum = color2lum(v)&lt;br /&gt;
			if( lum ~= &#039;&#039; ) then bg, lum_fg = v, lum end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if lum_bg &amp;gt; lum_fg then&lt;br /&gt;
		return (lum_bg + 0.05)/(lum_fg + 0.05)&lt;br /&gt;
	else&lt;br /&gt;
		return (lum_fg + 0.05)/(lum_bg + 0.05)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.lum(frame)&lt;br /&gt;
	return color2lum(frame.args[1] or frame:getParent().args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.ratio(frame)&lt;br /&gt;
	local args = frame.args[1] and frame.args or frame:getParent().args&lt;br /&gt;
	return p._ratio(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.styleratio(frame)&lt;br /&gt;
	local args = frame.args[1] and frame.args or frame:getParent().args&lt;br /&gt;
	return p._styleratio(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.greatercontrast(frame)&lt;br /&gt;
	local args = frame.args[1] and frame.args or frame:getParent().args&lt;br /&gt;
	return p._greatercontrast(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Whitelist&amp;diff=28465</id>
		<title>Module:Citation/CS1/Whitelist</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Whitelist&amp;diff=28465"/>
		<updated>2018-04-06T09:40:22Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
--[[--------------------------&amp;lt; P A R A M E T E R S   N O T   S U P P O R T E D &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
This is a list of parameters that once were but now are no longer supported:&lt;br /&gt;
&lt;br /&gt;
	[&#039;albumlink&#039;] = nil,			-- unique alias of titlelink used by old cite AV media notes&lt;br /&gt;
	[&#039;albumtype&#039;] = nil,			-- controled inappropriate functionality in the old cite AV media notes&lt;br /&gt;
	[&#039;artist&#039;] = nil,				-- unique alias of others used by old cite AV media notes&lt;br /&gt;
	[&#039;ARXIV&#039;] = nil,				-- not an initialization&lt;br /&gt;
	[&#039;Author&#039;] = nil,				-- non-standard capitalization&lt;br /&gt;
	[&#039;authorformat&#039;] = nil,			-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;author-format&#039;] = nil,		-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;author-name-separator&#039;] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;author-separator&#039;] = nil,		-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;began&#039;] = nil,				-- module handles date ranges; cite episode and cite series&lt;br /&gt;
	[&#039;BIBCODE&#039;] = nil,				-- not an initialization&lt;br /&gt;
	[&#039;callsign&#039;] = nil,				-- cite interview removed&lt;br /&gt;
	[&#039;call-sign&#039;] = nil,			-- cite interview removed&lt;br /&gt;
	[&#039;chapterlink&#039;] = nil,			-- if ever necessary to link to a chapter article, |chapter= can be wikilinked &lt;br /&gt;
	[&#039;chapter-link&#039;] = nil,			-- &lt;br /&gt;
	[&#039;city&#039;] = nil,					-- cite interview removed&lt;br /&gt;
	[&#039;coauthor&#039;] = nil,				-- redundant to |authorn=; not made part of metadata&lt;br /&gt;
	[&#039;coauthors&#039;] = nil,			-- redundant to |authorn=; not made part of metadata&lt;br /&gt;
	[&#039;cointerviewers&#039;] = nil,		-- unique alias of others used by old cite interview&lt;br /&gt;
	[&#039;day&#039;] = nil,					-- deprecated in {{citation/core}} and somehow undeprecated in Module:Citation/CS1 and now finally removed&lt;br /&gt;
	[&#039;director&#039;] = nil,				-- unique alias of author used by old cite DVD-notes&lt;br /&gt;
	[&#039;doi_brokendate&#039;] = nil,                  -- alias of doi-broken-date&lt;br /&gt;
	[&#039;doi_inactivedate&#039;] = nil,                  -- alias of doi-inactive-date&lt;br /&gt;
	[&#039;DoiBroken&#039;] = nil,			-- not used, non-standard captialization&lt;br /&gt;
	[&#039;Editor&#039;] = nil,				-- non-standard capitalization&lt;br /&gt;
	[&#039;editorformat&#039;] = nil,			-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;EditorSurname&#039;] = nil,		-- non-standard capitalization&lt;br /&gt;
	[&#039;editor-format&#039;] = nil,		-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;EditorGiven&#039;] = nil,			-- non-standard capitalization&lt;br /&gt;
	[&#039;editor-name-separator&#039;] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;editor-separator&#039;] = nil,		-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;Embargo&#039;] = nil,				-- not used, non-standard capitalization&lt;br /&gt;
	[&#039;ended&#039;] = nil,				-- module handles date ranges; cite episode and cite series&lt;br /&gt;
	[&#039;month&#039;] = nil,				-- functionality supported by |date=&lt;br /&gt;
	[&#039;name-separator&#039;] = nil,		-- primarily used to support Vancouver format which functionality now part of name-list-format&lt;br /&gt;
	[&#039;notestitle&#039;] = nil,			-- unique alias of chapter used by old cite AV media notes&lt;br /&gt;
	[&#039;PPrefix&#039;] = nil,				-- non-standard capitalization&lt;br /&gt;
	[&#039;PPPrefix&#039;] = nil,				-- not used, non-standard capitalization&lt;br /&gt;
	[&#039;pp-prefix&#039;] = nil,			-- not used, not documented&lt;br /&gt;
	[&#039;p-prefix&#039;] = nil,				-- not used, not documented&lt;br /&gt;
	[&#039;program&#039;] = nil,				-- cite interview removed&lt;br /&gt;
	[&#039;publisherid&#039;] = nil,			-- unique alias of id used by old cite AV media notes and old cite DVD-notes&lt;br /&gt;
	[&#039;Ref&#039;] = nil,					-- non-standard capitalization&lt;br /&gt;
	[&#039;separator&#039;] = nil,			-- this functionality now provided by |mode=&lt;br /&gt;
	[&#039;template doc demo&#039;] = nil,            -- alias of template doc demo&lt;br /&gt;
	[&#039;titleyear&#039;] = nil,			-- unique alias of origyear used by old cite DVD-notes&lt;br /&gt;
	[&#039;trans_chapter&#039;] = nil,                -- alias of trans-chapter&lt;br /&gt;
	[&#039;trans_title&#039;] = nil,                  -- alias of trans-title&lt;br /&gt;
&lt;br /&gt;
	[&#039;Author#&#039;] = nil,				-- non-standard capitalization&lt;br /&gt;
	[&#039;authors#&#039;] = nil,				-- no need for multiple lists of author names&lt;br /&gt;
	[&#039;Editor#&#039;] = nil,				-- non-standard capitalization&lt;br /&gt;
	[&#039;editors#&#039;] = nil,				-- no need for multiple lists of editor names&lt;br /&gt;
	[&#039;EditorGiven#&#039;] = nil,			-- non-standard capitalization&lt;br /&gt;
	[&#039;EditorSurname#&#039;] = nil,		-- non-standard capitalization&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S U P P O R T E D   P A R A M E T E R S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:&lt;br /&gt;
	true - these parameters are valid and supported parameters&lt;br /&gt;
	false - these parameters are deprecated but still supported&lt;br /&gt;
	nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local whitelist = {}&lt;br /&gt;
&lt;br /&gt;
local basic_arguments = {&lt;br /&gt;
	[&#039;accessdate&#039;] = true,&lt;br /&gt;
	[&#039;access-date&#039;] = true,&lt;br /&gt;
	[&#039;agency&#039;] = true,&lt;br /&gt;
	[&#039;airdate&#039;] = true,&lt;br /&gt;
	[&#039;air-date&#039;] = true,&lt;br /&gt;
	[&#039;archivedate&#039;] = true,&lt;br /&gt;
	[&#039;archive-date&#039;] = true,&lt;br /&gt;
	[&#039;archive-format&#039;] = true,&lt;br /&gt;
	[&#039;archiveurl&#039;] = true,&lt;br /&gt;
	[&#039;archive-url&#039;] = true,&lt;br /&gt;
	[&#039;article&#039;] = true,&lt;br /&gt;
	[&#039;arxiv&#039;] = true,&lt;br /&gt;
	[&#039;asin&#039;] = true,&lt;br /&gt;
	[&#039;ASIN&#039;] = true,&lt;br /&gt;
	[&#039;asin-tld&#039;] = true,&lt;br /&gt;
	[&#039;ASIN-TLD&#039;] = true,&lt;br /&gt;
	[&#039;at&#039;] = true,&lt;br /&gt;
	[&#039;author&#039;] = true,&lt;br /&gt;
	[&#039;author-first&#039;] = true,&lt;br /&gt;
	[&#039;author-last&#039;] = true,&lt;br /&gt;
	[&#039;authorlink&#039;] = true,&lt;br /&gt;
	[&#039;author-link&#039;] = true,&lt;br /&gt;
	[&#039;authormask&#039;] = true,&lt;br /&gt;
	[&#039;author-mask&#039;] = true,&lt;br /&gt;
	[&#039;authors&#039;] = true,&lt;br /&gt;
	[&#039;bibcode&#039;] = true,&lt;br /&gt;
	[&#039;bibcode-access&#039;] = true,&lt;br /&gt;
	[&#039;biorxiv&#039;] = true,&lt;br /&gt;
	[&#039;booktitle&#039;] = true,&lt;br /&gt;
	[&#039;book-title&#039;] = true,&lt;br /&gt;
	[&#039;cartography&#039;] = true,&lt;br /&gt;
	[&#039;chapter&#039;] = true,&lt;br /&gt;
	[&#039;chapter-format&#039;] = true,&lt;br /&gt;
	[&#039;chapterurl&#039;] = true,&lt;br /&gt;
	[&#039;chapter-url&#039;] = true,&lt;br /&gt;
	[&#039;chapter-url-access&#039;] = true,&lt;br /&gt;
	[&#039;citeseerx&#039;] = true,&lt;br /&gt;
	[&#039;class&#039;] = true,				-- cite arxiv and arxiv identifiers&lt;br /&gt;
	[&#039;collaboration&#039;] = true,&lt;br /&gt;
	[&#039;conference&#039;] = true,&lt;br /&gt;
	[&#039;conference-format&#039;] = true,&lt;br /&gt;
	[&#039;conferenceurl&#039;] = true,&lt;br /&gt;
	[&#039;conference-url&#039;] = true,&lt;br /&gt;
	[&#039;contribution&#039;] = true,&lt;br /&gt;
	[&#039;contribution-format&#039;] = true,&lt;br /&gt;
	[&#039;contributionurl&#039;] = true,&lt;br /&gt;
	[&#039;contribution-url&#039;] = true,&lt;br /&gt;
	[&#039;contributor&#039;] = true,&lt;br /&gt;
	[&#039;contributor-first&#039;] = true,&lt;br /&gt;
	[&#039;contributor-last&#039;] = true,&lt;br /&gt;
	[&#039;contributor-given&#039;] = true,&lt;br /&gt;
	[&#039;contributor-surname&#039;] = true,&lt;br /&gt;
	[&#039;contributor-link&#039;] = true,&lt;br /&gt;
	[&#039;contributor-mask&#039;] = true,&lt;br /&gt;
	[&#039;credits&#039;] = true,				-- cite episode, cite serial&lt;br /&gt;
	[&#039;date&#039;] = true,&lt;br /&gt;
	[&#039;deadurl&#039;] = true,&lt;br /&gt;
	[&#039;dead-url&#039;] = true,&lt;br /&gt;
	[&#039;degree&#039;] = true,&lt;br /&gt;
	[&#039;department&#039;] = true,&lt;br /&gt;
	[&#039;df&#039;] = true,&lt;br /&gt;
	[&#039;dictionary&#039;] = true,&lt;br /&gt;
	[&#039;displayauthors&#039;] = true,&lt;br /&gt;
	[&#039;display-authors&#039;] = true,&lt;br /&gt;
	[&#039;displayeditors&#039;] = true,&lt;br /&gt;
	[&#039;display-editors&#039;] = true,&lt;br /&gt;
	[&#039;docket&#039;] = true,&lt;br /&gt;
	[&#039;doi&#039;] = true,&lt;br /&gt;
	[&#039;DOI&#039;] = true,&lt;br /&gt;
	[&#039;doi-access&#039;] = true,&lt;br /&gt;
	[&#039;doi-broken&#039;] = true,&lt;br /&gt;
	[&#039;doi-broken-date&#039;] = true,&lt;br /&gt;
	[&#039;doi-inactive-date&#039;] = true,&lt;br /&gt;
	[&#039;edition&#039;] = true,&lt;br /&gt;
	[&#039;editor&#039;] = true,&lt;br /&gt;
	[&#039;editor-first&#039;] = true,&lt;br /&gt;
	[&#039;editor-given&#039;] = true,&lt;br /&gt;
	[&#039;editor-last&#039;] = true,&lt;br /&gt;
	[&#039;editorlink&#039;] = true,&lt;br /&gt;
	[&#039;editor-link&#039;] = true,&lt;br /&gt;
	[&#039;editormask&#039;] = true,&lt;br /&gt;
	[&#039;editor-mask&#039;] = true,&lt;br /&gt;
	[&#039;editors&#039;] = true,&lt;br /&gt;
	[&#039;editor-surname&#039;] = true,&lt;br /&gt;
	[&#039;eissn&#039;] = true,&lt;br /&gt;
	[&#039;EISSN&#039;] = true,&lt;br /&gt;
	[&#039;embargo&#039;] = true,&lt;br /&gt;
	[&#039;encyclopaedia&#039;] = true,&lt;br /&gt;
	[&#039;encyclopedia&#039;] = true,&lt;br /&gt;
	[&#039;entry&#039;] = true,&lt;br /&gt;
	[&#039;episode&#039;] = true,															-- cite serial only TODO: make available to cite episode?&lt;br /&gt;
	[&#039;episodelink&#039;] = true,														-- cite episode and cite serial&lt;br /&gt;
	[&#039;episode-link&#039;] = true,													-- cite episode and cite serial&lt;br /&gt;
	[&#039;eprint&#039;] = true,															-- cite arxiv and arxiv identifiers&lt;br /&gt;
	[&#039;event&#039;] = true,&lt;br /&gt;
	[&#039;event-format&#039;] = true,&lt;br /&gt;
	[&#039;eventurl&#039;] = true,&lt;br /&gt;
	[&#039;event-url&#039;] = true,&lt;br /&gt;
	[&#039;first&#039;] = true,&lt;br /&gt;
	[&#039;format&#039;] = true,&lt;br /&gt;
	[&#039;given&#039;] = true,&lt;br /&gt;
	[&#039;hdl&#039;] = true,&lt;br /&gt;
	[&#039;HDL&#039;] = true,&lt;br /&gt;
	[&#039;hdl-access&#039;] = true,&lt;br /&gt;
	[&#039;host&#039;] = true,&lt;br /&gt;
	[&#039;id&#039;] = true,&lt;br /&gt;
	[&#039;ID&#039;] = true,&lt;br /&gt;
	[&#039;ignoreisbnerror&#039;] = true,&lt;br /&gt;
	[&#039;ignore-isbn-error&#039;] = true,&lt;br /&gt;
	[&#039;in&#039;] = true,&lt;br /&gt;
	[&#039;inset&#039;] = true,&lt;br /&gt;
	[&#039;institution&#039;] = true,&lt;br /&gt;
	[&#039;interviewer&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-first&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-last&#039;] = true,&lt;br /&gt;
	[&#039;interviewerlink&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-link&#039;] = true,&lt;br /&gt;
	[&#039;interviewermask&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-mask&#039;] = true,&lt;br /&gt;
	[&#039;interviewers&#039;] = true,&lt;br /&gt;
	[&#039;isbn&#039;] = true,&lt;br /&gt;
	[&#039;ISBN&#039;] = true,&lt;br /&gt;
	[&#039;isbn13&#039;] = true,&lt;br /&gt;
	[&#039;ISBN13&#039;] = true,&lt;br /&gt;
	[&#039;ismn&#039;] = true,&lt;br /&gt;
	[&#039;ISMN&#039;] = true,&lt;br /&gt;
	[&#039;issn&#039;] = true,&lt;br /&gt;
	[&#039;ISSN&#039;] = true,&lt;br /&gt;
	[&#039;issue&#039;] = true,&lt;br /&gt;
	[&#039;jfm&#039;] = true,&lt;br /&gt;
	[&#039;JFM&#039;] = true,&lt;br /&gt;
	[&#039;journal&#039;] = true,&lt;br /&gt;
	[&#039;jstor&#039;] = true,&lt;br /&gt;
	[&#039;JSTOR&#039;] = true,&lt;br /&gt;
	[&#039;jstor-access&#039;] = true,&lt;br /&gt;
	[&#039;language&#039;] = true,&lt;br /&gt;
	[&#039;last&#039;] = true,&lt;br /&gt;
	[&#039;lastauthoramp&#039;] = true,&lt;br /&gt;
	[&#039;last-author-amp&#039;] = true,&lt;br /&gt;
	[&#039;laydate&#039;] = true,&lt;br /&gt;
	[&#039;lay-date&#039;] = true,&lt;br /&gt;
	[&#039;laysource&#039;] = true,&lt;br /&gt;
	[&#039;lay-source&#039;] = true,&lt;br /&gt;
	[&#039;laysummary&#039;] = true,&lt;br /&gt;
	[&#039;lay-summary&#039;] = true,&lt;br /&gt;
	[&#039;lay-format&#039;] = true,&lt;br /&gt;
	[&#039;layurl&#039;] = true,&lt;br /&gt;
	[&#039;lay-url&#039;] = true,&lt;br /&gt;
	[&#039;lccn&#039;] = true,&lt;br /&gt;
	[&#039;LCCN&#039;] = true,&lt;br /&gt;
	[&#039;location&#039;] = true,&lt;br /&gt;
	[&#039;magazine&#039;] = true,&lt;br /&gt;
	[&#039;mailinglist&#039;] = true,				-- cite mailing list only&lt;br /&gt;
	[&#039;mailing-list&#039;] = true,			-- cite mailing list only&lt;br /&gt;
	[&#039;map&#039;] = true,						-- cite map only&lt;br /&gt;
	[&#039;map-format&#039;] = true,				-- cite map only&lt;br /&gt;
	[&#039;mapurl&#039;] = true,					-- cite map only&lt;br /&gt;
	[&#039;map-url&#039;] = true,					-- cite map only&lt;br /&gt;
	[&#039;medium&#039;] = true,&lt;br /&gt;
	[&#039;message-id&#039;] = true,			-- cite newsgroup&lt;br /&gt;
	[&#039;minutes&#039;] = true,&lt;br /&gt;
	[&#039;mode&#039;] = true,&lt;br /&gt;
	[&#039;mr&#039;] = true,&lt;br /&gt;
	[&#039;MR&#039;] = true,&lt;br /&gt;
	[&#039;name-list-format&#039;] = true,&lt;br /&gt;
	[&#039;network&#039;] = true,&lt;br /&gt;
	[&#039;newsgroup&#039;] = true,&lt;br /&gt;
	[&#039;newspaper&#039;] = true,&lt;br /&gt;
	[&#039;nocat&#039;] = true,&lt;br /&gt;
	[&#039;no-cat&#039;] = true,&lt;br /&gt;
	[&#039;nopp&#039;] = true,&lt;br /&gt;
	[&#039;no-pp&#039;] = true,&lt;br /&gt;
	[&#039;notracking&#039;] = true,&lt;br /&gt;
	[&#039;no-tracking&#039;] = true,&lt;br /&gt;
	[&#039;number&#039;] = true,&lt;br /&gt;
	[&#039;oclc&#039;] = true,&lt;br /&gt;
	[&#039;OCLC&#039;] = true,&lt;br /&gt;
	[&#039;ol&#039;] = true,&lt;br /&gt;
	[&#039;OL&#039;] = true,&lt;br /&gt;
	[&#039;ol-access&#039;] = true,&lt;br /&gt;
	[&#039;origyear&#039;] = true,&lt;br /&gt;
	[&#039;orig-year&#039;] = true,&lt;br /&gt;
	[&#039;osti&#039;] = true,&lt;br /&gt;
	[&#039;OSTI&#039;] = true,&lt;br /&gt;
	[&#039;osti-access&#039;] = true,&lt;br /&gt;
	[&#039;others&#039;] = true,&lt;br /&gt;
	[&#039;p&#039;] = true,&lt;br /&gt;
	[&#039;page&#039;] = true,&lt;br /&gt;
	[&#039;pages&#039;] = true,&lt;br /&gt;
	[&#039;people&#039;] = true,&lt;br /&gt;
	[&#039;periodical&#039;] = true,&lt;br /&gt;
	[&#039;place&#039;] = true,&lt;br /&gt;
	[&#039;pmc&#039;] = true,&lt;br /&gt;
	[&#039;PMC&#039;] = true,&lt;br /&gt;
	[&#039;pmid&#039;] = true,&lt;br /&gt;
	[&#039;PMID&#039;] = true,&lt;br /&gt;
	[&#039;postscript&#039;] = true,&lt;br /&gt;
	[&#039;pp&#039;] = true,&lt;br /&gt;
	[&#039;publicationdate&#039;] = true,&lt;br /&gt;
	[&#039;publication-date&#039;] = true,&lt;br /&gt;
	[&#039;publicationplace&#039;] = true,&lt;br /&gt;
	[&#039;publication-place&#039;] = true,&lt;br /&gt;
	[&#039;publisher&#039;] = true,&lt;br /&gt;
	[&#039;quotation&#039;] = true,&lt;br /&gt;
	[&#039;quote&#039;] = true,&lt;br /&gt;
	[&#039;ref&#039;] = true,&lt;br /&gt;
	[&#039;registration&#039;] = true,&lt;br /&gt;
	[&#039;rfc&#039;] = true,&lt;br /&gt;
	[&#039;RFC&#039;] = true,&lt;br /&gt;
	[&#039;scale&#039;] = true,&lt;br /&gt;
	[&#039;script-chapter&#039;] = true,&lt;br /&gt;
	[&#039;script-title&#039;] = true,&lt;br /&gt;
	[&#039;season&#039;] = true,&lt;br /&gt;
	[&#039;section&#039;] = true,&lt;br /&gt;
	[&#039;section-format&#039;] = true,&lt;br /&gt;
	[&#039;sections&#039;] = true,					-- cite map only&lt;br /&gt;
	[&#039;sectionurl&#039;] = true,&lt;br /&gt;
	[&#039;section-url&#039;] = true,&lt;br /&gt;
	[&#039;series&#039;] = true,&lt;br /&gt;
	[&#039;serieslink&#039;] = true,&lt;br /&gt;
	[&#039;series-link&#039;] = true,&lt;br /&gt;
	[&#039;seriesno&#039;] = true,&lt;br /&gt;
	[&#039;series-no&#039;] = true,&lt;br /&gt;
	[&#039;seriesnumber&#039;] = true,&lt;br /&gt;
	[&#039;series-number&#039;] = true,&lt;br /&gt;
	[&#039;series-separator&#039;] = true,&lt;br /&gt;
	[&#039;sheet&#039;] = true,															-- cite map only&lt;br /&gt;
	[&#039;sheets&#039;] = true,															-- cite map only&lt;br /&gt;
	[&#039;ssrn&#039;] = true,&lt;br /&gt;
	[&#039;SSRN&#039;] = true,&lt;br /&gt;
	[&#039;station&#039;] = true,&lt;br /&gt;
	[&#039;subject&#039;] = true,&lt;br /&gt;
	[&#039;subjectlink&#039;] = true,&lt;br /&gt;
	[&#039;subject-link&#039;] = true,&lt;br /&gt;
	[&#039;subscription&#039;] = true,&lt;br /&gt;
	[&#039;surname&#039;] = true,&lt;br /&gt;
	[&#039;template-doc-demo&#039;] = true,&lt;br /&gt;
	[&#039;time&#039;] = true,&lt;br /&gt;
	[&#039;timecaption&#039;] = true,&lt;br /&gt;
	[&#039;time-caption&#039;] = true,&lt;br /&gt;
	[&#039;title&#039;] = true,&lt;br /&gt;
	[&#039;titlelink&#039;] = true,&lt;br /&gt;
	[&#039;title-link&#039;] = true,&lt;br /&gt;
	[&#039;trans-chapter&#039;] = true,&lt;br /&gt;
	[&#039;trans-map&#039;] = true,&lt;br /&gt;
	[&#039;transcript&#039;] = true,&lt;br /&gt;
	[&#039;transcript-format&#039;] = true,&lt;br /&gt;
	[&#039;transcripturl&#039;] = true,&lt;br /&gt;
	[&#039;transcript-url&#039;] = true,&lt;br /&gt;
	[&#039;trans-title&#039;] = true,&lt;br /&gt;
	[&#039;translator&#039;] = true,&lt;br /&gt;
	[&#039;translator-first&#039;] = true,&lt;br /&gt;
	[&#039;translator-last&#039;] = true,&lt;br /&gt;
	[&#039;translator-given&#039;] = true,&lt;br /&gt;
	[&#039;translator-surname&#039;] = true,&lt;br /&gt;
	[&#039;translator-link&#039;] = true,&lt;br /&gt;
	[&#039;translator-mask&#039;] = true,&lt;br /&gt;
	[&#039;type&#039;] = true,&lt;br /&gt;
	[&#039;url&#039;] = true,&lt;br /&gt;
	[&#039;URL&#039;] = true,&lt;br /&gt;
	[&#039;url-access&#039;] = true,&lt;br /&gt;
	[&#039;vauthors&#039;] = true,&lt;br /&gt;
	[&#039;veditors&#039;] = true,&lt;br /&gt;
	[&#039;version&#039;] = true,&lt;br /&gt;
	[&#039;via&#039;] = true,&lt;br /&gt;
	[&#039;volume&#039;] = true,&lt;br /&gt;
	[&#039;website&#039;] = true,&lt;br /&gt;
	[&#039;work&#039;] = true,&lt;br /&gt;
	[&#039;year&#039;] = true,&lt;br /&gt;
	[&#039;zbl&#039;] = true,&lt;br /&gt;
	[&#039;ZBL&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local numbered_arguments = {&lt;br /&gt;
	[&#039;author#&#039;] = true,&lt;br /&gt;
	[&#039;author-first#&#039;] = true,&lt;br /&gt;
	[&#039;author#-first&#039;] = true,&lt;br /&gt;
	[&#039;author-last#&#039;] = true,&lt;br /&gt;
	[&#039;author#-last&#039;] = true,&lt;br /&gt;
	[&#039;author-link#&#039;] = true,&lt;br /&gt;
	[&#039;author#link&#039;] = true,&lt;br /&gt;
	[&#039;author#-link&#039;] = true,&lt;br /&gt;
	[&#039;authorlink#&#039;] = true,&lt;br /&gt;
	[&#039;author-mask#&#039;] = true,&lt;br /&gt;
	[&#039;author#mask&#039;] = true,&lt;br /&gt;
	[&#039;author#-mask&#039;] = true,&lt;br /&gt;
	[&#039;authormask#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#&#039;] = true,&lt;br /&gt;
	[&#039;contributor-first#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-first&#039;] = true,&lt;br /&gt;
	[&#039;contributor-last#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-last&#039;] = true,&lt;br /&gt;
	[&#039;contributor-given#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-given&#039;] = true,&lt;br /&gt;
	[&#039;contributor-surname#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-surname&#039;] = true,&lt;br /&gt;
	[&#039;contributor-link#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-link&#039;] = true,&lt;br /&gt;
	[&#039;contributor-mask#&#039;] = true,&lt;br /&gt;
	[&#039;contributor#-mask&#039;] = true,&lt;br /&gt;
	[&#039;editor#&#039;] = true,&lt;br /&gt;
	[&#039;editor-first#&#039;] = true,&lt;br /&gt;
	[&#039;editor#-first&#039;] = true,&lt;br /&gt;
	[&#039;editor#-given&#039;] = true,&lt;br /&gt;
	[&#039;editor-given#&#039;] = true,&lt;br /&gt;
	[&#039;editor-last#&#039;] = true,&lt;br /&gt;
	[&#039;editor#-last&#039;] = true,&lt;br /&gt;
	[&#039;editor-link#&#039;] = true,&lt;br /&gt;
	[&#039;editor#link&#039;] = true,&lt;br /&gt;
	[&#039;editor#-link&#039;] = true,&lt;br /&gt;
	[&#039;editorlink#&#039;] = true,&lt;br /&gt;
	[&#039;editor-mask#&#039;] = true,&lt;br /&gt;
	[&#039;editor#mask&#039;] = true,&lt;br /&gt;
	[&#039;editor#-mask&#039;] = true,&lt;br /&gt;
	[&#039;editormask#&#039;] = true,&lt;br /&gt;
	[&#039;editor#-surname&#039;] = true,&lt;br /&gt;
	[&#039;editor-surname#&#039;] = true,&lt;br /&gt;
	[&#039;first#&#039;] = true,&lt;br /&gt;
	[&#039;given#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-first#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer#-first&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-last#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer#-last&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-link#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer#-link&#039;] = true,&lt;br /&gt;
	[&#039;interviewer-mask#&#039;] = true,&lt;br /&gt;
	[&#039;interviewer#-mask&#039;] = true,&lt;br /&gt;
	[&#039;last#&#039;] = true,&lt;br /&gt;
	[&#039;subject#&#039;] = true,&lt;br /&gt;
	[&#039;subject-link#&#039;] = true,&lt;br /&gt;
	[&#039;subject#link&#039;] = true,&lt;br /&gt;
	[&#039;subject#-link&#039;] = true,&lt;br /&gt;
	[&#039;subjectlink#&#039;] = true,&lt;br /&gt;
	[&#039;surname#&#039;] = true,&lt;br /&gt;
	[&#039;translator#&#039;] = true,&lt;br /&gt;
	[&#039;translator-first#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-first&#039;] = true,&lt;br /&gt;
	[&#039;translator-last#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-last&#039;] = true,&lt;br /&gt;
	[&#039;translator-given#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-given&#039;] = true,&lt;br /&gt;
	[&#039;translator-surname#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-surname&#039;] = true,&lt;br /&gt;
	[&#039;translator-link#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-link&#039;] = true,&lt;br /&gt;
	[&#039;translator-mask#&#039;] = true,&lt;br /&gt;
	[&#039;translator#-mask&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T E   A R X I V   S U P P O R T E D   P A R A M E T E R S &amp;gt;----------------&lt;br /&gt;
&lt;br /&gt;
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the&lt;br /&gt;
parameters provided in a cite arxiv template.  This method might be expanded to other templates being considered.&lt;br /&gt;
&lt;br /&gt;
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:&lt;br /&gt;
	true - these parameters are valid and supported parameters&lt;br /&gt;
	false - these parameters are deprecated but still supported&lt;br /&gt;
	nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
This is a list of parameters that once were but now are no longer supported:&lt;br /&gt;
	[&#039;ARXIV&#039;] = nil,				-- not an initialization&lt;br /&gt;
	[&#039;version&#039;] = nil,				-- this is the cite arxiv parameter; |version= still supported by other cs1|2 templates&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local arxiv_basic_arguments = {&lt;br /&gt;
	[&#039;arxiv&#039;] = true,&lt;br /&gt;
	[&#039;class&#039;] = true,															-- cite arxiv and arxiv identifiers&lt;br /&gt;
	[&#039;eprint&#039;] = true,															-- cite arxiv and arxiv identifiers&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T E   B I O R X I V   S U P P O R T E D   P A R A M E T E R S &amp;gt;------------&lt;br /&gt;
&lt;br /&gt;
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the&lt;br /&gt;
parameters provided in a cite biorxiv template.  This method might be expanded to other templates being considered.&lt;br /&gt;
&lt;br /&gt;
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:&lt;br /&gt;
	true - these parameters are valid and supported parameters&lt;br /&gt;
	false - these parameters are deprecated but still supported&lt;br /&gt;
	nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local biorxiv_basic_arguments = {&lt;br /&gt;
	[&#039;biorxiv&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T E   C I T E S E E R X   S U P P O R T E D   P A R A M E T E R S &amp;gt;--------&lt;br /&gt;
&lt;br /&gt;
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the&lt;br /&gt;
parameters provided in a cite citeseerx template.  This method might be expanded to other templates being considered.&lt;br /&gt;
&lt;br /&gt;
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:&lt;br /&gt;
	true - these parameters are valid and supported parameters&lt;br /&gt;
	false - these parameters are deprecated but still supported&lt;br /&gt;
	nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local citeseerx_basic_arguments = {&lt;br /&gt;
	[&#039;citeseerx&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I M I T E D   S U P P O R T E D   P A R A M E T E R S &amp;gt;----------------------&lt;br /&gt;
&lt;br /&gt;
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the&lt;br /&gt;
parameters provided in a cite arxiv, cite biorxiv, or cite citeseerx templates.  These parameters are common to&lt;br /&gt;
all three templates&lt;br /&gt;
&lt;br /&gt;
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:&lt;br /&gt;
	true - these parameters are valid and supported parameters&lt;br /&gt;
	false - these parameters are deprecated but still supported&lt;br /&gt;
	nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local limited_basic_arguments = {&lt;br /&gt;
	[&#039;at&#039;] = true,&lt;br /&gt;
	[&#039;author&#039;] = true,&lt;br /&gt;
	[&#039;author-first&#039;] = true,&lt;br /&gt;
	[&#039;author-last&#039;] = true,&lt;br /&gt;
	[&#039;authorlink&#039;] = true,&lt;br /&gt;
	[&#039;author-link&#039;] = true,&lt;br /&gt;
	[&#039;authormask&#039;] = true,&lt;br /&gt;
	[&#039;author-mask&#039;] = true,&lt;br /&gt;
	[&#039;authors&#039;] = true,&lt;br /&gt;
	[&#039;collaboration&#039;] = true,&lt;br /&gt;
	[&#039;date&#039;] = true,&lt;br /&gt;
	[&#039;df&#039;] = true,&lt;br /&gt;
	[&#039;display-authors&#039;] = true,&lt;br /&gt;
	[&#039;first&#039;] = true,&lt;br /&gt;
	[&#039;given&#039;] = true,&lt;br /&gt;
	[&#039;language&#039;] = true,&lt;br /&gt;
	[&#039;last&#039;] = true,&lt;br /&gt;
	[&#039;lastauthoramp&#039;] = true,&lt;br /&gt;
	[&#039;last-author-amp&#039;] = true,&lt;br /&gt;
	[&#039;mode&#039;] = true,&lt;br /&gt;
	[&#039;name-list-format&#039;] = true,&lt;br /&gt;
	[&#039;nocat&#039;] = true,&lt;br /&gt;
	[&#039;no-cat&#039;] = true,&lt;br /&gt;
	[&#039;notracking&#039;] = true,&lt;br /&gt;
	[&#039;no-tracking&#039;] = true,&lt;br /&gt;
	[&#039;p&#039;] = true,&lt;br /&gt;
	[&#039;page&#039;] = true,&lt;br /&gt;
	[&#039;pages&#039;] = true,&lt;br /&gt;
	[&#039;postscript&#039;] = true,&lt;br /&gt;
	[&#039;pp&#039;] = true,&lt;br /&gt;
	[&#039;quotation&#039;] = true,&lt;br /&gt;
	[&#039;quote&#039;] = true,&lt;br /&gt;
	[&#039;ref&#039;] = true,&lt;br /&gt;
	[&#039;surname&#039;] = true,&lt;br /&gt;
	[&#039;template-doc-demo&#039;] = true,&lt;br /&gt;
	[&#039;title&#039;] = true,&lt;br /&gt;
	[&#039;url&#039;] = true,&lt;br /&gt;
	[&#039;URL&#039;] = true,&lt;br /&gt;
	[&#039;vauthors&#039;] = true,&lt;br /&gt;
	[&#039;year&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
local limited_numbered_arguments = {&lt;br /&gt;
	[&#039;author#&#039;] = true,&lt;br /&gt;
	[&#039;author-first#&#039;] = true,&lt;br /&gt;
	[&#039;author#-first&#039;] = true,&lt;br /&gt;
	[&#039;author-last#&#039;] = true,&lt;br /&gt;
	[&#039;author#-last&#039;] = true,&lt;br /&gt;
	[&#039;author-link#&#039;] = true,&lt;br /&gt;
	[&#039;author#link&#039;] = true,&lt;br /&gt;
	[&#039;author#-link&#039;] = true,&lt;br /&gt;
	[&#039;authorlink#&#039;] = true,&lt;br /&gt;
	[&#039;author-mask#&#039;] = true,&lt;br /&gt;
	[&#039;author#mask&#039;] = true,&lt;br /&gt;
	[&#039;author#-mask&#039;] = true,&lt;br /&gt;
	[&#039;authormask#&#039;] = true,&lt;br /&gt;
	[&#039;first#&#039;] = true,&lt;br /&gt;
	[&#039;given#&#039;] = true,&lt;br /&gt;
	[&#039;last#&#039;] = true,&lt;br /&gt;
	[&#039;surname#&#039;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	basic_arguments = basic_arguments,&lt;br /&gt;
	numbered_arguments = numbered_arguments,&lt;br /&gt;
	limited_basic_arguments = limited_basic_arguments,&lt;br /&gt;
	limited_numbered_arguments = limited_numbered_arguments,&lt;br /&gt;
	arxiv_basic_arguments = arxiv_basic_arguments,&lt;br /&gt;
	biorxiv_basic_arguments = biorxiv_basic_arguments,&lt;br /&gt;
	citeseerx_basic_arguments = citeseerx_basic_arguments&lt;br /&gt;
};&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Utilities&amp;diff=28463</id>
		<title>Module:Citation/CS1/Utilities</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Utilities&amp;diff=28463"/>
		<updated>2018-04-06T09:40:22Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local u = {}&lt;br /&gt;
&lt;br /&gt;
local z = {&lt;br /&gt;
	error_categories = {};														-- for categorizing citations that contain errors&lt;br /&gt;
	error_ids = {};&lt;br /&gt;
	message_tail = {};&lt;br /&gt;
	maintenance_cats = {};														-- for categorizing citations that aren&#039;t erroneous per se, but could use a little work&lt;br /&gt;
	properties_cats = {};														-- for categorizing citations based on certain properties, language of source for instance&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local cfg;																		-- table of tables imported from selected Module:Citation/CS1/Configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ S E T &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Returns true if argument is set; false otherwise. Argument is &#039;set&#039; when it exists (not nil) or when it is not an empty string.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_set( var )&lt;br /&gt;
	return not (var == nil or var == &#039;&#039;);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I N _ A R R A Y &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Whether needle is in haystack&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function in_array( needle, haystack )&lt;br /&gt;
	if needle == nil then&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
	for n,v in ipairs( haystack ) do&lt;br /&gt;
		if v == needle then&lt;br /&gt;
			return n;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S U B S T I T U T E &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Populates numbered arguments in a message string using an argument table.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function substitute( msg, args )&lt;br /&gt;
	return args and mw.message.newRawMessage( msg, args ):plain() or msg;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E R R O R _ C O M M E N T &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Wraps error messages with css markup according to the state of hidden.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function error_comment( content, hidden )&lt;br /&gt;
	return substitute( hidden and cfg.presentation[&#039;hidden-error&#039;] or cfg.presentation[&#039;visible-error&#039;], content );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; M A K E _ W I K I L I N K &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Makes a wikilink; when bot link and display text is provided, returns a wikilink in the form [[L|D]]; if only&lt;br /&gt;
link is provided, returns a wikilink in the form [[L]]; if neither are provided or link is omitted, returns an&lt;br /&gt;
empty string.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function make_wikilink (link, display)&lt;br /&gt;
	if is_set (link) then&lt;br /&gt;
		if is_set (display) then&lt;br /&gt;
			return table.concat ({&#039;[[&#039;, link, &#039;|&#039;, display, &#039;]]&#039;});&lt;br /&gt;
		else&lt;br /&gt;
			return table.concat ({&#039;[[&#039;, link, &#039;]]&#039;});&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ E R R O R &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Sets an error condition and returns the appropriate error message.  The actual placement of the error message in the output is&lt;br /&gt;
the responsibility of the calling function.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_error( error_id, arguments, raw, prefix, suffix )&lt;br /&gt;
	local error_state = cfg.error_conditions[ error_id ];&lt;br /&gt;
	&lt;br /&gt;
	prefix = prefix or &amp;quot;&amp;quot;;&lt;br /&gt;
	suffix = suffix or &amp;quot;&amp;quot;;&lt;br /&gt;
	&lt;br /&gt;
	if error_state == nil then&lt;br /&gt;
		error( cfg.messages[&#039;undefined_error&#039;] );								-- because missing error handler in Module:Citation/CS1/Configuration&lt;br /&gt;
	elseif is_set( error_state.category ) then&lt;br /&gt;
		table.insert( z.error_categories, error_state.category );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local message = substitute( error_state.message, arguments );&lt;br /&gt;
&lt;br /&gt;
	message = table.concat (&lt;br /&gt;
		{&lt;br /&gt;
		message,&lt;br /&gt;
		&#039; (&#039;,&lt;br /&gt;
		make_wikilink (&lt;br /&gt;
			table.concat (&lt;br /&gt;
				{&lt;br /&gt;
				cfg.messages[&#039;help page link&#039;],&lt;br /&gt;
				&#039;#&#039;,&lt;br /&gt;
				error_state.anchor&lt;br /&gt;
				}),&lt;br /&gt;
			cfg.messages[&#039;help page label&#039;]),&lt;br /&gt;
		&#039;)&#039;&lt;br /&gt;
		});&lt;br /&gt;
&lt;br /&gt;
--	message = table.concat ({message, &#039; (&#039;, substitute (cfg.presentation[&#039;wikilink&#039;], &lt;br /&gt;
--		{cfg.messages[&#039;help page link&#039;] .. &#039;#&#039; .. error_state.anchor, cfg.messages[&#039;help page label&#039;]}), &#039;)&#039;});&lt;br /&gt;
--	message = message .. &amp;quot; ([[&amp;quot; .. cfg.messages[&#039;help page link&#039;] .. &lt;br /&gt;
--		&amp;quot;#&amp;quot; .. error_state.anchor .. &amp;quot;|&amp;quot; ..&lt;br /&gt;
--		cfg.messages[&#039;help page label&#039;] .. &amp;quot;]])&amp;quot;;&lt;br /&gt;
	&lt;br /&gt;
	z.error_ids[ error_id ] = true;&lt;br /&gt;
	if in_array( error_id, { &#039;bare_url_missing_title&#039;, &#039;trans_missing_title&#039; } )&lt;br /&gt;
			and z.error_ids[&#039;citation_missing_title&#039;] then&lt;br /&gt;
		return &#039;&#039;, false;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	message = table.concat({ prefix, message, suffix });&lt;br /&gt;
	&lt;br /&gt;
	if raw == true then&lt;br /&gt;
		return message, error_state.hidden;&lt;br /&gt;
	end		&lt;br /&gt;
		&lt;br /&gt;
	return error_comment( message, error_state.hidden );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; I S _ A L I A S _ U S E D &amp;gt;-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function is used by select_one() to determine if one of a list of alias parameters is in the argument list&lt;br /&gt;
provided by the template.&lt;br /&gt;
&lt;br /&gt;
Input:&lt;br /&gt;
	args – pointer to the arguments table from calling template&lt;br /&gt;
	alias – one of the list of possible aliases in the aliases lists from Module:Citation/CS1/Configuration&lt;br /&gt;
	index – for enumerated parameters, identifies which one&lt;br /&gt;
	enumerated – true/false flag used choose how enumerated aliases are examined&lt;br /&gt;
	value – value associated with an alias that has previously been selected; nil if not yet selected&lt;br /&gt;
	selected – the alias that has previously been selected; nil if not yet selected&lt;br /&gt;
	error_list – list of aliases that are duplicates of the alias already selected&lt;br /&gt;
&lt;br /&gt;
Returns:&lt;br /&gt;
	value – value associated with alias we selected or that was previously selected or nil if an alias not yet selected&lt;br /&gt;
	selected – the alias we selected or the alias that was previously selected or nil if an alias not yet selected&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_alias_used (args, alias, index, enumerated, value, selected, error_list)&lt;br /&gt;
	if enumerated then															-- is this a test for an enumerated parameters?&lt;br /&gt;
		alias = alias:gsub (&#039;#&#039;, index);										-- replace &#039;#&#039; with the value in index&lt;br /&gt;
	else&lt;br /&gt;
		alias = alias:gsub (&#039;#&#039;, &#039;&#039;);											-- remove &#039;#&#039; if it exists&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(args[alias]) then													-- alias is in the template&#039;s argument list&lt;br /&gt;
		if value ~= nil and selected ~= alias then								-- if we have already selected one of the aliases&lt;br /&gt;
			local skip;&lt;br /&gt;
			for _, v in ipairs(error_list) do									-- spin through the error list to see if we&#039;ve added this alias&lt;br /&gt;
				if v == alias then&lt;br /&gt;
					skip = true;&lt;br /&gt;
					break;														-- has been added so stop looking &lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if not skip then													-- has not been added so&lt;br /&gt;
				table.insert( error_list, alias );								-- add error alias to the error list&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			value = args[alias];												-- not yet selected an alias, so select this one&lt;br /&gt;
			selected = alias;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return value, selected;														-- return newly selected alias, or previously selected alias&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A D D _ M A I N T _ C A T &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds a category to z.maintenance_cats using names from the configuration file with additional text if any.&lt;br /&gt;
To prevent duplication, the added_maint_cats table lists the categories by key that have been added to z.maintenance_cats.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local added_maint_cats = {}														-- list of maintenance categories that have been added to z.maintenance_cats&lt;br /&gt;
local function add_maint_cat (key, arguments)&lt;br /&gt;
	if not added_maint_cats [key] then&lt;br /&gt;
		added_maint_cats [key] = true;											-- note that we&#039;ve added this category&lt;br /&gt;
		table.insert( z.maintenance_cats, substitute (cfg.maint_cats [key], arguments));	-- make name then add to table&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S A F E _ F O R _ I T A L I C S &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Protects a string that will be wrapped in wiki italic markup &#039;&#039; ... &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: We cannot use &amp;lt;i&amp;gt; for italics, as the expected behavior for italics specified by &#039;&#039;...&#039;&#039; in the title is that&lt;br /&gt;
they will be inverted (i.e. unitalicized) in the resulting references.  In addition, &amp;lt;i&amp;gt; and &#039;&#039; tend to interact&lt;br /&gt;
poorly under Mediawiki&#039;s HTML tidy.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function safe_for_italics( str )&lt;br /&gt;
	if not is_set(str) then&lt;br /&gt;
		return str;&lt;br /&gt;
	else&lt;br /&gt;
		if str:sub(1,1) == &amp;quot;&#039;&amp;quot; then str = &amp;quot;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;quot; .. str; end&lt;br /&gt;
		if str:sub(-1,-1) == &amp;quot;&#039;&amp;quot; then str = str .. &amp;quot;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;quot;; end&lt;br /&gt;
		&lt;br /&gt;
		-- Remove newlines as they break italics.&lt;br /&gt;
		return str:gsub( &#039;\n&#039;, &#039; &#039; );&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; W R A P _ S T Y L E &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Applies styling to various parameters.  Supplied string is wrapped using a message_list configuration taking one&lt;br /&gt;
argument; protects italic styled parameters.  Additional text taken from citation_config.presentation - the reason&lt;br /&gt;
this function is similar to but separate from wrap_msg().&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function wrap_style (key, str)&lt;br /&gt;
	if not is_set( str ) then&lt;br /&gt;
		return &amp;quot;&amp;quot;;&lt;br /&gt;
	elseif in_array( key, { &#039;italic-title&#039;, &#039;trans-italic-title&#039; } ) then&lt;br /&gt;
		str = safe_for_italics( str );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return substitute( cfg.presentation[key], {str} );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E L E C T _ O N E &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Chooses one matching parameter from a list of parameters to consider.  The list of parameters to consider is just&lt;br /&gt;
names.  For parameters that may be enumerated, the position of the numerator in the parameter name is identified&lt;br /&gt;
by the &#039;#&#039; so |author-last1= and |author1-last= are represented as &#039;author-last#&#039; and &#039;author#-last&#039;.&lt;br /&gt;
&lt;br /&gt;
Because enumerated parameter |&amp;lt;param&amp;gt;1= is an alias of |&amp;lt;param&amp;gt;= we must test for both possibilities.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generates an error if more than one match is present.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function select_one( args, aliases_list, error_condition, index )&lt;br /&gt;
	local value = nil;															-- the value assigned to the selected parameter&lt;br /&gt;
	local selected = &#039;&#039;;														-- the name of the parameter we have chosen&lt;br /&gt;
	local error_list = {};&lt;br /&gt;
&lt;br /&gt;
	if index ~= nil then index = tostring(index); end&lt;br /&gt;
&lt;br /&gt;
	for _, alias in ipairs( aliases_list ) do									-- for each alias in the aliases list&lt;br /&gt;
		if alias:match (&#039;#&#039;) then												-- if this alias can be enumerated&lt;br /&gt;
			if &#039;1&#039; == index then												-- when index is 1 test for enumerated and non-enumerated aliases&lt;br /&gt;
				value, selected = is_alias_used (args, alias, index, false, value, selected, error_list);	-- first test for non-enumerated alias&lt;br /&gt;
			end&lt;br /&gt;
			value, selected = is_alias_used (args, alias, index, true, value, selected, error_list);		-- test for enumerated alias&lt;br /&gt;
		else&lt;br /&gt;
			value, selected = is_alias_used (args, alias, index, false, value, selected, error_list);		--test for non-enumerated alias&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if #error_list &amp;gt; 0 and &#039;none&#039; ~= error_condition then						-- for cases where this code is used outside of extract_names()&lt;br /&gt;
		local error_str = &amp;quot;&amp;quot;;&lt;br /&gt;
		for _, k in ipairs( error_list ) do&lt;br /&gt;
			if error_str ~= &amp;quot;&amp;quot; then error_str = error_str .. cfg.messages[&#039;parameter-separator&#039;] end&lt;br /&gt;
			error_str = error_str .. wrap_style (&#039;parameter&#039;, k);&lt;br /&gt;
		end&lt;br /&gt;
		if #error_list &amp;gt; 1 then&lt;br /&gt;
			error_str = error_str .. cfg.messages[&#039;parameter-final-separator&#039;];&lt;br /&gt;
		else&lt;br /&gt;
			error_str = error_str .. cfg.messages[&#039;parameter-pair-separator&#039;];&lt;br /&gt;
		end&lt;br /&gt;
		error_str = error_str .. wrap_style (&#039;parameter&#039;, selected);&lt;br /&gt;
		table.insert( z.message_tail, { set_error( error_condition, {error_str}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return value, selected;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; R E M O V E _ W I K I _ L I N K &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Gets the display text from a wikilink like [[A|B]] or [[B]] gives B&lt;br /&gt;
&lt;br /&gt;
The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink markup).&lt;br /&gt;
&lt;br /&gt;
In l(), l:gsub() removes the link and pipe (if they exist); the second :gsub() trims white space from the label&lt;br /&gt;
if str was wrapped in wikilink markup.  Presumably, this is because without wikimarkup in str, there is no match&lt;br /&gt;
in the initial gsub, the replacement function l() doesn&#039;t get called.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function remove_wiki_link (str)&lt;br /&gt;
	return (str:gsub( &amp;quot;%[%[([^%[%]]*)%]%]&amp;quot;, function(l)&lt;br /&gt;
		return l:gsub( &amp;quot;^[^|]*|(.*)$&amp;quot;, &amp;quot;%1&amp;quot; ):gsub(&amp;quot;^%s*(.-)%s*$&amp;quot;, &amp;quot;%1&amp;quot;);&lt;br /&gt;
	end));&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ W I K I L I N K &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines if str is a wikilink, extracts, and returns the the wikilink type, link text, and display text parts.&lt;br /&gt;
If str is a complex wikilink ([[L|D]]):&lt;br /&gt;
	returns wl_type 2 and D and L from [[L|D]];&lt;br /&gt;
if str is a simple wikilink ([[D]])&lt;br /&gt;
	returns wl_type 1 and D from [[D]] and L as empty string;&lt;br /&gt;
if not a wikilink:&lt;br /&gt;
	returns wl_type 0, str as D, and L as empty string.&lt;br /&gt;
&lt;br /&gt;
trims leading and trailing white space and pipes from L and D ([[L|]] and [[|D]] are accepted by MediaWiki and&lt;br /&gt;
treated like [[D]]; while [[|D|]] is not accepted by MediaWiki, here, we accept it and return D without the pipes).&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_wikilink (str)&lt;br /&gt;
	local D, L&lt;br /&gt;
	local wl_type = 2;															-- assume that str is a complex wikilink [[L|D]]&lt;br /&gt;
&lt;br /&gt;
	L, D = str:match (&#039;%[%[([^|]+)|([^%]]+)%]%]&#039;);								-- get L and D from [[L|D]] &lt;br /&gt;
&lt;br /&gt;
	if not is_set (D) then														-- if no separate link&lt;br /&gt;
		D = str:match (&#039;%[%[([^%]]*)|*%]%]&#039;);									-- get D from [[D]]&lt;br /&gt;
		wl_type = 1; &lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not is_set (D) then														-- no wikilink markup&lt;br /&gt;
		D = str;																-- return the string as D&lt;br /&gt;
		wl_type = 0;															-- but say that it is not a wikilink&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	D = mw.text.trim (D, &#039;%s|&#039;);												-- trim white space and pipe characters &lt;br /&gt;
	L = L and mw.text.trim (L, &#039;%s|&#039;);&lt;br /&gt;
	&lt;br /&gt;
	return wl_type, D, L or &#039;&#039;;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S E L E C T E D _ M O D U L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Sets local cfg table to same (live or sandbox) as that used by the other modules.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_selected_modules (cfg_table_ptr)&lt;br /&gt;
	cfg = cfg_table_ptr;&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {																		-- return exported functions and tables&lt;br /&gt;
	is_set = is_set,&lt;br /&gt;
	in_array = in_array,&lt;br /&gt;
	substitute = substitute,&lt;br /&gt;
	error_comment = error_comment,&lt;br /&gt;
	set_error = set_error,&lt;br /&gt;
	select_one = select_one,&lt;br /&gt;
	add_maint_cat = add_maint_cat,&lt;br /&gt;
	wrap_style = wrap_style,&lt;br /&gt;
	safe_for_italics = safe_for_italics,&lt;br /&gt;
	remove_wiki_link = remove_wiki_link,&lt;br /&gt;
	is_wikilink = is_wikilink,&lt;br /&gt;
	make_wikilink = make_wikilink,&lt;br /&gt;
	set_selected_modules = set_selected_modules,&lt;br /&gt;
	z = z,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Identifiers&amp;diff=28461</id>
		<title>Module:Citation/CS1/Identifiers</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Identifiers&amp;diff=28461"/>
		<updated>2018-04-06T09:40:21Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local identifiers = {};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local is_set, in_array, set_error, select_one, add_maint_cat, substitute, make_wikilink;	-- functions in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
local z;																		-- table of tables defined in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
local cfg;																		-- table of configuration tables that are defined in Module:Citation/CS1/Configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--============================&amp;lt;&amp;lt; H E L P E R   F U N C T I O N S &amp;gt;&amp;gt;============================================&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T E R N A L _ L I N K _ I D &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a wiki style external link&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function external_link_id(options)&lt;br /&gt;
	local url_string = options.id;&lt;br /&gt;
	local ext_link;&lt;br /&gt;
	&lt;br /&gt;
	if options.encode == true or options.encode == nil then&lt;br /&gt;
		url_string = mw.uri.encode( url_string );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	ext_link = mw.ustring.format (&#039;[%s%s%s %s]&#039;, options.prefix, url_string, options.suffix or &amp;quot;&amp;quot;, mw.text.nowiki(options.id));&lt;br /&gt;
	if is_set(options.access) then&lt;br /&gt;
		ext_link = substitute (cfg.presentation[&#039;access-signal&#039;], {ext_link, cfg.presentation[options.access]});	-- add the free-to-read / paywall lock&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return table.concat	({&lt;br /&gt;
		make_wikilink (options.link, options.label),&lt;br /&gt;
		options.separator or &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		ext_link&lt;br /&gt;
		});&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I N T E R N A L _ L I N K _ I D &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a wiki style internal link&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function internal_link_id(options)&lt;br /&gt;
&lt;br /&gt;
	return table.concat (&lt;br /&gt;
		{&lt;br /&gt;
		make_wikilink (options.link, options.label),&lt;br /&gt;
		options.separator or &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		make_wikilink (&lt;br /&gt;
			table.concat (&lt;br /&gt;
				{&lt;br /&gt;
				options.prefix,&lt;br /&gt;
				options.id,&lt;br /&gt;
				options.suffix or &#039;&#039;&lt;br /&gt;
				}),&lt;br /&gt;
			mw.text.nowiki (options.id)&lt;br /&gt;
			);&lt;br /&gt;
		});&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ E M B A R G O E D &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines if a PMC identifier&#039;s online version is embargoed. Compares the date in |embargo= against today&#039;s date.  If embargo date is&lt;br /&gt;
in the future, returns the content of |embargo=; otherwise, returns and empty string because the embargo has expired or because&lt;br /&gt;
|embargo= was not set in this cite.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_embargoed (embargo)&lt;br /&gt;
	if is_set (embargo) then&lt;br /&gt;
		local lang = mw.getContentLanguage();&lt;br /&gt;
		local good1, embargo_date, good2, todays_date;&lt;br /&gt;
		good1, embargo_date = pcall( lang.formatDate, lang, &#039;U&#039;, embargo );&lt;br /&gt;
		good2, todays_date = pcall( lang.formatDate, lang, &#039;U&#039; );&lt;br /&gt;
	&lt;br /&gt;
		if good1 and good2 then													-- if embargo date and today&#039;s date are good dates&lt;br /&gt;
			if tonumber( embargo_date ) &amp;gt;= tonumber( todays_date ) then			-- is embargo date is in the future?&lt;br /&gt;
				return embargo;													-- still embargoed&lt;br /&gt;
			else&lt;br /&gt;
				add_maint_cat (&#039;embargo&#039;)&lt;br /&gt;
				return &#039;&#039;;														-- unset because embargo has expired&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;&#039;;																	-- |embargo= not set return empty string&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; IS _ V A L I D _ I S X N &amp;gt;-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
ISBN-10 and ISSN validator code calculates checksum across all isbn/issn digits including the check digit.&lt;br /&gt;
ISBN-13 is checked in isbn().&lt;br /&gt;
&lt;br /&gt;
If the number is valid the result will be 0. Before calling this function, issbn/issn must be checked for length&lt;br /&gt;
and stripped of dashes, spaces and other non-isxn characters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_isxn (isxn_str, len)&lt;br /&gt;
	local temp = 0;&lt;br /&gt;
	isxn_str = { isxn_str:byte(1, len) };	-- make a table of byte values &#039;0&#039; → 0x30 .. &#039;9&#039; → 0x39, &#039;X&#039; → 0x58&lt;br /&gt;
	len = len+1;							-- adjust to be a loop counter&lt;br /&gt;
	for i, v in ipairs( isxn_str ) do		-- loop through all of the bytes and calculate the checksum&lt;br /&gt;
		if v == string.byte( &amp;quot;X&amp;quot; ) then		-- if checkdigit is X (compares the byte value of &#039;X&#039; which is 0x58)&lt;br /&gt;
			temp = temp + 10*( len - i );	-- it represents 10 decimal&lt;br /&gt;
		else&lt;br /&gt;
			temp = temp + tonumber( string.char(v) )*(len-i);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return temp % 11 == 0;					-- returns true if calculation result is zero&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; IS _ V A L I D _ I S X N _ 1 3 &amp;gt;-----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
ISBN-13 and ISMN validator code calculates checksum across all 13 isbn/ismn digits including the check digit.&lt;br /&gt;
If the number is valid, the result will be 0. Before calling this function, isbn-13/ismn must be checked for length&lt;br /&gt;
and stripped of dashes, spaces and other non-isxn-13 characters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_isxn_13 (isxn_str)&lt;br /&gt;
	local temp=0;&lt;br /&gt;
	&lt;br /&gt;
	isxn_str = { isxn_str:byte(1, 13) };										-- make a table of byte values &#039;0&#039; → 0x30 .. &#039;9&#039; → 0x39&lt;br /&gt;
	for i, v in ipairs( isxn_str ) do&lt;br /&gt;
		temp = temp + (3 - 2*(i % 2)) * tonumber( string.char(v) );				-- multiply odd index digits by 1, even index digits by 3 and sum; includes check digit&lt;br /&gt;
	end&lt;br /&gt;
	return temp % 10 == 0;														-- sum modulo 10 is zero when isbn-13/ismn is correct&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N O R M A L I Z E _ L C C N &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
lccn normalization (http://www.loc.gov/marc/lccn-namespace.html#normalization)&lt;br /&gt;
1. Remove all blanks.&lt;br /&gt;
2. If there is a forward slash (/) in the string, remove it, and remove all characters to the right of the forward slash.&lt;br /&gt;
3. If there is a hyphen in the string:&lt;br /&gt;
	a. Remove it.&lt;br /&gt;
	b. Inspect the substring following (to the right of) the (removed) hyphen. Then (and assuming that steps 1 and 2 have been carried out):&lt;br /&gt;
		1. All these characters should be digits, and there should be six or less. (not done in this function)&lt;br /&gt;
		2. If the length of the substring is less than 6, left-fill the substring with zeroes until the length is six.&lt;br /&gt;
&lt;br /&gt;
Returns a normalized lccn for lccn() to validate.  There is no error checking (step 3.b.1) performed in this function.&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function normalize_lccn (lccn)&lt;br /&gt;
	lccn = lccn:gsub (&amp;quot;%s&amp;quot;, &amp;quot;&amp;quot;);									-- 1. strip whitespace&lt;br /&gt;
&lt;br /&gt;
	if nil ~= string.find (lccn,&#039;/&#039;) then&lt;br /&gt;
		lccn = lccn:match (&amp;quot;(.-)/&amp;quot;);								-- 2. remove forward slash and all character to the right of it&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local prefix&lt;br /&gt;
	local suffix&lt;br /&gt;
	prefix, suffix = lccn:match (&amp;quot;(.+)%-(.+)&amp;quot;);						-- 3.a remove hyphen by splitting the string into prefix and suffix&lt;br /&gt;
&lt;br /&gt;
	if nil ~= suffix then											-- if there was a hyphen&lt;br /&gt;
		suffix=string.rep(&amp;quot;0&amp;quot;, 6-string.len (suffix)) .. suffix;	-- 3.b.2 left fill the suffix with 0s if suffix length less than 6&lt;br /&gt;
		lccn=prefix..suffix;										-- reassemble the lccn&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return lccn;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
--============================&amp;lt;&amp;lt; I D E N T I F I E R   F U N C T I O N S &amp;gt;&amp;gt;====================================&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A R X I V &amp;gt;--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
See: http://arxiv.org/help/arxiv_identifier&lt;br /&gt;
&lt;br /&gt;
format and error check arXiv identifier.  There are three valid forms of the identifier:&lt;br /&gt;
the first form, valid only between date codes 9108 and 0703 is:&lt;br /&gt;
	arXiv:&amp;lt;archive&amp;gt;.&amp;lt;class&amp;gt;/&amp;lt;date code&amp;gt;&amp;lt;number&amp;gt;&amp;lt;version&amp;gt;&lt;br /&gt;
where:&lt;br /&gt;
	&amp;lt;archive&amp;gt; is a string of alpha characters - may be hyphenated; no other punctuation&lt;br /&gt;
	&amp;lt;class&amp;gt; is a string of alpha characters - may be hyphenated; no other punctuation&lt;br /&gt;
	&amp;lt;date code&amp;gt; is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01&lt;br /&gt;
		first digit of YY for this form can only 9 and 0&lt;br /&gt;
	&amp;lt;number&amp;gt; is a three-digit number&lt;br /&gt;
	&amp;lt;version&amp;gt; is a 1 or more digit number preceded with a lowercase v; no spaces (undocumented)&lt;br /&gt;
	&lt;br /&gt;
the second form, valid from April 2007 through December 2014 is:&lt;br /&gt;
	arXiv:&amp;lt;date code&amp;gt;.&amp;lt;number&amp;gt;&amp;lt;version&amp;gt;&lt;br /&gt;
where:&lt;br /&gt;
	&amp;lt;date code&amp;gt; is four digits in the form YYMM where YY is the last two digits of the four-digit year and MM is the month number January = 01&lt;br /&gt;
	&amp;lt;number&amp;gt; is a four-digit number&lt;br /&gt;
	&amp;lt;version&amp;gt; is a 1 or more digit number preceded with a lowercase v; no spaces&lt;br /&gt;
&lt;br /&gt;
the third form, valid from January 2015 is:&lt;br /&gt;
	arXiv:&amp;lt;date code&amp;gt;.&amp;lt;number&amp;gt;&amp;lt;version&amp;gt;&lt;br /&gt;
where:&lt;br /&gt;
	&amp;lt;date code&amp;gt; and &amp;lt;version&amp;gt; are as defined for 0704-1412&lt;br /&gt;
	&amp;lt;number&amp;gt; is a five-digit number&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function arxiv (id, class)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;ARXIV&#039;];&lt;br /&gt;
	local year, month, version;&lt;br /&gt;
	local err_cat = &#039;&#039;;&lt;br /&gt;
	local text;&lt;br /&gt;
	&lt;br /&gt;
	if id:match(&amp;quot;^%a[%a%.%-]+/[90]%d[01]%d%d%d%d$&amp;quot;) or id:match(&amp;quot;^%a[%a%.%-]+/[90]%d[01]%d%d%d%dv%d+$&amp;quot;) then	-- test for the 9108-0703 format w/ &amp;amp; w/o version&lt;br /&gt;
		year, month = id:match(&amp;quot;^%a[%a%.%-]+/([90]%d)([01]%d)%d%d%d[v%d]*$&amp;quot;);&lt;br /&gt;
		year = tonumber(year);&lt;br /&gt;
		month = tonumber(month);&lt;br /&gt;
		if ((not (90 &amp;lt; year or 8 &amp;gt; year)) or (1 &amp;gt; month or 12 &amp;lt; month)) or		-- if invalid year or invalid month&lt;br /&gt;
			((91 == year and 7 &amp;gt; month) or (7 == year and 3 &amp;lt; month)) then		-- if years ok, are starting and ending months ok?&lt;br /&gt;
				err_cat = &#039; &#039; .. set_error( &#039;bad_arxiv&#039; );						-- set error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif id:match(&amp;quot;^%d%d[01]%d%.%d%d%d%d$&amp;quot;) or id:match(&amp;quot;^%d%d[01]%d%.%d%d%d%dv%d+$&amp;quot;) then	-- test for the 0704-1412 w/ &amp;amp; w/o version&lt;br /&gt;
		year, month = id:match(&amp;quot;^(%d%d)([01]%d)%.%d%d%d%d[v%d]*$&amp;quot;);&lt;br /&gt;
		year = tonumber(year);&lt;br /&gt;
		month = tonumber(month);&lt;br /&gt;
		if ((7 &amp;gt; year) or (14 &amp;lt; year) or (1 &amp;gt; month or 12 &amp;lt; month)) or			-- is year invalid or is month invalid? (doesn&#039;t test for future years)&lt;br /&gt;
			((7 == year) and (4 &amp;gt; month)) then --or									-- when year is 07, is month invalid (before April)?&lt;br /&gt;
				err_cat = &#039; &#039; .. set_error( &#039;bad_arxiv&#039; );						-- set error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif id:match(&amp;quot;^%d%d[01]%d%.%d%d%d%d%d$&amp;quot;) or id:match(&amp;quot;^%d%d[01]%d%.%d%d%d%d%dv%d+$&amp;quot;) then	-- test for the 1501- format w/ &amp;amp; w/o version&lt;br /&gt;
		year, month = id:match(&amp;quot;^(%d%d)([01]%d)%.%d%d%d%d%d[v%d]*$&amp;quot;);&lt;br /&gt;
		year = tonumber(year);&lt;br /&gt;
		month = tonumber(month);&lt;br /&gt;
		if ((15 &amp;gt; year) or (1 &amp;gt; month or 12 &amp;lt; month)) then						-- is year invalid or is month invalid? (doesn&#039;t test for future years)&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_arxiv&#039; );							-- set error message&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_arxiv&#039; );								-- arXiv id doesn&#039;t match any format&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;&lt;br /&gt;
&lt;br /&gt;
	if is_set (class) then&lt;br /&gt;
		class = &#039; [[&#039; .. &#039;//arxiv.org/archive/&#039; .. class .. &#039; &#039; .. class .. &#039;]]&#039;;	-- external link within square brackets, not wikilink&lt;br /&gt;
	else&lt;br /&gt;
		class = &#039;&#039;;																-- empty string for concatenation&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return text .. class;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; B I B C O D E &amp;gt;--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validates (sort of) and formats a bibcode id.&lt;br /&gt;
&lt;br /&gt;
Format for bibcodes is specified here: http://adsabs.harvard.edu/abs_doc/help_pages/data.html#bibcodes&lt;br /&gt;
&lt;br /&gt;
But, this: 2015arXiv151206696F is apparently valid so apparently, the only things that really matter are length, 19 characters&lt;br /&gt;
and first four digits must be a year.  This function makes these tests:&lt;br /&gt;
	length must be 19 characters&lt;br /&gt;
	characters in position&lt;br /&gt;
		1–4 must be digits and must represent a year in the range of 1000 – next year&lt;br /&gt;
		5 must be a letter&lt;br /&gt;
		6 must be letter, ampersand, or dot (ampersand cannot directly precede a dot; &amp;amp;. )&lt;br /&gt;
		7–8 must be letter, digit, ampersand, or dot (ampersand cannot directly precede a dot; &amp;amp;. )&lt;br /&gt;
		9–18 must be letter, digit, or dot&lt;br /&gt;
		19 must be a letter or dot&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function bibcode (id, access)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;BIBCODE&#039;];&lt;br /&gt;
	local err_type;&lt;br /&gt;
	local year;&lt;br /&gt;
&lt;br /&gt;
	local text = external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
		prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode,&lt;br /&gt;
		access=access});&lt;br /&gt;
	&lt;br /&gt;
	if 19 ~= id:len() then&lt;br /&gt;
		err_type = &#039;length&#039;;&lt;br /&gt;
	else&lt;br /&gt;
		year = id:match (&amp;quot;^(%d%d%d%d)[%a][%a&amp;amp;%.][%a&amp;amp;%.%d][%a&amp;amp;%.%d][%a%d%.]+[%a%.]$&amp;quot;)	-- &lt;br /&gt;
		if not year then														-- if nil then no pattern match&lt;br /&gt;
			err_type = &#039;value&#039;;													-- so value error&lt;br /&gt;
		else&lt;br /&gt;
			local next_year = tonumber(os.date (&#039;%Y&#039;))+1;						-- get the current year as a number and add one for next year&lt;br /&gt;
			year = tonumber (year);												-- convert year portion of bibcode to a number&lt;br /&gt;
			if (1000 &amp;gt; year) or (year &amp;gt; next_year) then&lt;br /&gt;
				err_type = &#039;year&#039;;												-- year out of bounds&lt;br /&gt;
			end&lt;br /&gt;
			if id:find(&#039;&amp;amp;%.&#039;) then&lt;br /&gt;
				err_type = &#039;journal&#039;;											-- journal abbreviation must not have &#039;&amp;amp;.&#039; (if it does its missing a letter)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (err_type) then													-- if there was an error detected&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_bibcode&#039;, {err_type});&lt;br /&gt;
	end&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; B I O R X I V &amp;gt;-----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format bioRxiv id and do simple error checking.  BiorXiv ids are exactly 6 digits.&lt;br /&gt;
The bioRxiv id is the number following the last slash in the bioRxiv-issued DOI:&lt;br /&gt;
https://doi.org/10.1101/078733 -&amp;gt; 078733&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function biorxiv(id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;BIORXIV&#039;];&lt;br /&gt;
	local err_cat = &#039;&#039;;															-- presume that bioRxiv id is valid&lt;br /&gt;
	&lt;br /&gt;
	if nil == id:match(&amp;quot;^%d%d%d%d%d%d$&amp;quot;) then									-- if bioRxiv id has anything but six digits&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_biorxiv&#039;);	-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator,&lt;br /&gt;
			encode=handler.encode, access=handler.access}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T E S E E R X &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
CiteSeerX use their own notion of &amp;quot;doi&amp;quot; (not to be confused with the identifiers resolved via doi.org).&lt;br /&gt;
&lt;br /&gt;
The description of the structure of this identifier can be found at Help_talk:Citation_Style_1/Archive_26#CiteSeerX_id_structure&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function citeseerx (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;CITESEERX&#039;];&lt;br /&gt;
	local matched;&lt;br /&gt;
	&lt;br /&gt;
	local text = external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
		prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode,&lt;br /&gt;
		access=handler.access});&lt;br /&gt;
	&lt;br /&gt;
	matched = id:match (&amp;quot;^10%.1%.1%.[1-9]%d?%d?%d?%.[1-9]%d?%d?%d?$&amp;quot;);&lt;br /&gt;
	if not matched then&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_citeseerx&#039; );&lt;br /&gt;
	end&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D O I &amp;gt;------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a DOI and checks for DOI errors.&lt;br /&gt;
&lt;br /&gt;
DOI names contain two parts: prefix and suffix separated by a forward slash.&lt;br /&gt;
	Prefix: directory indicator &#039;10.&#039; followed by a registrant code&lt;br /&gt;
	Suffix: character string of any length chosen by the registrant&lt;br /&gt;
&lt;br /&gt;
This function checks a DOI name for: prefix/suffix.  If the doi name contains spaces or endashes, or, if it ends&lt;br /&gt;
with a period or a comma, this function will emit a bad_doi error message.&lt;br /&gt;
&lt;br /&gt;
DOI names are case-insensitive and can incorporate any printable Unicode characters so the test for spaces, endash,&lt;br /&gt;
and terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely&lt;br /&gt;
if ever used in doi names.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function doi(id, inactive, access)&lt;br /&gt;
	local cat = &amp;quot;&amp;quot;&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;DOI&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local text;&lt;br /&gt;
	if is_set(inactive) then&lt;br /&gt;
		local inactive_year = inactive:match(&amp;quot;%d%d%d%d&amp;quot;) or &#039;&#039;;					-- try to get the year portion from the inactive date&lt;br /&gt;
		if is_set(inactive_year) then&lt;br /&gt;
			table.insert( z.error_categories, &amp;quot;Pages with DOIs inactive since &amp;quot; .. inactive_year );&lt;br /&gt;
		else&lt;br /&gt;
			table.insert( z.error_categories, &amp;quot;Pages with inactive DOIs&amp;quot; );		-- when inactive doesn&#039;t contain a recognizable year&lt;br /&gt;
		end&lt;br /&gt;
		inactive = &amp;quot; (&amp;quot; .. cfg.messages[&#039;inactive&#039;] .. &amp;quot; &amp;quot; .. inactive .. &amp;quot;)&amp;quot; &lt;br /&gt;
	end&lt;br /&gt;
	text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
		prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=access}) .. (inactive or &#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
	if nil == id:match(&amp;quot;^10%.[^%s–]-/[^%s–]-[^%.,]$&amp;quot;) then						-- doi must begin with &#039;10.&#039;, must contain a fwd slash, must not contain spaces or endashes, and must not end with period or comma&lt;br /&gt;
		cat = &#039; &#039; .. set_error( &#039;bad_doi&#039; );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return text .. cat &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H D L &amp;gt;------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats an HDL with minor error checking.&lt;br /&gt;
&lt;br /&gt;
HDL names contain two parts: prefix and suffix separated by a forward slash.&lt;br /&gt;
	Prefix: character string using any character in the UCS-2 character set except &#039;/&#039;&lt;br /&gt;
	Suffix: character string of any length using any character in the UCS-2 character set chosen by the registrant&lt;br /&gt;
&lt;br /&gt;
This function checks a HDL name for: prefix/suffix.  If the HDL name contains spaces, endashes, or, if it ends&lt;br /&gt;
with a period or a comma, this function will emit a bad_hdl error message.&lt;br /&gt;
&lt;br /&gt;
HDL names are case-insensitive and can incorporate any printable Unicode characters so the test for endashes and&lt;br /&gt;
terminal punctuation may not be technically correct but it appears, that in practice these characters are rarely&lt;br /&gt;
if ever used in HDLs.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function hdl(id, access)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;HDL&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=access})&lt;br /&gt;
&lt;br /&gt;
	if nil == id:match(&amp;quot;^[^%s–]-/[^%s–]-[^%.,]$&amp;quot;) then							-- hdl must contain a fwd slash, must not contain spaces, endashes, and must not end with period or comma&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_hdl&#039; );&lt;br /&gt;
	end&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S B N &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines whether an ISBN string is valid&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function isbn( isbn_str )&lt;br /&gt;
	if nil ~= isbn_str:match(&amp;quot;[^%s-0-9X]&amp;quot;) then&lt;br /&gt;
		return false, &#039;invalid character&#039;;										-- fail if isbn_str contains anything but digits, hyphens, or the uppercase X&lt;br /&gt;
	end&lt;br /&gt;
	isbn_str = isbn_str:gsub( &amp;quot;-&amp;quot;, &amp;quot;&amp;quot; ):gsub( &amp;quot; &amp;quot;, &amp;quot;&amp;quot; );						-- remove hyphens and spaces&lt;br /&gt;
	local len = isbn_str:len();&lt;br /&gt;
 &lt;br /&gt;
	if len ~= 10 and len ~= 13 then&lt;br /&gt;
		return false, &#039;length&#039;;													-- fail if incorrect length&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if len == 10 then&lt;br /&gt;
		if isbn_str:match( &amp;quot;^%d*X?$&amp;quot; ) == nil then								-- fail if isbn_str has &#039;X&#039; anywhere but last position&lt;br /&gt;
			return false, &#039;invalid form&#039;;									&lt;br /&gt;
		end&lt;br /&gt;
		return is_valid_isxn(isbn_str, 10), &#039;checksum&#039;;&lt;br /&gt;
	else&lt;br /&gt;
		if isbn_str:match( &amp;quot;^%d+$&amp;quot; ) == nil then&lt;br /&gt;
			return false, &#039;invalid character&#039;;									-- fail if isbn13 is not all digits&lt;br /&gt;
		end&lt;br /&gt;
		if isbn_str:match( &amp;quot;^97[89]%d*$&amp;quot; ) == nil then&lt;br /&gt;
			return false, &#039;invalid prefix&#039;;										-- fail when isbn13 does not begin with 978 or 979&lt;br /&gt;
		end&lt;br /&gt;
		return is_valid_isxn_13 (isbn_str), &#039;checksum&#039;;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A M A Z O N &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a link to Amazon.  Do simple error checking: asin must be mix of 10 numeric or uppercase alpha&lt;br /&gt;
characters.  If a mix, first character must be uppercase alpha; if all numeric, asins must be 10-digit&lt;br /&gt;
isbn. If 10-digit isbn, add a maintenance category so a bot or awb script can replace |asin= with |isbn=.&lt;br /&gt;
Error message if not 10 characters, if not isbn10, if mixed and first character is a digit.&lt;br /&gt;
&lt;br /&gt;
This function is positioned here because it calls isbn()&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function asin(id, domain)&lt;br /&gt;
	local err_cat = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	if not id:match(&amp;quot;^[%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u][%d%u]$&amp;quot;) then&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error (&#039;bad_asin&#039;);								-- asin is not a mix of 10 uppercase alpha and numeric characters&lt;br /&gt;
	else&lt;br /&gt;
		if id:match(&amp;quot;^%d%d%d%d%d%d%d%d%d[%dX]$&amp;quot;) then							-- if 10-digit numeric (or 9 digits with terminal X)&lt;br /&gt;
			if isbn( id ) then													-- see if asin value is isbn10&lt;br /&gt;
				add_maint_cat (&#039;ASIN&#039;);&lt;br /&gt;
			elseif not is_set (err_cat) then&lt;br /&gt;
				err_cat = &#039; &#039; .. set_error (&#039;bad_asin&#039;);						-- asin is not isbn10&lt;br /&gt;
			end&lt;br /&gt;
		elseif not id:match(&amp;quot;^%u[%d%u]+$&amp;quot;) then&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error (&#039;bad_asin&#039;);							-- asin doesn&#039;t begin with uppercase alpha&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not is_set(domain) then &lt;br /&gt;
		domain = &amp;quot;com&amp;quot;;&lt;br /&gt;
	elseif in_array (domain, {&#039;jp&#039;, &#039;uk&#039;}) then			-- Japan, United Kingdom&lt;br /&gt;
		domain = &amp;quot;co.&amp;quot; .. domain;&lt;br /&gt;
	elseif in_array (domain, {&#039;au&#039;, &#039;br&#039;, &#039;mx&#039;}) then	-- Australia, Brazil, Mexico&lt;br /&gt;
		domain = &amp;quot;com.&amp;quot; .. domain;&lt;br /&gt;
	end&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;ASIN&#039;];&lt;br /&gt;
	return external_link_id({link=handler.link,&lt;br /&gt;
		label=handler.label, prefix=handler.prefix .. domain .. &amp;quot;/dp/&amp;quot;,&lt;br /&gt;
		id=id, encode=handler.encode, separator = handler.separator}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S M N &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines whether an ISMN string is valid.  Similar to isbn-13, ismn is 13 digits begining 979-0-... and uses the&lt;br /&gt;
same check digit calculations.  See http://www.ismn-international.org/download/Web_ISMN_Users_Manual_2008-6.pdf&lt;br /&gt;
section 2, pages 9–12.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function ismn (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;ISMN&#039;];&lt;br /&gt;
	local text;&lt;br /&gt;
	local valid_ismn = true;&lt;br /&gt;
	local id_copy;&lt;br /&gt;
&lt;br /&gt;
	id_copy = id;																-- save a copy because this testing is destructive&lt;br /&gt;
	id=id:gsub( &amp;quot;[%s-–]&amp;quot;, &amp;quot;&amp;quot; );													-- strip spaces, hyphens, and endashes from the ismn&lt;br /&gt;
&lt;br /&gt;
	if 13 ~= id:len() or id:match( &amp;quot;^9790%d*$&amp;quot; ) == nil then					-- ismn must be 13 digits and begin 9790&lt;br /&gt;
		valid_ismn = false;&lt;br /&gt;
	else&lt;br /&gt;
		valid_ismn=is_valid_isxn_13 (id);										-- validate ismn&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
--	text = internal_link_id({link = handler.link, label = handler.label,		-- use this (or external version) when there is some place to link to&lt;br /&gt;
--		prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})&lt;br /&gt;
 &lt;br /&gt;
	text = table.concat (&lt;br /&gt;
		{&lt;br /&gt;
		make_wikilink (handler.link, handler.label),&lt;br /&gt;
		handler.separator,&lt;br /&gt;
		id_copy&lt;br /&gt;
		});		-- because no place to link to yet&lt;br /&gt;
&lt;br /&gt;
	if false == valid_ismn then&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_ismn&#039; )							-- add an error message if the ismn is invalid&lt;br /&gt;
	end &lt;br /&gt;
	&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S S N &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validate and format an issn.  This code fixes the case where an editor has included an ISSN in the citation but&lt;br /&gt;
has separated the two groups of four digits with a space.  When that condition occurred, the resulting link looked&lt;br /&gt;
like this:&lt;br /&gt;
&lt;br /&gt;
	|issn=0819 4327 gives: [http://www.worldcat.org/issn/0819 4327 0819 4327]	-- can&#039;t have spaces in an external link&lt;br /&gt;
	&lt;br /&gt;
This code now prevents that by inserting a hyphen at the issn midpoint.  It also validates the issn for length&lt;br /&gt;
and makes sure that the checkdigit agrees with the calculated value.  Incorrect length (8 digits), characters&lt;br /&gt;
other than 0-9 and X, or checkdigit / calculated value mismatch will all cause a check issn error message.  The&lt;br /&gt;
issn is always displayed with a hyphen, even if the issn was given as a single group of 8 digits.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function issn(id, e)&lt;br /&gt;
	local issn_copy = id;														-- save a copy of unadulterated issn; use this version for display if issn does not validate&lt;br /&gt;
	local handler;&lt;br /&gt;
	local text;&lt;br /&gt;
	local valid_issn = true;&lt;br /&gt;
	&lt;br /&gt;
	if e then&lt;br /&gt;
		 handler = cfg.id_handlers[&#039;EISSN&#039;];&lt;br /&gt;
	else&lt;br /&gt;
		 handler = cfg.id_handlers[&#039;ISSN&#039;];&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	id=id:gsub( &amp;quot;[%s-–]&amp;quot;, &amp;quot;&amp;quot; );													-- strip spaces, hyphens, and endashes from the issn&lt;br /&gt;
&lt;br /&gt;
	if 8 ~= id:len() or nil == id:match( &amp;quot;^%d*X?$&amp;quot; ) then						-- validate the issn: 8 digits long, containing only 0-9 or X in the last position&lt;br /&gt;
		valid_issn=false;														-- wrong length or improper character&lt;br /&gt;
	else&lt;br /&gt;
		valid_issn=is_valid_isxn(id, 8);										-- validate issn&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if true == valid_issn then&lt;br /&gt;
		id = string.sub( id, 1, 4 ) .. &amp;quot;-&amp;quot; .. string.sub( id, 5 );				-- if valid, display correctly formatted version&lt;br /&gt;
	else&lt;br /&gt;
		id = issn_copy;															-- if not valid, use the show the invalid issn with error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
		prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})&lt;br /&gt;
 &lt;br /&gt;
	if false == valid_issn then&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_issn&#039;, e and &#039;e&#039; or &#039;&#039; )			-- add an error message if the issn is invalid&lt;br /&gt;
	end &lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; J F M &amp;gt;-----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
A numerical identifier in the form nn.nnnn.nn&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function jfm (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;JFM&#039;];&lt;br /&gt;
	local id_num;&lt;br /&gt;
	local err_cat = &#039;&#039;;&lt;br /&gt;
	&lt;br /&gt;
	id_num = id:match (&#039;^[Jj][Ff][Mm](.*)$&#039;);									-- identifier with jfm prefix; extract identifier&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then&lt;br /&gt;
		add_maint_cat (&#039;jfm_format&#039;);&lt;br /&gt;
	else																		-- plain number without mr prefix&lt;br /&gt;
		id_num = id;															-- if here id does not have prefix&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if id_num and id_num:match(&#039;^%d%d%.%d%d%d%d%.%d%d$&#039;) then&lt;br /&gt;
		id = id_num;															-- jfm matches pattern&lt;br /&gt;
	else&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_jfm&#039; );								-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L C C N &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format LCCN link and do simple error checking.  LCCN is a character string 8-12 characters long. The length of&lt;br /&gt;
the LCCN dictates the character type of the first 1-3 characters; the rightmost eight are always digits.&lt;br /&gt;
http://info-uri.info/registry/OAIHandler?verb=GetRecord&amp;amp;metadataPrefix=reg&amp;amp;identifier=info:lccn/&lt;br /&gt;
&lt;br /&gt;
length = 8 then all digits&lt;br /&gt;
length = 9 then lccn[1] is lower case alpha&lt;br /&gt;
length = 10 then lccn[1] and lccn[2] are both lower case alpha or both digits&lt;br /&gt;
length = 11 then lccn[1] is lower case alpha, lccn[2] and lccn[3] are both lower case alpha or both digits&lt;br /&gt;
length = 12 then lccn[1] and lccn[2] are both lower case alpha&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function lccn(lccn)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;LCCN&#039;];&lt;br /&gt;
	local err_cat = &#039;&#039;;															-- presume that LCCN is valid&lt;br /&gt;
	local id = lccn;															-- local copy of the lccn&lt;br /&gt;
&lt;br /&gt;
	id = normalize_lccn (id);													-- get canonical form (no whitespace, hyphens, forward slashes)&lt;br /&gt;
	local len = id:len();														-- get the length of the lccn&lt;br /&gt;
&lt;br /&gt;
	if 8 == len then&lt;br /&gt;
		if id:match(&amp;quot;[^%d]&amp;quot;) then												-- if LCCN has anything but digits (nil if only digits)&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );							-- set an error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif 9 == len then														-- LCCN should be adddddddd&lt;br /&gt;
		if nil == id:match(&amp;quot;%l%d%d%d%d%d%d%d%d&amp;quot;) then							-- does it match our pattern?&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );							-- set an error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif 10 == len then														-- LCCN should be aadddddddd or dddddddddd&lt;br /&gt;
		if id:match(&amp;quot;[^%d]&amp;quot;) then												-- if LCCN has anything but digits (nil if only digits) ...&lt;br /&gt;
			if nil == id:match(&amp;quot;^%l%l%d%d%d%d%d%d%d%d&amp;quot;) then					-- ... see if it matches our pattern&lt;br /&gt;
				err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );						-- no match, set an error message&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	elseif 11 == len then														-- LCCN should be aaadddddddd or adddddddddd&lt;br /&gt;
		if not (id:match(&amp;quot;^%l%l%l%d%d%d%d%d%d%d%d&amp;quot;) or id:match(&amp;quot;^%l%d%d%d%d%d%d%d%d%d%d&amp;quot;)) then	-- see if it matches one of our patterns&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );							-- no match, set an error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif 12 == len then														-- LCCN should be aadddddddddd&lt;br /&gt;
		if not id:match(&amp;quot;^%l%l%d%d%d%d%d%d%d%d%d%d&amp;quot;) then						-- see if it matches our pattern&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );							-- no match, set an error message&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );								-- wrong length, set an error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set (err_cat) and nil ~= lccn:find (&#039;%s&#039;) then&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_lccn&#039; );								-- lccn contains a space, set an error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=lccn,separator=handler.separator, encode=handler.encode}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M R &amp;gt;--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
A seven digit number; if not seven digits, zero-fill leading digits to make seven digits.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function mr (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;MR&#039;];&lt;br /&gt;
	local id_num;&lt;br /&gt;
	local id_len;&lt;br /&gt;
	local err_cat = &#039;&#039;;&lt;br /&gt;
	&lt;br /&gt;
	id_num = id:match (&#039;^[Mm][Rr](%d+)$&#039;);										-- identifier with mr prefix&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then&lt;br /&gt;
		add_maint_cat (&#039;mr_format&#039;);&lt;br /&gt;
	else																		-- plain number without mr prefix&lt;br /&gt;
		id_num = id:match (&#039;^%d+$&#039;);											-- if here id is all digits&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	id_len = id_num and id_num:len() or 0;&lt;br /&gt;
	if (7 &amp;gt;= id_len) and (0 ~= id_len) then&lt;br /&gt;
		id = string.rep (&#039;0&#039;, 7-id_len ) .. id_num;								-- zero-fill leading digits&lt;br /&gt;
	else&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_mr&#039; );									-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; O C L C &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validate and format an oclc id.  https://www.oclc.org/batchload/controlnumber.en.html&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function oclc (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;OCLC&#039;];&lt;br /&gt;
	local number;&lt;br /&gt;
	local err_msg = &#039;&#039;;															-- empty string for concatenation&lt;br /&gt;
	&lt;br /&gt;
	if id:match(&#039;^ocm%d%d%d%d%d%d%d%d$&#039;) then									-- ocm prefix and 8 digits; 001 field (12 characters)&lt;br /&gt;
		number = id:match(&#039;ocm(%d+)&#039;);											-- get the number&lt;br /&gt;
	elseif id:match(&#039;^ocn%d%d%d%d%d%d%d%d%d$&#039;) then								-- ocn prefix and 9 digits; 001 field (12 characters)&lt;br /&gt;
		number = id:match(&#039;ocn(%d+)&#039;);											-- get the number&lt;br /&gt;
	elseif id:match(&#039;^on%d%d%d%d%d%d%d%d%d%d+$&#039;) then							-- on prefix and 10 or more digits; 001 field (12 characters)&lt;br /&gt;
		number = id:match(&#039;^on(%d%d%d%d%d%d%d%d%d%d+)$&#039;);						-- get the number&lt;br /&gt;
	elseif id:match(&#039;^%(OCoLC%)[1-9]%d*$&#039;) then									-- (OCoLC) prefix and variable number digits; no leading zeros; 035 field&lt;br /&gt;
		number = id:match(&#039;%(OCoLC%)([1-9]%d*)&#039;);								-- get the number&lt;br /&gt;
		if 9 &amp;lt; number:len() then&lt;br /&gt;
			number = nil;														-- contrain to 1 to 9 digits; change this when oclc issues 10-digit numbers&lt;br /&gt;
		end&lt;br /&gt;
	elseif id:match(&#039;^%d+$&#039;) then												-- no prefix&lt;br /&gt;
		number = id;															-- get the number&lt;br /&gt;
		if 10 &amp;lt; number:len() then&lt;br /&gt;
			number = nil;														-- contrain to 1 to 10 digits; change this when oclc issues 11-digit numbers&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if number then																-- proper format&lt;br /&gt;
		id = number;															-- exclude prefix, if any, from external link&lt;br /&gt;
	else&lt;br /&gt;
		err_msg = &#039; &#039; .. set_error( &#039;bad_oclc&#039; )								-- add an error message if the id is malformed&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local text = external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
		prefix=handler.prefix, id=id, separator=handler.separator, encode=handler.encode}) .. err_msg;&lt;br /&gt;
&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; O P E N L I B R A R Y &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats an OpenLibrary link, and checks for associated errors.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function openlibrary(id, access)&lt;br /&gt;
	local code;&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;OL&#039;];&lt;br /&gt;
	local ident;&lt;br /&gt;
	&lt;br /&gt;
	ident, code = id:gsub(&#039;^OL&#039;, &#039;&#039;):match(&amp;quot;^(%d+([AMW]))$&amp;quot;);					-- optional OL prefix followed immediately by digits followed by &#039;A&#039;, &#039;M&#039;, or &#039;W&#039;; remove OL prefix&lt;br /&gt;
&lt;br /&gt;
	if not is_set (ident) then													-- if malformed return an error&lt;br /&gt;
		return external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
			prefix=handler.prefix .. &#039;OL&#039;,&lt;br /&gt;
			id=id, separator=handler.separator,	encode = handler.encode,&lt;br /&gt;
			access = access}) .. &#039; &#039; .. set_error( &#039;bad_ol&#039; );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	id = ident;																	-- use ident without the optional OL prefix (it has been removed)&lt;br /&gt;
	&lt;br /&gt;
	if ( code == &amp;quot;A&amp;quot; ) then&lt;br /&gt;
		return external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
			prefix=handler.prefix .. &#039;authors/OL&#039;,&lt;br /&gt;
			id=id, separator=handler.separator,	encode = handler.encode,&lt;br /&gt;
			access = access})&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if ( code == &amp;quot;M&amp;quot; ) then&lt;br /&gt;
		return external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
			prefix=handler.prefix .. &#039;books/OL&#039;,&lt;br /&gt;
			id=id, separator=handler.separator,	encode = handler.encode,&lt;br /&gt;
			access = access})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if ( code == &amp;quot;W&amp;quot; ) then&lt;br /&gt;
		return external_link_id({link=handler.link, label=handler.label,&lt;br /&gt;
			prefix=handler.prefix .. &#039;works/OL&#039;,&lt;br /&gt;
			id=id, separator=handler.separator,	encode = handler.encode,&lt;br /&gt;
			access = access})&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P M C &amp;gt;------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format a PMC, do simple error checking, and check for embargoed articles.&lt;br /&gt;
&lt;br /&gt;
The embargo parameter takes a date for a value. If the embargo date is in the future the PMC identifier will not&lt;br /&gt;
be linked to the article.  If the embargo date is today or in the past, or if it is empty or omitted, then the&lt;br /&gt;
PMC identifier is linked to the article through the link at cfg.id_handlers[&#039;PMC&#039;].prefix.&lt;br /&gt;
&lt;br /&gt;
PMC embargo date testing is done in function is_embargoed () which is called earlier because when the citation&lt;br /&gt;
has |pmc=&amp;lt;value&amp;gt; but does not have a |url= then |title= is linked with the PMC link.  Function is_embargoed ()&lt;br /&gt;
returns the embargo date if the PMC article is still embargoed, otherwise it returns an empty string.&lt;br /&gt;
&lt;br /&gt;
PMCs are sequential numbers beginning at 1 and counting up.  This code checks the PMC to see that it contains only digits and is less&lt;br /&gt;
than test_limit; the value in local variable test_limit will need to be updated periodically as more PMCs are issued.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function pmc(id, embargo)&lt;br /&gt;
	local test_limit = 6000000;													-- update this value as PMCs approach&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;PMC&#039;];&lt;br /&gt;
	local err_cat = &#039;&#039;;															-- presume that PMC is valid&lt;br /&gt;
	local id_num;&lt;br /&gt;
	local text;&lt;br /&gt;
	&lt;br /&gt;
	id_num = id:match (&#039;^[Pp][Mm][Cc](%d+)$&#039;);									-- identifier with pmc prefix&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then&lt;br /&gt;
		add_maint_cat (&#039;pmc_format&#039;);&lt;br /&gt;
	else																		-- plain number without pmc prefix&lt;br /&gt;
		id_num = id:match (&#039;^%d+$&#039;);											-- if here id is all digits&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then														-- id_num has a value so test it&lt;br /&gt;
		id_num = tonumber(id_num);												-- convert id_num to a number for range testing&lt;br /&gt;
		if 1 &amp;gt; id_num or test_limit &amp;lt; id_num then								-- if PMC is outside test limit boundaries&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_pmc&#039; );							-- set an error message&lt;br /&gt;
		else&lt;br /&gt;
			id = tostring (id_num);												-- make sure id is a string&lt;br /&gt;
		end&lt;br /&gt;
	else																		-- when id format incorrect&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_pmc&#039; );								-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set (embargo) then													-- is PMC is still embargoed?&lt;br /&gt;
		text = table.concat (													-- still embargoed so no external link&lt;br /&gt;
			{&lt;br /&gt;
			make_wikilink (handler.link, handler.label),&lt;br /&gt;
			handler.separator,&lt;br /&gt;
			id,&lt;br /&gt;
			err_cat&lt;br /&gt;
			});&lt;br /&gt;
	else&lt;br /&gt;
		text = external_link_id({link = handler.link, label = handler.label,	-- no embargo date or embargo has expired, ok to link to article&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;&lt;br /&gt;
	end&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P M I D &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format PMID and do simple error checking.  PMIDs are sequential numbers beginning at 1 and counting up.  This&lt;br /&gt;
code checks the PMID to see that it contains only digits and is less than test_limit; the value in local variable&lt;br /&gt;
test_limit will need to be updated periodically as more PMIDs are issued.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function pmid(id)&lt;br /&gt;
	local test_limit = 32000000;												-- update this value as PMIDs approach&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;PMID&#039;];&lt;br /&gt;
	local err_cat = &#039;&#039;;															-- presume that PMID is valid&lt;br /&gt;
	&lt;br /&gt;
	if id:match(&amp;quot;[^%d]&amp;quot;) then													-- if PMID has anything but digits&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_pmid&#039; );								-- set an error message&lt;br /&gt;
	else																		-- PMID is only digits&lt;br /&gt;
		local id_num = tonumber(id);											-- convert id to a number for range testing&lt;br /&gt;
		if 1 &amp;gt; id_num or test_limit &amp;lt; id_num then								-- if PMID is outside test limit boundaries&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_pmid&#039; );							-- set an error message&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S S R N &amp;gt;----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format an ssrn, do simple error checking&lt;br /&gt;
&lt;br /&gt;
SSRNs are sequential numbers beginning at 100? and counting up.  This code checks the ssrn to see that it is&lt;br /&gt;
only digits and is greater than 99 and less than test_limit; the value in local variable test_limit will need&lt;br /&gt;
to be updated periodically as more SSRNs are issued.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function ssrn (id)&lt;br /&gt;
	local test_limit = 3500000;													-- update this value as SSRNs approach&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;SSRN&#039;];&lt;br /&gt;
	local err_cat = &#039;&#039;;															-- presume that SSRN is valid&lt;br /&gt;
	local id_num;&lt;br /&gt;
	local text;&lt;br /&gt;
	&lt;br /&gt;
	id_num = id:match (&#039;^%d+$&#039;);												-- id must be all digits&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then														-- id_num has a value so test it&lt;br /&gt;
		id_num = tonumber(id_num);												-- convert id_num to a number for range testing&lt;br /&gt;
		if 100 &amp;gt; id_num or test_limit &amp;lt; id_num then								-- if SSRN is outside test limit boundaries&lt;br /&gt;
			err_cat = &#039; &#039; .. set_error( &#039;bad_ssrn&#039; );							-- set an error message&lt;br /&gt;
		end&lt;br /&gt;
	else																		-- when id format incorrect&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_ssrn&#039; );								-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
		prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode, access=handler.access}) .. err_cat;&lt;br /&gt;
&lt;br /&gt;
	return text;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; U S E N E T _ I D &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validate and format a usenet message id.  Simple error checking, looks for &#039;id-left@id-right&#039; not enclosed in&lt;br /&gt;
&#039;&amp;lt;&#039; and/or &#039;&amp;gt;&#039; angle brackets.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function usenet_id (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;USENETID&#039;];&lt;br /&gt;
&lt;br /&gt;
	local text = external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
		prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode})&lt;br /&gt;
 &lt;br /&gt;
	if not id:match(&#039;^.+@.+$&#039;) or not id:match(&#039;^[^&amp;lt;].*[^&amp;gt;]$&#039;)then				-- doesn&#039;t have &#039;@&#039; or has one or first or last character is &#039;&amp;lt; or &#039;&amp;gt;&#039;&lt;br /&gt;
		text = text .. &#039; &#039; .. set_error( &#039;bad_usenet_id&#039; )						-- add an error message if the message id is invalid&lt;br /&gt;
	end &lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; Z B L &amp;gt;-----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
A numerical identifier in the form nnnn.nnnnn - leading zeros in the first quartet optional&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function zbl (id)&lt;br /&gt;
	local handler = cfg.id_handlers[&#039;ZBL&#039;];&lt;br /&gt;
	local id_num;&lt;br /&gt;
	local err_cat = &#039;&#039;;&lt;br /&gt;
	&lt;br /&gt;
	id_num = id:match (&#039;^[Zz][Bb][Ll](.*)$&#039;);									-- identifier with zbl prefix; extract identifier&lt;br /&gt;
&lt;br /&gt;
	if is_set (id_num) then&lt;br /&gt;
		add_maint_cat (&#039;zbl_format&#039;);&lt;br /&gt;
	else																		-- plain number without zbl prefix&lt;br /&gt;
		id_num = id;															-- if here id does not have prefix&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if id_num:match(&#039;^%d?%d?%d?%d%.%d%d%d%d%d$&#039;) then&lt;br /&gt;
		id = id_num;															-- id matches pattern&lt;br /&gt;
	else&lt;br /&gt;
		err_cat = &#039; &#039; .. set_error( &#039;bad_zbl&#039; );								-- set an error message&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return external_link_id({link = handler.link, label = handler.label,&lt;br /&gt;
			prefix=handler.prefix,id=id,separator=handler.separator, encode=handler.encode}) .. err_cat;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--============================&amp;lt;&amp;lt; I N T E R F A C E   F U N C T I O N S &amp;gt;&amp;gt;==========================================&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; B U I L D _ I D _ L I S T &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Takes a table of IDs created by extract_ids() and turns it into a table of formatted ID outputs.&lt;br /&gt;
&lt;br /&gt;
inputs:&lt;br /&gt;
	id_list – table of identifiers built by extract_ids()&lt;br /&gt;
	options – table of various template parameter values used to modify some manually handled identifiers&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function build_id_list( id_list, options )&lt;br /&gt;
	local new_list, handler = {};&lt;br /&gt;
&lt;br /&gt;
	local function fallback(k) return { __index = function(t,i) return cfg.id_handlers[k][i] end } end;&lt;br /&gt;
	&lt;br /&gt;
	for k, v in pairs( id_list ) do												-- k is uc identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers[&#039;ISBN&#039;], v is a table&lt;br /&gt;
		-- fallback to read-only cfg&lt;br /&gt;
		handler = setmetatable( { [&#039;id&#039;] = v, [&#039;access&#039;] = options.IdAccessLevels[k] }, fallback(k) );&lt;br /&gt;
&lt;br /&gt;
		if handler.mode == &#039;external&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, external_link_id( handler ) } );&lt;br /&gt;
		elseif handler.mode == &#039;internal&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, internal_link_id( handler ) } );&lt;br /&gt;
		elseif handler.mode ~= &#039;manual&#039; then&lt;br /&gt;
			error( cfg.messages[&#039;unknown_ID_mode&#039;] );&lt;br /&gt;
		elseif k == &#039;ARXIV&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, arxiv( v, options.Class ) } ); &lt;br /&gt;
		elseif k == &#039;ASIN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, asin( v, options.ASINTLD ) } ); &lt;br /&gt;
		elseif k == &#039;BIBCODE&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, bibcode( v, handler.access ) } );&lt;br /&gt;
		elseif k == &#039;BIORXIV&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, biorxiv( v ) } );&lt;br /&gt;
		elseif k == &#039;CITESEERX&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, citeseerx( v ) } );&lt;br /&gt;
		elseif k == &#039;DOI&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, doi( v, options.DoiBroken, handler.access ) } );&lt;br /&gt;
		elseif k == &#039;EISSN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, issn( v, true ) } );		-- true distinguishes eissn from issn&lt;br /&gt;
		elseif k == &#039;HDL&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, hdl( v, handler.access ) } );&lt;br /&gt;
		elseif k == &#039;ISBN&#039; then&lt;br /&gt;
			local ISBN = internal_link_id( handler );&lt;br /&gt;
			local check;&lt;br /&gt;
			local err_type = &#039;&#039;;&lt;br /&gt;
			check, err_type = isbn( v );&lt;br /&gt;
			if not check then&lt;br /&gt;
				if is_set(options.IgnoreISBN) then								-- ISBN is invalid; if |ignore-isbn-error= set&lt;br /&gt;
					add_maint_cat (&#039;ignore_isbn_err&#039;);							-- ad a maint category&lt;br /&gt;
				else&lt;br /&gt;
					ISBN = ISBN .. set_error( &#039;bad_isbn&#039;, {err_type}, false, &amp;quot; &amp;quot;, &amp;quot;&amp;quot; );	-- else display an error message&lt;br /&gt;
				end&lt;br /&gt;
			elseif is_set(options.IgnoreISBN) then								-- ISBN is OK; if |ignore-isbn-error= set&lt;br /&gt;
				add_maint_cat (&#039;ignore_isbn_err&#039;);								-- because |ignore-isbn-error= unnecessary&lt;br /&gt;
			end&lt;br /&gt;
			table.insert( new_list, {handler.label, ISBN } );				&lt;br /&gt;
		elseif k == &#039;ISMN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, ismn( v ) } );&lt;br /&gt;
		elseif k == &#039;ISSN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, issn( v ) } );&lt;br /&gt;
		elseif k == &#039;JFM&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, jfm( v ) } );&lt;br /&gt;
		elseif k == &#039;LCCN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, lccn( v ) } );&lt;br /&gt;
		elseif k == &#039;MR&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, mr( v ) } );&lt;br /&gt;
		elseif k == &#039;OCLC&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, oclc( v ) } );&lt;br /&gt;
		elseif k == &#039;OL&#039; or k == &#039;OLA&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, openlibrary( v, handler.access ) } );&lt;br /&gt;
		elseif k == &#039;PMC&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, pmc( v, options.Embargo ) } );&lt;br /&gt;
		elseif k == &#039;PMID&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, pmid( v ) } );&lt;br /&gt;
		elseif k == &#039;SSRN&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, ssrn( v ) } );&lt;br /&gt;
		elseif k == &#039;USENETID&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, usenet_id( v ) } );&lt;br /&gt;
		elseif k == &#039;ZBL&#039; then&lt;br /&gt;
			table.insert( new_list, {handler.label, zbl( v ) } );&lt;br /&gt;
		else&lt;br /&gt;
			error( cfg.messages[&#039;unknown_manual_ID&#039;] );&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local function comp( a, b )	-- used in following table.sort()&lt;br /&gt;
		return a[1]:lower() &amp;lt; b[1]:lower();&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	table.sort( new_list, comp );&lt;br /&gt;
	for k, v in ipairs( new_list ) do&lt;br /&gt;
		new_list[k] = v[2];&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return new_list;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A C T _ I D S &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Populates ID table from arguments using configuration settings. Loops through cfg.id_handlers and searches args for&lt;br /&gt;
any of the parameters listed in each cfg.id_handlers[&#039;...&#039;].parameters.  If found, adds the parameter and value to&lt;br /&gt;
the identifier list.  Emits redundant error message is more than one alias exists in args&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extract_ids( args )&lt;br /&gt;
	local id_list = {};															-- list of identifiers found in args&lt;br /&gt;
	for k, v in pairs( cfg.id_handlers ) do										-- k is uc identifier name as index to cfg.id_handlers; e.g. cfg.id_handlers[&#039;ISBN&#039;], v is a table&lt;br /&gt;
		v = select_one( args, v.parameters, &#039;redundant_parameters&#039; );			-- v.parameters is a table of aliases for k; here we pick one from args if present&lt;br /&gt;
		if is_set(v) then id_list[k] = v; end									-- if found in args, add identifier to our list&lt;br /&gt;
	end&lt;br /&gt;
	return id_list;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A C T _ I D _ A C C E S S _ L E V E L S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Fetches custom id access levels from arguments using configuration settings.&lt;br /&gt;
Parameters which have a predefined access level (e.g. arxiv) do not use this&lt;br /&gt;
function as they are directly rendered as free without using an additional parameter.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extract_id_access_levels( args, id_list )&lt;br /&gt;
	local id_accesses_list = {};&lt;br /&gt;
	for k, v in pairs( cfg.id_handlers ) do&lt;br /&gt;
		local access_param = v.custom_access;&lt;br /&gt;
		local k_lower = string.lower(k);&lt;br /&gt;
		if is_set(access_param) then&lt;br /&gt;
			local access_level = args[access_param];&lt;br /&gt;
			if is_set(access_level) then&lt;br /&gt;
				if not in_array (access_level:lower(), cfg.keywords[&#039;id-access&#039;]) then&lt;br /&gt;
					table.insert( z.message_tail, { set_error( &#039;invalid_param_val&#039;, {access_param, access_level}, true ) } );	&lt;br /&gt;
					access_level = nil;&lt;br /&gt;
				end&lt;br /&gt;
				if not is_set(id_list[k]) then&lt;br /&gt;
					table.insert( z.message_tail, { set_error( &#039;param_access_requires_param&#039;, {k_lower}, true ) } );&lt;br /&gt;
				end&lt;br /&gt;
				if is_set(access_level) then&lt;br /&gt;
					access_level = access_level:lower();&lt;br /&gt;
				end&lt;br /&gt;
				id_accesses_list[k] = access_level;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return id_accesses_list;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S E L E C T E D _ M O D U L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)&lt;br /&gt;
	cfg = cfg_table_ptr;&lt;br /&gt;
&lt;br /&gt;
	is_set = utilities_page_ptr.is_set;											-- import functions from select Module:Citation/CS1/Utilities module&lt;br /&gt;
	in_array = utilities_page_ptr.in_array;&lt;br /&gt;
	set_error = utilities_page_ptr.set_error;&lt;br /&gt;
	select_one = utilities_page_ptr.select_one;&lt;br /&gt;
	add_maint_cat = utilities_page_ptr.add_maint_cat;&lt;br /&gt;
	substitute = utilities_page_ptr.substitute;&lt;br /&gt;
	make_wikilink = utilities_page_ptr.make_wikilink;&lt;br /&gt;
&lt;br /&gt;
	z = utilities_page_ptr.z;													-- table of tables in Module:Citation/CS1/Utilities&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	build_id_list = build_id_list,&lt;br /&gt;
	extract_ids = extract_ids,&lt;br /&gt;
	extract_id_access_levels = extract_id_access_levels,&lt;br /&gt;
	is_embargoed = is_embargoed;&lt;br /&gt;
	set_selected_modules = set_selected_modules;&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Date_validation&amp;diff=28459</id>
		<title>Module:Citation/CS1/Date validation</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Date_validation&amp;diff=28459"/>
		<updated>2018-04-06T09:40:20Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local is_set, in_array;															-- imported functions from selected Module:Citation/CS1/Utilities&lt;br /&gt;
local cfg;																		-- table of tables imported from slected Module:Citation/CS1/Configuration&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ V A L I D _ A C C E S S D A T E &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true if:&lt;br /&gt;
	Wikipedia start date &amp;lt;= accessdate &amp;lt; today + 2 days&lt;br /&gt;
&lt;br /&gt;
Wikipedia start date is 2001-01-15T00:00:00 UTC which is 979516800 seconds after 1970-01-01T00:00:00 UTC (the start of Unix time)&lt;br /&gt;
accessdate is the date provided in |accessdate= at time 00:00:00 UTC&lt;br /&gt;
today is the current date at time 00:00:00 UTC plus 48 hours&lt;br /&gt;
	if today is 2015-01-01T00:00:00 then&lt;br /&gt;
		adding 24 hours gives 2015-01-02T00:00:00 – one second more than today&lt;br /&gt;
		adding 24 hours gives 2015-01-03T00:00:00 – one second more than tomorrow&lt;br /&gt;
&lt;br /&gt;
This function does not work if it is fed month names for languages other than English.  Wikimedia #time: parser&lt;br /&gt;
apparently doesn&#039;t understand non-Engish date month names. This function will always return false when the date&lt;br /&gt;
contains a non-English month name because good1 is false after the call to lang.formatDate().  To get around that&lt;br /&gt;
call this function with YYYY-MM-DD format dates.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_accessdate (accessdate)&lt;br /&gt;
	local lang = mw.getContentLanguage();&lt;br /&gt;
	local good1, good2;&lt;br /&gt;
	local access_ts, tomorrow_ts;												-- to hold unix time stamps representing the dates&lt;br /&gt;
		&lt;br /&gt;
	good1, access_ts = pcall( lang.formatDate, lang, &#039;U&#039;, accessdate );			-- convert accessdate value to unix timesatmp &lt;br /&gt;
	good2, tomorrow_ts = pcall( lang.formatDate, lang, &#039;U&#039;, &#039;today + 2 days&#039; );	-- today midnight + 2 days is one second more than all day tomorrow&lt;br /&gt;
	&lt;br /&gt;
	if good1 and good2 then														-- lang.formatDate() returns a timestamp in the local script which which tonumber() may not understand&lt;br /&gt;
		access_ts = tonumber (access_ts) or lang:parseFormattedNumber (access_ts);			-- convert to numbers for the comparison;&lt;br /&gt;
		tomorrow_ts = tonumber (tomorrow_ts) or lang:parseFormattedNumber (tomorrow_ts);&lt;br /&gt;
	else&lt;br /&gt;
		return false;															-- one or both failed to convert to unix time stamp&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if 979516800 &amp;lt;= access_ts and access_ts &amp;lt; tomorrow_ts then					-- Wikipedia start date &amp;lt;= accessdate &amp;lt; tomorrow&#039;s date&lt;br /&gt;
		return true;&lt;br /&gt;
	else&lt;br /&gt;
		return false;															-- accessdate out of range&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ M O N T H _ N U M B E R &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns a number according to the month in a date: 1 for January, etc.  Capitalization and spelling must be correct. If not a valid month, returns 0&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_month_number (month)&lt;br /&gt;
	return cfg.date_names[&#039;local&#039;].long[month] or cfg.date_names[&#039;local&#039;].short[month] or		-- look for local names first&lt;br /&gt;
			cfg.date_names[&#039;en&#039;].long[month] or	cfg.date_names[&#039;en&#039;].short[month] or			-- failing that, look for English names&lt;br /&gt;
			0;																					-- not a recognized month name&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ E M B A R G O _ D A T E &amp;gt;------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true and date value if that value has proper dmy, mdy, ymd format.&lt;br /&gt;
&lt;br /&gt;
returns false and 9999 (embargoed forever) when date value is not proper format; assumes that when |embargo= is&lt;br /&gt;
set, the editor intended to embargo a pmc but |embargo= does not hold a single date.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_embargo_date (v)&lt;br /&gt;
	if v:match (&#039;^%d%d%d%d%-%d%d%-%d%d$&#039;) or									-- ymd&lt;br /&gt;
		v:match (&#039;^%d%d?%s+%a+%s+%d%d%d%d$&#039;) or									-- dmy&lt;br /&gt;
		v:match (&#039;^%a+%s+%d%d?%s*,%s*%d%d%d%d$&#039;) then							-- mdy&lt;br /&gt;
			return true, v;&lt;br /&gt;
	end&lt;br /&gt;
	return false, &#039;9999&#039;;														-- if here not good date so return false and set embargo date to long time in future&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ S E A S O N _ N U M B E R &amp;gt;--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns a number according to the sequence of seasons in a year: 1 for Winter, etc.  Capitalization and spelling must be correct. If not a valid season, returns 0&lt;br /&gt;
&lt;br /&gt;
Uses ISO DIS 8601 2016 part 2 §4.7  Divisions of a year for hemishpere-independent seasons:&lt;br /&gt;
	21-24 = Spring, Summer, Autumn, Winter, independent of “Hemisphere”&lt;br /&gt;
&lt;br /&gt;
These additional divisions not currently supported:&lt;br /&gt;
	25-28 = Spring - Northern Hemisphere, Summer- Northern Hemisphere, Autumn - Northern Hemisphere, Winter - Northern Hemisphere&lt;br /&gt;
	29-32 = Spring – Southern Hemisphere, Summer– Southern Hemisphere, Autumn – Southern Hemisphere, Winter - Southern Hemisphere&lt;br /&gt;
	33-36 = Quarter 1, Quarter 2, Quarter 3, Quarter 4 (3 months each)&lt;br /&gt;
	37-39 = Quadrimester 1, Quadrimester 2, Quadrimester 3 (4 months each)&lt;br /&gt;
	40-41 = Semestral 1, Semestral-2 (6 months each)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_season_number (season)&lt;br /&gt;
	return cfg.date_names[&#039;local&#039;].season[season] or							-- look for local names first&lt;br /&gt;
			cfg.date_names[&#039;en&#039;].season[season] or								-- failing that, look for English names&lt;br /&gt;
			0;																	-- not a recognized season name&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ P R O P E R _ N A M E &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns a non-zero number if date contains a recognized proper name.  Capitalization and spelling must be correct.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_proper_name (name)&lt;br /&gt;
	return cfg.date_names[&#039;local&#039;].named[name] or								-- look for local names dates first&lt;br /&gt;
			cfg.date_names[&#039;en&#039;].named[name] or									-- failing that, look for English names&lt;br /&gt;
			0;																	-- not a recognized named date&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ M O N T H _ O R _ S E A S O N &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
--returns true if month or season is valid (properly spelled, capitalized, abbreviated)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_month_or_season (month_season)&lt;br /&gt;
	if 0 == get_month_number (month_season) then		-- if month text isn&#039;t one of the twelve months, might be a season&lt;br /&gt;
		if 0 == get_season_number (month_season) then	-- not a month, is it a season?&lt;br /&gt;
			return false;								-- return false not a month or one of the five seasons&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return true;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ Y E A R &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Function gets current year from the server and compares it to year from a citation parameter.  Years more than one year in the future are not acceptable.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
local year_limit;&lt;br /&gt;
local function is_valid_year(year)&lt;br /&gt;
	if not is_set(year_limit) then&lt;br /&gt;
		year_limit = tonumber(os.date(&amp;quot;%Y&amp;quot;))+1;			-- global variable so we only have to fetch it once&lt;br /&gt;
	end&lt;br /&gt;
	return tonumber(year) &amp;lt;= year_limit;				-- false if year is in the future more than one year&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ D A T E &amp;gt;----------------------------------------------------&lt;br /&gt;
Returns true if day is less than or equal to the number of days in month and year is no farther into the future&lt;br /&gt;
than next year; else returns false.&lt;br /&gt;
&lt;br /&gt;
Assumes Julian calendar prior to year 1582 and Gregorian calendar thereafter. Accounts for Julian calendar leap&lt;br /&gt;
years before 1582 and Gregorian leap years after 1582. Where the two calendars overlap (1582 to approximately&lt;br /&gt;
1923) dates are assumed to be Gregorian.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_date (year, month, day)&lt;br /&gt;
local days_in_month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};&lt;br /&gt;
local month_length;&lt;br /&gt;
	if not is_valid_year(year) then												-- no farther into the future than next year&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	month = tonumber(month);													-- required for YYYY-MM-DD dates&lt;br /&gt;
	&lt;br /&gt;
	if (2==month) then															-- if February&lt;br /&gt;
		month_length = 28;														-- then 28 days unless&lt;br /&gt;
		if 1582 &amp;gt; tonumber(year) then											-- Julian calendar&lt;br /&gt;
			if 0==(year%4) then&lt;br /&gt;
				month_length = 29;&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- Gregorian calendar&lt;br /&gt;
			if (0==(year%4) and (0~=(year%100) or 0==(year%400))) then			-- is a leap year?&lt;br /&gt;
				month_length = 29;												-- if leap year then 29 days in February&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		month_length=days_in_month[month];&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if tonumber (day) &amp;gt; month_length then&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
	return true;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ M O N T H _ R A N G E _ S T Y L E &amp;gt;--------------------------&lt;br /&gt;
&lt;br /&gt;
Months in a range are expected to have the same style: Jan–Mar or October–December but not February–Mar or Jul–August. &lt;br /&gt;
There is a special test for May because it can be either short or long form.&lt;br /&gt;
&lt;br /&gt;
Returns true when style for both months is the same&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_month_range_style (month1, month2)&lt;br /&gt;
local len1 = month1:len();&lt;br /&gt;
local len2 = month2:len();&lt;br /&gt;
	if len1 == len2 then&lt;br /&gt;
		return true;															-- both months are short form so return true&lt;br /&gt;
	elseif &#039;May&#039; == month1 or &#039;May&#039;== month2 then&lt;br /&gt;
		return true;															-- both months are long form so return true&lt;br /&gt;
	elseif 3 == len1 or 3 == len2 then&lt;br /&gt;
		return false;															-- months are mixed form so return false&lt;br /&gt;
	else&lt;br /&gt;
		return true;															-- both months are long form so return true&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ M O N T H _ S E A S O N _ R A N G E &amp;gt;------------------------&lt;br /&gt;
&lt;br /&gt;
Check a pair of months or seasons to see if both are valid members of a month or season pair.&lt;br /&gt;
&lt;br /&gt;
Month pairs are expected to be left to right, earliest to latest in time.&lt;br /&gt;
&lt;br /&gt;
All season ranges are accepted as valid because there are publishers out there who have published a Summer–Spring YYYY issue so ... ok&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_month_season_range(range_start, range_end)&lt;br /&gt;
	local range_start_number = get_month_number (range_start);&lt;br /&gt;
	local range_end_number;&lt;br /&gt;
	&lt;br /&gt;
	if 0 == range_start_number then												-- is this a month range?&lt;br /&gt;
		range_start_number = get_season_number (range_start);					-- not a month; is it a season? get start season number&lt;br /&gt;
		range_end_number = get_season_number (range_end);						-- get end season number&lt;br /&gt;
&lt;br /&gt;
		if (0 ~= range_start_number) and (0 ~= range_end_number) then&lt;br /&gt;
			return true;														-- any season pairing is accepted&lt;br /&gt;
		end&lt;br /&gt;
		return false;															-- range_start and/or range_end is not a season&lt;br /&gt;
	end&lt;br /&gt;
																				-- here when range_start is a month&lt;br /&gt;
	range_end_number = get_month_number (range_end);							-- get end month number&lt;br /&gt;
	if range_start_number &amp;lt; range_end_number then								-- range_start is a month; does range_start precede range_end?&lt;br /&gt;
		if is_valid_month_range_style (range_start, range_end) then				-- do months have the same style?&lt;br /&gt;
			return true;														-- proper order and same style&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false;																-- range_start month number is greater than or equal to range end number; or range end isn&#039;t a month&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M A K E _ C O I N S _ D A T E &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function receives a table of date parts for one or two dates and an empty table reference declared in&lt;br /&gt;
Module:Citation/CS1.  The function is called only for |date= parameters and only if the |date=&amp;lt;value&amp;gt; is &lt;br /&gt;
determined to be a valid date format.  The question of what to do with invalid date formats is not answered here.&lt;br /&gt;
&lt;br /&gt;
The date parts in the input table are converted to an ISO 8601 conforming date string:&lt;br /&gt;
	single whole dates:		yyyy-mm-dd&lt;br /&gt;
	month and year dates:	yyyy-mm&lt;br /&gt;
	year dates:				yyyy&lt;br /&gt;
	ranges:					yyyy-mm-dd/yyyy-mm-dd&lt;br /&gt;
							yyyy-mm/yyyy-mm&lt;br /&gt;
							yyyy/yyyy&lt;br /&gt;
&lt;br /&gt;
Dates in the Julian calendar are reduced to year or year/year so that we don&#039;t have to do calendar conversion from&lt;br /&gt;
Julian to Proleptic Gregorian.&lt;br /&gt;
&lt;br /&gt;
The input table has:&lt;br /&gt;
	year, year2 – always present; if before 1582, ignore months and days if present&lt;br /&gt;
	month, month2 – 0 if not provided, 1-12 for months, 21-24 for seasons; 99 Christmas&lt;br /&gt;
	day, day2 –  0 if not provided, 1-31 for days&lt;br /&gt;
	&lt;br /&gt;
the output table receives:&lt;br /&gt;
	rftdate:	an IS8601 formatted date&lt;br /&gt;
	rftchron:	a free-form version of the date, usually without year which is in rftdate (season ranges and propername dates)&lt;br /&gt;
	rftssn:		one of four season keywords: winter, spring, summer, fall (lowercase)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function make_COinS_date (input, tCOinS_date)&lt;br /&gt;
	local date;																	-- one date or first date in a range&lt;br /&gt;
	local date2 = &#039;&#039;;															-- end of range date&lt;br /&gt;
-- start temporary Julian / Gregorian calendar uncertainty detection&lt;br /&gt;
	local year = tonumber(input.year);											-- this temporary code to determine the extent of sources dated to the Julian/Gregorian&lt;br /&gt;
	local month = tonumber(input.month);										-- interstice 1 October 1582 – 1 January 1926&lt;br /&gt;
	local day = tonumber (input.day);&lt;br /&gt;
	if (0 ~= day) and															-- day must have a value for this to be a whole date&lt;br /&gt;
		(((1582 == year) and (10 &amp;lt;= month) and (12 &amp;gt;= month)) or				-- any whole 1582 date from 1 october to 31 December or&lt;br /&gt;
			((1926 == year) and (1 == month) and (1 == input.day)) or			-- 1 January 1926 or&lt;br /&gt;
				((1582 &amp;lt; year) and (1925 &amp;gt;= year))) then						-- any date 1 January 1583 – 31 December 1925&lt;br /&gt;
					tCOinS_date.inter_cal_cat = true;							-- set category flag true&lt;br /&gt;
	end&lt;br /&gt;
-- end temporary Julian / Gergorian calendar uncertainty detection&lt;br /&gt;
	&lt;br /&gt;
	if 1582 &amp;gt; tonumber(input.year) or 20 &amp;lt; tonumber(input.month) then			-- Julian calendar or season so &amp;amp;rft.date gets year only&lt;br /&gt;
		date = input.year;&lt;br /&gt;
		if 0 ~= input.year2 and input.year ~= input.year2 then					-- if a range, only the second year portion when not the same as range start year&lt;br /&gt;
			date = string.format (&#039;%.4d/%.4d&#039;, tonumber(input.year), tonumber(input.year2))		-- assemble the date range&lt;br /&gt;
		end&lt;br /&gt;
		if 20 &amp;lt; tonumber(input.month) then										-- if season or propername date&lt;br /&gt;
			local season = {[24]=&#039;winter&#039;, [21]=&#039;spring&#039;, [22]=&#039;summer&#039;, [23]=&#039;fall&#039;, [99]=&#039;Christmas&#039;};	-- seasons lowercase, no autumn; proper names use title case&lt;br /&gt;
			if 0 == input.month2 then											-- single season date&lt;br /&gt;
				if 30 &amp;lt;tonumber(input.month) then&lt;br /&gt;
					tCOinS_date.rftchron = season[input.month];					-- proper name dates&lt;br /&gt;
				else&lt;br /&gt;
					tCOinS_date.rftssn = season[input.month];					-- seasons&lt;br /&gt;
				end&lt;br /&gt;
			else																-- season range with a second season specified&lt;br /&gt;
				if input.year ~= input.year2 then								-- season year – season year range or season year–year&lt;br /&gt;
					tCOinS_date.rftssn = season[input.month];					-- start of range season; keep this?&lt;br /&gt;
					if 0~= input.month2 then&lt;br /&gt;
						tCOinS_date.rftchron = string.format (&#039;%s %s – %s %s&#039;, season[input.month], input.year, season[input.month2], input.year2);&lt;br /&gt;
					end&lt;br /&gt;
				else															-- season–season year range&lt;br /&gt;
					tCOinS_date.rftssn = season[input.month];					-- start of range season; keep this?&lt;br /&gt;
					tCOinS_date.rftchron = season[input.month] .. &#039;–&#039; .. season[input.month2];	-- season–season year range&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		tCOinS_date.rftdate = date;&lt;br /&gt;
		return;																	-- done&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if 0 ~= input.day then&lt;br /&gt;
		date = string.format (&#039;%s-%.2d-%.2d&#039;, input.year, tonumber(input.month), tonumber(input.day));	-- whole date&lt;br /&gt;
	elseif 0 ~= input.month then&lt;br /&gt;
		date = string.format (&#039;%s-%.2d&#039;, input.year, tonumber(input.month));	-- year and month&lt;br /&gt;
	else&lt;br /&gt;
		date = string.format (&#039;%s&#039;, input.year);								-- just year&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if 0 ~= input.year2 then&lt;br /&gt;
		if 0 ~= input.day2 then&lt;br /&gt;
			date2 = string.format (&#039;/%s-%.2d-%.2d&#039;, input.year2, tonumber(input.month2), tonumber(input.day2));		-- whole date&lt;br /&gt;
		elseif 0 ~= input.month2 then&lt;br /&gt;
			date2 = string.format (&#039;/%s-%.2d&#039;, input.year2, tonumber(input.month2));	-- year and month&lt;br /&gt;
		else&lt;br /&gt;
			date2 = string.format (&#039;/%s&#039;, input.year2);							-- just year&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	tCOinS_date.rftdate = date .. date2;										-- date2 has the &#039;/&#039; separator&lt;br /&gt;
	return;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C H E C K _ D A T E &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Check date format to see that it is one of the formats approved by WP:DATESNO or WP:DATERANGE. Exception: only&lt;br /&gt;
allowed range separator is endash.  Additionally, check the date to see that it is a real date: no 31 in 30-day&lt;br /&gt;
months; no 29 February when not a leap year.  Months, both long-form and three character abbreviations, and seasons&lt;br /&gt;
must be spelled correctly.  Future years beyond next year are not allowed.&lt;br /&gt;
&lt;br /&gt;
If the date fails the format tests, this function returns false and does not return values for anchor_year and&lt;br /&gt;
COinS_date.  When this happens, the date parameter is used in the COinS metadata and the CITEREF identifier gets&lt;br /&gt;
its year from the year parameter if present otherwise CITEREF does not get a date value.&lt;br /&gt;
&lt;br /&gt;
Inputs:&lt;br /&gt;
	date_string - date string from date-holding parameters (date, year, accessdate, embargo, archivedate, etc.)&lt;br /&gt;
&lt;br /&gt;
Returns:&lt;br /&gt;
	false if date string is not a real date; else&lt;br /&gt;
	true, anchor_year, COinS_date&lt;br /&gt;
		anchor_year can be used in CITEREF anchors&lt;br /&gt;
		COinS_date is ISO 8601 format date; see make_COInS_date()&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function check_date (date_string, tCOinS_date, test_accessdate)&lt;br /&gt;
	local year;			-- assume that year2, months, and days are not used;&lt;br /&gt;
	local year2=0;		-- second year in a year range&lt;br /&gt;
	local month=0;&lt;br /&gt;
	local month2=0;		-- second month in a month range&lt;br /&gt;
	local day=0;&lt;br /&gt;
	local day2=0;		-- second day in a day range&lt;br /&gt;
	local anchor_year;&lt;br /&gt;
	local coins_date;&lt;br /&gt;
&lt;br /&gt;
	if date_string:match(&amp;quot;^%d%d%d%d%-%d%d%-%d%d$&amp;quot;) then										-- year-initial numerical year month day format&lt;br /&gt;
		year, month, day=string.match(date_string, &amp;quot;(%d%d%d%d)%-(%d%d)%-(%d%d)&amp;quot;);&lt;br /&gt;
		if 12 &amp;lt; tonumber(month) or 1 &amp;gt; tonumber(month) or 1582 &amp;gt; tonumber(year) or 0 == tonumber(day) then return false; end	-- month or day number not valid or not Gregorian calendar&lt;br /&gt;
		anchor_year = year;&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d?, +[1-9]%d%d%d%a?$&amp;quot;) then						-- month-initial: month day, year&lt;br /&gt;
		month, day, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d?),%s*((%d%d%d%d?)%a?)&amp;quot;);&lt;br /&gt;
		month = get_month_number (month);&lt;br /&gt;
		if 0 == month then return false; end												-- return false if month text isn&#039;t one of the twelve months&lt;br /&gt;
				&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d?[%-–][1-9]%d?, +[1-9]%d%d%d%a?$&amp;quot;) then				-- month-initial day range: month day–day, year; days are separated by endash&lt;br /&gt;
		month, day, day2, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d?)[%-–](%d%d?), +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if tonumber(day) &amp;gt;= tonumber(day2) then return false; end							-- date range order is left to right: earlier to later; dates may not be the same;&lt;br /&gt;
		month = get_month_number (month);&lt;br /&gt;
		if 0 == month then return false; end												-- return false if month text isn&#039;t one of the twelve months&lt;br /&gt;
		month2=month;																		-- for metadata&lt;br /&gt;
		year2=year;&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d? +%D- +[1-9]%d%d%d%a?$&amp;quot;) then						-- day-initial: day month year&lt;br /&gt;
		day, month, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%d%d*)%s*(%D-) +((%d%d%d%d?)%a?)&amp;quot;);&lt;br /&gt;
		month = get_month_number (month);&lt;br /&gt;
		if 0 == month then return false; end												-- return false if month text isn&#039;t one of the twelve months&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d?[%-–][1-9]%d? +%D- +[1-9]%d%d%d%a?$&amp;quot;) then				-- day-range-initial: day–day month year; days are separated by endash&lt;br /&gt;
		day, day2, month, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%d%d?)[%-–](%d%d?) +(%D-) +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if tonumber(day) &amp;gt;= tonumber(day2) then return false; end							-- date range order is left to right: earlier to later; dates may not be the same;&lt;br /&gt;
		month = get_month_number (month);&lt;br /&gt;
		if 0 == month then return false; end												-- return false if month text isn&#039;t one of the twelve months&lt;br /&gt;
		month2=month;																		-- for metadata&lt;br /&gt;
		year2=year;&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d? +%D- +[%-–] +[1-9]%d? +%D- +[1-9]%d%d%d%a?$&amp;quot;) then		-- day initial month-day-range: day month - day month year; uses spaced endash&lt;br /&gt;
		day, month, day2, month2, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%d%d?) +(%D-) +[%-–] +(%d%d?) +(%D-) +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if (not is_valid_month_season_range(month, month2)) or not is_valid_year(year) then return false; end	-- date range order is left to right: earlier to later;&lt;br /&gt;
		month = get_month_number (month);													-- for metadata&lt;br /&gt;
		month2 = get_month_number (month2);&lt;br /&gt;
		year2=year;&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d? +[%-–] +%D- +[1-9]%d?, +[1-9]%d%d%d%a?$&amp;quot;) then		-- month initial month-day-range: month day – month day, year;  uses spaced endash&lt;br /&gt;
		month, day, month2, day2, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d?) +[%-–] +(%D-) +(%d%d?), +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if (not is_valid_month_season_range(month, month2)) or not is_valid_year(year) then return false; end&lt;br /&gt;
		month = get_month_number (month);													-- for metadata&lt;br /&gt;
		month2 = get_month_number (month2);&lt;br /&gt;
		year2=year;&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d? +%D- +[1-9]%d%d%d +[%-–] +[1-9]%d? +%D- +[1-9]%d%d%d%a?$&amp;quot;) then		-- day initial month-day-year-range: day month year - day month year; uses spaced endash&lt;br /&gt;
		day, month, year, day2, month2, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%d%d?) +(%D-) +(%d%d%d%d) +[%-–] +(%d%d?) +(%D-) +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if tonumber(year2) &amp;lt;= tonumber(year) then return false; end												-- must be sequential years, left to right, earlier to later&lt;br /&gt;
		if not is_valid_year(year2) or not is_valid_month_range_style(month, month2) then return false; end		-- year2 no more than one year in the future; months same style&lt;br /&gt;
		month = get_month_number (month);																		-- for metadata&lt;br /&gt;
		month2 = get_month_number (month2);&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d?, +[1-9]%d%d%d +[%-–] +%D- +[1-9]%d?, +[1-9]%d%d%d%a?$&amp;quot;) then		-- month initial month-day-year-range: month day, year – month day, year;  uses spaced endash&lt;br /&gt;
		month, day, year, month2, day2, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d?), +(%d%d%d%d) +[%-–] +(%D-) +(%d%d?), +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if tonumber(year2) &amp;lt;= tonumber(year) then return false; end												-- must be sequential years, left to right, earlier to later&lt;br /&gt;
		if not is_valid_year(year2) or not is_valid_month_range_style(month, month2) then return false; end		-- year2 no more than one year in the future; months same style&lt;br /&gt;
		month = get_month_number (month);																		-- for metadata&lt;br /&gt;
		month2 = get_month_number (month2);&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d%d%d[%-–]%d%d%a?$&amp;quot;) then								-- special case Winter/Summer year-year (YYYY-YY); year separated with unspaced endash&lt;br /&gt;
		local century;&lt;br /&gt;
		month, year, century, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%D-) +((%d%d)%d%d)[%-–]((%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if &#039;Winter&#039; ~= month and &#039;Summer&#039; ~= month then return false end;					-- &#039;month&#039; can only be Winter or Summer&lt;br /&gt;
		anchor_year=year..&#039;–&#039;..anchor_year;													-- assemble anchor_year from both years&lt;br /&gt;
		year2 = century..year2;																-- add the century to year2 for comparisons&lt;br /&gt;
		if 1 ~= tonumber(year2) - tonumber(year) then return false; end						-- must be sequential years, left to right, earlier to later&lt;br /&gt;
		if not is_valid_year(year2) then return false; end									-- no year farther in the future than next year&lt;br /&gt;
		month = get_season_number (month);&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d%d%d[%-–][1-9]%d%d%d%a?$&amp;quot;) then						-- special case Winter/Summer year-year; year separated with unspaced endash&lt;br /&gt;
		month, year, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d%d%d)[%-–]((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if &#039;Winter&#039; ~= month and &#039;Summer&#039; ~= month then return false end;					-- &#039;month&#039; can only be Winter or Summer&lt;br /&gt;
		anchor_year=year..&#039;–&#039;..anchor_year;													-- assemble anchor_year from both years&lt;br /&gt;
		if 1 ~= tonumber(year2) - tonumber(year) then return false; end						-- must be sequential years, left to right, earlier to later&lt;br /&gt;
		if not is_valid_year(year2) then return false; end									-- no year farther in the future than next year&lt;br /&gt;
		month = get_season_number (month);													-- for metadata&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +[1-9]%d%d%d +[%-–] +%D- +[1-9]%d%d%d%a?$&amp;quot;) then				-- month/season year - month/season year; separated by spaced endash&lt;br /&gt;
		month, year, month2, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%D-) +(%d%d%d%d) +[%-–] +(%D-) +((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		anchor_year=year..&#039;–&#039;..anchor_year;													-- assemble anchor_year from both years&lt;br /&gt;
		if tonumber(year) &amp;gt;= tonumber(year2) then return false; end							-- left to right, earlier to later, not the same&lt;br /&gt;
		if not is_valid_year(year2) then return false; end									-- no year farther in the future than next year&lt;br /&gt;
		if 0 ~= get_month_number(month) and 0 ~= get_month_number(month2) and is_valid_month_range_style(month, month2) then 	-- both must be month year, same month style&lt;br /&gt;
			month = get_month_number(month);&lt;br /&gt;
			month2 = get_month_number(month2);&lt;br /&gt;
		elseif 0 ~= get_season_number(month) and 0 ~= get_season_number(month2) then		-- both must be or season year, not mixed&lt;br /&gt;
			month = get_season_number(month);&lt;br /&gt;
			month2 = get_season_number(month2);&lt;br /&gt;
		else&lt;br /&gt;
			 return false;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D-[%-–]%D- +[1-9]%d%d%d%a?$&amp;quot;) then					-- month/season range year; months separated by endash &lt;br /&gt;
		month, month2, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%D-)[%-–](%D-)%s*((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if (not is_valid_month_season_range(month, month2)) or (not is_valid_year(year)) then return false; end&lt;br /&gt;
		if 0 ~= get_month_number(month) then									-- determined to be a valid range so just check this one to know if month or season&lt;br /&gt;
			month = get_month_number(month);&lt;br /&gt;
			month2 = get_month_number(month2);&lt;br /&gt;
		else&lt;br /&gt;
			month = get_season_number(month);&lt;br /&gt;
			month2 = get_season_number(month2);&lt;br /&gt;
		end&lt;br /&gt;
		year2=year;&lt;br /&gt;
		&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^%D- +%d%d%d%d%a?$&amp;quot;) then							-- month/season year or proper-name year&lt;br /&gt;
		month, anchor_year, year=mw.ustring.match(date_string, &amp;quot;(%D-)%s*((%d%d%d%d)%a?)&amp;quot;);&lt;br /&gt;
		if not is_valid_year(year) then return false; end&lt;br /&gt;
		if not is_valid_month_or_season (month) and 0 == is_proper_name (month) then return false; end&lt;br /&gt;
		if 0 ~= get_month_number(month) then									-- determined to be a valid range so just check this one to know if month or season&lt;br /&gt;
			month = get_month_number(month);&lt;br /&gt;
		elseif 0 ~= get_season_number(month) then&lt;br /&gt;
			month = get_season_number(month);&lt;br /&gt;
		else&lt;br /&gt;
			month = is_proper_name (month);										-- must be proper name; not supported in COinS&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d%d%d?[%-–][1-9]%d%d%d?%a?$&amp;quot;) then				-- Year range: YYY-YYY or YYY-YYYY or YYYY–YYYY; separated by unspaced endash; 100-9999&lt;br /&gt;
		year, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;(%d%d%d%d?)[%-–]((%d%d%d%d?)%a?)&amp;quot;);&lt;br /&gt;
		anchor_year=year..&#039;–&#039;..anchor_year;										-- assemble anchor year from both years&lt;br /&gt;
		if tonumber(year) &amp;gt;= tonumber(year2) then return false; end				-- left to right, earlier to later, not the same&lt;br /&gt;
		if not is_valid_year(year2) then return false; end						-- no year farther in the future than next year&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;^[1-9]%d%d%d[%-–]%d%d%a?$&amp;quot;) then						-- Year range: YYYY–YY; separated by unspaced endash&lt;br /&gt;
		local century;&lt;br /&gt;
		year, century, anchor_year, year2=mw.ustring.match(date_string, &amp;quot;((%d%d)%d%d)[%-–]((%d%d)%a?)&amp;quot;);&lt;br /&gt;
		anchor_year=year..&#039;–&#039;..anchor_year;										-- assemble anchor year from both years&lt;br /&gt;
		if 13 &amp;gt; tonumber(year2) then return false; end							-- don&#039;t allow 2003-05 which might be May 2003&lt;br /&gt;
		year2 = century..year2;													-- add the century to year2 for comparisons&lt;br /&gt;
		if tonumber(year) &amp;gt;= tonumber(year2) then return false; end				-- left to right, earlier to later, not the same&lt;br /&gt;
		if not is_valid_year(year2) then return false; end						-- no year farther in the future than next year&lt;br /&gt;
&lt;br /&gt;
	elseif date_string:match(&amp;quot;^[1-9]%d%d%d?%a?$&amp;quot;) then							-- year; here accept either YYY or YYYY&lt;br /&gt;
		anchor_year, year=date_string:match(&amp;quot;((%d%d%d%d?)%a?)&amp;quot;);&lt;br /&gt;
		if false == is_valid_year(year) then&lt;br /&gt;
			return false;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		return false;															-- date format not one of the MOS:DATE approved formats&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if test_accessdate then														-- test accessdate here because we have numerical date parts&lt;br /&gt;
		if 0 ~= year and 0 ~= month and 0 ~= day and 							-- all parts of a single date required&lt;br /&gt;
			0 == year2 and 0 == month2 and 0 == day2 then						-- none of these; accessdate must not be a range&lt;br /&gt;
				if not is_valid_accessdate (year..&#039;-&#039;..month..&#039;-&#039;..day) then	&lt;br /&gt;
					return false;												-- return false when accessdate out of bounds&lt;br /&gt;
				end&lt;br /&gt;
		else&lt;br /&gt;
			return false;														-- return false when accessdate is a range of two dates&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local result=true;															-- check whole dates for validity; assume true because not all dates will go through this test&lt;br /&gt;
	if 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 == day2 then		-- YMD (simple whole date)&lt;br /&gt;
		result=is_valid_date(year,month,day);&lt;br /&gt;
&lt;br /&gt;
	elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 == month2 and 0 ~= day2 then	-- YMD-d (day range)&lt;br /&gt;
		result=is_valid_date(year,month,day);&lt;br /&gt;
		result=result and is_valid_date(year,month,day2);&lt;br /&gt;
&lt;br /&gt;
	elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 ~= month2 and 0 ~= day2 then	-- YMD-md (day month range)&lt;br /&gt;
		result=is_valid_date(year,month,day);&lt;br /&gt;
		result=result and is_valid_date(year,month2,day2);&lt;br /&gt;
&lt;br /&gt;
	elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 ~= year2 and 0 ~= month2 and 0 ~= day2 then	-- YMD-ymd (day month year range)&lt;br /&gt;
		result=is_valid_date(year,month,day);&lt;br /&gt;
		result=result and is_valid_date(year2,month2,day2);&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if false == result then return false; end&lt;br /&gt;
&lt;br /&gt;
	if nil ~= tCOinS_date then													-- this table only passed into this function when testing |date= parameter values&lt;br /&gt;
		make_COinS_date ({year=year, month=month, day=day, year2=year2, month2=month2, day2=day2}, tCOinS_date);	-- make an ISO 8601 date string for COinS&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return true, anchor_year;													-- format is good and date string represents a real date&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D A T E S &amp;gt;--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Cycle the date-holding parameters in passed table date_parameters_list through check_date() to check compliance with MOS:DATE. For all valid dates, check_date() returns&lt;br /&gt;
true. The |date= parameter test is unique, it is the only date holding parameter from which values for anchor_year (used in CITEREF identifiers) and COinS_date (used in&lt;br /&gt;
the COinS metadata) are derived.  The |date= parameter is the only date-holding parameter that is allowed to contain the no-date keywords &amp;quot;n.d.&amp;quot; or &amp;quot;nd&amp;quot; (without quotes).&lt;br /&gt;
&lt;br /&gt;
Unlike most error messages created in this module, only one error message is created by this function. Because all of the date holding parameters are processed serially,&lt;br /&gt;
a single error message is created as the dates are tested.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function dates(date_parameters_list, tCOinS_date)&lt;br /&gt;
	local anchor_year;		-- will return as nil if the date being tested is not |date=&lt;br /&gt;
	local COinS_date;		-- will return as nil if the date being tested is not |date=&lt;br /&gt;
	local embargo_date;															-- if embargo date is a good dmy, mdy, ymd date then holds original value else reset to 9999&lt;br /&gt;
	local error_message = &amp;quot;&amp;quot;;&lt;br /&gt;
	local good_date = false;&lt;br /&gt;
	&lt;br /&gt;
	for k, v in pairs(date_parameters_list) do									-- for each date-holding parameter in the list&lt;br /&gt;
		if is_set(v) then														-- if the parameter has a value&lt;br /&gt;
			if v:match(&amp;quot;^c%. [1-9]%d%d%d?%a?$&amp;quot;) then							-- special case for c. year or with or without CITEREF disambiguator - only |date= and |year=&lt;br /&gt;
				v = mw.ustring.gsub (v, &#039;%d&#039;, cfg.date_names.local_digits);&lt;br /&gt;
				local year = v:match(&amp;quot;c%. ([1-9]%d%d%d?)%a?&amp;quot;);					-- get the year portion so it can be tested&lt;br /&gt;
				if &#039;date&#039;==k then&lt;br /&gt;
					anchor_year, COinS_date = v:match(&amp;quot;((c%. [1-9]%d%d%d?)%a?)&amp;quot;);	-- anchor year and COinS_date only from |date= parameter&lt;br /&gt;
					good_date = is_valid_year(year);&lt;br /&gt;
				elseif &#039;year&#039;==k then&lt;br /&gt;
					good_date = is_valid_year(year);&lt;br /&gt;
				end&lt;br /&gt;
			elseif &#039;date&#039;==k then												-- if the parameter is |date=&lt;br /&gt;
				if v:match(&amp;quot;^n%.d%.%a?$&amp;quot;) then									-- if |date=n.d. with or without a CITEREF disambiguator&lt;br /&gt;
					good_date, anchor_year, COinS_date = true, v:match(&amp;quot;((n%.d%.)%a?)&amp;quot;);	--&amp;quot;n.d.&amp;quot;; no error when date parameter is set to no date&lt;br /&gt;
				elseif v:match(&amp;quot;^nd%a?$&amp;quot;) then									-- if |date=nd with or without a CITEREF disambiguator&lt;br /&gt;
					good_date, anchor_year, COinS_date = true, v:match(&amp;quot;((nd)%a?)&amp;quot;);	--&amp;quot;nd&amp;quot;;	no error when date parameter is set to no date&lt;br /&gt;
				else&lt;br /&gt;
					good_date, anchor_year, COinS_date = check_date (v, tCOinS_date);	-- go test the date&lt;br /&gt;
				end&lt;br /&gt;
			elseif &#039;year&#039;==k then												-- if the parameter is |year= it should hold only a year value&lt;br /&gt;
				if v:match(&amp;quot;^[1-9]%d%d%d?%a?$&amp;quot;) then							-- if |year= 3 or 4 digits only with or without a CITEREF disambiguator&lt;br /&gt;
					good_date, anchor_year, COinS_date = true, v:match(&amp;quot;((%d+)%a?)&amp;quot;);&lt;br /&gt;
				end&lt;br /&gt;
			elseif &#039;access-date&#039;==k then										-- if the parameter is |date=&lt;br /&gt;
				good_date = check_date (v, nil, true);							-- go test the date; nil is a placeholder; true is the test_accessdate flag&lt;br /&gt;
			elseif &#039;embargo&#039;==k then											-- if the parameter is |embargo=&lt;br /&gt;
				good_date = check_date (v);										-- go test the date&lt;br /&gt;
				if true == good_date then										-- if the date is a valid date&lt;br /&gt;
					good_date, embargo_date = is_valid_embargo_date (v);		-- is |embargo= date a single dmy, mdy, or ymd formatted date? yes:returns embargo; no: returns 9999&lt;br /&gt;
				end&lt;br /&gt;
			else																-- any other date-holding parameter&lt;br /&gt;
				good_date = check_date (v);										-- go test the date&lt;br /&gt;
			end&lt;br /&gt;
			if false==good_date then											-- assemble one error message so we don&#039;t add the tracking category multiple times&lt;br /&gt;
				if is_set(error_message) then									-- once we&#039;ve added the first portion of the error message ...&lt;br /&gt;
					error_message=error_message .. &amp;quot;, &amp;quot;;						-- ... add a comma space separator&lt;br /&gt;
				end&lt;br /&gt;
				error_message=error_message .. &amp;quot;&amp;amp;#124;&amp;quot; .. k .. &amp;quot;=&amp;quot;;			-- add the failed parameter&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return anchor_year, embargo_date, error_message;											-- and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; Y E A R _ D A T E _ C H E C K &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Compare the value provided in |year= with the year value(s) provided in |date=.  This function returns a numeric value:&lt;br /&gt;
	0 - year value does not match the year value in date&lt;br /&gt;
	1 - (default) year value matches the year value in date or one of the year values when date contains two years&lt;br /&gt;
	2 - year value matches the year value in date when date is in the form YYYY-MM-DD and year is disambiguated (|year=YYYYx)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function year_date_check (year_string, date_string)&lt;br /&gt;
	local year;&lt;br /&gt;
	local date1;&lt;br /&gt;
	local date2;&lt;br /&gt;
	local result = 1;															-- result of the test; assume that the test passes&lt;br /&gt;
	&lt;br /&gt;
	year = year_string:match (&#039;(%d%d%d%d?)&#039;);&lt;br /&gt;
&lt;br /&gt;
	if date_string:match (&#039;%d%d%d%d%-%d%d%-%d%d&#039;) and year_string:match (&#039;%d%d%d%d%a&#039;) then	--special case where both date and year are required YYYY-MM-DD and YYYYx&lt;br /&gt;
		date1 = date_string:match (&#039;(%d%d%d%d)&#039;);&lt;br /&gt;
		year = year_string:match (&#039;(%d%d%d%d)&#039;);&lt;br /&gt;
		if year ~= date1 then&lt;br /&gt;
			result = 0;															-- years don&#039;t match&lt;br /&gt;
		else&lt;br /&gt;
			result = 2;															-- years match; but because disambiguated, don&#039;t add to maint cat&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
	elseif date_string:match (&amp;quot;%d%d%d%d?.-%d%d%d%d?&amp;quot;) then						-- any of the standard range formats of date with two three- or four-digit years&lt;br /&gt;
		date1, date2 = date_string:match (&amp;quot;(%d%d%d%d?).-(%d%d%d%d?)&amp;quot;);&lt;br /&gt;
		if year ~= date1 and year ~= date2 then&lt;br /&gt;
			result = 0;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif mw.ustring.match(date_string, &amp;quot;%d%d%d%d[%-–]%d%d&amp;quot;) then								-- YYYY-YY date ranges&lt;br /&gt;
		local century;&lt;br /&gt;
		date1, century, date2 = mw.ustring.match(date_string, &amp;quot;((%d%d)%d%d)[%-–]+(%d%d)&amp;quot;);&lt;br /&gt;
		date2 = century..date2;													-- convert YY to YYYY&lt;br /&gt;
		if year ~= date1 and year ~= date2 then&lt;br /&gt;
			result = 0;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif date_string:match (&amp;quot;%d%d%d%d?&amp;quot;) then									-- any of the standard formats of date with one year&lt;br /&gt;
		date1 = date_string:match (&amp;quot;(%d%d%d%d?)&amp;quot;);&lt;br /&gt;
		if year ~= date1 then&lt;br /&gt;
			result = 0;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		result = 0;																-- no recognizable year in date&lt;br /&gt;
	end&lt;br /&gt;
	return result;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; R E F O R M A T   T A B L E S &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These table are used exclusively for reformatting dates&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local source_patterns = {						-- this table holds patterns that match allowed date formats used to extract date components&lt;br /&gt;
	[&#039;dmy&#039;] = &#039;^(%d%d?)%s+(%a+)%s+(%d%d%d%d)$&#039;,&lt;br /&gt;
	[&#039;mdy&#039;] = &#039;^(%a+)%s+(%d%d?),%s+(%d%d%d%d)$&#039;,&lt;br /&gt;
	[&#039;ymd&#039;] = &#039;^(%d%d%d%d)%-(%d%d)-(%d%d)$&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
local short_formats = {							-- this table holds format strings used by os.date() for short month names&lt;br /&gt;
	[&#039;dmy&#039;] = &#039;%e %b %Y&#039;,&lt;br /&gt;
	[&#039;mdy&#039;] = &#039;%b %e, %Y&#039;,&lt;br /&gt;
	[&#039;ymd&#039;] = &#039;%F&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
local long_formats = {							-- this table holds format strings used by os.date() for long month names&lt;br /&gt;
	[&#039;dmy&#039;] = &#039;%e %B %Y&#039;,&lt;br /&gt;
	[&#039;mdy&#039;] = &#039;%B %e, %Y&#039;,&lt;br /&gt;
	[&#039;ymd&#039;] = &#039;%F&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; G E T _ D M Y _ D A T E _ P A R T S &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
extracts year, month and day from DMY formatted date, places them in the source_date table, and returns.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_dmy_date_parts (date, source_date)&lt;br /&gt;
	source_date.day, source_date.month, source_date.year = date:match (source_patterns[&#039;dmy&#039;]);	-- get date components as strings&lt;br /&gt;
	source_date.month = get_month_number (source_date.month);					-- get month number&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; G E T _ M D Y _ D A T E _ P A R T S &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
extracts year, month and day from MDY formatted date, places them in the source_date table, and returns.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_mdy_date_parts (date, source_date)&lt;br /&gt;
	source_date.month, source_date.day, source_date.year = date:match (source_patterns[&#039;mdy&#039;]);	-- get date components as strings&lt;br /&gt;
	source_date.month = get_month_number (source_date.month);					-- get month number&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; G E T _ Y M D _ D A T E _ P A R T S &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
extracts year, month and day from YMD formatted date, places them in the source_date table, and returns.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_ymd_date_parts (date, source_date)&lt;br /&gt;
	source_date.year, source_date.month, source_date.day = date:match (source_patterns[&#039;ymd&#039;]);	-- get date components as strings&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; R E F O R M A T _ D A T E S &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Reformats existing dates into the format specified by format and short.&lt;br /&gt;
&lt;br /&gt;
format is one of several keywords: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all.  The all version includes access- and&lt;br /&gt;
archive-dates; otherwise these dates are not reformatted&lt;br /&gt;
&lt;br /&gt;
Date ranges, season dates, proper name dates are not currently supported.&lt;br /&gt;
&lt;br /&gt;
For i18n:  This code works only at en.wiki because os.date() doesn&#039;t support any languages other than English.&lt;br /&gt;
mw.getContentLanguage():formatDate() will work at non-English wikis only when the date format is yyyy-mm-dd. This is&lt;br /&gt;
the same issue that plagues is_valid_accessdate()&lt;br /&gt;
&lt;br /&gt;
It is possible that a solution like that written for ht:Module:Citation/CS1/Date_validation date_name_xlate() could be applied to this problem&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function reformat_dates (date_parameters_list, format, short)&lt;br /&gt;
	local all = false;															-- set to false to skip access- and archive-dates&lt;br /&gt;
	local format_str;&lt;br /&gt;
	local source_date = {};&lt;br /&gt;
	&lt;br /&gt;
	if format:match(&#039;%a+%-all&#039;) then&lt;br /&gt;
		format = format:match(&#039;(%a+)%-all&#039;);									-- extract the format&lt;br /&gt;
		all = true;																-- set to true to format access- and archive-dates&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for param_name, param_val in pairs (date_parameters_list) do				-- for each date-holding parameter in the list&lt;br /&gt;
		if is_set (param_val) then												-- if the parameter has a value&lt;br /&gt;
			if not all and in_array (param_name, {&#039;access-date&#039;, &#039;archive-date&#039;}) then	-- if access- or archive-date and format not xxx-all&lt;br /&gt;
				param_val = &#039;&#039;;													-- set to empty string so we don&#039;t process this date&lt;br /&gt;
			end&lt;br /&gt;
			for source, pattern in pairs (source_patterns) do&lt;br /&gt;
				if param_val:match (pattern) then&lt;br /&gt;
					if &#039;ymd&#039; == source then&lt;br /&gt;
						get_ymd_date_parts (param_val, source_date);			-- get the date parts into the source_date table&lt;br /&gt;
					elseif &#039;dmy&#039; == source then&lt;br /&gt;
						get_dmy_date_parts (param_val, source_date);			-- get the date parts into the source_date table&lt;br /&gt;
					elseif &#039;mdy&#039; == source then&lt;br /&gt;
						get_mdy_date_parts (param_val, source_date);			-- get the date parts into the source_date table&lt;br /&gt;
					end&lt;br /&gt;
&lt;br /&gt;
					if &#039;ymd&#039; == format and 1582 &amp;gt; tonumber(source_date.year) then	-- ymd format dates not allowed before 1582&lt;br /&gt;
						return false;											-- abandon reformatting&lt;br /&gt;
					end&lt;br /&gt;
					&lt;br /&gt;
					if short then&lt;br /&gt;
						format_str = short_formats[format];&lt;br /&gt;
					else&lt;br /&gt;
						format_str = long_formats[format];&lt;br /&gt;
					end&lt;br /&gt;
																				-- convert date and save;&lt;br /&gt;
					date_parameters_list[param_name] = mw.text.trim (os.date (format_str, os.time(source_date)));	-- strip leading space when single digit day and %e is first format&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return true;																-- declare success and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D A T E _ H Y P H E N _ T O _ D A S H &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
Loops through the list of date-holding parameters and converts any hyphen to an ndash.  Not called if the cs1|2&lt;br /&gt;
template has any date errors.&lt;br /&gt;
&lt;br /&gt;
Modifies the date_parameters_list and returns true if hyphens are replaced, else returns false.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function date_hyphen_to_dash (date_parameters_list)&lt;br /&gt;
	local result = false;&lt;br /&gt;
	local n;&lt;br /&gt;
	for param_name, param_val in pairs(date_parameters_list) do					-- for each date-holding parameter in the list&lt;br /&gt;
		if not param_val:match (&#039;%d%d%d%d%-%d%d%-%d%d&#039;) then					-- for those that are not ymd dates&lt;br /&gt;
			param_val, n = param_val:gsub (&#039;%-&#039;, &#039;–&#039;);							-- replace any hyphen with ndash&lt;br /&gt;
			if 0 ~= n then&lt;br /&gt;
				date_parameters_list[param_name] = param_val;					-- update the list&lt;br /&gt;
				result = true;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return result;																-- so we know if any hyphens were replaced&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; D A T E _ N A M E _ X L A T E &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Attempts to translate English month names to local-language month names using names supplied by MediaWiki&#039;s&lt;br /&gt;
date parser function.  This is simple name-for-name replacement and may not work for all languages.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function	date_name_xlate (date_parameters_list)&lt;br /&gt;
	local xlate;&lt;br /&gt;
	local mode;																	-- long or short month names&lt;br /&gt;
	local modified = false;&lt;br /&gt;
	local date;&lt;br /&gt;
	&lt;br /&gt;
	for param_name, param_val in pairs(date_parameters_list) do					-- for each date-holding parameter in the list&lt;br /&gt;
		if is_set(param_val) then												-- if the parameter has a value&lt;br /&gt;
			date = param_val;&lt;br /&gt;
			for month in mw.ustring.gmatch (date, &#039;%a+&#039;) do						-- iterate through all dates in the date (single date or date range)&lt;br /&gt;
				if cfg.date_names.en.long[month] then&lt;br /&gt;
					mode = &#039;F&#039;;													-- English name is long so use long local name&lt;br /&gt;
				elseif cfg.date_names.en.short[month] then&lt;br /&gt;
					mode = &#039;M&#039;;													-- English name is short so use short local name&lt;br /&gt;
				else&lt;br /&gt;
					mode = nil;													-- not an English month name; could be local language month name or an English season name&lt;br /&gt;
				end&lt;br /&gt;
		&lt;br /&gt;
				if mode then															-- might be a season&lt;br /&gt;
					xlate = mw.getContentLanguage():formatDate(mode, &#039;1&#039; .. month);		-- translate the month name to this local language&lt;br /&gt;
					date = mw.ustring.gsub (date, month, xlate);						-- replace the English with the translation&lt;br /&gt;
					date_parameters_list[param_name] = date;							-- save the translated date&lt;br /&gt;
					modified = true;&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return modified;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S E L E C T E D _ M O D U L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Sets local imported functions table to same (live or sandbox) as that used by the other modules.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)&lt;br /&gt;
	is_set = utilities_page_ptr.is_set;											-- import functions from selected Module:Citation/CS1/Utilities module&lt;br /&gt;
	in_array = utilities_page_ptr.in_array;										-- import functions from selected Module:Citation/CS1/Utilities module&lt;br /&gt;
	cfg = cfg_table_ptr;														-- import tables from selected Module:Citation/CS1/Configuration&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {																		-- return exported functions&lt;br /&gt;
	dates = dates,&lt;br /&gt;
	year_date_check = year_date_check,&lt;br /&gt;
	reformat_dates = reformat_dates,&lt;br /&gt;
	date_hyphen_to_dash = date_hyphen_to_dash,&lt;br /&gt;
	date_name_xlate = date_name_xlate,&lt;br /&gt;
	set_selected_modules = set_selected_modules&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Configuration&amp;diff=28457</id>
		<title>Module:Citation/CS1/Configuration</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/Configuration&amp;diff=28457"/>
		<updated>2018-04-06T09:40:20Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local citation_config = {};&lt;br /&gt;
&lt;br /&gt;
-- override &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; styling to remove color, border, and padding.  &amp;lt;code&amp;gt; css is specified here:&lt;br /&gt;
-- https://git.wikimedia.org/blob/mediawiki%2Fcore.git/69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199&lt;br /&gt;
local code_style=&amp;quot;color:inherit; border:inherit; padding:inherit;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; U N C A T E G O R I Z E D _ N A M E S P A C E S &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
List of namespaces that should not be included in citation error categories.  Same as setting notracking = true by default&lt;br /&gt;
&lt;br /&gt;
Note: Namespace names should use underscores instead of spaces.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
local uncategorized_namespaces = { &#039;User&#039;, &#039;Talk&#039;, &#039;User_talk&#039;, &#039;Wikipedia_talk&#039;, &#039;File_talk&#039;, &#039;Template_talk&#039;,&lt;br /&gt;
	&#039;Help_talk&#039;, &#039;Category_talk&#039;, &#039;Portal_talk&#039;, &#039;Book_talk&#039;, &#039;Draft&#039;, &#039;Draft_talk&#039;, &#039;Education_Program_talk&#039;,&lt;br /&gt;
	&#039;Module_talk&#039;, &#039;MediaWiki_talk&#039; };&lt;br /&gt;
&lt;br /&gt;
local uncategorized_subpages = {&#039;/[Ss]andbox&#039;, &#039;/[Tt]estcases&#039;};		-- list of Lua patterns found in page names of pages we should not categorize&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M E S S A G E S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Translation table&lt;br /&gt;
&lt;br /&gt;
The following contains fixed text that may be output as part of a citation.&lt;br /&gt;
This is separated from the main body to aid in future translations of this&lt;br /&gt;
module.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local messages = {&lt;br /&gt;
	[&#039;archived-dead&#039;] = &#039;Archived from $1 on $2&#039;,&lt;br /&gt;
	[&#039;archived-not-dead&#039;] = &#039;$1 from the original on $2&#039;,&lt;br /&gt;
	[&#039;archived-missing&#039;] = &#039;Archived from the original$1 on $2&#039;,&lt;br /&gt;
	[&#039;archived&#039;] = &#039;Archived&#039;,&lt;br /&gt;
	[&#039;by&#039;] = &#039;By&#039;,																-- contributions to authored works: introduction, foreword, afterword&lt;br /&gt;
	[&#039;cartography&#039;] = &#039;Cartography by $1&#039;,&lt;br /&gt;
	[&#039;editor&#039;] = &#039;ed.&#039;,&lt;br /&gt;
	[&#039;editors&#039;] = &#039;eds.&#039;,&lt;br /&gt;
	[&#039;edition&#039;] = &#039;($1 ed.)&#039;,&lt;br /&gt;
	[&#039;episode&#039;] = &#039;Episode $1&#039;,&lt;br /&gt;
	[&#039;et al&#039;] = &#039;et al.&#039;,&lt;br /&gt;
	[&#039;in&#039;] = &#039;In&#039;,																-- edited works&lt;br /&gt;
	[&#039;inactive&#039;] = &#039;inactive&#039;,&lt;br /&gt;
	[&#039;inset&#039;] = &#039;$1 inset&#039;,&lt;br /&gt;
	[&#039;interview&#039;] = &#039;Interview with $1&#039;,										&lt;br /&gt;
	[&#039;lay summary&#039;] = &#039;Lay summary&#039;,&lt;br /&gt;
	[&#039;newsgroup&#039;] = &#039;[[Usenet newsgroup|Newsgroup]]:&amp;amp;nbsp;$1&#039;,&lt;br /&gt;
	[&#039;original&#039;] = &#039;the original&#039;,&lt;br /&gt;
	[&#039;published&#039;] = &#039; (published $1)&#039;,&lt;br /&gt;
	[&#039;retrieved&#039;] = &#039;Retrieved $1&#039;,&lt;br /&gt;
	[&#039;season&#039;] = &#039;Season $1&#039;,&lt;br /&gt;
	[&#039;section&#039;] = &#039;§ $1&#039;,&lt;br /&gt;
	[&#039;sections&#039;] = &#039;§§ $1&#039;,&lt;br /&gt;
	[&#039;series&#039;] = &#039;Series $1&#039;,&lt;br /&gt;
	[&#039;translated&#039;] = &#039;Translated by $1&#039;,&lt;br /&gt;
	[&#039;type&#039;] = &#039; ($1)&#039;,															-- for titletype&lt;br /&gt;
	[&#039;written&#039;] = &#039;Written at $1&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;vol&#039;] = &#039;$1 Vol.&amp;amp;nbsp;$2&#039;,												-- $1 is sepc; bold journal style volume is in presentation{}&lt;br /&gt;
	[&#039;vol-no&#039;] = &#039;$1 Vol.&amp;amp;nbsp;$2 no.&amp;amp;nbsp;$3&#039;,									-- sepc, volume, issue&lt;br /&gt;
	[&#039;issue&#039;] = &#039;$1 No.&amp;amp;nbsp;$2&#039;,												-- $1 is sepc&lt;br /&gt;
&lt;br /&gt;
	[&#039;j-vol&#039;] = &#039;$1 $2&#039;,														-- sepc, volume; bold journal volume is in presentation{}&lt;br /&gt;
	[&#039;j-issue&#039;] = &#039; ($1)&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;nopp&#039;] = &#039;$1 $2&#039;;															-- page(s) without prefix; $1 is sepc&lt;br /&gt;
&lt;br /&gt;
	[&#039;p-prefix&#039;] = &amp;quot;$1 p.&amp;amp;nbsp;$2&amp;quot;,												-- $1 is sepc&lt;br /&gt;
	[&#039;pp-prefix&#039;] = &amp;quot;$1 pp.&amp;amp;nbsp;$2&amp;quot;,											-- $1 is sepc&lt;br /&gt;
	[&#039;j-page(s)&#039;] = &#039;: $1&#039;,														-- same for page and pages&lt;br /&gt;
&lt;br /&gt;
	[&#039;sheet&#039;] = &#039;$1 Sheet&amp;amp;nbsp;$2&#039;,												-- $1 is sepc&lt;br /&gt;
	[&#039;sheets&#039;] = &#039;$1 Sheets&amp;amp;nbsp;$2&#039;,											-- $1 is sepc&lt;br /&gt;
	[&#039;j-sheet&#039;] = &#039;: Sheet&amp;amp;nbsp;$1&#039;,&lt;br /&gt;
	[&#039;j-sheets&#039;] = &#039;: Sheets&amp;amp;nbsp;$1&#039;,&lt;br /&gt;
	&lt;br /&gt;
	[&#039;subscription&#039;] = &#039;&amp;lt;span style=&amp;quot;font-size:90%; color:#555&amp;quot;&amp;gt;(Subscription required (&amp;lt;span title=&amp;quot;The site requires a paid subscription to access this page.&amp;quot; style=&amp;quot;border-bottom:1px dotted;cursor:help&amp;quot;&amp;gt;help&amp;lt;/span&amp;gt;))&amp;lt;/span&amp;gt;&#039; ..&lt;br /&gt;
		&#039;[[Category:Pages containing links to subscription-only content]]&#039;,&lt;br /&gt;
	&lt;br /&gt;
	[&#039;registration&#039;]=&#039;&amp;lt;span style=&amp;quot;font-size:90%; color:#555&amp;quot;&amp;gt;(Registration required (&amp;lt;span title=&amp;quot;The site requires registration to access this page.&amp;quot; style=&amp;quot;border-bottom:1px dotted;cursor:help&amp;quot;&amp;gt;help&amp;lt;/span&amp;gt;))&amp;lt;/span&amp;gt;&#039; ..&lt;br /&gt;
		&#039;[[Category:Pages with login required references or sources]]&#039;,&lt;br /&gt;
	&lt;br /&gt;
	[&#039;language&#039;] = &#039;(in $1)&#039;,&lt;br /&gt;
	[&#039;via&#039;] = &amp;quot; &amp;amp;ndash; via $1&amp;quot;,&lt;br /&gt;
	[&#039;event&#039;] = &#039;Event occurs at&#039;,&lt;br /&gt;
	[&#039;minutes&#039;] = &#039;minutes in&#039;,&lt;br /&gt;
	&lt;br /&gt;
	[&#039;parameter-separator&#039;] = &#039;, &#039;,&lt;br /&gt;
	[&#039;parameter-final-separator&#039;] = &#039;, and &#039;,&lt;br /&gt;
	[&#039;parameter-pair-separator&#039;] = &#039; and &#039;,&lt;br /&gt;
	&lt;br /&gt;
	-- Determines the location of the help page&lt;br /&gt;
	[&#039;help page link&#039;] = &#039;Help:CS1 errors&#039;,&lt;br /&gt;
	[&#039;help page label&#039;] = &#039;help&#039;,&lt;br /&gt;
	&lt;br /&gt;
	-- Internal errors (should only occur if configuration is bad)&lt;br /&gt;
	[&#039;undefined_error&#039;] = &#039;Called with an undefined error condition&#039;,&lt;br /&gt;
	[&#039;unknown_manual_ID&#039;] = &#039;Unrecognized manual ID mode&#039;,&lt;br /&gt;
	[&#039;unknown_ID_mode&#039;] = &#039;Unrecognized ID mode&#039;,&lt;br /&gt;
	[&#039;unknown_argument_map&#039;] = &#039;Argument map not defined for this variable&#039;,&lt;br /&gt;
	[&#039;bare_url_no_origin&#039;] = &#039;Bare url found but origin indicator is nil or empty&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P R E S E N T A T I O N &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Fixed presentation markup.  Originally part of citation_config.messages it has been moved into its own, more semantically&lt;br /&gt;
correct place.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local presentation = &lt;br /&gt;
	{&lt;br /&gt;
	-- Error output&lt;br /&gt;
	-- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538&lt;br /&gt;
	-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display&lt;br /&gt;
	[&#039;hidden-error&#039;] = &#039;&amp;lt;span style=&amp;quot;display:none;font-size:100%&amp;quot; class=&amp;quot;error citation-comment&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
	[&#039;visible-error&#039;] = &#039;&amp;lt;span style=&amp;quot;font-size:100%&amp;quot; class=&amp;quot;error citation-comment&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;accessdate&#039;] = &#039;&amp;lt;span class=&amp;quot;reference-accessdate&amp;quot;&amp;gt;$1$2&amp;lt;/span&amp;gt;&#039;,			-- to allow editors to hide accessdate using personal css&lt;br /&gt;
&lt;br /&gt;
	[&#039;bdi&#039;] = &#039;&amp;lt;bdi$1&amp;gt;$2&amp;lt;/bdi&amp;gt;&#039;,												-- bidirectional isolation used with |script-title= and the like&lt;br /&gt;
&lt;br /&gt;
	[&#039;cite&#039;] = &#039;&amp;lt;cite class=&amp;quot;$1&amp;quot;&amp;gt;$2&amp;lt;/cite&amp;gt;&#039;;									-- |ref= not set so no id=&amp;quot;...&amp;quot; attribute&lt;br /&gt;
	[&#039;cite-id&#039;] = &#039;&amp;lt;cite id=&amp;quot;$1&amp;quot; class=&amp;quot;$2&amp;quot;&amp;gt;$3&amp;lt;/cite&amp;gt;&#039;;							-- for use when |ref= is set&lt;br /&gt;
&lt;br /&gt;
	[&#039;format&#039;] = &#039; &amp;lt;span style=&amp;quot;font-size:85%;&amp;quot;&amp;gt;($1)&amp;lt;/span&amp;gt;&#039;,					-- for |format=, |chapter-format=, etc&lt;br /&gt;
	&lt;br /&gt;
																				-- various access levels, for |access=, |doi-access=, |arxiv=, ...&lt;br /&gt;
																				-- narrow no-break space &amp;amp;#8239; may work better than nowrap css. Or not? browser support?&lt;br /&gt;
&lt;br /&gt;
	[&#039;access-signal&#039;] = &#039;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;$1&amp;amp;#8239;$2&amp;lt;/span&amp;gt;&#039;,			-- external link with appropriate lock icon&lt;br /&gt;
		[&#039;free&#039;] = &#039;[[File:Lock-green.svg|9px|link=|alt=Freely accessible|Freely accessible]]&#039;,&lt;br /&gt;
		[&#039;registration&#039;] = &#039;[[File:Lock-blue-alt-2.svg|9px|link=|alt=Free registration required|Free registration required]]&#039;,&lt;br /&gt;
		[&#039;limited&#039;] = &#039;[[File:Lock-blue-alt-2.svg|9px|link=|alt=Free access subject to limited trial, subscription normally required|Free access subject to limited trial, subscription normally required]]&#039;,&lt;br /&gt;
		[&#039;subscription&#039;] = &#039;[[File:Lock-red-alt.svg|9px|link=|alt=Paid subscription required|Paid subscription required]]&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;italic-title&#039;] = &amp;quot;&#039;&#039;$1&#039;&#039;&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;kern-left&#039;] = &#039;&amp;lt;span style=&amp;quot;padding-left:0.2em;&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;$2&#039;,			-- spacing to use when title contains leading single or double quote mark&lt;br /&gt;
	[&#039;kern-right&#039;] = &#039;$1&amp;lt;span style=&amp;quot;padding-right:0.2em;&amp;quot;&amp;gt;$2&amp;lt;/span&amp;gt;&#039;,			-- spacing to use when title contains trailing single or double quote mark&lt;br /&gt;
&lt;br /&gt;
																				-- these for simple wikilinked titles [[&amp;quot;text]], [[text&amp;quot;]] and [[&amp;quot;text&amp;quot;]]&lt;br /&gt;
																				-- span wraps entire wikilink&lt;br /&gt;
	[&#039;kern-wl-left&#039;] = &#039;&amp;lt;span style=&amp;quot;padding-left:0.2em;&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,			-- when title contains leading single or double quote mark&lt;br /&gt;
	[&#039;kern-wl-right&#039;] = &#039;&amp;lt;span style=&amp;quot;padding-right:0.2em;&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,			-- when title contains trailing single or double quote mark&lt;br /&gt;
	[&#039;kern-wl-both&#039;] = &#039;&amp;lt;span style=&amp;quot;padding-left:0.2em;padding-right:0.2em;&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,	-- when title contains leading and trailing single or double quote marks&lt;br /&gt;
&lt;br /&gt;
	[&#039;nowrap1&#039;] = &#039;&amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt;&#039;,								-- for nowrapping an item: &amp;lt;span ...&amp;gt;yyyy-mm-dd&amp;lt;/span&amp;gt;&lt;br /&gt;
	[&#039;nowrap2&#039;] = &#039;&amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt;$1&amp;lt;/span&amp;gt; $2&#039;,							-- for nowrapping portions of an item: &amp;lt;span ...&amp;gt;dd mmmm&amp;lt;/span&amp;gt; yyyy (note white space)&lt;br /&gt;
&lt;br /&gt;
	[&#039;ocins&#039;] = &#039;&amp;lt;span title=&amp;quot;$1&amp;quot; class=&amp;quot;Z3988&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;display:none;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&#039;,		-- Note: Using display: none on the COinS span breaks some clients&lt;br /&gt;
&lt;br /&gt;
	[&#039;parameter&#039;] = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;quoted-text&#039;] = &#039;&amp;lt;q&amp;gt;$1&amp;lt;/q&amp;gt;&#039;,												-- for wrapping |quote= content&lt;br /&gt;
	[&#039;quoted-title&#039;] = &#039;&amp;quot;$1&amp;quot;&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;trans-italic-title&#039;] = &amp;quot;&amp;amp;#91;&#039;&#039;$1&#039;&#039;&amp;amp;#93;&amp;quot;,&lt;br /&gt;
	[&#039;trans-quoted-title&#039;] = &amp;quot;&amp;amp;#91;$1&amp;amp;#93;&amp;quot;,&lt;br /&gt;
	[&#039;vol-bold&#039;] = &#039;$1 &amp;lt;b&amp;gt;$2&amp;lt;/b&amp;gt;&#039;,												-- sepc, volume; for bold journal cites; for other cites [&#039;vol&#039;] in messages{}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
--[[--------------------------&amp;lt; A L I A S E S &amp;gt;----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Aliases table for commonly passed parameters&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local aliases = {&lt;br /&gt;
	[&#039;AccessDate&#039;] = {&#039;access-date&#039;, &#039;accessdate&#039;},&lt;br /&gt;
	[&#039;Agency&#039;] = &#039;agency&#039;,&lt;br /&gt;
	[&#039;AirDate&#039;] = {&#039;air-date&#039;, &#039;airdate&#039;},&lt;br /&gt;
	[&#039;ArchiveDate&#039;] = {&#039;archive-date&#039;, &#039;archivedate&#039;},&lt;br /&gt;
	[&#039;ArchiveFormat&#039;] = &#039;archive-format&#039;,&lt;br /&gt;
	[&#039;ArchiveURL&#039;] = {&#039;archive-url&#039;, &#039;archiveurl&#039;},&lt;br /&gt;
	[&#039;ASINTLD&#039;] = {&#039;ASIN-TLD&#039;, &#039;asin-tld&#039;},&lt;br /&gt;
	[&#039;At&#039;] = &#039;at&#039;,&lt;br /&gt;
	[&#039;Authors&#039;] = {&#039;authors&#039;, &#039;people&#039;, &#039;host&#039;, &#039;credits&#039;},&lt;br /&gt;
	[&#039;BookTitle&#039;] = {&#039;book-title&#039;, &#039;booktitle&#039;},&lt;br /&gt;
	[&#039;Cartography&#039;] = &#039;cartography&#039;,&lt;br /&gt;
	[&#039;Chapter&#039;] = {&#039;chapter&#039;, &#039;contribution&#039;, &#039;entry&#039;, &#039;article&#039;, &#039;section&#039;},&lt;br /&gt;
	[&#039;ChapterFormat&#039;] = {&#039;chapter-format&#039;, &#039;contribution-format&#039;, &#039;section-format&#039;};&lt;br /&gt;
	[&#039;ChapterURL&#039;] = {&#039;chapter-url&#039;, &#039;chapterurl&#039;, &#039;contribution-url&#039;, &#039;contributionurl&#039;, &#039;section-url&#039;, &#039;sectionurl&#039;},&lt;br /&gt;
	[&#039;ChapterUrlAccess&#039;] = &#039;chapter-url-access&#039;,&lt;br /&gt;
	[&#039;Class&#039;] = &#039;class&#039;,														-- cite arxiv and arxiv identifiers&lt;br /&gt;
	[&#039;Collaboration&#039;] = &#039;collaboration&#039;,&lt;br /&gt;
	[&#039;Conference&#039;] = {&#039;conference&#039;, &#039;event&#039;},&lt;br /&gt;
	[&#039;ConferenceFormat&#039;] = {&#039;conference-format&#039;, &#039;event-format&#039;},&lt;br /&gt;
	[&#039;ConferenceURL&#039;] = {&#039;conference-url&#039;, &#039;conferenceurl&#039;, &#039;event-url&#039;, &#039;eventurl&#039;},&lt;br /&gt;
	[&#039;Contribution&#039;] = &#039;contribution&#039;,											-- introduction, foreword, afterword, etc; required when |contributor= set&lt;br /&gt;
	[&#039;Date&#039;] = &#039;date&#039;,&lt;br /&gt;
	[&#039;DeadURL&#039;] = {&#039;dead-url&#039;, &#039;deadurl&#039;},&lt;br /&gt;
	[&#039;Degree&#039;] = &#039;degree&#039;,&lt;br /&gt;
	[&#039;DF&#039;] = &#039;df&#039;,&lt;br /&gt;
	[&#039;DisplayAuthors&#039;] = {&#039;display-authors&#039;, &#039;displayauthors&#039;},&lt;br /&gt;
	[&#039;DisplayEditors&#039;] = {&#039;display-editors&#039;, &#039;displayeditors&#039;},&lt;br /&gt;
	[&#039;Docket&#039;] = &#039;docket&#039;,&lt;br /&gt;
	[&#039;DoiBroken&#039;] = {&#039;doi-broken&#039;, &#039;doi-broken-date&#039;, &#039;doi-inactive-date&#039;},&lt;br /&gt;
	[&#039;Edition&#039;] = &#039;edition&#039;,&lt;br /&gt;
	[&#039;Editors&#039;] = &#039;editors&#039;,&lt;br /&gt;
	[&#039;Embargo&#039;] = &#039;embargo&#039;,&lt;br /&gt;
	[&#039;Encyclopedia&#039;] = {&#039;encyclopedia&#039;, &#039;encyclopaedia&#039;},						-- this one only used by citation&lt;br /&gt;
	[&#039;Episode&#039;] = &#039;episode&#039;,													-- cite serial only TODO: make available to cite episode?&lt;br /&gt;
	[&#039;Format&#039;] = &#039;format&#039;,&lt;br /&gt;
	[&#039;ID&#039;] = {&#039;id&#039;, &#039;ID&#039;},&lt;br /&gt;
	[&#039;IgnoreISBN&#039;] = {&#039;ignore-isbn-error&#039;, &#039;ignoreisbnerror&#039;},&lt;br /&gt;
	[&#039;Inset&#039;] = &#039;inset&#039;,&lt;br /&gt;
	[&#039;Issue&#039;] = {&#039;issue&#039;, &#039;number&#039;},&lt;br /&gt;
	[&#039;Interviewers&#039;] = &#039;interviewers&#039;,&lt;br /&gt;
	[&#039;Language&#039;] = {&#039;language&#039;, &#039;in&#039;},&lt;br /&gt;
	[&#039;LastAuthorAmp&#039;] = {&#039;last-author-amp&#039;, &#039;lastauthoramp&#039;},&lt;br /&gt;
	[&#039;LayDate&#039;] = {&#039;lay-date&#039;, &#039;laydate&#039;},&lt;br /&gt;
	[&#039;LayFormat&#039;] = &#039;lay-format&#039;,&lt;br /&gt;
	[&#039;LaySource&#039;] = {&#039;lay-source&#039;, &#039;laysource&#039;},&lt;br /&gt;
	[&#039;LayURL&#039;] = {&#039;lay-url&#039;, &#039;lay-summary&#039;, &#039;layurl&#039;, &#039;laysummary&#039;},&lt;br /&gt;
	[&#039;MailingList&#039;] = {&#039;mailinglist&#039;, &#039;mailing-list&#039;},							-- cite mailing list only&lt;br /&gt;
	[&#039;Map&#039;] = &#039;map&#039;,															-- cite map only&lt;br /&gt;
	[&#039;MapFormat&#039;] = &#039;map-format&#039;,												-- cite map only&lt;br /&gt;
	[&#039;MapURL&#039;] = {&#039;mapurl&#039;, &#039;map-url&#039;},											-- cite map only&lt;br /&gt;
	[&#039;MessageID&#039;] = &#039;message-id&#039;,&lt;br /&gt;
	[&#039;Minutes&#039;] = &#039;minutes&#039;,&lt;br /&gt;
	[&#039;Mode&#039;] = &#039;mode&#039;,&lt;br /&gt;
	[&#039;NameListFormat&#039;] = &#039;name-list-format&#039;,&lt;br /&gt;
	[&#039;Network&#039;] = &#039;network&#039;,&lt;br /&gt;
	[&#039;NoPP&#039;] = {&#039;no-pp&#039;, &#039;nopp&#039;},&lt;br /&gt;
	[&#039;NoTracking&#039;] = {&#039;template-doc-demo&#039;, &#039;no-cat&#039;, &#039;nocat&#039;,&lt;br /&gt;
		&#039;no-tracking&#039;, &#039;notracking&#039;},&lt;br /&gt;
	[&#039;Number&#039;] = &#039;number&#039;,														-- this case only for cite techreport&lt;br /&gt;
	[&#039;OrigYear&#039;] = {&#039;orig-year&#039;, &#039;origyear&#039;},&lt;br /&gt;
	[&#039;Others&#039;] = &#039;others&#039;,&lt;br /&gt;
	[&#039;Page&#039;] = {&#039;p&#039;, &#039;page&#039;},&lt;br /&gt;
	[&#039;Pages&#039;] = {&#039;pp&#039;, &#039;pages&#039;},&lt;br /&gt;
	[&#039;Periodical&#039;] = {&#039;journal&#039;, &#039;newspaper&#039;, &#039;magazine&#039;, &#039;work&#039;,&lt;br /&gt;
		&#039;website&#039;,  &#039;periodical&#039;, &#039;encyclopedia&#039;, &#039;encyclopaedia&#039;, &#039;dictionary&#039;, &#039;mailinglist&#039;},&lt;br /&gt;
	[&#039;Place&#039;] = {&#039;place&#039;, &#039;location&#039;},&lt;br /&gt;
	[&#039;PostScript&#039;] = &#039;postscript&#039;,&lt;br /&gt;
	[&#039;PublicationDate&#039;] = {&#039;publicationdate&#039;, &#039;publication-date&#039;},&lt;br /&gt;
	[&#039;PublicationPlace&#039;] = {&#039;publication-place&#039;, &#039;publicationplace&#039;},&lt;br /&gt;
	[&#039;PublisherName&#039;] = {&#039;publisher&#039;, &#039;distributor&#039;, &#039;institution&#039;, &#039;newsgroup&#039;},&lt;br /&gt;
	[&#039;Quote&#039;] = {&#039;quote&#039;, &#039;quotation&#039;},&lt;br /&gt;
	[&#039;Ref&#039;] = &#039;ref&#039;,&lt;br /&gt;
	[&#039;RegistrationRequired&#039;] = &#039;registration&#039;,&lt;br /&gt;
	[&#039;Scale&#039;] = &#039;scale&#039;,&lt;br /&gt;
	[&#039;ScriptChapter&#039;] = &#039;script-chapter&#039;,&lt;br /&gt;
	[&#039;ScriptTitle&#039;] = &#039;script-title&#039;,&lt;br /&gt;
	[&#039;Section&#039;] = &#039;section&#039;,&lt;br /&gt;
	[&#039;Season&#039;] = &#039;season&#039;,&lt;br /&gt;
	[&#039;Sections&#039;] = &#039;sections&#039;,													-- cite map only&lt;br /&gt;
	[&#039;Series&#039;] = {&#039;series&#039;, &#039;version&#039;},&lt;br /&gt;
	[&#039;SeriesSeparator&#039;] = &#039;series-separator&#039;,&lt;br /&gt;
	[&#039;SeriesLink&#039;] = {&#039;series-link&#039;, &#039;serieslink&#039;},&lt;br /&gt;
	[&#039;SeriesNumber&#039;] = {&#039;series-number&#039;, &#039;series-no&#039;, &#039;seriesnumber&#039;, &#039;seriesno&#039;},&lt;br /&gt;
	[&#039;Sheet&#039;] = &#039;sheet&#039;,														-- cite map only&lt;br /&gt;
	[&#039;Sheets&#039;] = &#039;sheets&#039;,														-- cite map only&lt;br /&gt;
	[&#039;Station&#039;] = &#039;station&#039;,&lt;br /&gt;
	[&#039;SubscriptionRequired&#039;] = &#039;subscription&#039;,&lt;br /&gt;
	[&#039;Time&#039;] = &#039;time&#039;,&lt;br /&gt;
	[&#039;TimeCaption&#039;] = {&#039;time-caption&#039;, &#039;timecaption&#039;},&lt;br /&gt;
	[&#039;Title&#039;] = &#039;title&#039;,&lt;br /&gt;
	[&#039;TitleLink&#039;] = {&#039;title-link&#039;, &#039;episode-link&#039;, &#039;titlelink&#039;, &#039;episodelink&#039;},&lt;br /&gt;
	[&#039;TitleNote&#039;] = &#039;department&#039;,&lt;br /&gt;
	[&#039;TitleType&#039;] = {&#039;type&#039;, &#039;medium&#039;},&lt;br /&gt;
	[&#039;TransChapter&#039;] = &#039;trans-chapter&#039;,&lt;br /&gt;
	[&#039;TransMap&#039;] = &#039;trans-map&#039;,													-- cite map only&lt;br /&gt;
	[&#039;Transcript&#039;] = &#039;transcript&#039;,&lt;br /&gt;
	[&#039;TranscriptFormat&#039;] = &#039;transcript-format&#039;,&lt;br /&gt;
	[&#039;TranscriptURL&#039;] = {&#039;transcript-url&#039;, &#039;transcripturl&#039;},&lt;br /&gt;
	[&#039;TransTitle&#039;] = &#039;trans-title&#039;,&lt;br /&gt;
	[&#039;URL&#039;] = {&#039;url&#039;, &#039;URL&#039;},&lt;br /&gt;
	[&#039;UrlAccess&#039;] = {&#039;url-access&#039;},&lt;br /&gt;
	[&#039;Vauthors&#039;] = &#039;vauthors&#039;,&lt;br /&gt;
	[&#039;Veditors&#039;] = &#039;veditors&#039;,&lt;br /&gt;
	[&#039;Via&#039;] = &#039;via&#039;,&lt;br /&gt;
	[&#039;Volume&#039;] = &#039;volume&#039;,&lt;br /&gt;
	[&#039;Year&#039;] = &#039;year&#039;,&lt;br /&gt;
&lt;br /&gt;
	[&#039;AuthorList-First&#039;] = {&amp;quot;first#&amp;quot;, &amp;quot;given#&amp;quot;, &amp;quot;author-first#&amp;quot;, &amp;quot;author#-first&amp;quot;},&lt;br /&gt;
	[&#039;AuthorList-Last&#039;] = {&amp;quot;last#&amp;quot;, &amp;quot;author#&amp;quot;, &amp;quot;surname#&amp;quot;, &amp;quot;author-last#&amp;quot;, &amp;quot;author#-last&amp;quot;, &amp;quot;subject#&amp;quot;},&lt;br /&gt;
	[&#039;AuthorList-Link&#039;] = {&amp;quot;authorlink#&amp;quot;, &amp;quot;author-link#&amp;quot;, &amp;quot;author#-link&amp;quot;, &amp;quot;subjectlink#&amp;quot;, &amp;quot;author#link&amp;quot;, &amp;quot;subject-link#&amp;quot;, &amp;quot;subject#-link&amp;quot;, &amp;quot;subject#link&amp;quot;},&lt;br /&gt;
	[&#039;AuthorList-Mask&#039;] = {&amp;quot;author-mask#&amp;quot;, &amp;quot;authormask#&amp;quot;, &amp;quot;author#mask&amp;quot;, &amp;quot;author#-mask&amp;quot;},&lt;br /&gt;
	&lt;br /&gt;
	[&#039;ContributorList-First&#039;] = {&#039;contributor-first#&#039;, &#039;contributor#-first&#039;, &#039;contributor-given#&#039;, &#039;contributor#-given&#039;},&lt;br /&gt;
	[&#039;ContributorList-Last&#039;] = {&#039;contributor#&#039;, &#039;contributor-last#&#039;, &#039;contributor#-last&#039;, &#039;contributor-surname#&#039;, &#039;contributor#-surname&#039;},&lt;br /&gt;
	[&#039;ContributorList-Link&#039;] = {&#039;contributor-link#&#039;, &#039;contributor#-link&#039;},&lt;br /&gt;
	[&#039;ContributorList-Mask&#039;] = {&#039;contributor-mask#&#039;, &#039;contributor#-mask&#039;},&lt;br /&gt;
&lt;br /&gt;
	[&#039;EditorList-First&#039;] = {&amp;quot;editor-first#&amp;quot;, &amp;quot;editor#-first&amp;quot;, &amp;quot;editor-given#&amp;quot;, &amp;quot;editor#-given&amp;quot;},&lt;br /&gt;
	[&#039;EditorList-Last&#039;] = {&amp;quot;editor#&amp;quot;, &amp;quot;editor-last#&amp;quot;, &amp;quot;editor#-last&amp;quot;, &amp;quot;editor-surname#&amp;quot;, &amp;quot;editor#-surname&amp;quot;},&lt;br /&gt;
	[&#039;EditorList-Link&#039;] = {&amp;quot;editor-link#&amp;quot;, &amp;quot;editor#-link&amp;quot;, &amp;quot;editorlink#&amp;quot;, &amp;quot;editor#link&amp;quot;},&lt;br /&gt;
	[&#039;EditorList-Mask&#039;] = {&amp;quot;editor-mask#&amp;quot;, &amp;quot;editor#-mask&amp;quot;, &amp;quot;editormask#&amp;quot;, &amp;quot;editor#mask&amp;quot;},&lt;br /&gt;
	&lt;br /&gt;
	[&#039;InterviewerList-First&#039;] = {&#039;interviewer-first#&#039;, &#039;interviewer#-first&#039;},&lt;br /&gt;
	[&#039;InterviewerList-Last&#039;] = {&#039;interviewer#&#039;, &#039;interviewer-last#&#039;, &#039;interviewer#-last&#039;},&lt;br /&gt;
	[&#039;InterviewerList-Link&#039;] = {&#039;interviewer-link#&#039;, &#039;interviewer#-link&#039;},&lt;br /&gt;
	[&#039;InterviewerList-Mask&#039;] = {&#039;interviewer-mask#&#039;, &#039;interviewer#-mask&#039;},&lt;br /&gt;
&lt;br /&gt;
	[&#039;TranslatorList-First&#039;] = {&#039;translator-first#&#039;, &#039;translator#-first&#039;, &#039;translator-given#&#039;, &#039;translator#-given&#039;},&lt;br /&gt;
	[&#039;TranslatorList-Last&#039;] = {&#039;translator#&#039;, &#039;translator-last#&#039;, &#039;translator#-last&#039;, &#039;translator-surname#&#039;, &#039;translator#-surname&#039;},&lt;br /&gt;
	[&#039;TranslatorList-Link&#039;] = {&#039;translator-link#&#039;, &#039;translator#-link&#039;},&lt;br /&gt;
	[&#039;TranslatorList-Mask&#039;] = {&#039;translator-mask#&#039;, &#039;translator#-mask&#039;},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S P E C I A L   C A S E   T R A N S L A T I O N S &amp;gt;----------------------------&lt;br /&gt;
&lt;br /&gt;
This table is primarily here to support internationalization.  Translations in this table are used, for example,&lt;br /&gt;
when an error message, category name, etc is extracted from the English alias key.  There may be other cases where&lt;br /&gt;
this translation table may be useful.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local special_case_translation = {&lt;br /&gt;
	[&#039;AuthorList&#039;] = &amp;quot;authors list&amp;quot;,											-- these for multiple names maint categories&lt;br /&gt;
	[&#039;ContributorList&#039;] = &amp;quot;contributors list&amp;quot;,&lt;br /&gt;
	[&#039;EditorList&#039;] = &amp;quot;editors list&amp;quot;,&lt;br /&gt;
	[&#039;InterviewerList&#039;] = &amp;quot;interviewers list&amp;quot;,&lt;br /&gt;
	[&#039;TranslatorList&#039;] = &amp;quot;translators list&amp;quot;,&lt;br /&gt;
	&lt;br /&gt;
	[&#039;authors&#039;] = &amp;quot;authors&amp;quot;,													-- used in get_display_authors_editors()&lt;br /&gt;
	[&#039;editors&#039;] = &amp;quot;editors&amp;quot;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D E F A U L T S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Default parameter values&lt;br /&gt;
&lt;br /&gt;
TODO: keep this?  Only one default?&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local defaults = {&lt;br /&gt;
	[&#039;DeadURL&#039;] = &#039;yes&#039;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D A T E _ N A M E S &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This table of tables lists local language date names and fallback English date names.  The code in Date_validation&lt;br /&gt;
will look first in the local table for valid date names.  If date names are not found in the local table, the code&lt;br /&gt;
will look in the English table.&lt;br /&gt;
&lt;br /&gt;
Because citations can be copied to the local wiki from en.wiki, the English is required when the date-name translation&lt;br /&gt;
function date_name_xlate() is used.&lt;br /&gt;
&lt;br /&gt;
In these tables, season numbering is defined by ISO DIS 8601:2016 part 2 §4.7 &#039;Divisions of a year&#039;.  The standard&lt;br /&gt;
defines various divisions using numbers 21-41.  cs1|2 only supports generic seasons.  ISO DIS 8601:2016 does support&lt;br /&gt;
the distinction between north and south hemispere seasons but cs1|2 has no way to make that distinction.&lt;br /&gt;
&lt;br /&gt;
The standard does not address &#039;named&#039; dates so, for the purposes of cs1|2, Christmas is defined here as 99, which&lt;br /&gt;
should be out of the ISO DIS 8601:2016 range of uses for a while.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local date_names = {&lt;br /&gt;
	[&#039;en&#039;] = {			-- English&lt;br /&gt;
		[&#039;long&#039;]	= {[&#039;January&#039;]=1, [&#039;February&#039;]=2, [&#039;March&#039;]=3, [&#039;April&#039;]=4, [&#039;May&#039;]=5, [&#039;June&#039;]=6, [&#039;July&#039;]=7, [&#039;August&#039;]=8, [&#039;September&#039;]=9, [&#039;October&#039;]=10, [&#039;November&#039;]=11, [&#039;December&#039;]=12};&lt;br /&gt;
		[&#039;short&#039;]	= {[&#039;Jan&#039;]=1, [&#039;Feb&#039;]=2, [&#039;Mar&#039;]=3, [&#039;Apr&#039;]=4, [&#039;May&#039;]=5, [&#039;Jun&#039;]=6, [&#039;Jul&#039;]=7, [&#039;Aug&#039;]=8, [&#039;Sep&#039;]=9, [&#039;Oct&#039;]=10, [&#039;Nov&#039;]=11, [&#039;Dec&#039;]=12};&lt;br /&gt;
		[&#039;season&#039;]	= {[&#039;Winter&#039;]=24, [&#039;Spring&#039;]=21, [&#039;Summer&#039;]=22, [&#039;Fall&#039;]=23, [&#039;Autumn&#039;]=23};&lt;br /&gt;
		[&#039;named&#039;]	= {[&#039;Christmas&#039;]=99};&lt;br /&gt;
		},&lt;br /&gt;
	[&#039;local&#039;] = {		-- replace these English date names with the local language equivalents&lt;br /&gt;
		[&#039;long&#039;]	= {[&#039;January&#039;]=1, [&#039;February&#039;]=2, [&#039;March&#039;]=3, [&#039;April&#039;]=4, [&#039;May&#039;]=5, [&#039;June&#039;]=6, [&#039;July&#039;]=7, [&#039;August&#039;]=8, [&#039;September&#039;]=9, [&#039;October&#039;]=10, [&#039;November&#039;]=11, [&#039;December&#039;]=12};&lt;br /&gt;
		[&#039;short&#039;]	= {[&#039;Jan&#039;]=1, [&#039;Feb&#039;]=2, [&#039;Mar&#039;]=3, [&#039;Apr&#039;]=4, [&#039;May&#039;]=5, [&#039;Jun&#039;]=6, [&#039;Jul&#039;]=7, [&#039;Aug&#039;]=8, [&#039;Sep&#039;]=9, [&#039;Oct&#039;]=10, [&#039;Nov&#039;]=11, [&#039;Dec&#039;]=12};&lt;br /&gt;
		[&#039;season&#039;]	= {[&#039;Winter&#039;]=24, [&#039;Spring&#039;]=21, [&#039;Summer&#039;]=22, [&#039;Fall&#039;]=23, [&#039;Autumn&#039;]=23};&lt;br /&gt;
		[&#039;named&#039;]	= {[&#039;Christmas&#039;]=99};&lt;br /&gt;
		},&lt;br /&gt;
	[&#039;local_digits&#039;] = {[&#039;0&#039;] = &#039;0&#039;, [&#039;1&#039;] = &#039;1&#039;, [&#039;2&#039;] = &#039;2&#039;, [&#039;3&#039;] = &#039;3&#039;, [&#039;4&#039;] = &#039;4&#039;, [&#039;5&#039;] = &#039;5&#039;, [&#039;6&#039;] = &#039;6&#039;, [&#039;7&#039;] = &#039;7&#039;, [&#039;8&#039;] = &#039;8&#039;, [&#039;9&#039;] = &#039;9&#039;};	-- used to convert local language digits to Western 0-9&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; V O L U M E ,  I S S U E ,  P A G E S &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
These tables hold cite class values (from the template invocation) and identify those templates that support&lt;br /&gt;
|volume=, |issue=, and |page(s)= parameters.  Cite conference and cite map require further qualification which&lt;br /&gt;
is handled in the main module.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local templates_using_volume = {&#039;citation&#039;, &#039;audio-visual&#039;, &#039;book&#039;, &#039;conference&#039;, &#039;encyclopaedia&#039;, &#039;interview&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;map&#039;, &#039;news&#039;, &#039;report&#039;, &#039;techreport&#039;, &#039;thesis&#039;}&lt;br /&gt;
local templates_using_issue = {&#039;citation&#039;, &#039;conference&#039;, &#039;episode&#039;, &#039;interview&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;map&#039;, &#039;news&#039;}&lt;br /&gt;
local templates_not_using_page = {&#039;audio-visual&#039;, &#039;episode&#039;, &#039;mailinglist&#039;, &#039;newsgroup&#039;, &#039;podcast&#039;, &#039;serial&#039;, &#039;sign&#039;, &#039;speech&#039;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; K E Y W O R D S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This table holds keywords for those parameters that have defined sets of acceptible keywords.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local keywords = {&lt;br /&gt;
	[&#039;yes_true_y&#039;] = {&#039;yes&#039;, &#039;true&#039;, &#039;y&#039;},										-- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription&lt;br /&gt;
--	[&#039;deadurl&#039;] = {&#039;yes&#039;, &#039;true&#039;, &#039;y&#039;, &#039;no&#039;, &#039;unfit&#039;, &#039;usurped&#039;, &#039;unfit no archive&#039;, &#039;usurped no archive&#039;},		-- hidden 2016-04-10; see Help_talk:Citation_Style_1#Recycled_urls&lt;br /&gt;
	[&#039;deadurl&#039;] = {&#039;yes&#039;, &#039;true&#039;, &#039;y&#039;, &#039;no&#039;, &#039;unfit&#039;, &#039;usurped&#039;, &#039;bot: unknown&#039;},&lt;br /&gt;
	[&#039;mode&#039;] = {&#039;cs1&#039;, &#039;cs2&#039;, &#039;mla&#039;},&lt;br /&gt;
	[&#039;name-list-format&#039;] = {&#039;vanc&#039;},&lt;br /&gt;
	[&#039;contribution&#039;] = {&#039;afterword&#039;, &#039;foreword&#039;, &#039;introduction&#039;, &#039;preface&#039;},	-- generic contribution titles that are rendered unquoted in the &#039;chapter&#039; position&lt;br /&gt;
	[&#039;date-format&#039;] = {&#039;dmy&#039;, &#039;dmy-all&#039;, &#039;mdy&#039;, &#039;mdy-all&#039;, &#039;ymd&#039;, &#039;ymd-all&#039;},&lt;br /&gt;
	[&#039;url-access&#039;] = {&#039;subscription&#039;, &#039;limited&#039;, &#039;registration&#039;}, 	   -- access level of a URL (subscription required, limited access, free registration required), free to read by default&lt;br /&gt;
    [&#039;id-access&#039;] = {&#039;free&#039;},                                          -- access level of an identifier (free to read), subscription required (or no full text) by default&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S T R I P M A R K E R S &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Common pattern definition location for stripmarkers so that we don&#039;t have to go hunting for them if (when)&lt;br /&gt;
MediaWiki changes their form.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local stripmarkers = {&lt;br /&gt;
	[&#039;any&#039;] = &#039;\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127&#039;,			-- capture returns name of stripmarker&lt;br /&gt;
	[&#039;math&#039;] = &#039;\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127&#039;			-- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I N V I S I B L E _ C H A R A C T E R S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
This table holds non-printing or invisible characters indexed either by name or by Unicode group. Values are decimal&lt;br /&gt;
representations of UTF-8 codes.  The table is organized as a table of tables because the lua pairs keyword returns&lt;br /&gt;
table data in an arbitrary order.  Here, we want to process the table from top to bottom because the entries at&lt;br /&gt;
the top of the table are also found in the ranges specified by the entries at the bottom of the table.&lt;br /&gt;
&lt;br /&gt;
This list contains patterns for templates like {{&#039;}} which isn&#039;t an error but transcludes characters that are&lt;br /&gt;
invisible.  These kinds of patterns must be recognized by the functions that use this list.&lt;br /&gt;
&lt;br /&gt;
Also here is a pattern that recognizes stripmarkers that begin and end with the delete characters.  The nowiki&lt;br /&gt;
stripmarker is not an error but some others are because the parameter values that include them become part of the&lt;br /&gt;
template&#039;s metadata before stripmarker replacement.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local invisible_chars = {&lt;br /&gt;
	{&#039;replacement&#039;, &#039;\239\191\189&#039;},											-- U+FFFD, EF BF BD&lt;br /&gt;
	{&#039;zero width joiner&#039;, &#039;\226\128\141&#039;},										-- U+200D, E2 80 8D&lt;br /&gt;
	{&#039;zero width space&#039;, &#039;\226\128\139&#039;},										-- U+200B, E2 80 8B&lt;br /&gt;
	{&#039;hair space&#039;, &#039;\226\128\138&#039;},												-- U+200A, E2 80 8A&lt;br /&gt;
	{&#039;soft hyphen&#039;, &#039;\194\173&#039;},												-- U+00AD, C2 AD&lt;br /&gt;
	{&#039;horizontal tab&#039;, &#039;\009&#039;},													-- U+0009 (HT), 09&lt;br /&gt;
	{&#039;line feed&#039;, &#039;\010&#039;},														-- U+000A (LF), 0A&lt;br /&gt;
	{&#039;carriage return&#039;, &#039;\013&#039;},												-- U+000D (CR), 0D&lt;br /&gt;
	{&#039;stripmarker&#039;, stripmarkers.any},											-- stripmarker; may or may not be an error; capture returns the stripmaker type&lt;br /&gt;
	{&#039;delete&#039;, &#039;\127&#039;},															-- U+007F (DEL), 7F; must be done after stripmarker test&lt;br /&gt;
	{&#039;C0 control&#039;, &#039;[\000-\008\011\012\014-\031]&#039;},								-- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))&lt;br /&gt;
	{&#039;C1 control&#039;, &#039;[\194\128-\194\159]&#039;},										-- U+0080–U+009F (XXX–APC), C2 80 – C2 9F&lt;br /&gt;
--	{&#039;Specials&#039;, &#039;[\239\191\185-\239\191\191]&#039;},								-- U+FFF9-U+FFFF, EF BF B9 – EF BF BF&lt;br /&gt;
--	{&#039;Private use area&#039;, &#039;[\238\128\128-\239\163\191]&#039;},						-- U+E000–U+F8FF, EE 80 80 – EF A3 BF&lt;br /&gt;
--	{&#039;Supplementary Private Use Area-A&#039;, &#039;[\243\176\128\128-\243\191\191\189]&#039;},	-- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD&lt;br /&gt;
--	{&#039;Supplementary Private Use Area-B&#039;, &#039;[\244\128\128\128-\244\143\191\189]&#039;},	-- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Indic script makes use of zero width joiner as a character modifier so zwj characters must be left in.  This&lt;br /&gt;
-- pattern covers all of the unicode characters for these languages:&lt;br /&gt;
--	Devanagari					0900–097F – https://unicode.org/charts/PDF/U0900.pdf&lt;br /&gt;
--		Devanagari extended		A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf&lt;br /&gt;
--	Bengali						0980–09FF – https://unicode.org/charts/PDF/U0980.pdf&lt;br /&gt;
--	Gurmukhi					0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf&lt;br /&gt;
--	Gujarati					0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf&lt;br /&gt;
--	Oriya						0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf&lt;br /&gt;
--	Tamil						0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf&lt;br /&gt;
--	Telugu						0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf&lt;br /&gt;
--	Kannada						0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf&lt;br /&gt;
--	Malayalam					0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf&lt;br /&gt;
-- plus the not-necessarily Indic scripts for Sinhala and Burmese:&lt;br /&gt;
--  Sinhala						0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf&lt;br /&gt;
--	Myanmar						1000-109F - https://unicode.org/charts/PDF/U1000.pdf&lt;br /&gt;
--		Myanmar extended A		AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf&lt;br /&gt;
--		Myanmar extended B		A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf&lt;br /&gt;
-- the pattern is used by has_invisible_chars() and coins_cleanup()&lt;br /&gt;
-- TODO: find a better place for this?&lt;br /&gt;
&lt;br /&gt;
local indic_script = &#039;[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]&#039;;&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L A N G U A G E S &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This table is used to hold ISO 639-1 two-character language codes that apply only to |script-title= and |script-chapter=&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local script_lang_codes = {&lt;br /&gt;
	&#039;am&#039;, &#039;ar&#039;, &#039;be&#039;, &#039;bg&#039;, &#039;bn&#039;, &#039;bs&#039;, &#039;dv&#039;, &#039;el&#039;, &#039;fa&#039;,						-- ISO 639-1 codes only for |script-title= and |script-chapter=&lt;br /&gt;
	&#039;gu&#039;, &#039;he&#039;, &#039;hy&#039;, &#039;ja&#039;, &#039;ka&#039;, &#039;kn&#039;, &#039;ko&#039;, &#039;ku&#039;,&lt;br /&gt;
	&#039;mk&#039;, &#039;ml&#039;, &#039;mn&#039;, &#039;mr&#039;, &#039;my&#039;, &#039;ps&#039;, &#039;ru&#039;, &#039;sd&#039;,&lt;br /&gt;
	&#039;sr&#039;, &#039;tg&#039;, &#039;th&#039;, &#039;uk&#039;, &#039;ug&#039;, &#039;ur&#039;, &#039;yi&#039;, &#039;zh&#039;&lt;br /&gt;
	};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M A I N T E N A N C E _ C A T E G O R I E S &amp;gt;----------------------------------&lt;br /&gt;
&lt;br /&gt;
Here we name maintenance categories to be used in maintenance messages.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local maint_cats = {&lt;br /&gt;
	[&#039;ASIN&#039;] = &#039;CS1 maint: ASIN uses ISBN&#039;,&lt;br /&gt;
	[&#039;authors&#039;] = &#039;CS1 maint: Uses authors parameter&#039;,&lt;br /&gt;
	[&#039;bot:_unknown&#039;] = &#039;CS1 maint: BOT: original-url status unknown&#039;,&lt;br /&gt;
	[&#039;date_format&#039;] = &#039;CS1 maint: Date format&#039;,&lt;br /&gt;
	[&#039;date_year&#039;] = &#039;CS1 maint: Date and year&#039;,&lt;br /&gt;
	[&#039;disp_auth_ed&#039;] = &#039;CS1 maint: display-$1&#039;,									-- $1 is authors or editors; gets value from special_case_translation table&lt;br /&gt;
	[&#039;editors&#039;] = &#039;CS1 maint: Uses editors parameter&#039;,&lt;br /&gt;
	[&#039;embargo&#039;] = &#039;CS1 maint: PMC embargo expired&#039;,&lt;br /&gt;
	[&#039;english&#039;] = &#039;CS1 maint: English language specified&#039;,&lt;br /&gt;
	[&#039;etal&#039;] = &#039;CS1 maint: Explicit use of et al.&#039;,&lt;br /&gt;
	[&#039;extra_text&#039;] = &#039;CS1 maint: Extra text&#039;,&lt;br /&gt;
	[&#039;extra_text_names&#039;] = &#039;CS1 maint: Extra text: $1&#039;,							-- $1 is &amp;lt;name&amp;gt;s list; gets value from special_case_translation table&lt;br /&gt;
	[&#039;ignore_isbn_err&#039;] = &#039;CS1 maint: Ignored ISBN errors&#039;,&lt;br /&gt;
	[&#039;interviewers&#039;] = &#039;CS1 maint: Uses interviewers parameter&#039;,&lt;br /&gt;
	[&#039;missing_pipe&#039;] = &#039;CS1 maint: Missing pipe&#039;,&lt;br /&gt;
	[&#039;mult_names&#039;] = &#039;CS1 maint: Multiple names: $1&#039;,							-- $1 is &amp;lt;name&amp;gt;s list; gets value from special_case_translation table&lt;br /&gt;
	[&#039;pmc_format&#039;] = &#039;CS1 maint: PMC format&#039;,&lt;br /&gt;
	[&#039;unfit&#039;] = &#039;CS1 maint: Unfit url&#039;,&lt;br /&gt;
	[&#039;unknown_lang&#039;] = &#039;CS1 maint: Unrecognized language&#039;,&lt;br /&gt;
	[&#039;untitled&#039;] = &#039;CS1 maint: Untitled periodical&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P R O P E R T I E S _ C A T E G O R I E S &amp;gt;------------------------------------&lt;br /&gt;
&lt;br /&gt;
Here we name properties categories&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local prop_cats = {&lt;br /&gt;
	[&#039;foreign_lang_source&#039;] = &#039;CS1 $1-language sources ($2)&#039;,					-- |language= categories; $1 is language name, $2 is ISO639-1 code&lt;br /&gt;
	[&#039;foreign_lang_source_2&#039;] = &#039;CS1 foreign language sources (ISO 639-2)|$1&#039;,	-- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code&lt;br /&gt;
	[&#039;script&#039;] = &#039;CS1 uses foreign language script&#039;,							-- when language specified by |script-title=xx: doesn&#039;t have its own category&lt;br /&gt;
	[&#039;script_with_name&#039;] = &#039;CS1 uses $1-language script ($2)&#039;,					-- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code&lt;br /&gt;
	[&#039;jul_greg_uncertainty&#039;] = &#039;CS1: Julian–Gregorian uncertainty&#039;,				-- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; T I T L E _ T Y P E S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Here we map a template&#039;s CitationClass to TitleType (default values for |type= parameter)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local title_types = {&lt;br /&gt;
	[&#039;AV-media-notes&#039;] = &#039;Media notes&#039;,&lt;br /&gt;
	[&#039;interview&#039;] = &#039;Interview&#039;,&lt;br /&gt;
	[&#039;mailinglist&#039;] = &#039;Mailing list&#039;,&lt;br /&gt;
	[&#039;map&#039;] = &#039;Map&#039;,&lt;br /&gt;
	[&#039;podcast&#039;] = &#039;Podcast&#039;,&lt;br /&gt;
	[&#039;pressrelease&#039;] = &#039;Press release&#039;,&lt;br /&gt;
	[&#039;report&#039;] = &#039;Report&#039;,&lt;br /&gt;
	[&#039;techreport&#039;] = &#039;Technical report&#039;,&lt;br /&gt;
	[&#039;thesis&#039;] = &#039;Thesis&#039;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E R R O R _ C O N D I T I O N S &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Error condition table&lt;br /&gt;
&lt;br /&gt;
The following contains a list of IDs for various error conditions defined in the code.  For each ID, we specify a&lt;br /&gt;
text message to display, an error category to include, and whether the error message should be wrapped as a hidden comment.&lt;br /&gt;
&lt;br /&gt;
Anchor changes require identical changes to matching anchor in Help:CS1 errors&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local error_conditions = {&lt;br /&gt;
	accessdate_missing_url = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;access-date=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;url=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;accessdate_missing_url&#039;,&lt;br /&gt;
		category = &#039;Pages using citations with accessdate and no URL&#039;,&lt;br /&gt;
		hidden = true },&lt;br /&gt;
	archive_missing_date = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;archive-url=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;archive-date=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;archive_missing_date&#039;,&lt;br /&gt;
		category = &#039;Pages with archiveurl citation errors&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	archive_missing_url = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;archive-url=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;url=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;archive_missing_url&#039;,&lt;br /&gt;
		category = &#039;Pages with archiveurl citation errors&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	archive_url = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;archive-url=&amp;lt;/code&amp;gt; is malformed: $1&#039;,&lt;br /&gt;
		anchor = &#039;archive_url&#039;,&lt;br /&gt;
		category = &#039;Pages with archiveurl citation errors&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	arxiv_missing = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;arxiv=&amp;lt;/code&amp;gt; required&#039;,&lt;br /&gt;
		anchor = &#039;arxiv_missing&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: arXiv&#039;,											-- same as bad arxiv&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	arxiv_params_not_supported = {&lt;br /&gt;
		message = &#039;Unsupported parameter(s) in cite arXiv&#039;,&lt;br /&gt;
		anchor = &#039;arxiv_params_not_supported&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: arXiv&#039;,											-- same as bad arxiv&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_arxiv = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;arxiv=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_arxiv&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: arXiv&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_asin = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;asin=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_asin&#039;,&lt;br /&gt;
		category =&#039;CS1 errors: ASIN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_bibcode = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;bibcode=&amp;lt;/code&amp;gt; $1&#039;,&lt;br /&gt;
		anchor = &#039;bad_bibcode&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: bibcode&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_biorxiv = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;biorxiv=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_biorxiv&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: bioRxiv&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_citeseerx = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;citeseerx=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_citeseerx&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: citeseerx&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_date = {&lt;br /&gt;
		message = &#039;Check date values in: &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;$1&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;bad_date&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: dates&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_doi = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;doi=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_doi&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: DOI&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_hdl = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;hdl=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_hdl&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: HDL&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_isbn = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;isbn=&amp;lt;/code&amp;gt; value: $1&#039;,&lt;br /&gt;
		anchor = &#039;bad_isbn&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: ISBN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_ismn = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;ismn=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_ismn&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: ISMN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_issn = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1issn=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_issn&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: ISSN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_jfm = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;jfm=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_jfm&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: JFM&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_lccn = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;lccn=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_lccn&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: LCCN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_usenet_id = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;message-id=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_message_id&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: message-id&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_mr = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;mr=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_mr&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: MR&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_ol = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;ol=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_ol&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: OL&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_paramlink = {															-- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_paramlink&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: parameter link&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_pmc = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;pmc=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_pmc&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: PMC&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_pmid = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;pmid=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_pmid&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: PMID&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_oclc = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;oclc=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_oclc&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: OCLC&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_ssrn = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;ssrn=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_ssrn&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: SSRN&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_url = {&lt;br /&gt;
		message = &#039;Check $1 value&#039;,&lt;br /&gt;
		anchor = &#039;bad_url&#039;,&lt;br /&gt;
		category = &#039;Pages with URL errors&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bad_zbl = {&lt;br /&gt;
		message = &#039;Check &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;zbl=&amp;lt;/code&amp;gt; value&#039;,&lt;br /&gt;
		anchor = &#039;bad_zbl&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: ZBL&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	bare_url_missing_title = {&lt;br /&gt;
		message = &#039;$1 missing title&#039;,&lt;br /&gt;
		anchor = &#039;bare_url_missing_title&#039;,&lt;br /&gt;
		category = &#039;Pages with citations having bare URLs&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	biorxiv_missing = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;biorxiv=&amp;lt;/code&amp;gt; required&#039;,&lt;br /&gt;
		anchor = &#039;biorxiv_missing&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: bioRxiv&#039;,										-- same as bad bioRxiv&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	chapter_ignored = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt; ignored&#039;,&lt;br /&gt;
		anchor = &#039;chapter_ignored&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: chapter ignored&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	citation_missing_title = {&lt;br /&gt;
		message = &#039;Missing or empty &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;citation_missing_title&#039;,&lt;br /&gt;
		category = &#039;Pages with citations lacking titles&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	citeseerx_missing = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;citeseerx=&amp;lt;/code&amp;gt; required&#039;,&lt;br /&gt;
		anchor = &#039;citeseerx_missing&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: citeseerx&#039;,										-- same as bad citeseerx&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	cite_web_url = {															-- this error applies to cite web and to cite podcast&lt;br /&gt;
		message = &#039;Missing or empty &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;url=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;cite_web_url&#039;,&lt;br /&gt;
		category = &#039;Pages using web citations with no URL&#039;,&lt;br /&gt;
		hidden = true },&lt;br /&gt;
	contributor_ignored = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;contributor=&amp;lt;/code&amp;gt; ignored&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;contributor_ignored&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: contributor&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	contributor_missing_required_param = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;contributor=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;contributor_missing_required_param&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: contributor&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	deprecated_params = {&lt;br /&gt;
		message = &#039;Cite uses deprecated parameter &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;deprecated_params&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: deprecated parameters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	empty_citation = {&lt;br /&gt;
		message = &#039;Empty citation&#039;,&lt;br /&gt;
		anchor = &#039;empty_citation&#039;,&lt;br /&gt;
		category = &#039;Pages with empty citations&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	first_missing_last = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;first$2=&amp;lt;/code&amp;gt; missing &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;last$2=&amp;lt;/code&amp;gt; in $1&#039;,&lt;br /&gt;
		anchor = &#039;first_missing_last&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: missing author or editor&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	format_missing_url = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$2=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;format_missing_url&#039;,&lt;br /&gt;
		category = &#039;Pages using citations with format and no URL&#039;,&lt;br /&gt;
		hidden = true },&lt;br /&gt;
	invalid_param_val = {&lt;br /&gt;
		message = &#039;Invalid &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=$2&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;invalid_param_val&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: invalid parameter value&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	invisible_char = {&lt;br /&gt;
		message = &#039;$1 in $2 at position $3&#039;,&lt;br /&gt;
		anchor = &#039;invisible_char&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: invisible characters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	missing_name = {&lt;br /&gt;
		message = &#039;Missing &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;last$2=&amp;lt;/code&amp;gt; in $1&#039;,&lt;br /&gt;
		anchor = &#039;missing_name&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: missing author or editor&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	param_access_requires_param = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1-access=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;param_access_requires_param&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: param-access&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	param_has_ext_link = {&lt;br /&gt;
		message = &#039;External link in &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;$1&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;param_has_ext_link&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: external links&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	parameter_ignored = {&lt;br /&gt;
		message = &#039;Unknown parameter &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt; ignored&#039;,&lt;br /&gt;
		anchor = &#039;parameter_ignored&#039;,&lt;br /&gt;
		category = &#039;Pages with citations using unsupported parameters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	parameter_ignored_suggest = {&lt;br /&gt;
		message = &#039;Unknown parameter &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt; ignored (&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$2=&amp;lt;/code&amp;gt; suggested)&#039;,&lt;br /&gt;
		anchor = &#039;parameter_ignored_suggest&#039;,&lt;br /&gt;
		category = &#039;Pages with citations using unsupported parameters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	redundant_parameters = {&lt;br /&gt;
		message = &#039;More than one of $1 specified&#039;,&lt;br /&gt;
		anchor = &#039;redundant_parameters&#039;,&lt;br /&gt;
		category = &#039;Pages with citations having redundant parameters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	text_ignored = {&lt;br /&gt;
		message = &#039;Text &amp;quot;$1&amp;quot; ignored&#039;,&lt;br /&gt;
		anchor = &#039;text_ignored&#039;,&lt;br /&gt;
		category = &#039;Pages with citations using unnamed parameters&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	trans_missing_title = {&lt;br /&gt;
		message = &#039;&amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;trans-$1=&amp;lt;/code&amp;gt; requires &amp;lt;code style=&amp;quot;&#039;..code_style..&#039;&amp;quot;&amp;gt;&amp;amp;#124;$1=&amp;lt;/code&amp;gt;&#039;,&lt;br /&gt;
		anchor = &#039;trans_missing_title&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: translated title&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	vancouver = {&lt;br /&gt;
		message = &#039;Vancouver style error: $1&#039;,&lt;br /&gt;
		anchor = &#039;vancouver&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: Vancouver style&#039;,&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	wikilink_in_url = {&lt;br /&gt;
		message = &#039;URL–wikilink conflict&#039;,										-- uses ndash&lt;br /&gt;
		anchor = &#039;wikilink_in_url&#039;,&lt;br /&gt;
		category = &#039;CS1 errors: URL–wikilink conflict&#039;,							-- uses ndash&lt;br /&gt;
		hidden = false },&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I D _ H A N D L E R S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
The following contains a list of values for various defined identifiers.  For each identifier we specify a&lt;br /&gt;
variety of information necessary to properly render the identifier in the citation.&lt;br /&gt;
&lt;br /&gt;
	parameters: a list of parameter aliases for this identifier&lt;br /&gt;
	link: Wikipedia article name&lt;br /&gt;
	label: the alternate name to apply to link&lt;br /&gt;
	mode: 	&#039;manual&#039; when there is a specific function in the code to handle the identifier;&lt;br /&gt;
			&#039;external&#039; for identifiers that link outside of Wikipedia;&lt;br /&gt;
	prefix: the first part of a url that will be concatenated with a second part which usually contains the identifier&lt;br /&gt;
	encode: true if uri should be percent encoded; otherwise false&lt;br /&gt;
	COinS: identifier link or keyword for use in COinS:&lt;br /&gt;
		for identifiers registered at info-uri.info use: info:....&lt;br /&gt;
		for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn&lt;br /&gt;
		for others make a url using the value in prefix, use the keyword: pre (not checked; any text other than &#039;info&#039; or &#039;rft&#039; works here)&lt;br /&gt;
		set to nil to leave the identifier out of the COinS&lt;br /&gt;
	separator: character or text between label and the identifier in the rendered citation&lt;br /&gt;
	access: use this parameter to set the access level for all instances of this identifier.&lt;br /&gt;
			the value must be a valid access level for an identifier (see [&#039;id-access&#039;] in this file).&lt;br /&gt;
	custom_access: to enable custom access level for an identifier, set this parameter&lt;br /&gt;
			to the parameter that should control it (normally &#039;id-access&#039;)&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local id_handlers = {&lt;br /&gt;
	[&#039;ARXIV&#039;] = {&lt;br /&gt;
		parameters = {&#039;arxiv&#039;, &#039;eprint&#039;},&lt;br /&gt;
		link = &#039;arXiv&#039;,&lt;br /&gt;
		label = &#039;arXiv&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//arxiv.org/abs/&#039;, 											-- protocol relative tested 2013-09-04&lt;br /&gt;
		encode = false,&lt;br /&gt;
		COinS = &#039;info:arxiv&#039;,&lt;br /&gt;
		separator = &#039;:&#039;,&lt;br /&gt;
		access = &#039;free&#039;,														-- free to read&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ASIN&#039;] = {&lt;br /&gt;
		parameters = { &#039;asin&#039;, &#039;ASIN&#039; },&lt;br /&gt;
		link = &#039;Amazon Standard Identification Number&#039;,&lt;br /&gt;
		label = &#039;ASIN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.amazon.&#039;,&lt;br /&gt;
		COinS = nil,															-- no COinS for this id (needs thinking on implementation because |asin-tld=)&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		encode = false;&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;BIBCODE&#039;] = {&lt;br /&gt;
		parameters = {&#039;bibcode&#039;},&lt;br /&gt;
		link = &#039;Bibcode&#039;,&lt;br /&gt;
		label = &#039;Bibcode&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;http://adsabs.harvard.edu/abs/&#039;,&lt;br /&gt;
		encode = false,&lt;br /&gt;
		COinS = &#039;info:bibcode&#039;,&lt;br /&gt;
		separator = &#039;:&#039;,&lt;br /&gt;
		custom_access = &#039;bibcode-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;BIORXIV&#039;] = {&lt;br /&gt;
		parameters = {&#039;biorxiv&#039;},&lt;br /&gt;
		link = &#039;bioRxiv&#039;,&lt;br /&gt;
		label = &#039;bioRxiv&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//doi.org/10.1101/&#039;,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		access = &#039;free&#039;,														-- free to read&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;CITESEERX&#039;] = {&lt;br /&gt;
		parameters = {&#039;citeseerx&#039;},&lt;br /&gt;
		link = &#039;CiteSeerX&#039;,&lt;br /&gt;
		label = &#039;CiteSeerX&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,														-- manual for custom validation of the &amp;quot;doi&amp;quot;&lt;br /&gt;
		prefix = &#039;//citeseerx.ist.psu.edu/viewdoc/summary?doi=&#039;,&lt;br /&gt;
		COinS =  &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		access = &#039;free&#039;,														-- free to read&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;DOI&#039;] = {&lt;br /&gt;
		parameters = { &#039;doi&#039;, &#039;DOI&#039; },&lt;br /&gt;
		link = &#039;Digital object identifier&#039;,&lt;br /&gt;
		label = &#039;doi&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//doi.org/&#039;,&lt;br /&gt;
		COinS = &#039;info:doi&#039;,&lt;br /&gt;
		separator = &#039;:&#039;,&lt;br /&gt;
		encode = true,&lt;br /&gt;
		custom_access = &#039;doi-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;EISSN&#039;] = {&lt;br /&gt;
		parameters = {&#039;eissn&#039;, &#039;EISSN&#039;},&lt;br /&gt;
		link = &#039;International_Standard_Serial_Number#Electronic_ISSN&#039;,&lt;br /&gt;
		label = &#039;eISSN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.worldcat.org/issn/&#039;,&lt;br /&gt;
		COinS = &#039;rft.eissn&#039;,&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;HDL&#039;] = {&lt;br /&gt;
		parameters = { &#039;hdl&#039;, &#039;HDL&#039; },&lt;br /&gt;
		link = &#039;Handle System&#039;,&lt;br /&gt;
		label = &#039;hdl&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//hdl.handle.net/&#039;,&lt;br /&gt;
		COinS = &#039;info:hdl&#039;,&lt;br /&gt;
		separator = &#039;:&#039;,&lt;br /&gt;
		encode = true,&lt;br /&gt;
		custom_access = &#039;hdl-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ISBN&#039;] = {&lt;br /&gt;
		parameters = {&#039;isbn&#039;, &#039;ISBN&#039;, &#039;isbn13&#039;, &#039;ISBN13&#039;},&lt;br /&gt;
		link = &#039;International Standard Book Number&#039;,&lt;br /&gt;
		label = &#039;ISBN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;Special:BookSources/&#039;,&lt;br /&gt;
		COinS = &#039;rft.isbn&#039;,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ISMN&#039;] = {&lt;br /&gt;
		parameters = {&#039;ismn&#039;, &#039;ISMN&#039;},&lt;br /&gt;
		link = &#039;International Standard Music Number&#039;,&lt;br /&gt;
		label = &#039;ISMN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;&#039;,															-- not currently used;&lt;br /&gt;
		COinS = &#039;nil&#039;,															-- nil because we can&#039;t use pre or rft or info:&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ISSN&#039;] = {&lt;br /&gt;
		parameters = {&#039;issn&#039;, &#039;ISSN&#039;},&lt;br /&gt;
		link = &#039;International Standard Serial Number&#039;,&lt;br /&gt;
		label = &#039;ISSN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.worldcat.org/issn/&#039;,&lt;br /&gt;
		COinS = &#039;rft.issn&#039;,&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;JFM&#039;] = {&lt;br /&gt;
		parameters = {&#039;jfm&#039;, &#039;JFM&#039;},&lt;br /&gt;
		link = &#039;Jahrbuch über die Fortschritte der Mathematik&#039;,&lt;br /&gt;
		label = &#039;JFM&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//zbmath.org/?format=complete&amp;amp;q=an:&#039;,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;JSTOR&#039;] = {&lt;br /&gt;
		parameters = {&#039;jstor&#039;, &#039;JSTOR&#039;},&lt;br /&gt;
		link = &#039;JSTOR&#039;,&lt;br /&gt;
		label = &#039;JSTOR&#039;,&lt;br /&gt;
		mode = &#039;external&#039;,&lt;br /&gt;
		prefix = &#039;//www.jstor.org/stable/&#039;, 									-- protocol relative tested 2013-09-04&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		custom_access = &#039;jstor-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;LCCN&#039;] = {&lt;br /&gt;
		parameters = {&#039;LCCN&#039;, &#039;lccn&#039;},&lt;br /&gt;
		link = &#039;Library of Congress Control Number&#039;,&lt;br /&gt;
		label = &#039;LCCN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//lccn.loc.gov/&#039;, 											-- protocol relative tested 2015-12-28&lt;br /&gt;
		COinS = &#039;info:lccn&#039;,													-- use prefix value&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;MR&#039;] = {&lt;br /&gt;
		parameters = {&#039;MR&#039;, &#039;mr&#039;},&lt;br /&gt;
		link = &#039;Mathematical Reviews&#039;,&lt;br /&gt;
		label = &#039;MR&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.ams.org/mathscinet-getitem?mr=&#039;, 						-- protocol relative tested 2013-09-04&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;OCLC&#039;] = {&lt;br /&gt;
		parameters = {&#039;OCLC&#039;, &#039;oclc&#039;},&lt;br /&gt;
		link = &#039;OCLC&#039;,&lt;br /&gt;
		label = &#039;OCLC&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.worldcat.org/oclc/&#039;,&lt;br /&gt;
		COinS = &#039;info:oclcnum&#039;,&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;OL&#039;] = {&lt;br /&gt;
		parameters = { &#039;ol&#039;, &#039;OL&#039; },&lt;br /&gt;
		link = &#039;Open Library&#039;,&lt;br /&gt;
		label = &#039;OL&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//openlibrary.org/&#039;,&lt;br /&gt;
		COinS = nil,															-- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		encode = true,&lt;br /&gt;
		custom_access = &#039;ol-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;OSTI&#039;] = {&lt;br /&gt;
		parameters = {&#039;OSTI&#039;, &#039;osti&#039;},&lt;br /&gt;
		link = &#039;Office of Scientific and Technical Information&#039;,&lt;br /&gt;
		label = &#039;OSTI&#039;,&lt;br /&gt;
		mode = &#039;external&#039;,&lt;br /&gt;
		prefix = &#039;//www.osti.gov/energycitations/product.biblio.jsp?osti_id=&#039;,	-- protocol relative tested 2013-09-04&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		custom_access = &#039;osti-access&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;PMC&#039;] = {&lt;br /&gt;
		parameters = {&#039;PMC&#039;, &#039;pmc&#039;},&lt;br /&gt;
		link = &#039;PubMed Central&#039;,&lt;br /&gt;
		label = &#039;PMC&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.ncbi.nlm.nih.gov/pmc/articles/PMC&#039;,&lt;br /&gt;
		suffix = &amp;quot; &amp;quot;,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		access = &#039;free&#039;,														-- free to read&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;PMID&#039;] = {&lt;br /&gt;
		parameters = {&#039;PMID&#039;, &#039;pmid&#039;},&lt;br /&gt;
		link = &#039;PubMed Identifier&#039;,&lt;br /&gt;
		label = &#039;PMID&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//www.ncbi.nlm.nih.gov/pubmed/&#039;,&lt;br /&gt;
		COinS = &#039;info:pmid&#039;,&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;RFC&#039;] = {&lt;br /&gt;
		parameters = {&#039;RFC&#039;, &#039;rfc&#039;},&lt;br /&gt;
		link = &#039;Request for Comments&#039;,&lt;br /&gt;
		label = &#039;RFC&#039;,&lt;br /&gt;
		mode = &#039;external&#039;,&lt;br /&gt;
		prefix = &#039;//tools.ietf.org/html/rfc&#039;,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = false,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		access = &#039;free&#039;,														-- free to read&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;SSRN&#039;] = {&lt;br /&gt;
		parameters = {&#039;SSRN&#039;, &#039;ssrn&#039;},&lt;br /&gt;
		link = &#039;Social Science Research Network&#039;,&lt;br /&gt;
		label = &#039;SSRN&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//ssrn.com/abstract=&#039;, 										-- protocol relative tested 2013-09-04&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
		access = &#039;free&#039;,														-- always free to read&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;USENETID&#039;] = {&lt;br /&gt;
		parameters = {&#039;message-id&#039;},&lt;br /&gt;
		link = &#039;Usenet&#039;,&lt;br /&gt;
		label = &#039;Usenet:&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;news:&#039;,&lt;br /&gt;
		encode = false,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	[&#039;ZBL&#039;] = {&lt;br /&gt;
		parameters = {&#039;ZBL&#039;, &#039;zbl&#039;},&lt;br /&gt;
		link = &#039;Zentralblatt MATH&#039;,&lt;br /&gt;
		label = &#039;Zbl&#039;,&lt;br /&gt;
		mode = &#039;manual&#039;,&lt;br /&gt;
		prefix = &#039;//zbmath.org/?format=complete&amp;amp;q=an:&#039;,&lt;br /&gt;
		COinS = &#039;pre&#039;,															-- use prefix value&lt;br /&gt;
		encode = true,&lt;br /&gt;
		separator = &#039;&amp;amp;nbsp;&#039;,&lt;br /&gt;
	},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return 	{&lt;br /&gt;
	aliases = aliases,&lt;br /&gt;
	special_case_translation = special_case_translation,&lt;br /&gt;
	defaults = defaults,&lt;br /&gt;
	date_names = date_names,&lt;br /&gt;
	error_conditions = error_conditions,&lt;br /&gt;
	id_handlers = id_handlers,&lt;br /&gt;
	keywords = keywords,&lt;br /&gt;
	stripmarkers=stripmarkers,&lt;br /&gt;
	invisible_chars = invisible_chars,&lt;br /&gt;
	indic_script = indic_script,&lt;br /&gt;
	maint_cats = maint_cats,&lt;br /&gt;
	messages = messages,&lt;br /&gt;
	presentation = presentation,&lt;br /&gt;
	prop_cats = prop_cats,&lt;br /&gt;
	script_lang_codes = script_lang_codes,&lt;br /&gt;
	title_types = title_types,&lt;br /&gt;
	uncategorized_namespaces = uncategorized_namespaces,&lt;br /&gt;
	uncategorized_subpages = uncategorized_subpages,&lt;br /&gt;
	templates_using_volume = templates_using_volume,&lt;br /&gt;
	templates_using_issue = templates_using_issue,&lt;br /&gt;
	templates_not_using_page = templates_not_using_page,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1/COinS&amp;diff=28455</id>
		<title>Module:Citation/CS1/COinS</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1/COinS&amp;diff=28455"/>
		<updated>2018-04-06T09:40:19Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local coins = {};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
local is_set, in_array, remove_wiki_link;										-- functions in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
local cfg;																		-- table of configuration tables that are defined in Module:Citation/CS1/Configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S T R I P _ A P O S T R O P H E _ M A R K U P &amp;gt;--------------------------------&lt;br /&gt;
&lt;br /&gt;
Strip wiki italic and bold markup from argument so that it doesn&#039;t contaminate COinS metadata.&lt;br /&gt;
This function strips common patterns of apostrophe markup.  We presume that editors who have taken the time to&lt;br /&gt;
markup a title have, as a result, provided valid markup. When they don&#039;t, some single apostrophes are left behind.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function strip_apostrophe_markup (argument)&lt;br /&gt;
	if not is_set (argument) then return argument; end&lt;br /&gt;
&lt;br /&gt;
	if argument:find ( &amp;quot;&#039;&#039;&amp;quot;, 1, true ) == nil then								-- Is there at least one double apostrophe?  If not, exit.&lt;br /&gt;
		return argument;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	while true do&lt;br /&gt;
		if argument:find ( &amp;quot;&#039;&#039;&#039;&#039;&#039;&amp;quot;, 1, true ) then								-- bold italic (5)&lt;br /&gt;
			argument=argument:gsub(&amp;quot;%&#039;%&#039;%&#039;%&#039;%&#039;&amp;quot;, &amp;quot;&amp;quot;);							-- remove all instances of it&lt;br /&gt;
		elseif argument:find ( &amp;quot;&#039;&#039;&#039;&#039;&amp;quot;, 1, true ) then							-- italic start and end without content (4)&lt;br /&gt;
			argument=argument:gsub(&amp;quot;%&#039;%&#039;%&#039;%&#039;&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
		elseif argument:find ( &amp;quot;&#039;&#039;&#039;&amp;quot;, 1, true ) then							-- bold (3)&lt;br /&gt;
			argument=argument:gsub(&amp;quot;%&#039;%&#039;%&#039;&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
		elseif argument:find ( &amp;quot;&#039;&#039;&amp;quot;, 1, true ) then								-- italic (2)&lt;br /&gt;
			argument=argument:gsub(&amp;quot;%&#039;%&#039;&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
		else&lt;br /&gt;
			break;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return argument;															-- done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M A K E _ C O I N S _ T I T L E &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Makes a title for COinS from Title and / or ScriptTitle (or any other name-script pairs)&lt;br /&gt;
&lt;br /&gt;
Apostrophe markup (bold, italics) is stripped from each value so that the COinS metadata isn&#039;t corrupted with strings&lt;br /&gt;
of %27%27...&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function make_coins_title (title, script)&lt;br /&gt;
	if is_set (title) then&lt;br /&gt;
		title = strip_apostrophe_markup (title);								-- strip any apostrophe markup&lt;br /&gt;
	else&lt;br /&gt;
		title=&#039;&#039;;																-- if not set, make sure title is an empty string&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (script) then&lt;br /&gt;
		script = script:gsub (&#039;^%l%l%s*:%s*&#039;, &#039;&#039;);								-- remove language prefix if present (script value may now be empty string)&lt;br /&gt;
		script = strip_apostrophe_markup (script);								-- strip any apostrophe markup&lt;br /&gt;
	else&lt;br /&gt;
		script=&#039;&#039;;																-- if not set, make sure script is an empty string&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (title) and is_set (script) then&lt;br /&gt;
		script = &#039; &#039; .. script;													-- add a space before we concatenate&lt;br /&gt;
	end&lt;br /&gt;
	return title .. script;														-- return the concatenation&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E S C A P E _ L U A _ M A G I C _ C H A R S &amp;gt;----------------------------------&lt;br /&gt;
&lt;br /&gt;
Returns a string where all of lua&#039;s magic characters have been escaped.  This is important because functions like&lt;br /&gt;
string.gsub() treat their pattern and replace strings as patterns, not literal strings.&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function escape_lua_magic_chars (argument)&lt;br /&gt;
	argument = argument:gsub(&amp;quot;%%&amp;quot;, &amp;quot;%%%%&amp;quot;);										-- replace % with %%&lt;br /&gt;
	argument = argument:gsub(&amp;quot;([%^%$%(%)%.%[%]%*%+%-%?])&amp;quot;, &amp;quot;%%%1&amp;quot;);				-- replace all other lua magic pattern characters&lt;br /&gt;
	return argument;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ C O I N S _ P A G E S &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Extract page numbers from external wikilinks in any of the |page=, |pages=, or |at= parameters for use in COinS.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_coins_pages (pages)&lt;br /&gt;
	local pattern;&lt;br /&gt;
	if not is_set (pages) then return pages; end								-- if no page numbers then we&#039;re done&lt;br /&gt;
	&lt;br /&gt;
	while true do&lt;br /&gt;
		pattern = pages:match(&amp;quot;%[(%w*:?//[^ ]+%s+)[%w%d].*%]&amp;quot;);					-- pattern is the opening bracket, the url and following space(s): &amp;quot;[url &amp;quot;&lt;br /&gt;
		if nil == pattern then break; end										-- no more urls&lt;br /&gt;
		pattern = escape_lua_magic_chars (pattern);								-- pattern is not a literal string; escape lua&#039;s magic pattern characters&lt;br /&gt;
		pages = pages:gsub(pattern, &amp;quot;&amp;quot;);										-- remove as many instances of pattern as possible&lt;br /&gt;
	end&lt;br /&gt;
	pages = pages:gsub(&amp;quot;[%[%]]&amp;quot;, &amp;quot;&amp;quot;);											-- remove the brackets&lt;br /&gt;
	pages = pages:gsub(&amp;quot;–&amp;quot;, &amp;quot;-&amp;quot; );							-- replace endashes with hyphens&lt;br /&gt;
	pages = pages:gsub(&amp;quot;&amp;amp;%w+;&amp;quot;, &amp;quot;-&amp;quot; );						-- and replace html entities (&amp;amp;ndash; etc.) with hyphens; do we need to replace numerical entities like &amp;amp;#32; and the like?&lt;br /&gt;
	return pages;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; C O I N S _ R E P L A C E _ M A T H _ S T R I P M A R K E R &amp;gt;------------------&lt;br /&gt;
&lt;br /&gt;
There are three options for math markup rendering that depend on the editor&#039;s math preference settings.  These&lt;br /&gt;
settings are at [[Special:Preferences#mw-prefsection-rendering]] and are&lt;br /&gt;
	PNG images&lt;br /&gt;
	TeX source&lt;br /&gt;
	MathML with SVG or PNG fallback&lt;br /&gt;
&lt;br /&gt;
All three are heavy with html and css which doesn&#039;t belong in the metadata.&lt;br /&gt;
&lt;br /&gt;
Without this function, the metadata saved in the raw wikitext contained the rendering determined by the settings&lt;br /&gt;
of the last editor to save the page.&lt;br /&gt;
&lt;br /&gt;
This function gets the rendered form of an equation according to the editor&#039;s preference before the page is saved.  It&lt;br /&gt;
then searches the rendering for the text equivalent of the rendered equation and replaces the rendering with that so&lt;br /&gt;
that the page is saved without extraneous html/css markup and with a reasonably readable text form of the equation.&lt;br /&gt;
&lt;br /&gt;
When a replacement is made, this function returns true and the value with replacement; otherwise false and the intital&lt;br /&gt;
value.  To replace multipe equations it is necesary to call this function from within a loop.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function coins_replace_math_stripmarker (value)&lt;br /&gt;
	local stripmarker = cfg.stripmarkers[&#039;math&#039;];&lt;br /&gt;
	local rendering = value:match (stripmarker);								-- is there a math stripmarker&lt;br /&gt;
&lt;br /&gt;
	if not rendering then														-- when value doesn&#039;t have a math stripmarker, abandon this test&lt;br /&gt;
		return false, value;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	rendering = mw.text.unstripNoWiki (rendering);								-- convert stripmarker into rendered value (or nil? &#039;&#039;? when math render error)&lt;br /&gt;
	&lt;br /&gt;
	if rendering:match (&#039;alt=&amp;quot;[^&amp;quot;]+&amp;quot;&#039;) then										-- if PNG math option&lt;br /&gt;
		rendering = rendering:match (&#039;alt=&amp;quot;([^&amp;quot;]+)&amp;quot;&#039;);							-- extract just the math text&lt;br /&gt;
	elseif rendering:match (&#039;$%s+.+%s+%$&#039;) then									-- if TeX math option; $ is legit character that is escapes as \$&lt;br /&gt;
		rendering = rendering:match (&#039;$%s+(.+)%s+%$&#039;)							-- extract just the math text&lt;br /&gt;
	elseif rendering:match (&#039;&amp;lt;annotation[^&amp;gt;]+&amp;gt;.+&amp;lt;/annotation&amp;gt;&#039;) then			-- if MathML math option&lt;br /&gt;
		rendering = rendering:match (&#039;&amp;lt;annotation[^&amp;gt;]+&amp;gt;(.+)&amp;lt;/annotation&amp;gt;&#039;)		-- extract just the math text&lt;br /&gt;
	else&lt;br /&gt;
		return false, value;													-- had math stripmarker but not one of the three defined forms&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return true, value:gsub (stripmarker, rendering, 1);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C O I N S _ C L E A N U P &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Cleanup parameter values for the metadata by removing or replacing invisible characters and certain html entities.&lt;br /&gt;
&lt;br /&gt;
2015-12-10: there is a bug in mw.text.unstripNoWiki ().  It replaces math stripmarkers with the appropriate content&lt;br /&gt;
when it shouldn&#039;t.  See https://phabricator.wikimedia.org/T121085 and Wikipedia_talk:Lua#stripmarkers_and_mw.text.unstripNoWiki.28.29&lt;br /&gt;
&lt;br /&gt;
TODO: move the replacement patterns and replacement values into a table in /Configuration similar to the invisible&lt;br /&gt;
characters table?&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function coins_cleanup (value)&lt;br /&gt;
	local replaced = true;														-- default state to get the do loop running&lt;br /&gt;
&lt;br /&gt;
	while replaced do															-- loop until all math stripmarkers replaced&lt;br /&gt;
		replaced, value = coins_replace_math_stripmarker (value);				-- replace math stripmarker with text representation of the equation&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	value = value:gsub (cfg.stripmarkers[&#039;math&#039;], &amp;quot;MATH RENDER ERROR&amp;quot;);						-- one or more couldn&#039;t be replaced; insert vague error message&lt;br /&gt;
	&lt;br /&gt;
	value = mw.text.unstripNoWiki (value);										-- replace nowiki stripmarkers with their content&lt;br /&gt;
	value = value:gsub (&#039;&amp;lt;span class=&amp;quot;nowrap&amp;quot; style=&amp;quot;padding%-left:0%.1em;&amp;quot;&amp;gt;&amp;amp;#39;(s?)&amp;lt;/span&amp;gt;&#039;, &amp;quot;&#039;%1&amp;quot;);	-- replace {{&#039;}} or {{&#039;s}} with simple apostrophe or apostrophe-s&lt;br /&gt;
	value = value:gsub (&#039;&amp;amp;nbsp;&#039;, &#039; &#039;);											-- replace &amp;amp;nbsp; entity with plain space&lt;br /&gt;
	value = value:gsub (&#039;\226\128\138&#039;, &#039; &#039;);									-- replace hair space with plain space&lt;br /&gt;
	if not mw.ustring.find (value, cfg.indic_script) then						-- don&#039;t remove zero width joiner characters from indic script&lt;br /&gt;
		value = value:gsub (&#039;&amp;amp;zwj;&#039;, &#039;&#039;);											-- remove &amp;amp;zwj; entities&lt;br /&gt;
		value = mw.ustring.gsub (value, &#039;[\226\128\141\226\128\139\194\173]&#039;, &#039;&#039;);	-- remove zero-width joiner, zero-width space, soft hyphen&lt;br /&gt;
	end&lt;br /&gt;
	value = value:gsub (&#039;[\009\010\013]&#039;, &#039; &#039;);									-- replace horizontal tab, line feed, carriage return with plain space&lt;br /&gt;
	return value;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C O I N S &amp;gt;--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
COinS metadata (see &amp;lt;http://ocoins.info/&amp;gt;) allows automated tools to parse the citation information.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function COinS(data, class)&lt;br /&gt;
	if &#039;table&#039; ~= type(data) or nil == next(data) then&lt;br /&gt;
		return &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs (data) do													-- spin through all of the metadata parameter values&lt;br /&gt;
		if &#039;ID_list&#039; ~= k and &#039;Authors&#039; ~= k then								-- except the ID_list and Author tables (author nowiki stripmarker done when Author table processed)&lt;br /&gt;
			data[k] = coins_cleanup (v);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local ctx_ver = &amp;quot;Z39.88-2004&amp;quot;;&lt;br /&gt;
	&lt;br /&gt;
	-- treat table strictly as an array with only set values.&lt;br /&gt;
	local OCinSoutput = setmetatable( {}, {&lt;br /&gt;
		__newindex = function(self, key, value)&lt;br /&gt;
			if is_set(value) then&lt;br /&gt;
				rawset( self, #self+1, table.concat{ key, &#039;=&#039;, mw.uri.encode( remove_wiki_link( value ) ) } );&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	});&lt;br /&gt;
	&lt;br /&gt;
	if in_array (class, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;, &#039;journal&#039;, &#039;news&#039;}) or (in_array (class, {&#039;conference&#039;, &#039;interview&#039;, &#039;map&#039;, &#039;press release&#039;, &#039;web&#039;}) and is_set(data.Periodical)) or &lt;br /&gt;
		(&#039;citation&#039; == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then&lt;br /&gt;
			OCinSoutput.rft_val_fmt = &amp;quot;info:ofi/fmt:kev:mtx:journal&amp;quot;;			-- journal metadata identifier&lt;br /&gt;
			if in_array (class, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then			-- set genre according to the type of citation template we are rendering&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;preprint&amp;quot;;							-- cite arxiv, cite biorxiv, cite citeseerx&lt;br /&gt;
			elseif &#039;conference&#039; == class then&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;conference&amp;quot;;						-- cite conference (when Periodical set)&lt;br /&gt;
			elseif &#039;web&#039; == class then&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;unknown&amp;quot;;							-- cite web (when Periodical set)&lt;br /&gt;
			else&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;article&amp;quot;;							-- journal and other &#039;periodical&#039; articles&lt;br /&gt;
			end&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.jtitle&amp;quot;] = data.Periodical;						-- journal only&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.atitle&amp;quot;] = data.Title;								-- &#039;periodical&#039; article titles&lt;br /&gt;
&lt;br /&gt;
																				-- these used only for periodicals&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.ssn&amp;quot;] = data.Season;								-- keywords: winter, spring, summer, fall&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.chron&amp;quot;] = data.Chron;								-- free-form date components&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.volume&amp;quot;] = data.Volume;							-- does not apply to books&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.issue&amp;quot;] = data.Issue;&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.pages&amp;quot;] = data.Pages;								-- also used in book metadata&lt;br /&gt;
&lt;br /&gt;
	elseif &#039;thesis&#039; ~= class then												-- all others except cite thesis are treated as &#039;book&#039; metadata; genre distinguishes&lt;br /&gt;
		OCinSoutput.rft_val_fmt = &amp;quot;info:ofi/fmt:kev:mtx:book&amp;quot;;					-- book metadata identifier&lt;br /&gt;
		if &#039;report&#039; == class or &#039;techreport&#039; == class then						-- cite report and cite techreport&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;report&amp;quot;;&lt;br /&gt;
		elseif &#039;conference&#039; == class then										-- cite conference when Periodical not set&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;conference&amp;quot;;&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.atitle&amp;quot;] = data.Chapter;							-- conference paper as chapter in proceedings (book)&lt;br /&gt;
		elseif in_array (class, {&#039;book&#039;, &#039;citation&#039;, &#039;encyclopaedia&#039;, &#039;interview&#039;, &#039;map&#039;}) then&lt;br /&gt;
			if is_set (data.Chapter) then&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;bookitem&amp;quot;;&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.atitle&amp;quot;] = data.Chapter;						-- book chapter, encyclopedia article, interview in a book, or map title&lt;br /&gt;
			else&lt;br /&gt;
				if &#039;map&#039; == class or &#039;interview&#039; == class then&lt;br /&gt;
					OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &#039;unknown&#039;;						-- standalone map or interview&lt;br /&gt;
				else&lt;br /&gt;
					OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &#039;book&#039;;							-- book and encyclopedia&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else	--{&#039;audio-visual&#039;, &#039;AV-media-notes&#039;, &#039;DVD-notes&#039;, &#039;episode&#039;, &#039;interview&#039;, &#039;mailinglist&#039;, &#039;map&#039;, &#039;newsgroup&#039;, &#039;podcast&#039;, &#039;press release&#039;, &#039;serial&#039;, &#039;sign&#039;, &#039;speech&#039;, &#039;web&#039;}&lt;br /&gt;
			OCinSoutput[&amp;quot;rft.genre&amp;quot;] = &amp;quot;unknown&amp;quot;;&lt;br /&gt;
		end&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.btitle&amp;quot;] = data.Title;									-- book only&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.place&amp;quot;] = data.PublicationPlace;						-- book only&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.series&amp;quot;] = data.Series;								-- book only&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.pages&amp;quot;] = data.Pages;									-- book, journal&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.edition&amp;quot;] = data.Edition;								-- book only&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.pub&amp;quot;] = data.PublisherName;							-- book and dissertation&lt;br /&gt;
		&lt;br /&gt;
	else																		-- cite thesis&lt;br /&gt;
		OCinSoutput.rft_val_fmt = &amp;quot;info:ofi/fmt:kev:mtx:dissertation&amp;quot;;			-- dissertation metadata identifier&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.title&amp;quot;] = data.Title;									-- dissertation (also patent but that is not yet supported)&lt;br /&gt;
		OCinSoutput[&amp;quot;rft.degree&amp;quot;] = data.Degree;								-- dissertation only&lt;br /&gt;
		OCinSoutput[&#039;rft.inst&#039;] = data.PublisherName;							-- book and dissertation&lt;br /&gt;
	end&lt;br /&gt;
																				-- and now common parameters (as much as possible)&lt;br /&gt;
	OCinSoutput[&amp;quot;rft.date&amp;quot;] = data.Date;										-- book, journal, dissertation&lt;br /&gt;
	&lt;br /&gt;
	for k, v in pairs( data.ID_list ) do										-- what to do about these? For now assume that they are common to all?&lt;br /&gt;
--		if k == &#039;ISBN&#039; then v = clean_isbn( v ) end&lt;br /&gt;
		if k == &#039;ISBN&#039; then v = v:gsub( &amp;quot;[^-0-9X]&amp;quot;, &amp;quot;&amp;quot; ); end&lt;br /&gt;
		local id = cfg.id_handlers[k].COinS;&lt;br /&gt;
		if string.sub( id or &amp;quot;&amp;quot;, 1, 4 ) == &#039;info&#039; then							-- for ids that are in the info:registry&lt;br /&gt;
			OCinSoutput[&amp;quot;rft_id&amp;quot;] = table.concat{ id, &amp;quot;/&amp;quot;, v };&lt;br /&gt;
		elseif string.sub (id or &amp;quot;&amp;quot;, 1, 3 ) == &#039;rft&#039; then						-- for isbn, issn, eissn, etc that have defined COinS keywords&lt;br /&gt;
			OCinSoutput[ id ] = v;&lt;br /&gt;
		elseif id then															-- when cfg.id_handlers[k].COinS is not nil&lt;br /&gt;
			OCinSoutput[&amp;quot;rft_id&amp;quot;] = table.concat{ cfg.id_handlers[k].prefix, v };	-- others; provide a url&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
--[[	&lt;br /&gt;
	for k, v in pairs( data.ID_list ) do										-- what to do about these? For now assume that they are common to all?&lt;br /&gt;
		local id, value = cfg.id_handlers[k].COinS;&lt;br /&gt;
		if k == &#039;ISBN&#039; then value = clean_isbn( v ); else value = v; end&lt;br /&gt;
		if string.sub( id or &amp;quot;&amp;quot;, 1, 4 ) == &#039;info&#039; then&lt;br /&gt;
			OCinSoutput[&amp;quot;rft_id&amp;quot;] = table.concat{ id, &amp;quot;/&amp;quot;, v };&lt;br /&gt;
		else&lt;br /&gt;
			OCinSoutput[ id ] = value;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
]]&lt;br /&gt;
	local last, first;&lt;br /&gt;
	for k, v in ipairs( data.Authors ) do&lt;br /&gt;
		last, first = coins_cleanup (v.last), coins_cleanup (v.first or &#039;&#039;);	-- replace any nowiki strip markers, non-printing or invisible characers&lt;br /&gt;
		if k == 1 then															-- for the first author name only&lt;br /&gt;
			if is_set(last)  and is_set(first) then								-- set these COinS values if |first= and |last= specify the first author name&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.aulast&amp;quot;] = last;								-- book, journal, dissertation&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.aufirst&amp;quot;] = first;								-- book, journal, dissertation&lt;br /&gt;
			elseif is_set(last) then &lt;br /&gt;
				OCinSoutput[&amp;quot;rft.au&amp;quot;] = last;									-- book, journal, dissertation -- otherwise use this form for the first name&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- for all other authors&lt;br /&gt;
			if is_set(last) and is_set(first) then&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.au&amp;quot;] = table.concat{ last, &amp;quot;, &amp;quot;, first };		-- book, journal, dissertation&lt;br /&gt;
			elseif is_set(last) then&lt;br /&gt;
				OCinSoutput[&amp;quot;rft.au&amp;quot;] = last;									-- book, journal, dissertation&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	OCinSoutput.rft_id = data.URL;&lt;br /&gt;
	OCinSoutput.rfr_id = table.concat{ &amp;quot;info:sid/&amp;quot;, mw.site.server:match( &amp;quot;[^/]*$&amp;quot; ), &amp;quot;:&amp;quot;, data.RawPage };&lt;br /&gt;
	OCinSoutput = setmetatable( OCinSoutput, nil );&lt;br /&gt;
	&lt;br /&gt;
	-- sort with version string always first, and combine.&lt;br /&gt;
	--table.sort( OCinSoutput );&lt;br /&gt;
	table.insert( OCinSoutput, 1, &amp;quot;ctx_ver=&amp;quot; .. ctx_ver );  -- such as &amp;quot;Z39.88-2004&amp;quot;&lt;br /&gt;
	return table.concat(OCinSoutput, &amp;quot;&amp;amp;&amp;quot;);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S E L E C T E D _ M O D U L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Sets local cfg table and imported functions table to same (live or sandbox) as that used by the other modules.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_selected_modules (cfg_table_ptr, utilities_page_ptr)&lt;br /&gt;
	cfg = cfg_table_ptr;&lt;br /&gt;
&lt;br /&gt;
	is_set = utilities_page_ptr.is_set;											-- import functions from select Module:Citation/CS1/Utilities module&lt;br /&gt;
	in_array = utilities_page_ptr.in_array;&lt;br /&gt;
	remove_wiki_link = utilities_page_ptr.remove_wiki_link;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	make_coins_title = make_coins_title,&lt;br /&gt;
	get_coins_pages = get_coins_pages,&lt;br /&gt;
	COinS = COinS,&lt;br /&gt;
	set_selected_modules = set_selected_modules,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Module:Citation/CS1&amp;diff=28453</id>
		<title>Module:Citation/CS1</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Module:Citation/CS1&amp;diff=28453"/>
		<updated>2018-04-06T09:40:19Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
local cs1 ={};&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R W A R D   D E C L A R A T I O N S &amp;gt;--------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local dates, year_date_check, reformat_dates, date_hyphen_to_dash,				-- functions in Module:Citation/CS1/Date_validation&lt;br /&gt;
	date_name_xlate&lt;br /&gt;
&lt;br /&gt;
local is_set, in_array, substitute, error_comment, set_error, select_one,		-- functions in Module:Citation/CS1/Utilities&lt;br /&gt;
	add_maint_cat, wrap_style, safe_for_italics, is_wikilink, make_wikilink;&lt;br /&gt;
&lt;br /&gt;
local z ={};																	-- tables in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
local extract_ids, extract_id_access_levels, build_id_list, is_embargoed;		-- functions in Module:Citation/CS1/Identifiers&lt;br /&gt;
&lt;br /&gt;
local make_coins_title, get_coins_pages, COinS;									-- functions in Module:Citation/CS1/COinS&lt;br /&gt;
&lt;br /&gt;
local cfg = {};																	-- table of configuration tables that are defined in Module:Citation/CS1/Configuration&lt;br /&gt;
local whitelist = {};															-- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P A G E   S C O P E   V A R I A B L E S &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
delare variables here that have page-wide scope that are not brought in from other modules; thatare created here&lt;br /&gt;
and used here&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local added_deprecated_cat;														-- boolean flag so that the category is added only once&lt;br /&gt;
local added_prop_cats = {};														-- list of property categories that have been added to z.properties_cats&lt;br /&gt;
local added_vanc_errs;															-- boolean flag so we only emit one Vancouver error / category&lt;br /&gt;
&lt;br /&gt;
local Frame;																	-- holds the module&#039;s frame table&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F I R S T _ S E T &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Locates and returns the first set value in a table of values where the order established in the table,&lt;br /&gt;
left-to-right (or top-to-bottom), is the order in which the values are evaluated.  Returns nil if none are set.&lt;br /&gt;
&lt;br /&gt;
This version replaces the original &#039;for _, val in pairs do&#039; and a similar version that used ipairs.  With the pairs&lt;br /&gt;
version the order of evaluation could not be guaranteed.  With the ipairs version, a nil value would terminate&lt;br /&gt;
the for-loop before it reached the actual end of the list.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function first_set (list, count)&lt;br /&gt;
	local i = 1;&lt;br /&gt;
	while i &amp;lt;= count do															-- loop through all items in list&lt;br /&gt;
		if is_set( list[i] ) then&lt;br /&gt;
			return list[i];														-- return the first set list member&lt;br /&gt;
		end&lt;br /&gt;
		i = i + 1;																-- point to next&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A D D _ P R O P _ C A T &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds a category to z.properties_cats using names from the configuration file with additional text if any.&lt;br /&gt;
&lt;br /&gt;
foreign_lang_source and foreign_lang_source_2 keys have a language code appended to them so that multiple languages&lt;br /&gt;
may be categorized but multiples of the same language are not categorized.&lt;br /&gt;
&lt;br /&gt;
added_prop_cats is a table declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function add_prop_cat (key, arguments)&lt;br /&gt;
	if not added_prop_cats [key] then&lt;br /&gt;
		added_prop_cats [key] = true;											-- note that we&#039;ve added this category&lt;br /&gt;
		key = key:gsub (&#039;(foreign_lang_source_?2?)%a%a%a?&#039;, &#039;%1&#039;);				-- strip lang code from keyname&lt;br /&gt;
		table.insert( z.properties_cats, substitute (cfg.prop_cats [key], arguments));		-- make name then add to table&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A D D _ V A N C _ E R R O R &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds a single Vancouver system error message to the template&#039;s output regardless of how many error actually exist.&lt;br /&gt;
To prevent duplication, added_vanc_errs is nil until an error message is emitted.&lt;br /&gt;
&lt;br /&gt;
added_vanc_errs is a boolean declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function add_vanc_error (source)&lt;br /&gt;
	if not added_vanc_errs then&lt;br /&gt;
		added_vanc_errs = true;													-- note that we&#039;ve added this category&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;vancouver&#039;, {source}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ S C H E M E &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
does this thing that purports to be a uri scheme seem to be a valid scheme?  The scheme is checked to see if it&lt;br /&gt;
is in agreement with http://tools.ietf.org/html/std66#section-3.1 which says:&lt;br /&gt;
	Scheme names consist of a sequence of characters beginning with a&lt;br /&gt;
   letter and followed by any combination of letters, digits, plus&lt;br /&gt;
   (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
returns true if it does, else false&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_scheme (scheme)&lt;br /&gt;
	return scheme and scheme:match (&#039;^%a[%a%d%+%.%-]*:&#039;);						-- true if scheme is set and matches the pattern&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ D O M A I N _ N A M E &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Does this thing that purports to be a domain name seem to be a valid domain name?&lt;br /&gt;
&lt;br /&gt;
Syntax defined here: http://tools.ietf.org/html/rfc1034#section-3.5&lt;br /&gt;
BNF defined here: https://tools.ietf.org/html/rfc4234&lt;br /&gt;
Single character names are generally reserved; see https://tools.ietf.org/html/draft-ietf-dnsind-iana-dns-01#page-15;&lt;br /&gt;
	see also [[Single-letter second-level domain]]&lt;br /&gt;
list of tlds: https://www.iana.org/domains/root/db&lt;br /&gt;
&lt;br /&gt;
rfc952 (modified by rfc 1123) requires the first and last character of a hostname to be a letter or a digit.  Between&lt;br /&gt;
the first and last characters the name may use letters, digits, and the hyphen.&lt;br /&gt;
&lt;br /&gt;
Also allowed are IPv4 addresses. IPv6 not supported&lt;br /&gt;
&lt;br /&gt;
domain is expected to be stripped of any path so that the last character in the last character of the tld.  tld&lt;br /&gt;
is two or more alpha characters.  Any preceding &#039;//&#039; (from splitting a url with a scheme) will be stripped&lt;br /&gt;
here.  Perhaps not necessary but retained incase it is necessary for IPv4 dot decimal.&lt;br /&gt;
&lt;br /&gt;
There are several tests:&lt;br /&gt;
	the first character of the whole domain name including subdomains must be a letter or a digit&lt;br /&gt;
	internationalized domain name (ascii characters with .xn-- ASCII Compatible Encoding (ACE) prefix xn-- in the tld) see https://tools.ietf.org/html/rfc3490&lt;br /&gt;
	single-letter/digit second-level domains in the .org and .cash TLDs&lt;br /&gt;
	q, x, and z SL domains in the .com TLD&lt;br /&gt;
	i and q SL domains in the .net TLD&lt;br /&gt;
	single-letter SL domains in the ccTLDs (where the ccTLD is two letters)&lt;br /&gt;
	two-character SL domains in gTLDs (where the gTLD is two or more letters)&lt;br /&gt;
	three-plus-character SL domains in gTLDs (where the gTLD is two or more letters)&lt;br /&gt;
	IPv4 dot-decimal address format; TLD not allowed&lt;br /&gt;
&lt;br /&gt;
returns true if domain appears to be a proper name and tld or IPv4 address, else false&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_domain_name (domain)&lt;br /&gt;
	if not domain then&lt;br /&gt;
		return false;															-- if not set, abandon&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	domain = domain:gsub (&#039;^//&#039;, &#039;&#039;);											-- strip &#039;//&#039; from domain name if present; done here so we only have to do it once&lt;br /&gt;
	&lt;br /&gt;
	if not domain:match (&#039;^[%a%d]&#039;) then										-- first character must be letter or digit&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
																				-- Do most common case first&lt;br /&gt;
	if domain:match (&#039;%f[%a%d][%a%d][%a%d%-]+[%a%d]%.%a%a+$&#039;) then				-- three or more character hostname.hostname or hostname.tld&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d][%a%d%-]+[%a%d]%.xn%-%-[%a%d]+$&#039;) then	-- internationalized domain name with ACE prefix&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.cash$&#039;) then							-- one character/digit .cash hostname&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.org$&#039;) then							-- one character/digit .org hostname&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a][qxz]%.com$&#039;) then								-- assigned one character .com hostname (x.com times out 2015-12-10)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a][iq]%.net$&#039;) then								-- assigned one character .net hostname (q.net registered but not active 2015-12-10)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d]%.%a%a$&#039;) then							-- one character hostname and cctld (2 chars)&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;%f[%a%d][%a%d][%a%d]%.%a%a+$&#039;) then					-- two character hostname and tld&lt;br /&gt;
		return true;&lt;br /&gt;
	elseif domain:match (&#039;^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?&#039;) then		-- IPv4 address&lt;br /&gt;
		return true;&lt;br /&gt;
	else&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ U R L &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true if the scheme and domain parts of a url appear to be a valid url; else false.&lt;br /&gt;
&lt;br /&gt;
This function is the last step in the validation process.  This function is separate because there are cases that&lt;br /&gt;
are not covered by split_url(), for example is_parameter_ext_wikilink() which is looking for bracketted external&lt;br /&gt;
wikilinks.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_url (scheme, domain)&lt;br /&gt;
	if is_set (scheme) then														-- if scheme is set check it and domain&lt;br /&gt;
		return is_scheme (scheme) and is_domain_name (domain);&lt;br /&gt;
	else&lt;br /&gt;
		return is_domain_name (domain);											-- scheme not set when url is protocol relative&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S P L I T _ U R L &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Split a url into a scheme, authority indicator, and domain.&lt;br /&gt;
&lt;br /&gt;
First remove Fully Qualified Domain Name terminator (a dot following tld) (if any) and any path(/), query(?) or fragment(#).&lt;br /&gt;
&lt;br /&gt;
If protocol relative url, return nil scheme and domain else return nil for both scheme and domain.&lt;br /&gt;
&lt;br /&gt;
When not protocol relative, get scheme, authority indicator, and domain.  If there is an authority indicator (one&lt;br /&gt;
or more &#039;/&#039; characters immediately following the scheme&#039;s colon), make sure that there are only 2.&lt;br /&gt;
&lt;br /&gt;
Strip off any port and path;&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function split_url (url_str)&lt;br /&gt;
	local scheme, authority, domain;&lt;br /&gt;
	&lt;br /&gt;
	url_str = url_str:gsub (&#039;([%a%d])%.?[/%?#].*$&#039;, &#039;%1&#039;);						-- strip FQDN terminator and path(/), query(?), fragment (#) (the capture prevents false replacement of &#039;//&#039;)&lt;br /&gt;
&lt;br /&gt;
	if url_str:match (&#039;^//%S*&#039;) then											-- if there is what appears to be a protocol relative url&lt;br /&gt;
		domain = url_str:match (&#039;^//(%S*)&#039;)&lt;br /&gt;
	elseif url_str:match (&#039;%S-:/*%S+&#039;) then										-- if there is what appears to be a scheme, optional authority indicator, and domain name&lt;br /&gt;
		scheme, authority, domain = url_str:match (&#039;(%S-:)(/*)(%S+)&#039;);			-- extract the scheme, authority indicator, and domain portions&lt;br /&gt;
		authority = authority:gsub (&#039;//&#039;, &#039;&#039;, 1);								-- replace place 1 pair of &#039;/&#039; with nothing;&lt;br /&gt;
		if is_set(authority) then												-- if anything left (1 or 3+ &#039;/&#039; where authority should be) then&lt;br /&gt;
			return scheme;														-- return scheme only making domain nil which will cause an error message&lt;br /&gt;
		end&lt;br /&gt;
		domain = domain:gsub (&#039;(%a):%d+&#039;, &#039;%1&#039;);								-- strip port number if present&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return scheme, domain;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I N K _ P A R A M _ O K &amp;gt;---------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
checks the content of |title-link=, |series-link=, |author-link= etc for properly formatted content: no wikilinks, no urls&lt;br /&gt;
&lt;br /&gt;
Link parameters are to hold the title of a wikipedia article so none of the WP:TITLESPECIALCHARACTERS are allowed:&lt;br /&gt;
	# &amp;lt; &amp;gt; [ ] | { } _&lt;br /&gt;
except the underscore which is used as a space in wiki urls and # which is used for section links&lt;br /&gt;
&lt;br /&gt;
returns false when the value contains any of these characters.&lt;br /&gt;
&lt;br /&gt;
When there are no illegal characters, this function returns TRUE if value DOES NOT appear to be a valid url (the&lt;br /&gt;
|&amp;lt;param&amp;gt;-link= parameter is ok); else false when value appears to be a valid url (the |&amp;lt;param&amp;gt;-link= parameter is NOT ok).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function link_param_ok (value)&lt;br /&gt;
	local scheme, domain;&lt;br /&gt;
	if value:find (&#039;[&amp;lt;&amp;gt;%[%]|{}]&#039;) then											-- if any prohibited characters&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	scheme, domain = split_url (value);											-- get scheme or nil and domain or nil from url; &lt;br /&gt;
	return not is_url (scheme, domain);											-- return true if value DOES NOT appear to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I N K _ T I T L E _ O K &amp;gt;---------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Use link_param_ok() to validate |&amp;lt;param&amp;gt;-link= value and its matching |&amp;lt;title&amp;gt;= value.&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;title&amp;gt;= may be wikilinked but not when |&amp;lt;param&amp;gt;-link= has a value.  This function emits an error message when&lt;br /&gt;
that condition exists&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function link_title_ok (link, lorig, title, torig)&lt;br /&gt;
local orig;&lt;br /&gt;
&lt;br /&gt;
	if is_set (link) then 														-- don&#039;t bother if &amp;lt;param&amp;gt;-link doesn&#039;t have a value&lt;br /&gt;
		if not link_param_ok (link) then										-- check |&amp;lt;param&amp;gt;-link= markup&lt;br /&gt;
			orig = lorig;														-- identify the failing link parameter&lt;br /&gt;
		elseif title:find (&#039;%[%[&#039;) then											-- check |title= for wikilink markup&lt;br /&gt;
			orig = torig;														-- identify the failing |title= parameter&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (orig) then&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;bad_paramlink&#039;, orig)});	-- url or wikilink in |title= with |title-link=;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C H E C K _ U R L &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines whether a URL string appears to be valid.&lt;br /&gt;
&lt;br /&gt;
First we test for space characters.  If any are found, return false.  Then split the url into scheme and domain&lt;br /&gt;
portions, or for protocol relative (//example.com) urls, just the domain.  Use is_url() to validate the two&lt;br /&gt;
portions of the url.  If both are valid, or for protocol relative if domain is valid, return true, else false.&lt;br /&gt;
&lt;br /&gt;
Because it is different from a standard url, and because this module used external_link() to make external links&lt;br /&gt;
that work for standard and news: links, we validate newsgroup names here.  The specification for a newsgroup name&lt;br /&gt;
is at https://tools.ietf.org/html/rfc5536#section-3.1.4&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function check_url( url_str )&lt;br /&gt;
	if nil == url_str:match (&amp;quot;^%S+$&amp;quot;) then										-- if there are any spaces in |url=value it can&#039;t be a proper url&lt;br /&gt;
		return false;&lt;br /&gt;
	end&lt;br /&gt;
	local scheme, domain;&lt;br /&gt;
&lt;br /&gt;
	scheme, domain = split_url (url_str);										-- get scheme or nil and domain or nil from url;&lt;br /&gt;
	&lt;br /&gt;
	if &#039;news:&#039; == scheme then													-- special case for newsgroups&lt;br /&gt;
		return domain:match(&#039;^[%a%d%+%-_]+%.[%a%d%+%-_%.]*[%a%d%+%-_]$&#039;);&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return is_url (scheme, domain);												-- return true if value appears to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ P A R A M E T E R _ E X T _ W I K I L I N K &amp;gt;----------------------------&lt;br /&gt;
&lt;br /&gt;
Return true if a parameter value has a string that begins and ends with square brackets [ and ] and the first&lt;br /&gt;
non-space characters following the opening bracket appear to be a url.  The test will also find external wikilinks&lt;br /&gt;
that use protocol relative urls. Also finds bare urls.&lt;br /&gt;
&lt;br /&gt;
The frontier pattern prevents a match on interwiki links which are similar to scheme:path urls.  The tests that&lt;br /&gt;
find bracketed urls are required because the parameters that call this test (currently |title=, |chapter=, |work=,&lt;br /&gt;
and |publisher=) may have wikilinks and there are articles or redirects like &#039;//Hus&#039; so, while uncommon, |title=[[//Hus]]&lt;br /&gt;
is possible as might be [[en://Hus]].&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_parameter_ext_wikilink (value)&lt;br /&gt;
local scheme, domain;&lt;br /&gt;
&lt;br /&gt;
	if value:match (&#039;%f[%[]%[%a%S*:%S+.*%]&#039;) then								-- if ext wikilink with scheme and domain: [xxxx://yyyyy.zzz]&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;%f[%[]%[(%a%S*:%S+).*%]&#039;));&lt;br /&gt;
	elseif value:match (&#039;%f[%[]%[//%S+.*%]&#039;) then								-- if protocol relative ext wikilink: [//yyyyy.zzz]&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;%f[%[]%[(//%S+).*%]&#039;));&lt;br /&gt;
	elseif value:match (&#039;%a%S*:%S+&#039;) then										-- if bare url with scheme; may have leading or trailing plain text&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;(%a%S*:%S+)&#039;));&lt;br /&gt;
	elseif value:match (&#039;//%S+&#039;) then											-- if protocol relative bare url: //yyyyy.zzz; may have leading or trailing plain text&lt;br /&gt;
		scheme, domain = split_url (value:match (&#039;(//%S+)&#039;));					-- what is left should be the domain&lt;br /&gt;
	else&lt;br /&gt;
		return false;															-- didn&#039;t find anything that is obviously a url&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return is_url (scheme, domain);												-- return true if value appears to be a valid url&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; C H E C K _ F O R _ U R L &amp;gt;-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
loop through a list of parameters and their values.  Look at the value and if it has an external link, emit an error message.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function check_for_url (parameter_list)&lt;br /&gt;
local error_message = &#039;&#039;;&lt;br /&gt;
	for k, v in pairs (parameter_list) do										-- for each parameter in the list&lt;br /&gt;
		if is_parameter_ext_wikilink (v) then									-- look at the value; if there is a url add an error message&lt;br /&gt;
			if is_set(error_message) then										-- once we&#039;ve added the first portion of the error message ...&lt;br /&gt;
				error_message=error_message .. &amp;quot;, &amp;quot;;							-- ... add a comma space separator&lt;br /&gt;
			end&lt;br /&gt;
			error_message=error_message .. &amp;quot;&amp;amp;#124;&amp;quot; .. k .. &amp;quot;=&amp;quot;;				-- add the failed parameter&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (error_message) then												-- done looping, if there is an error message, display it&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;param_has_ext_link&#039;, {error_message}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S A F E _ F O R _ U R L &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Escape sequences for content that will be used for URL descriptions&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function safe_for_url( str )&lt;br /&gt;
	if str:match( &amp;quot;%[%[.-%]%]&amp;quot; ) ~= nil then &lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;wikilink_in_url&#039;, {}, true ) } );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return str:gsub( &#039;[%[%]\n]&#039;, {	&lt;br /&gt;
		[&#039;[&#039;] = &#039;&amp;amp;#91;&#039;,&lt;br /&gt;
		[&#039;]&#039;] = &#039;&amp;amp;#93;&#039;,&lt;br /&gt;
		[&#039;\n&#039;] = &#039; &#039; } );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T E R N A L _ L I N K &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format an external link with error checking&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function external_link( URL, label, source, access)&lt;br /&gt;
	local error_str = &amp;quot;&amp;quot;;&lt;br /&gt;
	local domain;&lt;br /&gt;
	local path;&lt;br /&gt;
	local base_url;&lt;br /&gt;
	&lt;br /&gt;
	if not is_set( label ) then&lt;br /&gt;
		label = URL;&lt;br /&gt;
		if is_set( source ) then&lt;br /&gt;
			error_str = set_error( &#039;bare_url_missing_title&#039;, { wrap_style (&#039;parameter&#039;, source) }, false, &amp;quot; &amp;quot; );&lt;br /&gt;
		else&lt;br /&gt;
			error( cfg.messages[&amp;quot;bare_url_no_origin&amp;quot;] );&lt;br /&gt;
		end			&lt;br /&gt;
	end&lt;br /&gt;
	if not check_url( URL ) then&lt;br /&gt;
		error_str = set_error( &#039;bad_url&#039;, {wrap_style (&#039;parameter&#039;, source)}, false, &amp;quot; &amp;quot; ) .. error_str;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	domain, path = URL:match (&#039;^([/%.%-%+:%a%d]+)([/%?#].*)$&#039;);					-- split the url into scheme plus domain and path&lt;br /&gt;
	if path then																-- if there is a path portion&lt;br /&gt;
		path = path:gsub (&#039;[%[%]]&#039;, {[&#039;[&#039;]=&#039;%5b&#039;,[&#039;]&#039;]=&#039;%5d&#039;});					-- replace &#039;[&#039; and &#039;]&#039; with their percent encoded values&lt;br /&gt;
		URL=domain..path;														-- and reassemble&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set (access) then														-- access level (subscription, registration, limited)&lt;br /&gt;
		label = safe_for_url (label);											-- replace square brackets and newlines&lt;br /&gt;
&lt;br /&gt;
		base_url = table.concat (												-- assemble external link with access signal&lt;br /&gt;
			{&lt;br /&gt;
			&#039;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[&#039;,										-- opening css and url markup&lt;br /&gt;
			URL,																-- the url&lt;br /&gt;
			&#039; &#039;,																-- the required space&lt;br /&gt;
			label,&lt;br /&gt;
			&#039;&amp;lt;span style=&amp;quot;padding-left:0.15em&amp;quot;&amp;gt;&#039;,								-- signal spacing css&lt;br /&gt;
			cfg.presentation[access],											-- the appropriate icon&lt;br /&gt;
			&#039;&amp;lt;/span&amp;gt;&#039;,															-- close signal spacing span&lt;br /&gt;
			&#039;]&amp;lt;/span&amp;gt;&#039;															-- close url markup and plain links span&lt;br /&gt;
			});&lt;br /&gt;
	else&lt;br /&gt;
		base_url = table.concat({ &amp;quot;[&amp;quot;, URL, &amp;quot; &amp;quot;, safe_for_url( label ), &amp;quot;]&amp;quot; });	-- no signal markup&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return table.concat({ base_url, error_str });&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D E P R E C A T E D _ P A R A M E T E R &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Categorize and emit an error message when the citation contains one or more deprecated parameters.  The function includes the&lt;br /&gt;
offending parameter name to the error message.  Only one error message is emitted regardless of the number of deprecated&lt;br /&gt;
parameters in the citation.&lt;br /&gt;
&lt;br /&gt;
added_deprecated_cat is a boolean declared in page scope variables above&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function deprecated_parameter(name)&lt;br /&gt;
	if not added_deprecated_cat then&lt;br /&gt;
		added_deprecated_cat = true;											-- note that we&#039;ve added this category&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;deprecated_params&#039;, {name}, true ) } );		-- add error message&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; K E R N _ Q U O T E S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Apply kerning to open the space between the quote mark provided by the Module and a leading or trailing quote&lt;br /&gt;
mark contained in a |title= or |chapter= parameter&#039;s value.&lt;br /&gt;
&lt;br /&gt;
This function will positive kern either single or double quotes:&lt;br /&gt;
	&amp;quot;&#039;Unkerned title with leading and trailing single quote marks&#039;&amp;quot;&lt;br /&gt;
	&amp;quot; &#039;Kerned title with leading and trailing single quote marks&#039; &amp;quot; (in real life the kerning isn&#039;t as wide as this example)&lt;br /&gt;
Double single quotes (italic or bold wikimarkup) are not kerned.&lt;br /&gt;
&lt;br /&gt;
Replaces unicode quotemarks in plain text or in the label portion of a [[L|D]] style wikilink with typewriter&lt;br /&gt;
quote marks regardless of the need for kerning.  Unicode quote marks are not replaced in simple [[D]] wikilinks.&lt;br /&gt;
&lt;br /&gt;
Call this function for chapter titles, for website titles, etc; not for book titles.&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function kern_quotes (str)&lt;br /&gt;
	local cap=&#039;&#039;;&lt;br /&gt;
	local cap2=&#039;&#039;;&lt;br /&gt;
	local wl_type, label, link;&lt;br /&gt;
&lt;br /&gt;
	wl_type, label, link = is_wikilink (str);									-- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]&lt;br /&gt;
	&lt;br /&gt;
	if 1 == wl_type then														-- [[D]] simple wikilink with or without quote marks&lt;br /&gt;
		if mw.ustring.match (str, &#039;%[%[[\&amp;quot;“”\&#039;‘’].+[\&amp;quot;“”\&#039;‘’]%]%]&#039;) then		-- leading and trailing quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-both&#039;], str);&lt;br /&gt;
		elseif mw.ustring.match (str, &#039;%[%[[\&amp;quot;“”\&#039;‘’].+%]%]&#039;)	then			-- leading quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-left&#039;], str);&lt;br /&gt;
		elseif mw.ustring.match (str, &#039;%[%[.+[\&amp;quot;“”\&#039;‘’]%]%]&#039;) then				-- trailing quote marks&lt;br /&gt;
			str = substitute (cfg.presentation[&#039;kern-wl-right&#039;], str);&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	else																		-- plain text or [[L|D]]; text in label variable&lt;br /&gt;
		label= mw.ustring.gsub (label, &#039;[“”]&#039;, &#039;\&amp;quot;&#039;);							-- replace “” (U+201C &amp;amp; U+201D) with &amp;quot; (typewriter double quote mark)&lt;br /&gt;
		label= mw.ustring.gsub (label, &#039;[‘’]&#039;, &#039;\&#039;&#039;);							-- replace ‘’ (U+2018 &amp;amp; U+2019) with &#039; (typewriter single quote mark)&lt;br /&gt;
&lt;br /&gt;
		cap, cap2 = mw.ustring.match (label, &amp;quot;^([\&amp;quot;\&#039;])([^\&#039;].+)&amp;quot;);				-- match leading double or single quote but not doubled single quotes (italic markup)&lt;br /&gt;
		if is_set (cap) then&lt;br /&gt;
			label = substitute (cfg.presentation[&#039;kern-left&#039;], {cap, cap2});&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		cap, cap2 = mw.ustring.match (label, &amp;quot;^(.+[^\&#039;])([\&amp;quot;\&#039;])$&amp;quot;)				-- match trailing double or single quote but not doubled single quotes (italic markup)&lt;br /&gt;
		if is_set (cap) then&lt;br /&gt;
			label = substitute (cfg.presentation[&#039;kern-right&#039;], {cap, cap2});&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if 2 == wl_type then&lt;br /&gt;
			str = make_wikilink (link, label);									-- reassemble the wikilink&lt;br /&gt;
		else&lt;br /&gt;
			str = label;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R M A T _ S C R I P T _ V A L U E &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
|script-title= holds title parameters that are not written in Latin based scripts: Chinese, Japanese, Arabic, Hebrew, etc. These scripts should&lt;br /&gt;
not be italicized and may be written right-to-left.  The value supplied by |script-title= is concatenated onto Title after Title has been wrapped&lt;br /&gt;
in italic markup.&lt;br /&gt;
&lt;br /&gt;
Regardless of language, all values provided by |script-title= are wrapped in &amp;lt;bdi&amp;gt;...&amp;lt;/bdi&amp;gt; tags to isolate rtl languages from the English left to right.&lt;br /&gt;
&lt;br /&gt;
|script-title= provides a unique feature.  The value in |script-title= may be prefixed with a two-character ISO639-1 language code and a colon:&lt;br /&gt;
	|script-title=ja:*** *** (where * represents a Japanese character)&lt;br /&gt;
Spaces between the two-character code and the colon and the colon and the first script character are allowed:&lt;br /&gt;
	|script-title=ja : *** ***&lt;br /&gt;
	|script-title=ja: *** ***&lt;br /&gt;
	|script-title=ja :*** ***&lt;br /&gt;
Spaces preceding the prefix are allowed: |script-title = ja:*** ***&lt;br /&gt;
&lt;br /&gt;
The prefix is checked for validity.  If it is a valid ISO639-1 language code, the lang attribute (lang=&amp;quot;ja&amp;quot;) is added to the &amp;lt;bdi&amp;gt; tag so that browsers can&lt;br /&gt;
know the language the tag contains.  This may help the browser render the script more correctly.  If the prefix is invalid, the lang attribute&lt;br /&gt;
is not added.  At this time there is no error message for this condition.&lt;br /&gt;
&lt;br /&gt;
Supports |script-title= and |script-chapter=&lt;br /&gt;
&lt;br /&gt;
TODO: error messages when prefix is invalid ISO639-1 code; when script_value has prefix but no script;&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_script_value (script_value)&lt;br /&gt;
	local lang=&#039;&#039;;																-- initialize to empty string&lt;br /&gt;
	local name;&lt;br /&gt;
	if script_value:match(&#039;^%l%l%s*:&#039;) then										-- if first 3 non-space characters are script language prefix&lt;br /&gt;
		lang = script_value:match(&#039;^(%l%l)%s*:%s*%S.*&#039;);						-- get the language prefix or nil if there is no script&lt;br /&gt;
		if not is_set (lang) then&lt;br /&gt;
			return &#039;&#039;;															-- script_value was just the prefix so return empty string&lt;br /&gt;
		end&lt;br /&gt;
																				-- if we get this far we have prefix and script&lt;br /&gt;
		name = mw.language.fetchLanguageName( lang, &amp;quot;en&amp;quot; );						-- get language name so that we can use it to categorize&lt;br /&gt;
		if is_set (name) then													-- is prefix a proper ISO 639-1 language code?&lt;br /&gt;
			script_value = script_value:gsub (&#039;^%l%l%s*:%s*&#039;, &#039;&#039;);				-- strip prefix from script&lt;br /&gt;
																				-- is prefix one of these language codes?&lt;br /&gt;
			if in_array (lang, cfg.script_lang_codes) then&lt;br /&gt;
				add_prop_cat (&#039;script_with_name&#039;, {name, lang})&lt;br /&gt;
			else&lt;br /&gt;
				add_prop_cat (&#039;script&#039;)&lt;br /&gt;
			end&lt;br /&gt;
			lang = &#039; lang=&amp;quot;&#039; .. lang .. &#039;&amp;quot; &#039;;									-- convert prefix into a lang attribute&lt;br /&gt;
		else&lt;br /&gt;
			lang = &#039;&#039;;															-- invalid so set lang to empty string&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	script_value = substitute (cfg.presentation[&#039;bdi&#039;], {lang, script_value});	-- isolate in case script is rtl&lt;br /&gt;
&lt;br /&gt;
	return script_value;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S C R I P T _ C O N C A T E N A T E &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script value has been &lt;br /&gt;
wrapped in &amp;lt;bdi&amp;gt; tags.&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function script_concatenate (title, script)&lt;br /&gt;
	if is_set (script) then&lt;br /&gt;
		script = format_script_value (script);									-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; returns empty string on error&lt;br /&gt;
		if is_set (script) then&lt;br /&gt;
			title = title .. &#039; &#039; .. script;										-- concatenate title and script title&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return title;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; W R A P _ M S G &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Applies additional message text to various parameter values. Supplied string is wrapped using a message_list&lt;br /&gt;
configuration taking one argument.  Supports lower case text for {{citation}} templates.  Additional text taken&lt;br /&gt;
from citation_config.messages - the reason this function is similar to but separate from wrap_style().&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function wrap_msg (key, str, lower)&lt;br /&gt;
	if not is_set( str ) then&lt;br /&gt;
		return &amp;quot;&amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
	if true == lower then&lt;br /&gt;
		local msg;&lt;br /&gt;
		msg = cfg.messages[key]:lower();										-- set the message to lower case before &lt;br /&gt;
		return substitute( msg, str );										-- including template text&lt;br /&gt;
	else&lt;br /&gt;
		return substitute( cfg.messages[key], str );&lt;br /&gt;
	end		&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; F O R M A T _ C H A P T E R _ T I T L E &amp;gt;--------------------------------------&lt;br /&gt;
&lt;br /&gt;
Format the four chapter parameters: |script-chapter=, |chapter=, |trans-chapter=, and |chapter-url= into a single Chapter meta-&lt;br /&gt;
parameter (chapter_url_source used for error messages).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_chapter_title (scriptchapter, chapter, transchapter, chapterurl, chapter_url_source, no_quotes, access)&lt;br /&gt;
	local chapter_error = &#039;&#039;;&lt;br /&gt;
	&lt;br /&gt;
	if not is_set (chapter) then&lt;br /&gt;
		chapter = &#039;&#039;;															-- to be safe for concatenation&lt;br /&gt;
	else&lt;br /&gt;
		if false == no_quotes then&lt;br /&gt;
			chapter = kern_quotes (chapter);									-- if necessary, separate chapter title&#039;s leading and trailing quote marks from Module provided quote marks&lt;br /&gt;
			chapter = wrap_style (&#039;quoted-title&#039;, chapter);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	chapter = script_concatenate (chapter, scriptchapter)						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
&lt;br /&gt;
	if is_set (transchapter) then&lt;br /&gt;
		transchapter = wrap_style (&#039;trans-quoted-title&#039;, transchapter);&lt;br /&gt;
		if is_set (chapter) then&lt;br /&gt;
			chapter = chapter ..  &#039; &#039; .. transchapter;&lt;br /&gt;
		else																	-- here when transchapter without chapter or script-chapter&lt;br /&gt;
			chapter = transchapter;												-- &lt;br /&gt;
			chapter_error = &#039; &#039; .. set_error (&#039;trans_missing_title&#039;, {&#039;chapter&#039;});&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (chapterurl) then&lt;br /&gt;
		chapter = external_link (chapterurl, chapter, chapter_url_source, access);		-- adds bare_url_missing_title error if appropriate&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return chapter .. chapter_error;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H A S _ I N V I S I B L E _ C H A R S &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function searches a parameter&#039;s value for nonprintable or invisible characters.  The search stops at the&lt;br /&gt;
first match.&lt;br /&gt;
&lt;br /&gt;
This function will detect the visible replacement character when it is part of the wikisource.&lt;br /&gt;
&lt;br /&gt;
Detects but ignores nowiki and math stripmarkers.  Also detects other named stripmarkers (gallery, math, pre, ref)&lt;br /&gt;
and identifies them with a slightly different error message.  See also coins_cleanup().&lt;br /&gt;
&lt;br /&gt;
Detects but ignores the character pattern that results from the transclusion of {{&#039;}} templates.&lt;br /&gt;
&lt;br /&gt;
Output of this function is an error message that identifies the character or the Unicode group, or the stripmarker&lt;br /&gt;
that was detected along with its position (or, for multi-byte characters, the position of its first byte) in the&lt;br /&gt;
parameter value.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function has_invisible_chars (param, v)&lt;br /&gt;
	local position = &#039;&#039;;														-- position of invisible char or starting position of stripmarker&lt;br /&gt;
	local dummy;																-- end of matching string; not used but required to hold end position when a capture is returned&lt;br /&gt;
	local capture;																-- used by stripmarker detection to hold name of the stripmarker&lt;br /&gt;
	local i=1;&lt;br /&gt;
	local stripmarker, apostrophe;&lt;br /&gt;
	&lt;br /&gt;
	capture = string.match (v, &#039;[%w%p ]*&#039;);										-- Test for values that are simple ASCII text and bypass other tests if true&lt;br /&gt;
	if capture == v then														-- if same there are no unicode characters&lt;br /&gt;
		return;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	while cfg.invisible_chars[i] do&lt;br /&gt;
		local char=cfg.invisible_chars[i][1]									-- the character or group name&lt;br /&gt;
		local pattern=cfg.invisible_chars[i][2]									-- the pattern used to find it&lt;br /&gt;
		position, dummy, capture = mw.ustring.find (v, pattern)					-- see if the parameter value contains characters that match the pattern&lt;br /&gt;
		&lt;br /&gt;
		if position and (char == &#039;zero width joiner&#039;) then						-- if we found a zero width joiner character&lt;br /&gt;
			if mw.ustring.find (v, cfg.indic_script) then						-- its ok if one of the indic scripts&lt;br /&gt;
				position = nil;													-- unset position&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if position then&lt;br /&gt;
			if &#039;nowiki&#039; == capture or &#039;math&#039; == capture then 					-- nowiki, math stripmarker (not an error condition)&lt;br /&gt;
				stripmarker = true;												-- set a flag&lt;br /&gt;
			elseif true == stripmarker and &#039;delete&#039; == char then				-- because stripmakers begin and end with the delete char, assume that we&#039;ve found one end of a stripmarker&lt;br /&gt;
				position = nil;													-- unset&lt;br /&gt;
			else&lt;br /&gt;
				local err_msg;&lt;br /&gt;
				if capture then&lt;br /&gt;
					err_msg = capture .. &#039; &#039; .. char;&lt;br /&gt;
				else&lt;br /&gt;
					err_msg = char .. &#039; &#039; .. &#039;character&#039;;&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;invisible_char&#039;, {err_msg, wrap_style (&#039;parameter&#039;, param), position}, true ) } );	-- add error message&lt;br /&gt;
				return;															-- and done with this parameter&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		i=i+1;																	-- bump our index&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A R G U M E N T _ W R A P P E R &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Argument wrapper.  This function provides support for argument mapping defined in the configuration file so that&lt;br /&gt;
multiple names can be transparently aliased to single internal variable.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function argument_wrapper( args )&lt;br /&gt;
	local origin = {};&lt;br /&gt;
	&lt;br /&gt;
	return setmetatable({&lt;br /&gt;
		ORIGIN = function( self, k )&lt;br /&gt;
			local dummy = self[k]; --force the variable to be loaded.&lt;br /&gt;
			return origin[k];&lt;br /&gt;
		end&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		__index = function ( tbl, k )&lt;br /&gt;
			if origin[k] ~= nil then&lt;br /&gt;
				return nil;&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local args, list, v = args, cfg.aliases[k];&lt;br /&gt;
			&lt;br /&gt;
			if type( list ) == &#039;table&#039; then&lt;br /&gt;
				v, origin[k] = select_one( args, list, &#039;redundant_parameters&#039; );&lt;br /&gt;
				if origin[k] == nil then&lt;br /&gt;
					origin[k] = &#039;&#039;; -- Empty string, not nil&lt;br /&gt;
				end&lt;br /&gt;
			elseif list ~= nil then&lt;br /&gt;
				v, origin[k] = args[list], list;&lt;br /&gt;
			else&lt;br /&gt;
				-- maybe let through instead of raising an error?&lt;br /&gt;
				-- v, origin[k] = args[k], k;&lt;br /&gt;
				error( cfg.messages[&#039;unknown_argument_map&#039;] );&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			-- Empty strings, not nil;&lt;br /&gt;
			if v == nil then&lt;br /&gt;
				v = cfg.defaults[k] or &#039;&#039;;&lt;br /&gt;
				origin[k] = &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			tbl = rawset( tbl, k, v );&lt;br /&gt;
			return v;&lt;br /&gt;
		end,&lt;br /&gt;
	});&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; V A L I D A T E &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Looks for a parameter&#039;s name in one of several whitelists.&lt;br /&gt;
&lt;br /&gt;
Parameters in the whitelist can have three values:&lt;br /&gt;
	true - active, supported parameters&lt;br /&gt;
	false - deprecated, supported parameters&lt;br /&gt;
	nil - unsupported parameters&lt;br /&gt;
	&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function validate( name, cite_class )&lt;br /&gt;
	local name = tostring( name );&lt;br /&gt;
	local state;&lt;br /&gt;
	&lt;br /&gt;
	if in_array (cite_class, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then			-- limited parameter sets allowed for these templates&lt;br /&gt;
		state = whitelist.limited_basic_arguments[ name ];&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if &#039;arxiv&#039; == cite_class then											-- basic parameters unique to these templates&lt;br /&gt;
			state = whitelist.arxiv_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
		if &#039;biorxiv&#039; == cite_class then&lt;br /&gt;
			state = whitelist.biorxiv_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
		if &#039;citeseerx&#039; == cite_class then&lt;br /&gt;
			state = whitelist.citeseerx_basic_arguments[name];&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
																				-- limited enumerated parameters list&lt;br /&gt;
		name = name:gsub( &amp;quot;%d+&amp;quot;, &amp;quot;#&amp;quot; );											-- replace digit(s) with # (last25 becomes last#)&lt;br /&gt;
		state = whitelist.limited_numbered_arguments[ name ];&lt;br /&gt;
		if true == state then return true; end									-- valid actively supported parameter&lt;br /&gt;
		if false == state then&lt;br /&gt;
			deprecated_parameter (name);										-- parameter is deprecated but still supported&lt;br /&gt;
			return true;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		return false;															-- not supported because not found or name is set to nil&lt;br /&gt;
	end																			-- end limited parameter-set templates&lt;br /&gt;
		&lt;br /&gt;
	state = whitelist.basic_arguments[ name ];									-- all other templates; all normal parameters allowed&lt;br /&gt;
											&lt;br /&gt;
	if true == state then return true; end										-- valid actively supported parameter&lt;br /&gt;
	if false == state then&lt;br /&gt;
		deprecated_parameter (name);											-- parameter is deprecated but still supported&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
																				-- all enumerated parameters allowed&lt;br /&gt;
	name = name:gsub( &amp;quot;%d+&amp;quot;, &amp;quot;#&amp;quot; );												-- replace digit(s) with # (last25 becomes last#&lt;br /&gt;
	state = whitelist.numbered_arguments[ name ];&lt;br /&gt;
&lt;br /&gt;
	if true == state then return true; end										-- valid actively supported parameter&lt;br /&gt;
	if false == state then&lt;br /&gt;
		deprecated_parameter (name);											-- parameter is deprecated but still supported&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return false;																-- not supported because not found or name is set to nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N O W R A P _ D A T E &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
When date is YYYY-MM-DD format wrap in nowrap span: &amp;lt;span ...&amp;gt;YYYY-MM-DD&amp;lt;/span&amp;gt;.  When date is DD MMMM YYYY or is&lt;br /&gt;
MMMM DD, YYYY then wrap in nowrap span: &amp;lt;span ...&amp;gt;DD MMMM&amp;lt;/span&amp;gt; YYYY or &amp;lt;span ...&amp;gt;MMMM DD,&amp;lt;/span&amp;gt; YYYY&lt;br /&gt;
&lt;br /&gt;
DOES NOT yet support MMMM YYYY or any of the date ranges.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function nowrap_date (date)&lt;br /&gt;
	local cap=&#039;&#039;;&lt;br /&gt;
	local cap2=&#039;&#039;;&lt;br /&gt;
&lt;br /&gt;
	if date:match(&amp;quot;^%d%d%d%d%-%d%d%-%d%d$&amp;quot;) then&lt;br /&gt;
		date = substitute (cfg.presentation[&#039;nowrap1&#039;], date);&lt;br /&gt;
	&lt;br /&gt;
	elseif date:match(&amp;quot;^%a+%s*%d%d?,%s+%d%d%d%d$&amp;quot;) or date:match (&amp;quot;^%d%d?%s*%a+%s+%d%d%d%d$&amp;quot;) then&lt;br /&gt;
		cap, cap2 = string.match (date, &amp;quot;^(.*)%s+(%d%d%d%d)$&amp;quot;);&lt;br /&gt;
		date = substitute (cfg.presentation[&#039;nowrap2&#039;], {cap, cap2});&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return date;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ T I T L E T Y P E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function sets default title types (equivalent to the citation including |type=&amp;lt;default value&amp;gt;) for those templates that have defaults.&lt;br /&gt;
Also handles the special case where it is desirable to omit the title type from the rendered citation (|type=none).&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_titletype (cite_class, title_type)&lt;br /&gt;
	if is_set(title_type) then&lt;br /&gt;
		if &amp;quot;none&amp;quot; == title_type then&lt;br /&gt;
			title_type = &amp;quot;&amp;quot;;													-- if |type=none then type parameter not displayed&lt;br /&gt;
		end&lt;br /&gt;
		return title_type;														-- if |type= has been set to any other value use that value&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return cfg.title_types [cite_class] or &#039;&#039;;									-- set template&#039;s default title type; else empty string for concatenation&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; H Y P H E N _ T O _ D A S H &amp;gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Converts a hyphen to a dash&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function hyphen_to_dash( str )&lt;br /&gt;
	if not is_set(str) or str:match( &amp;quot;[%[%]{}&amp;lt;&amp;gt;]&amp;quot; ) ~= nil then&lt;br /&gt;
		return str;&lt;br /&gt;
	end	&lt;br /&gt;
	return str:gsub( &#039;-&#039;, &#039;–&#039; );&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S A F E _ J O I N &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Joins a sequence of strings together while checking for duplicate separation characters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function safe_join( tbl, duplicate_char )&lt;br /&gt;
	--[[&lt;br /&gt;
	Note: we use string functions here, rather than ustring functions.&lt;br /&gt;
	&lt;br /&gt;
	This has considerably faster performance and should work correctly as &lt;br /&gt;
	long as the duplicate_char is strict ASCII.  The strings&lt;br /&gt;
	in tbl may be ASCII or UTF8.&lt;br /&gt;
	]]&lt;br /&gt;
	&lt;br /&gt;
	local str = &#039;&#039;;																-- the output string&lt;br /&gt;
	local comp = &#039;&#039;;															-- what does &#039;comp&#039; mean?&lt;br /&gt;
	local end_chr = &#039;&#039;;&lt;br /&gt;
	local trim;&lt;br /&gt;
	for _, value in ipairs( tbl ) do&lt;br /&gt;
		if value == nil then value = &#039;&#039;; end&lt;br /&gt;
		&lt;br /&gt;
		if str == &#039;&#039; then														-- if output string is empty&lt;br /&gt;
			str = value;														-- assign value to it (first time through the loop)&lt;br /&gt;
		elseif value ~= &#039;&#039; then&lt;br /&gt;
			if value:sub(1,1) == &#039;&amp;lt;&#039; then										-- Special case of values enclosed in spans and other markup.&lt;br /&gt;
				comp = value:gsub( &amp;quot;%b&amp;lt;&amp;gt;&amp;quot;, &amp;quot;&amp;quot; );								-- remove html markup (&amp;lt;span&amp;gt;string&amp;lt;/span&amp;gt; -&amp;gt; string)&lt;br /&gt;
			else&lt;br /&gt;
				comp = value;&lt;br /&gt;
			end&lt;br /&gt;
																				-- typically duplicate_char is sepc&lt;br /&gt;
			if comp:sub(1,1) == duplicate_char then								-- is first charactier same as duplicate_char? why test first character?&lt;br /&gt;
																				--   Because individual string segments often (always?) begin with terminal punct for th&lt;br /&gt;
																				--   preceding segment: &#039;First element&#039; .. &#039;sepc next element&#039; .. etc?&lt;br /&gt;
				trim = false;&lt;br /&gt;
				end_chr = str:sub(-1,-1);										-- get the last character of the output string&lt;br /&gt;
				-- str = str .. &amp;quot;&amp;lt;HERE(enchr=&amp;quot; .. end_chr.. &amp;quot;)&amp;quot;					-- debug stuff?&lt;br /&gt;
				if end_chr == duplicate_char then								-- if same as separator&lt;br /&gt;
					str = str:sub(1,-2);										-- remove it&lt;br /&gt;
				elseif end_chr == &amp;quot;&#039;&amp;quot; then										-- if it might be wikimarkup&lt;br /&gt;
					if str:sub(-3,-1) == duplicate_char .. &amp;quot;&#039;&#039;&amp;quot; then			-- if last three chars of str are sepc&#039;&#039; &lt;br /&gt;
						str = str:sub(1, -4) .. &amp;quot;&#039;&#039;&amp;quot;;							-- remove them and add back &#039;&#039;&lt;br /&gt;
					elseif str:sub(-5,-1) == duplicate_char .. &amp;quot;]]&#039;&#039;&amp;quot; then		-- if last five chars of str are sepc]]&#039;&#039; &lt;br /&gt;
						trim = true;											-- why? why do this and next differently from previous?&lt;br /&gt;
					elseif str:sub(-4,-1) == duplicate_char .. &amp;quot;]&#039;&#039;&amp;quot; then		-- if last four chars of str are sepc]&#039;&#039; &lt;br /&gt;
						trim = true;											-- same question&lt;br /&gt;
					end&lt;br /&gt;
				elseif end_chr == &amp;quot;]&amp;quot; then										-- if it might be wikimarkup&lt;br /&gt;
					if str:sub(-3,-1) == duplicate_char .. &amp;quot;]]&amp;quot; then			-- if last three chars of str are sepc]] wikilink &lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-3,-1) == duplicate_char .. &#039;&amp;quot;]&#039; then		-- if last three chars of str are sepc&amp;quot;] quoted external link &lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-2,-1) == duplicate_char .. &amp;quot;]&amp;quot; then			-- if last two chars of str are sepc] external link&lt;br /&gt;
						trim = true;&lt;br /&gt;
					elseif str:sub(-4,-1) == duplicate_char .. &amp;quot;&#039;&#039;]&amp;quot; then		-- normal case when |url=something &amp;amp; |title=Title.&lt;br /&gt;
						trim = true;&lt;br /&gt;
					end&lt;br /&gt;
				elseif end_chr == &amp;quot; &amp;quot; then										-- if last char of output string is a space&lt;br /&gt;
					if str:sub(-2,-1) == duplicate_char .. &amp;quot; &amp;quot; then				-- if last two chars of str are &amp;lt;sepc&amp;gt;&amp;lt;space&amp;gt;&lt;br /&gt;
						str = str:sub(1,-3);									-- remove them both&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				if trim then&lt;br /&gt;
					if value ~= comp then 										-- value does not equal comp when value contains html markup&lt;br /&gt;
						local dup2 = duplicate_char;&lt;br /&gt;
						if dup2:match( &amp;quot;%A&amp;quot; ) then dup2 = &amp;quot;%&amp;quot; .. dup2; end		-- if duplicate_char not a letter then escape it&lt;br /&gt;
						&lt;br /&gt;
						value = value:gsub( &amp;quot;(%b&amp;lt;&amp;gt;)&amp;quot; .. dup2, &amp;quot;%1&amp;quot;, 1 )			-- remove duplicate_char if it follows html markup&lt;br /&gt;
					else&lt;br /&gt;
						value = value:sub( 2, -1 );								-- remove duplicate_char when it is first character&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			str = str .. value;													--add it to the output string&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str;&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ S U F F I X &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns true is suffix is properly formed Jr, Sr, or ordinal in the range 2–9.  Puncutation not allowed.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_suffix (suffix)&lt;br /&gt;
	if in_array (suffix, {&#039;Jr&#039;, &#039;Sr&#039;, &#039;2nd&#039;, &#039;3rd&#039;}) or suffix:match (&#039;^%dth$&#039;) then&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
	return false;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ G O O D _ V A N C _ N A M E &amp;gt;--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
For Vancouver Style, author/editor names are supposed to be rendered in Latin (read ASCII) characters.  When a name&lt;br /&gt;
uses characters that contain diacritical marks, those characters are to converted to the corresponding Latin character.&lt;br /&gt;
When a name is written using a non-Latin alphabet or logogram, that name is to be transliterated into Latin characters.&lt;br /&gt;
These things are not currently possible in this module so are left to the editor to do.&lt;br /&gt;
&lt;br /&gt;
This test allows |first= and |last= names to contain any of the letters defined in the four Unicode Latin character sets&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0000.pdf C0 Controls and Basic Latin] 0041–005A, 0061–007A&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0080.pdf C1 Controls and Latin-1 Supplement] 00C0–00D6, 00D8–00F6, 00F8–00FF&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0100.pdf Latin Extended-A] 0100–017F&lt;br /&gt;
	[http://www.unicode.org/charts/PDF/U0180.pdf Latin Extended-B] 0180–01BF, 01C4–024F&lt;br /&gt;
&lt;br /&gt;
|lastn= also allowed to contain hyphens, spaces, and apostrophes. (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)&lt;br /&gt;
|firstn= also allowed to contain hyphens, spaces, apostrophes, and periods&lt;br /&gt;
&lt;br /&gt;
This original test:&lt;br /&gt;
	if nil == mw.ustring.find (last, &amp;quot;^[A-Za-zÀ-ÖØ-öø-ƿǄ-ɏ%-%s%&#039;]*$&amp;quot;) or nil == mw.ustring.find (first, &amp;quot;^[A-Za-zÀ-ÖØ-öø-ƿǄ-ɏ%-%s%&#039;%.]+[2-6%a]*$&amp;quot;) then&lt;br /&gt;
was written ouside of the code editor and pasted here because the code editor gets confused between character insertion point and cursor position.&lt;br /&gt;
The test has been rewritten to use decimal character escape sequence for the individual bytes of the unicode characters so that it is not necessary&lt;br /&gt;
to use an external editor to maintain this code.&lt;br /&gt;
&lt;br /&gt;
	\195\128-\195\150 – À-Ö (U+00C0–U+00D6 – C0 controls)&lt;br /&gt;
	\195\152-\195\182 – Ø-ö (U+00D8-U+00F6 – C0 controls)&lt;br /&gt;
	\195\184-\198\191 – ø-ƿ (U+00F8-U+01BF – C0 controls, Latin extended A &amp;amp; B)&lt;br /&gt;
	\199\132-\201\143 – Ǆ-ɏ (U+01C4-U+024F – Latin extended B)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_good_vanc_name (last, first)&lt;br /&gt;
	local first, suffix = first:match (&#039;(.-),?%s*([%dJS][%drndth]+)%.?$&#039;) or first;		-- if first has something that looks like a generational suffix, get it&lt;br /&gt;
&lt;br /&gt;
	if is_set (suffix) then&lt;br /&gt;
		if not is_suffix (suffix) then&lt;br /&gt;
			add_vanc_error (&#039;suffix&#039;);&lt;br /&gt;
			return false;														-- not a name with an appropriate suffix&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if nil == mw.ustring.find (last, &amp;quot;^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%&#039;]*$&amp;quot;) or&lt;br /&gt;
		nil == mw.ustring.find (first, &amp;quot;^[A-Za-z\195\128-\195\150\195\152-\195\182\195\184-\198\191\199\132-\201\143%-%s%&#039;%.]*$&amp;quot;) then&lt;br /&gt;
			add_vanc_error (&#039;non-Latin character&#039;);&lt;br /&gt;
			return false;														-- not a string of latin characters; Vancouver requires Romanization&lt;br /&gt;
	end;&lt;br /&gt;
	return true;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; R E D U C E _ T O _ I N I T I A L S &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Attempts to convert names to initials in support of |name-list-format=vanc.  &lt;br /&gt;
&lt;br /&gt;
Names in |firstn= may be separated by spaces or hyphens, or for initials, a period. See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35062/.&lt;br /&gt;
&lt;br /&gt;
Vancouver style requires family rank designations (Jr, II, III, etc) to be rendered as Jr, 2nd, 3rd, etc.  See http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35085/.&lt;br /&gt;
This code only accepts and understands generational suffix in the Vancouver format because Roman numerals look like, and can be mistaken for, initials.&lt;br /&gt;
&lt;br /&gt;
This function uses ustring functions because firstname initials may be any of the unicode Latin characters accepted by is_good_vanc_name ().&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function reduce_to_initials(first)&lt;br /&gt;
	local name, suffix = mw.ustring.match(first, &amp;quot;^(%u+) ([%dJS][%drndth]+)$&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
	if not name then															-- if not initials and a suffix&lt;br /&gt;
		name = mw.ustring.match(first, &amp;quot;^(%u+)$&amp;quot;);								-- is it just intials?&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if name then																-- if first is initials with or without suffix&lt;br /&gt;
		if 3 &amp;gt; mw.ustring.len (name) then										-- if one or two initials&lt;br /&gt;
			if suffix then														-- if there is a suffix&lt;br /&gt;
				if is_suffix (suffix) then										-- is it legitimate?&lt;br /&gt;
					return first;												-- one or two initials and a valid suffix so nothing to do&lt;br /&gt;
				else&lt;br /&gt;
					add_vanc_error (&#039;suffix&#039;);									-- one or two initials with invalid suffix so error message&lt;br /&gt;
					return first;												-- and return first unmolested&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				return first;													-- one or two initials without suffix; nothing to do&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end																			-- if here then name has 3 or more uppercase letters so treat them as a word&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	local initials, names = {}, {};												-- tables to hold name parts and initials&lt;br /&gt;
	local i = 1;																-- counter for number of initials&lt;br /&gt;
&lt;br /&gt;
	names = mw.text.split (first, &#039;[%s,]+&#039;);									-- split into a table of names and possible suffix&lt;br /&gt;
&lt;br /&gt;
	while names[i] do															-- loop through the table&lt;br /&gt;
		if 1 &amp;lt; i and names[i]:match (&#039;[%dJS][%drndth]+%.?$&#039;) then				-- if not the first name, and looks like a suffix (may have trailing dot)&lt;br /&gt;
			names[i] = names[i]:gsub (&#039;%.&#039;, &#039;&#039;);								-- remove terminal dot if present&lt;br /&gt;
			if is_suffix (names[i]) then										-- if a legitimate suffix&lt;br /&gt;
				table.insert (initials, &#039; &#039; .. names[i]);						-- add a separator space, insert at end of initials table&lt;br /&gt;
				break;															-- and done because suffix must fall at the end of a name&lt;br /&gt;
			end																	-- no error message if not a suffix; possibly because of Romanization&lt;br /&gt;
		end&lt;br /&gt;
		if 3 &amp;gt; i then&lt;br /&gt;
			table.insert (initials, mw.ustring.sub(names[i],1,1));				-- insert the intial at end of initials table&lt;br /&gt;
		end&lt;br /&gt;
		i = i+1;																-- bump the counter&lt;br /&gt;
	end&lt;br /&gt;
			&lt;br /&gt;
	return table.concat(initials)												-- Vancouver format does not include spaces.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L I S T  _ P E O P L E &amp;gt;-------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Formats a list of people (e.g. authors / editors) &lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function list_people(control, people, etal)&lt;br /&gt;
	local sep;&lt;br /&gt;
	local namesep;&lt;br /&gt;
	local format = control.format&lt;br /&gt;
	local maximum = control.maximum&lt;br /&gt;
	local lastauthoramp = control.lastauthoramp;&lt;br /&gt;
	local text = {}&lt;br /&gt;
&lt;br /&gt;
	if &#039;vanc&#039; == format then													-- Vancouver-like author/editor name styling?&lt;br /&gt;
		sep = &#039;,&#039;;																-- name-list separator between authors is a comma&lt;br /&gt;
		namesep = &#039; &#039;;															-- last/first separator is a space&lt;br /&gt;
	else&lt;br /&gt;
		sep = &#039;;&#039;																-- name-list separator between authors is a semicolon&lt;br /&gt;
		namesep = &#039;, &#039;															-- last/first separator is &amp;lt;comma&amp;gt;&amp;lt;space&amp;gt;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if sep:sub(-1,-1) ~= &amp;quot; &amp;quot; then sep = sep .. &amp;quot; &amp;quot; end&lt;br /&gt;
	if is_set (maximum) and maximum &amp;lt; 1 then return &amp;quot;&amp;quot;, 0; end					-- returned 0 is for EditorCount; not used for authors&lt;br /&gt;
	&lt;br /&gt;
	for i,person in ipairs(people) do&lt;br /&gt;
		if is_set(person.last) then&lt;br /&gt;
			local mask = person.mask&lt;br /&gt;
			local one&lt;br /&gt;
			local sep_one = sep;&lt;br /&gt;
			if is_set (maximum) and i &amp;gt; maximum then&lt;br /&gt;
				etal = true;&lt;br /&gt;
				break;&lt;br /&gt;
			elseif (mask ~= nil) then&lt;br /&gt;
				local n = tonumber(mask)&lt;br /&gt;
				if (n ~= nil) then&lt;br /&gt;
					one = string.rep(&amp;quot;&amp;amp;mdash;&amp;quot;,n)&lt;br /&gt;
				else&lt;br /&gt;
					one = mask;&lt;br /&gt;
					sep_one = &amp;quot; &amp;quot;;&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				one = person.last&lt;br /&gt;
				local first = person.first&lt;br /&gt;
				if is_set(first) then&lt;br /&gt;
					if ( &amp;quot;vanc&amp;quot; == format ) then								-- if vancouver format&lt;br /&gt;
						one = one:gsub (&#039;%.&#039;, &#039;&#039;);								-- remove periods from surnames (http://www.ncbi.nlm.nih.gov/books/NBK7271/box/A35029/)&lt;br /&gt;
						if not person.corporate and is_good_vanc_name (one, first) then		-- and name is all Latin characters; corporate authors not tested&lt;br /&gt;
							first = reduce_to_initials(first)					-- attempt to convert first name(s) to initials&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					one = one .. namesep .. first;&lt;br /&gt;
				end&lt;br /&gt;
				if is_set(person.link) and person.link ~= control.page_name then&lt;br /&gt;
					one = make_wikilink (person.link, one);						-- link author/editor if this page is not the author&#039;s/editor&#039;s page&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			table.insert( text, one )&lt;br /&gt;
			table.insert( text, sep_one )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local count = #text / 2;													-- (number of names + number of separators) divided by 2&lt;br /&gt;
	if count &amp;gt; 0 then &lt;br /&gt;
		if count &amp;gt; 1 and is_set(lastauthoramp) and not etal then&lt;br /&gt;
			text[#text-2] = &amp;quot; &amp;amp; &amp;quot;;												-- replace last separator with ampersand text&lt;br /&gt;
		end&lt;br /&gt;
		text[#text] = nil;														-- erase the last separator&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local result = table.concat(text)											-- construct list&lt;br /&gt;
	if etal and is_set (result) then											-- etal may be set by |display-authors=etal but we might not have a last-first list&lt;br /&gt;
		result = result .. sep .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];					-- we&#039;ve go a last-first list and etal so add et al.&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return result, count&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; A N C H O R _ I D &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Generates a CITEREF anchor ID if we have at least one name or a date.  Otherwise returns an empty string.&lt;br /&gt;
&lt;br /&gt;
namelist is one of the contributor-, author-, or editor-name lists chosen in that order.  year is Year or anchor_year.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
local function anchor_id (namelist, year)&lt;br /&gt;
	local names={};																-- a table for the one to four names and year&lt;br /&gt;
	for i,v in ipairs (namelist) do												-- loop through the list and take up to the first four last names&lt;br /&gt;
		names[i] = v.last &lt;br /&gt;
		if i == 4 then break end												-- if four then done&lt;br /&gt;
	end&lt;br /&gt;
	table.insert (names, year);													-- add the year at the end&lt;br /&gt;
	local id = table.concat(names);												-- concatenate names and year for CITEREF id&lt;br /&gt;
	if is_set (id) then															-- if concatenation is not an empty string&lt;br /&gt;
		return &amp;quot;CITEREF&amp;quot; .. id;													-- add the CITEREF portion&lt;br /&gt;
	else&lt;br /&gt;
		return &#039;&#039;;																-- return an empty string; no reason to include CITEREF id in this citation&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ E T A L &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor name parameters for variations on the theme of et al.  If found,&lt;br /&gt;
the et al. is removed, a flag is set to true and the function returns the modified name and the flag.&lt;br /&gt;
&lt;br /&gt;
This function never sets the flag to false but returns it&#039;s previous state because it may have been set by&lt;br /&gt;
previous passes through this function or by the parameters |display-authors=etal or |display-editors=etal&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_etal (name, etal, nocat)&lt;br /&gt;
&lt;br /&gt;
	if is_set (name) then														-- name can be nil in which case just return&lt;br /&gt;
		local etal_pattern = &amp;quot;[;,]? *[\&amp;quot;&#039;]*%f[%a][Ee][Tt] *[Aa][Ll][%.\&amp;quot;&#039;]*$&amp;quot;	-- variations on the &#039;et al&#039; theme&lt;br /&gt;
		local others_pattern = &amp;quot;[;,]? *%f[%a]and [Oo]thers&amp;quot;;					-- and alternate to et al.&lt;br /&gt;
		&lt;br /&gt;
		if name:match (etal_pattern) then										-- variants on et al.&lt;br /&gt;
			name = name:gsub (etal_pattern, &#039;&#039;);								-- if found, remove&lt;br /&gt;
			etal = true;														-- set flag (may have been set previously here or by |display-authors=etal)&lt;br /&gt;
			if not nocat then													-- no categorization for |vauthors=&lt;br /&gt;
				add_maint_cat (&#039;etal&#039;);											-- and add a category if not already added&lt;br /&gt;
			end&lt;br /&gt;
		elseif name:match (others_pattern) then									-- if not &#039;et al.&#039;, then &#039;and others&#039;?&lt;br /&gt;
			name = name:gsub (others_pattern, &#039;&#039;);								-- if found, remove&lt;br /&gt;
			etal = true;														-- set flag (may have been set previously here or by |display-authors=etal)&lt;br /&gt;
			if not nocat then													-- no categorization for |vauthors=&lt;br /&gt;
				add_maint_cat (&#039;etal&#039;);											-- and add a category if not already added&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name, etal;															-- &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ E D _ M A R K U P &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor parameters for extranious editor annotations: ed, ed., eds, (Ed.), etc.&lt;br /&gt;
These annotation do not belong in author parameters and are redundant in editor parameters.  If found, the function&lt;br /&gt;
adds the editor markup maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_ed_markup (name, list_name)&lt;br /&gt;
	local _, pattern;&lt;br /&gt;
	local patterns = {															-- these patterns match annotations at end of name&lt;br /&gt;
		&#039;%f[%(%[][%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]?$&#039;,							-- (ed) or (eds): leading &#039;(&#039;, case insensitive &#039;ed&#039;, optional &#039;s&#039;, &#039;.&#039; and/or &#039;)&#039;&lt;br /&gt;
		&#039;[,%.%s]%f[e]eds?%.?$&#039;,													-- ed or eds: without &#039;(&#039;or &#039;)&#039;; case sensitive (ED could be initials Ed could be name)&lt;br /&gt;
		&#039;%f[%(%[][%(%[]%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?%s*[%)%]]?$&#039;,			-- (editor) or (editors): leading &#039;(&#039;, case insensitive, optional &#039;.&#039; and/or &#039;)&#039;&lt;br /&gt;
		&#039;[,%.%s]%f[Ee][Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%.?$&#039;,						-- editor or editors: without &#039;(&#039;or &#039;)&#039;; case insensitive&lt;br /&gt;
		&lt;br /&gt;
																				-- these patterns match annotations at beginning of name&lt;br /&gt;
		&#039;^eds?[%.,;]&#039;,															-- ed. or eds.: lower case only, optional &#039;s&#039;, requires &#039;.&#039;&lt;br /&gt;
		&#039;^[%(%[]%s*[Ee][Dd][Ss]?%.?%s*[%)%]]&#039;,									-- (ed) or (eds): also sqare brackets, case insensitive, optional &#039;s&#039;, &#039;.&#039;&lt;br /&gt;
		&#039;^[%(%[]?%s*[Ee][Dd][Ii][Tt][Oo][Rr][Ss]?%A&#039;,							-- (editor or (editors: also sq brackets, case insensitive, optional brackets, &#039;s&#039;&lt;br /&gt;
		&#039;^[%(%[]?%s*[Ee][Dd][Ii][Tt][Ee][Dd]%A&#039;,								-- (edited: also sq brackets, case insensitive, optional brackets&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	if is_set (name) then&lt;br /&gt;
		for _, pattern in ipairs (patterns) do									-- spin through patterns table and&lt;br /&gt;
			if name:match (pattern) then&lt;br /&gt;
				add_maint_cat (&#039;extra_text_names&#039;, cfg.special_case_translation [list_name]);	-- add a maint cat for this template&lt;br /&gt;
				break;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name;																-- and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ H A S _ M U L T _ N A M E S &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
Evaluates the content of author and editor (surnames only) parameters for multiple names.  Multiple names are&lt;br /&gt;
indicated if there is more than one comma and or semicolon.  If found, the function adds the multiple name&lt;br /&gt;
(author or editor) maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_has_mult_names (name, list_name)&lt;br /&gt;
local count, _;&lt;br /&gt;
	if is_set (name) then&lt;br /&gt;
		_, count = name:gsub (&#039;[;,]&#039;, &#039;&#039;);										-- count the number of separator-like characters&lt;br /&gt;
		&lt;br /&gt;
		if 1 &amp;lt; count then														-- param could be |author= or |editor= so one separator character is acceptable&lt;br /&gt;
			add_maint_cat (&#039;mult_names&#039;, cfg.special_case_translation [list_name]);	-- more than one separator indicates multiple names so add a maint cat for this template&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return name;																-- and done&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; N A M E _ C H E C K S &amp;gt;--------------------------------------------------------&lt;br /&gt;
This function calls various name checking functions used to validate the content of the various name-holding&lt;br /&gt;
parameters.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function name_checks (last, first, list_name)&lt;br /&gt;
	if is_set (last) then&lt;br /&gt;
		if last:match (&#039;^%(%(.*%)%)$&#039;) then										-- if wrapped in doubled parentheses, accept as written &lt;br /&gt;
			last = last:match (&#039;^%(%((.*)%)%)$&#039;);								-- strip parens&lt;br /&gt;
		else&lt;br /&gt;
			last = name_has_mult_names (last, list_name);						-- check for multiple names in the parameter (last only)&lt;br /&gt;
			last = name_has_ed_markup (last, list_name);						-- check for extraneous &#039;editor&#039; annotation&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (first) then&lt;br /&gt;
		if first:match (&#039;^%(%(.*%)%)$&#039;) then									-- if wrapped in doubled parentheses, accept as written &lt;br /&gt;
			first = first:match (&#039;^%(%((.*)%)%)$&#039;);								-- strip parens&lt;br /&gt;
		else&lt;br /&gt;
			first = name_has_ed_markup (first, list_name);						-- check for extraneous &#039;editor&#039; annotation&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return last, first;															-- done&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A C T _ N A M E S &amp;gt;----------------------------------------------------&lt;br /&gt;
Gets name list from the input arguments&lt;br /&gt;
&lt;br /&gt;
Searches through args in sequential order to find |lastn= and |firstn= parameters (or their aliases), and their matching link and mask parameters.&lt;br /&gt;
Stops searching when both |lastn= and |firstn= are not found in args after two sequential attempts: found |last1=, |last2=, and |last3= but doesn&#039;t&lt;br /&gt;
find |last4= and |last5= then the search is done.&lt;br /&gt;
&lt;br /&gt;
This function emits an error message when there is a |firstn= without a matching |lastn=.  When there are &#039;holes&#039; in the list of last names, |last1= and |last3=&lt;br /&gt;
are present but |last2= is missing, an error message is emitted. |lastn= is not required to have a matching |firstn=.&lt;br /&gt;
&lt;br /&gt;
When an author or editor parameter contains some form of &#039;et al.&#039;, the &#039;et al.&#039; is stripped from the parameter and a flag (etal) returned&lt;br /&gt;
that will cause list_people() to add the static &#039;et al.&#039; text from Module:Citation/CS1/Configuration.  This keeps &#039;et al.&#039; out of the &lt;br /&gt;
template&#039;s metadata.  When this occurs, the page is added to a maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extract_names(args, list_name)&lt;br /&gt;
	local names = {};			-- table of names&lt;br /&gt;
	local last;					-- individual name components&lt;br /&gt;
	local first;&lt;br /&gt;
	local link;&lt;br /&gt;
	local mask;&lt;br /&gt;
	local i = 1;				-- loop counter/indexer&lt;br /&gt;
	local n = 1;				-- output table indexer&lt;br /&gt;
	local count = 0;			-- used to count the number of times we haven&#039;t found a |last= (or alias for authors, |editor-last or alias for editors)&lt;br /&gt;
	local etal=false;			-- return value set to true when we find some form of et al. in an author parameter&lt;br /&gt;
&lt;br /&gt;
	local err_msg_list_name = list_name:match (&amp;quot;(%w+)List&amp;quot;) .. &#039;s list&#039;;		-- modify AuthorList or EditorList for use in error messages if necessary&lt;br /&gt;
	while true do&lt;br /&gt;
		last = select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;redundant_parameters&#039;, i );		-- search through args for name components beginning at 1&lt;br /&gt;
		first = select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		link = select_one( args, cfg.aliases[list_name .. &#039;-Link&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		mask = select_one( args, cfg.aliases[list_name .. &#039;-Mask&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
&lt;br /&gt;
		last, etal = name_has_etal (last, etal, false);							-- find and remove variations on et al.&lt;br /&gt;
		first, etal = name_has_etal (first, etal, false);						-- find and remove variations on et al.&lt;br /&gt;
		last, first= name_checks (last, first, list_name);						-- multiple names, extraneous annotation, etc checks&lt;br /&gt;
		&lt;br /&gt;
		if first and not last then												-- if there is a firstn without a matching lastn&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;first_missing_last&#039;, {err_msg_list_name, i}, true ) } );	-- add this error message&lt;br /&gt;
		elseif not first and not last then										-- if both firstn and lastn aren&#039;t found, are we done?&lt;br /&gt;
			count = count + 1;													-- number of times we haven&#039;t found last and first&lt;br /&gt;
			if 2 &amp;lt;= count then													-- two missing names and we give up&lt;br /&gt;
				break;															-- normal exit or there is a two-name hole in the list; can&#039;t tell which&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- we have last with or without a first&lt;br /&gt;
			link_title_ok (link, list_name:match (&amp;quot;(%w+)List&amp;quot;):lower() .. &#039;-link&#039; .. i, last, list_name:match (&amp;quot;(%w+)List&amp;quot;):lower() .. &#039;-last&#039; .. i);	-- check for improper wikimarkup&lt;br /&gt;
&lt;br /&gt;
			names[n] = {last = last, first = first, link = link, mask = mask, corporate=false};	-- add this name to our names list (corporate for |vauthors= only)&lt;br /&gt;
			n = n + 1;															-- point to next location in the names table&lt;br /&gt;
			if 1 == count then													-- if the previous name was missing&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;missing_name&#039;, {err_msg_list_name, i-1}, true ) } );		-- add this error message&lt;br /&gt;
			end&lt;br /&gt;
			count = 0;															-- reset the counter, we&#039;re looking for two consecutive missing names&lt;br /&gt;
		end&lt;br /&gt;
		i = i + 1;																-- point to next args location&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return names, etal;															-- all done, return our list of names&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ I S O 6 3 9 _ C O D E &amp;gt;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Validates language names provided in |language= parameter if not an ISO639-1 or 639-2 code.&lt;br /&gt;
&lt;br /&gt;
Returns the language name and associated two- or three-character code.  Because case of the source may be incorrect&lt;br /&gt;
or different from the case that WikiMedia uses, the name comparisons are done in lower case and when a match is&lt;br /&gt;
found, the Wikimedia version (assumed to be correct) is returned along with the code.  When there is no match, we&lt;br /&gt;
return the original language name string.&lt;br /&gt;
&lt;br /&gt;
mw.language.fetchLanguageNames(&amp;lt;local wiki language&amp;gt;, &#039;all&#039;) returns a list of languages that in some cases may include&lt;br /&gt;
extensions. For example, code &#039;cbk-zam&#039; and its associated name &#039;Chavacano de Zamboanga&#039; (MediaWiki does not support&lt;br /&gt;
code &#039;cbk&#039; or name &#039;Chavacano&#039;.  Most (all?) of these languages are not used a &#039;language&#039; codes per se, rather they&lt;br /&gt;
are used as sub-domain names: cbk-zam.wikipedia.org.  These names can be found (for the time being) at&lt;br /&gt;
https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/LocalNames/LocalNamesEn.php&lt;br /&gt;
&lt;br /&gt;
Names but that are included in the list will be found if that name is provided in the |language= parameter.  For example,&lt;br /&gt;
if |language=Chavacano de Zamboanga, that name will be found with the associated code &#039;cbk-zam&#039;.  When names are found&lt;br /&gt;
and the associated code is not two or three characters, this function returns only the Wikimedia language name.&lt;br /&gt;
&lt;br /&gt;
Adapted from code taken from Module:Check ISO 639-1.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_iso639_code (lang, this_wiki_code)&lt;br /&gt;
	local remap = {&lt;br /&gt;
		[&#039;bangla&#039;] = {&#039;Bengali&#039;, &#039;bn&#039;},											-- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap&lt;br /&gt;
		[&#039;bengali&#039;] = {&#039;Bengali&#039;, &#039;bn&#039;},										-- MediaWiki doesn&#039;t use exonym so here we provide correct language name and 639-1 code&lt;br /&gt;
		[&#039;bihari&#039;] = {&#039;Bihari&#039;, &#039;bh&#039;},											-- MediaWiki replace &#039;Bihari&#039; with &#039;Bhojpuri&#039; so &#039;Bihari&#039; cannot be found&lt;br /&gt;
		[&#039;bhojpuri&#039;] = {&#039;Bhojpuri&#039;, &#039;bho&#039;},										-- MediaWiki uses &#039;bh&#039; as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	if remap[lang:lower()] then&lt;br /&gt;
		return remap[lang:lower()][1], remap[lang:lower()][2];					-- for this language &#039;name&#039;, return a possibly new name and appropriate code&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local languages = mw.language.fetchLanguageNames(this_wiki_code, &#039;all&#039;)		-- get a list of language names known to Wikimedia&lt;br /&gt;
																				-- (&#039;all&#039; is required for North Ndebele, South Ndebele, and Ojibwa)&lt;br /&gt;
	local langlc = mw.ustring.lower(lang);										-- lower case version for comparisons&lt;br /&gt;
	&lt;br /&gt;
	for code, name in pairs(languages) do										-- scan the list to see if we can find our language&lt;br /&gt;
		if langlc == mw.ustring.lower(name) then&lt;br /&gt;
			if 2 ~= code:len() and 3 ~= code:len() then							-- two- or three-character codes only; extensions not supported&lt;br /&gt;
				return name;													-- so return the name but not the code&lt;br /&gt;
			end&lt;br /&gt;
			return name, code;													-- found it, return name to ensure proper capitalization and the the code&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return lang;																-- not valid language; return language in original case and nil for the code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; L A N G U A G E _ P A R A M E T E R &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Gets language name from a provided two- or three-character ISO 639 code.  If a code is recognized by MediaWiki,&lt;br /&gt;
use the returned name; if not, then use the value that was provided with the language parameter.&lt;br /&gt;
&lt;br /&gt;
When |language= contains a recognized language (either code or name), the page is assigned to the category for&lt;br /&gt;
that code: Category:Norwegian-language sources (no).  For valid three-character code languages, the page is assigned&lt;br /&gt;
to the single category for &#039;639-2&#039; codes: Category:CS1 ISO 639-2 language sources.&lt;br /&gt;
&lt;br /&gt;
Languages that are the same as the local wiki are not categorized.  MediaWiki does not recognize three-character&lt;br /&gt;
equivalents of two-character codes: code &#039;ar&#039; is recognized bit code &#039;ara&#039; is not.&lt;br /&gt;
&lt;br /&gt;
This function supports multiple languages in the form |language=nb, French, th where the language names or codes are&lt;br /&gt;
separated from each other by commas.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function language_parameter (lang)&lt;br /&gt;
	local code;																	-- the two- or three-character language code&lt;br /&gt;
	local name;																	-- the language name&lt;br /&gt;
	local language_list = {};													-- table of language names to be rendered&lt;br /&gt;
	local names_table = {};														-- table made from the value assigned to |language=&lt;br /&gt;
&lt;br /&gt;
	local this_wiki = mw.getContentLanguage();									-- get a language object for this wiki&lt;br /&gt;
	local this_wiki_code = this_wiki:getCode()									-- get this wiki&#039;s language code&lt;br /&gt;
	local this_wiki_name = mw.language.fetchLanguageName(this_wiki_code, this_wiki_code);	-- get this wiki&#039;s language name&lt;br /&gt;
&lt;br /&gt;
	local remap = {&lt;br /&gt;
		[&#039;bh&#039;] = &#039;Bihari&#039;,														-- MediaWiki uses &#039;bh&#039; as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org&lt;br /&gt;
		[&#039;bn&#039;] = &#039;Bengali&#039;,														-- MediaWiki returns Bangla&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	names_table = mw.text.split (lang, &#039;%s*,%s*&#039;);								-- names should be a comma separated list&lt;br /&gt;
&lt;br /&gt;
	for _, lang in ipairs (names_table) do										-- reuse lang&lt;br /&gt;
&lt;br /&gt;
		if lang:match (&#039;^%a%a%-&#039;) then											-- strip ietf language tags from code; TODO: is there a need to support 3-char with tag?&lt;br /&gt;
			lang = lang:match (&#039;(%a%a)%-&#039;)										-- keep only 639-1 code portion to lang; TODO: do something with 3166 alpha 2 country code?&lt;br /&gt;
		end&lt;br /&gt;
		if 2 == lang:len() or 3 == lang:len() then								-- if two-or three-character code&lt;br /&gt;
			name = mw.language.fetchLanguageName( lang:lower(), this_wiki_code);	-- get language name if |language= is a proper code&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		if is_set (name) then													-- if |language= specified a valid code&lt;br /&gt;
			code = lang:lower();												-- save it&lt;br /&gt;
		else&lt;br /&gt;
			name, code = get_iso639_code (lang, this_wiki_code);				-- attempt to get code from name (assign name here so that we are sure of proper capitalization)&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		if is_set (code) then													-- only 2- or 3-character codes&lt;br /&gt;
			name = remap[code] or name;											-- override wikimedia when they misuse language codes/names&lt;br /&gt;
&lt;br /&gt;
			if this_wiki_code ~= code then										-- when the language is not the same as this wiki&#039;s language&lt;br /&gt;
				if 2 == code:len() then											-- and is a two-character code&lt;br /&gt;
					add_prop_cat (&#039;foreign_lang_source&#039; .. code, {name, code})			-- categorize it&lt;br /&gt;
				else															-- or is a recognized language (but has a three-character code)&lt;br /&gt;
					add_prop_cat (&#039;foreign_lang_source_2&#039; .. code, {code})				-- categorize it differently TODO: support mutliple three-character code categories per cs1|2 template&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			add_maint_cat (&#039;unknown_lang&#039;);										-- add maint category if not already added&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		table.insert (language_list, name);&lt;br /&gt;
		name = &#039;&#039;;																-- so we can reuse it&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	code = #language_list														-- reuse code as number of languages in the list&lt;br /&gt;
	if 2 &amp;gt;= code then&lt;br /&gt;
		name = table.concat (language_list, &#039; and &#039;)							-- insert &#039;&amp;lt;space&amp;gt;and&amp;lt;space&amp;gt;&#039; between two language names&lt;br /&gt;
	elseif 2 &amp;lt; code then&lt;br /&gt;
		language_list[code] = &#039;and &#039; .. language_list[code];					-- prepend last name with &#039;and&amp;lt;space&amp;gt;&#039;&lt;br /&gt;
		name = table.concat (language_list, &#039;, &#039;)								-- and concatenate with &#039;&amp;lt;comma&amp;gt;&amp;lt;space&amp;gt;&#039; separators&lt;br /&gt;
	end&lt;br /&gt;
	if this_wiki_name == name then&lt;br /&gt;
		return &#039;&#039;;																-- if one language and that language is this wiki&#039;s return an empty string (no annotation)&lt;br /&gt;
	end&lt;br /&gt;
	return (&amp;quot; &amp;quot; .. wrap_msg (&#039;language&#039;, name));								-- otherwise wrap with &#039;(in ...)&#039;&lt;br /&gt;
	--[[ TODO: should only return blank or name rather than full list&lt;br /&gt;
	so we can clean up the bunched parenthetical elements Language, Type, Format&lt;br /&gt;
	]]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ C S 1 _ S T Y L E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Set style settings for CS1 citation templates. Returns separator and postscript settings&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_cs1_style (ps)&lt;br /&gt;
	if not is_set (ps) then														-- unless explicitely set to something&lt;br /&gt;
		ps = &#039;.&#039;;																-- terminate the rendered citation with a period&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;.&#039;, ps;																-- separator is a full stop&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ C S 2 _ S T Y L E &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Set style settings for CS2 citation templates. Returns separator, postscript, ref settings&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_cs2_style (ps, ref)&lt;br /&gt;
	if not is_set (ps) then														-- if |postscript= has not been set, set cs2 default&lt;br /&gt;
		ps = &#039;&#039;;																-- make sure it isn&#039;t nil&lt;br /&gt;
	end&lt;br /&gt;
	if not is_set (ref) then													-- if |ref= is not set&lt;br /&gt;
		ref = &amp;quot;harv&amp;quot;;															-- set default |ref=harv&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;,&#039;, ps, ref;														-- separator is a comma&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ S E T T I N G S _ F R O M _ C I T E _ C L A S S &amp;gt;----------------------&lt;br /&gt;
&lt;br /&gt;
When |mode= is not set or when its value is invalid, use config.CitationClass and parameter values to establish&lt;br /&gt;
rendered style.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_settings_from_cite_class (ps, ref, cite_class)&lt;br /&gt;
	local sep;&lt;br /&gt;
	if (cite_class == &amp;quot;citation&amp;quot;) then											-- for citation templates (CS2)&lt;br /&gt;
		sep, ps, ref = set_cs2_style (ps, ref);&lt;br /&gt;
	else																		-- not a citation template so CS1&lt;br /&gt;
		sep, ps = set_cs1_style (ps);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return sep, ps, ref															-- return them all&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E T _ S T Y L E &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Establish basic style settings to be used when rendering the citation.  Uses |mode= if set and valid or uses&lt;br /&gt;
config.CitationClass from the template&#039;s #invoke: to establish style.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function set_style (mode, ps, ref, cite_class)&lt;br /&gt;
	local sep;&lt;br /&gt;
	if &#039;cs2&#039; == mode then														-- if this template is to be rendered in CS2 (citation) style&lt;br /&gt;
		sep, ps, ref = set_cs2_style (ps, ref);&lt;br /&gt;
	elseif &#039;cs1&#039; == mode then													-- if this template is to be rendered in CS1 (cite xxx) style&lt;br /&gt;
		sep, ps = set_cs1_style (ps);&lt;br /&gt;
	else																		-- anything but cs1 or cs2&lt;br /&gt;
		sep, ps, ref = get_settings_from_cite_class (ps, ref, cite_class);		-- get settings based on the template&#039;s CitationClass&lt;br /&gt;
	end&lt;br /&gt;
	if &#039;none&#039; == ps:lower() then												-- if assigned value is &#039;none&#039; then&lt;br /&gt;
		ps = &#039;&#039;;																-- set to empty string&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return sep, ps, ref&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; I S _ P D F &amp;gt;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Determines if a url has the file extension that is one of the pdf file extensions used by [[MediaWiki:Common.css]] when&lt;br /&gt;
applying the pdf icon to external links.&lt;br /&gt;
&lt;br /&gt;
returns true if file extension is one of the recognized extensions, else false&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function is_pdf (url)&lt;br /&gt;
	return url:match (&#039;%.pdf$&#039;) or url:match (&#039;%.PDF$&#039;) or url:match (&#039;%.pdf[%?#]&#039;) or url:match (&#039;%.PDF[%?#]&#039;);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S T Y L E _ F O R M A T &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Applies css style to |format=, |chapter-format=, etc.  Also emits an error message if the format parameter does&lt;br /&gt;
not have a matching url parameter.  If the format parameter is not set and the url contains a file extension that&lt;br /&gt;
is recognized as a pdf document by MediaWiki&#039;s commons.css, this code will set the format parameter to (PDF) with&lt;br /&gt;
the appropriate styling.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function style_format (format, url, fmt_param, url_param)&lt;br /&gt;
	if is_set (format) then&lt;br /&gt;
		format = wrap_style (&#039;format&#039;, format);									-- add leading space, parentheses, resize&lt;br /&gt;
		if not is_set (url) then&lt;br /&gt;
			format = format .. set_error( &#039;format_missing_url&#039;, {fmt_param, url_param} );	-- add an error message&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_pdf (url) then													-- format is not set so if url is a pdf file then&lt;br /&gt;
		format = wrap_style (&#039;format&#039;, &#039;PDF&#039;);									-- set format to pdf&lt;br /&gt;
	else&lt;br /&gt;
		format = &#039;&#039;;															-- empty string for concatenation&lt;br /&gt;
	end&lt;br /&gt;
	return format;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ D I S P L A Y _ A U T H O R S _ E D I T O R S &amp;gt;------------------------&lt;br /&gt;
&lt;br /&gt;
Returns a number that defines the number of names displayed for author and editor name lists and a boolean flag&lt;br /&gt;
to indicate when et al. should be appended to the name list.&lt;br /&gt;
&lt;br /&gt;
When the value assigned to |display-xxxxors= is a number greater than or equal to zero, return the number and&lt;br /&gt;
the previous state of the &#039;etal&#039; flag (false by default but may have been set to true if the name list contains&lt;br /&gt;
some variant of the text &#039;et al.&#039;).&lt;br /&gt;
&lt;br /&gt;
When the value assigned to |display-xxxxors= is the keyword &#039;etal&#039;, return a number that is one greater than the&lt;br /&gt;
number of authors in the list and set the &#039;etal&#039; flag true.  This will cause the list_people() to display all of&lt;br /&gt;
the names in the name list followed by &#039;et al.&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases, returns nil and the previous state of the &#039;etal&#039; flag.&lt;br /&gt;
&lt;br /&gt;
inputs:&lt;br /&gt;
	max: A[&#039;DisplayAuthors&#039;] or A[&#039;DisplayEditors&#039;]; a number or some flavor of etal&lt;br /&gt;
	count: #a or #e&lt;br /&gt;
	list_name: &#039;authors&#039; or &#039;editors&#039;&lt;br /&gt;
	etal: author_etal or editor_etal&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_display_authors_editors (max, count, list_name, etal)&lt;br /&gt;
	if is_set (max) then&lt;br /&gt;
		if &#039;etal&#039; == max:lower():gsub(&amp;quot;[ &#039;%.]&amp;quot;, &#039;&#039;) then						-- the :gsub() portion makes &#039;etal&#039; from a variety of &#039;et al.&#039; spellings and stylings&lt;br /&gt;
			max = count + 1;													-- number of authors + 1 so display all author name plus et al.&lt;br /&gt;
			etal = true;														-- overrides value set by extract_names()&lt;br /&gt;
		elseif max:match (&#039;^%d+$&#039;) then											-- if is a string of numbers&lt;br /&gt;
			max = tonumber (max);												-- make it a number&lt;br /&gt;
			if max &amp;gt;= count then												-- if |display-xxxxors= value greater than or equal to number of authors/editors&lt;br /&gt;
				add_maint_cat (&#039;disp_auth_ed&#039;, cfg.special_case_translation [list_name]);&lt;br /&gt;
			end&lt;br /&gt;
		else																	-- not a valid keyword or number&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;invalid_param_val&#039;, {&#039;display-&#039; .. list_name, max}, true ) } );		-- add error message&lt;br /&gt;
			max = nil;															-- unset; as if |display-xxxxors= had not been set&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return max, etal;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X T R A _ T E X T _ I N _ P A G E _ C H E C K &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
Adds page to Category:CS1 maint: extra text if |page= or |pages= has what appears to be some form of p. or pp. &lt;br /&gt;
abbreviation in the first characters of the parameter content.&lt;br /&gt;
&lt;br /&gt;
check Page and Pages for extraneous p, p., pp, and pp. at start of parameter value:&lt;br /&gt;
	good pattern: &#039;^P[^%.P%l]&#039; matches when |page(s)= begins PX or P# but not Px where x and X are letters and # is a dgiit&lt;br /&gt;
	bad pattern: &#039;^[Pp][Pp]&#039; matches matches when |page(s)= begins pp or pP or Pp or PP&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function extra_text_in_page_check (page)&lt;br /&gt;
	local good_pattern = &#039;^P[^%.Pp]&#039;;											-- ok to begin with uppercase P: P7 (pg 7 of section P) but not p123 (page 123) TODO: add Gg for PG or Pg?&lt;br /&gt;
	local bad_pattern = &#039;^[Pp]?[Pp]%.?[ %d]&#039;;&lt;br /&gt;
&lt;br /&gt;
	if not page:match (good_pattern) and (page:match (bad_pattern) or  page:match (&#039;^[Pp]ages?&#039;)) then&lt;br /&gt;
		add_maint_cat (&#039;extra_text&#039;);&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; G E T _ V _ N A M E _ T A B L E &amp;gt;----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
split apart a |vauthors= or |veditors= parameter.  This function allows for corporate names, wrapped in doubled&lt;br /&gt;
parentheses to also have commas; in the old version of the code, the doubled parnetheses were included in the&lt;br /&gt;
rendered citation and in the metadata.  Individual author names may be wikilinked&lt;br /&gt;
&lt;br /&gt;
	|vauthors=Jones AB, [[E. B. White|White EB]], ((Black, Brown, and Co.))&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function get_v_name_table (vparam, output_table, output_link_table)&lt;br /&gt;
	local name_table = mw.text.split(vparam, &amp;quot;%s*,%s*&amp;quot;);						-- names are separated by commas&lt;br /&gt;
	local wl_type, label, link;													-- wl_type not used here; just a place holder&lt;br /&gt;
	&lt;br /&gt;
	local i = 1;&lt;br /&gt;
	&lt;br /&gt;
	while name_table[i] do&lt;br /&gt;
		if name_table[i]:match (&#039;^%(%(.*[^%)][^%)]$&#039;) then						-- first segment of corporate with one or more commas; this segment has the opening doubled parens&lt;br /&gt;
			local name = name_table[i];&lt;br /&gt;
			i=i+1;																-- bump indexer to next segment&lt;br /&gt;
			while name_table[i] do&lt;br /&gt;
				name = name .. &#039;, &#039; .. name_table[i];							-- concatenate with previous segments&lt;br /&gt;
				if name_table[i]:match (&#039;^.*%)%)$&#039;) then						-- if this table member has the closing doubled parens&lt;br /&gt;
					break;														-- and done reassembling so&lt;br /&gt;
				end&lt;br /&gt;
				i=i+1;															-- bump indexer&lt;br /&gt;
			end&lt;br /&gt;
			table.insert (output_table, name);									-- and add corporate name to the output table&lt;br /&gt;
			table.insert (output_link_table, &#039;&#039;);								-- no wikilink&lt;br /&gt;
		else&lt;br /&gt;
			wl_type, label, link = is_wikilink (name_table[i]);					-- wl_type is: 0, no wl (text in label variable); 1, [[D]]; 2, [[L|D]]&lt;br /&gt;
			table.insert (output_table, label);									-- add this name&lt;br /&gt;
			if 1 == wl_type then&lt;br /&gt;
				table.insert (output_link_table, label);						-- simple wikilink [[D]]&lt;br /&gt;
			else&lt;br /&gt;
				table.insert (output_link_table, link);							-- no wikilink or [[L|D]]; add this link if there is one, else empty string&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		i = i+1;&lt;br /&gt;
	end	&lt;br /&gt;
	return output_table;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P A R S E _ V A U T H O R S _ V E D I T O R S &amp;gt;--------------------------------&lt;br /&gt;
&lt;br /&gt;
This function extracts author / editor names from |vauthors= or |veditors= and finds matching |xxxxor-maskn= and&lt;br /&gt;
|xxxxor-linkn= in args.  It then returns a table of assembled names just as extract_names() does.&lt;br /&gt;
&lt;br /&gt;
Author / editor names in |vauthors= or |veditors= must be in Vancouver system style. Corporate or institutional names&lt;br /&gt;
may sometimes be required and because such names will often fail the is_good_vanc_name() and other format compliance&lt;br /&gt;
tests, are wrapped in doubled paranethese ((corporate name)) to suppress the format tests.&lt;br /&gt;
&lt;br /&gt;
Supports generational suffixes Jr, 2nd, 3rd, 4th–6th.&lt;br /&gt;
&lt;br /&gt;
This function sets the vancouver error when a reqired comma is missing and when there is a space between an author&#039;s initials.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function parse_vauthors_veditors (args, vparam, list_name)&lt;br /&gt;
	local names = {};															-- table of names assembled from |vauthors=, |author-maskn=, |author-linkn=&lt;br /&gt;
	local v_name_table = {};&lt;br /&gt;
	local v_link_table = {};													-- when name is wikilinked, targets go in this table&lt;br /&gt;
	local etal = false;															-- return value set to true when we find some form of et al. vauthors parameter&lt;br /&gt;
	local last, first, link, mask, suffix;&lt;br /&gt;
	local corporate = false;&lt;br /&gt;
&lt;br /&gt;
	vparam, etal = name_has_etal (vparam, etal, true);							-- find and remove variations on et al. do not categorize (do it here because et al. might have a period)&lt;br /&gt;
	v_name_table = get_v_name_table (vparam, v_name_table, v_link_table);						-- names are separated by commas&lt;br /&gt;
&lt;br /&gt;
	for i, v_name in ipairs(v_name_table) do&lt;br /&gt;
		if v_name:match (&#039;^%(%(.+%)%)$&#039;) then									-- corporate authors are wrapped in doubled parentheses to supress vanc formatting and error detection&lt;br /&gt;
			first = &#039;&#039;;															-- set to empty string for concatenation and because it may have been set for previous author/editor&lt;br /&gt;
			last = v_name:match (&#039;^%(%((.+)%)%)$&#039;)								-- remove doubled parntheses&lt;br /&gt;
			corporate = true;													-- flag used in list_people()&lt;br /&gt;
		elseif string.find(v_name, &amp;quot;%s&amp;quot;) then&lt;br /&gt;
			if v_name:find(&#039;[;%.]&#039;) then										-- look for commonly occurring punctuation characters; &lt;br /&gt;
				add_vanc_error (&#039;punctuation&#039;);&lt;br /&gt;
			end&lt;br /&gt;
			local lastfirstTable = {}&lt;br /&gt;
			lastfirstTable = mw.text.split(v_name, &amp;quot;%s&amp;quot;)&lt;br /&gt;
			first = table.remove(lastfirstTable);								-- removes and returns value of last element in table which should be author intials&lt;br /&gt;
			if is_suffix (first) then											-- if a valid suffix&lt;br /&gt;
				suffix = first													-- save it as a suffix and&lt;br /&gt;
				first = table.remove(lastfirstTable);							-- get what should be the initials from the table&lt;br /&gt;
			end																	-- no suffix error message here because letter combination may be result of Romanization; check for digits?&lt;br /&gt;
			last = table.concat(lastfirstTable, &amp;quot; &amp;quot;)							-- returns a string that is the concatenation of all other names that are not initials&lt;br /&gt;
			if mw.ustring.match (last, &#039;%a+%s+%u+%s+%a+&#039;) then&lt;br /&gt;
				add_vanc_error (&#039;missing comma&#039;);								-- matches last II last; the case when a comma is missing&lt;br /&gt;
			end&lt;br /&gt;
			if mw.ustring.match (v_name, &#039; %u %u$&#039;) then						-- this test is in the wrong place TODO: move or replace with a more appropriate test&lt;br /&gt;
				add_vanc_error (&#039;name&#039;);										-- matches a space between two intiials&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			first = &#039;&#039;;															-- set to empty string for concatenation and because it may have been set for previous author/editor&lt;br /&gt;
			last = v_name;														-- last name or single corporate name?  Doesn&#039;t support multiword corporate names? do we need this?&lt;br /&gt;
		end&lt;br /&gt;
																&lt;br /&gt;
		if is_set (first) then&lt;br /&gt;
			if not mw.ustring.match (first, &amp;quot;^%u?%u$&amp;quot;) then						-- first shall contain one or two upper-case letters, nothing else&lt;br /&gt;
				add_vanc_error (&#039;initials&#039;);									-- too many initials; mixed case initials (which may be ok Romanization); hyphenated initials&lt;br /&gt;
			end&lt;br /&gt;
			is_good_vanc_name (last, first);									-- check first and last before restoring the suffix which may have a non-Latin digit&lt;br /&gt;
			if is_set (suffix) then&lt;br /&gt;
				first = first .. &#039; &#039; .. suffix;									-- if there was a suffix concatenate with the initials&lt;br /&gt;
				suffix = &#039;&#039;;													-- unset so we don&#039;t add this suffix to all subsequent names&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if not corporate then&lt;br /&gt;
				is_good_vanc_name (last, &#039;&#039;);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		link = select_one( args, cfg.aliases[list_name .. &#039;-Link&#039;], &#039;redundant_parameters&#039;, i ) or v_link_table[i];&lt;br /&gt;
		mask = select_one( args, cfg.aliases[list_name .. &#039;-Mask&#039;], &#039;redundant_parameters&#039;, i );&lt;br /&gt;
		names[i] = {last = last, first = first, link = link, mask = mask, corporate=corporate};		-- add this assembled name to our names list&lt;br /&gt;
	end&lt;br /&gt;
	return names, etal;															-- all done, return our list of names&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S E L E C T _ A U T H O R _ E D I T O R _ S O U R C E &amp;gt;------------------------&lt;br /&gt;
&lt;br /&gt;
Select one of |authors=, |authorn= / |lastn / firstn=, or |vauthors= as the source of the author name list or&lt;br /&gt;
select one of |editors=, |editorn= / editor-lastn= / |editor-firstn= or |veditors= as the source of the editor name list.&lt;br /&gt;
&lt;br /&gt;
Only one of these appropriate three will be used.  The hierarchy is: |authorn= (and aliases) highest and |authors= lowest and&lt;br /&gt;
similarly, |editorn= (and aliases) highest and |editors= lowest&lt;br /&gt;
&lt;br /&gt;
When looking for |authorn= / |editorn= parameters, test |xxxxor1= and |xxxxor2= (and all of their aliases); stops after the second&lt;br /&gt;
test which mimicks the test used in extract_names() when looking for a hole in the author name list.  There may be a better&lt;br /&gt;
way to do this, I just haven&#039;t discovered what that way is.&lt;br /&gt;
&lt;br /&gt;
Emits an error message when more than one xxxxor name source is provided.&lt;br /&gt;
&lt;br /&gt;
In this function, vxxxxors = vauthors or veditors; xxxxors = authors or editors as appropriate.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function select_author_editor_source (vxxxxors, xxxxors, args, list_name)&lt;br /&gt;
local lastfirst = false;&lt;br /&gt;
	if select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;none&#039;, 1 ) or		-- do this twice incase we have a |first1= without a |last1=; this ...&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;none&#039;, 1 ) or	-- ... also catches the case where |first= is used with |vauthors=&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-Last&#039;], &#039;none&#039;, 2 ) or&lt;br /&gt;
		select_one( args, cfg.aliases[list_name .. &#039;-First&#039;], &#039;none&#039;, 2 ) then&lt;br /&gt;
			lastfirst=true;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (is_set (vxxxxors) and true == lastfirst) or								-- these are the three error conditions&lt;br /&gt;
		(is_set (vxxxxors) and is_set (xxxxors)) or&lt;br /&gt;
		(true == lastfirst and is_set (xxxxors)) then&lt;br /&gt;
			local err_name;&lt;br /&gt;
			if &#039;AuthorList&#039; == list_name then									-- figure out which name should be used in error message&lt;br /&gt;
				err_name = &#039;author&#039;;&lt;br /&gt;
			else&lt;br /&gt;
				err_name = &#039;editor&#039;;&lt;br /&gt;
			end&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;,&lt;br /&gt;
				{err_name .. &#039;-name-list parameters&#039;}, true ) } );				-- add error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if true == lastfirst then return 1 end;										-- return a number indicating which author name source to use&lt;br /&gt;
	if is_set (vxxxxors) then return 2 end;&lt;br /&gt;
	if is_set (xxxxors) then return 3 end;&lt;br /&gt;
	return 1;																	-- no authors so return 1; this allows missing author name test to run in case there is a first without last &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S _ V A L I D _ P A R A M E T E R _ V A L U E &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
This function is used to validate a parameter&#039;s assigned value for those parameters that have only a limited number&lt;br /&gt;
of allowable values (yes, y, true, no, etc).  When the parameter value has not been assigned a value (missing or empty&lt;br /&gt;
in the source template) the function returns true.  If the parameter value is one of the list of allowed values returns&lt;br /&gt;
true; else, emits an error message and returns false.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function is_valid_parameter_value (value, name, possible)&lt;br /&gt;
	if not is_set (value) then&lt;br /&gt;
		return true;															-- an empty parameter is ok&lt;br /&gt;
	elseif in_array(value:lower(), possible) then&lt;br /&gt;
		return true;&lt;br /&gt;
	else&lt;br /&gt;
		table.insert( z.message_tail, { set_error( &#039;invalid_param_val&#039;, {name, value}, true ) } );	-- not an allowed value so add error message&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; T E R M I N A T E _ N A M E _ L I S T &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
This function terminates a name list (author, contributor, editor) with a separator character (sepc) and a space&lt;br /&gt;
when the last character is not a sepc character or when the last three characters are not sepc followed by two&lt;br /&gt;
closing square brackets (close of a wikilink).  When either of these is true, the name_list is terminated with a&lt;br /&gt;
single space character.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function terminate_name_list (name_list, sepc)&lt;br /&gt;
	if (string.sub (name_list,-3,-1) == sepc .. &#039;. &#039;) then						-- if already properly terminated&lt;br /&gt;
		return name_list;														-- just return the name list&lt;br /&gt;
	elseif (string.sub (name_list,-1,-1) == sepc) or (string.sub (name_list,-3,-1) == sepc .. &#039;]]&#039;) then	-- if last name in list ends with sepc char&lt;br /&gt;
		return name_list .. &amp;quot; &amp;quot;;												-- don&#039;t add another&lt;br /&gt;
	else&lt;br /&gt;
		return name_list .. sepc .. &#039; &#039;;										-- otherwise terninate the name list&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; F O R M A T _ V O L U M E _ I S S U E &amp;gt;----------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns the concatenation of the formatted volume and issue parameters as a single string; or formatted volume&lt;br /&gt;
or formatted issue, or an empty string if neither are set.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
	&lt;br /&gt;
local function format_volume_issue (volume, issue, cite_class, origin, sepc, lower)&lt;br /&gt;
	if not is_set (volume) and not is_set (issue) then&lt;br /&gt;
		return &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if &#039;magazine&#039; == cite_class or (in_array (cite_class, {&#039;citation&#039;, &#039;map&#039;}) and &#039;magazine&#039; == origin) then&lt;br /&gt;
		if is_set (volume) and is_set (issue) then&lt;br /&gt;
			return wrap_msg (&#039;vol-no&#039;, {sepc, volume, issue}, lower);&lt;br /&gt;
		elseif is_set (volume) then&lt;br /&gt;
			return wrap_msg (&#039;vol&#039;, {sepc, volume}, lower);&lt;br /&gt;
		else&lt;br /&gt;
			return wrap_msg (&#039;issue&#039;, {sepc, issue}, lower);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local vol = &#039;&#039;;&lt;br /&gt;
		&lt;br /&gt;
	if is_set (volume) then&lt;br /&gt;
		if (4 &amp;lt; mw.ustring.len(volume)) then&lt;br /&gt;
			vol = substitute (cfg.messages[&#039;j-vol&#039;], {sepc, volume});&lt;br /&gt;
		else&lt;br /&gt;
			vol = substitute (cfg.presentation[&#039;vol-bold&#039;], {sepc, hyphen_to_dash(volume)});&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (issue) then&lt;br /&gt;
		return vol .. substitute (cfg.messages[&#039;j-issue&#039;], issue);&lt;br /&gt;
	end&lt;br /&gt;
	return vol;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[-------------------------&amp;lt; F O R M A T _ P A G E S _ S H E E T S &amp;gt;-----------------------------------------&lt;br /&gt;
&lt;br /&gt;
adds static text to one of |page(s)= or |sheet(s)= values and returns it with all of the others set to empty strings.&lt;br /&gt;
The return order is:&lt;br /&gt;
	page, pages, sheet, sheets&lt;br /&gt;
&lt;br /&gt;
Singular has priority over plural when both are provided.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function format_pages_sheets (page, pages, sheet, sheets, cite_class, origin, sepc, nopp, lower)&lt;br /&gt;
	if &#039;map&#039; == cite_class then													-- only cite map supports sheet(s) as in-source locators&lt;br /&gt;
		if is_set (sheet) then&lt;br /&gt;
			if &#039;journal&#039; == origin then&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, wrap_msg (&#039;j-sheet&#039;, sheet, lower), &#039;&#039;;&lt;br /&gt;
			else&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, wrap_msg (&#039;sheet&#039;, {sepc, sheet}, lower), &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set (sheets) then&lt;br /&gt;
			if &#039;journal&#039; == origin then&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, &#039;&#039;, wrap_msg (&#039;j-sheets&#039;, sheets, lower);&lt;br /&gt;
			else&lt;br /&gt;
				return &#039;&#039;, &#039;&#039;, &#039;&#039;, wrap_msg (&#039;sheets&#039;, {sepc, sheets}, lower);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local is_journal = &#039;journal&#039; == cite_class or (in_array (cite_class, {&#039;citation&#039;, &#039;map&#039;}) and &#039;journal&#039; == origin);&lt;br /&gt;
	&lt;br /&gt;
	if is_set (page) then&lt;br /&gt;
		if is_journal then&lt;br /&gt;
			return substitute (cfg.messages[&#039;j-page(s)&#039;], page), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif not nopp then&lt;br /&gt;
			return substitute (cfg.messages[&#039;p-prefix&#039;], {sepc, page}), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return substitute (cfg.messages[&#039;nopp&#039;], {sepc, page}), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set(pages) then&lt;br /&gt;
		if is_journal then&lt;br /&gt;
			return substitute (cfg.messages[&#039;j-page(s)&#039;], pages), &#039;&#039;, &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif tonumber(pages) ~= nil and not nopp then										-- if pages is only digits, assume a single page number&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;p-prefix&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		elseif not nopp then&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;pp-prefix&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return &#039;&#039;, substitute (cfg.messages[&#039;nopp&#039;], {sepc, pages}), &#039;&#039;, &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return &#039;&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;;														-- return empty strings&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; A R C H I V E _ U R L _ C H E C K &amp;gt;--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Check archive.org urls to make sure they at least look like they are pointing at valid archives and not to the &lt;br /&gt;
save snapshot url or to calendar pages.  When the archive url is &#039;https://web.archive.org/save/&#039; (or http://...)&lt;br /&gt;
archive.org saves a snapshot of the target page in the url.  That is something that Wikipedia should not allow&lt;br /&gt;
unwitting readers to do.&lt;br /&gt;
&lt;br /&gt;
When the archive.org url does not have a complete timestamp, archive.org chooses a snapshot according to its own&lt;br /&gt;
algorithm or provides a calendar &#039;search&#039; result.  [[WP:ELNO]] discourages links to search results.&lt;br /&gt;
&lt;br /&gt;
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and&lt;br /&gt;
|archive-date= and an error message when:&lt;br /&gt;
	|archive-url= holds an archive.org save command url&lt;br /&gt;
	|archive-url= is an archive.org url that does not have a complete timestamp (YYYYMMDDhhmmss 14 digits) in the&lt;br /&gt;
		correct place&lt;br /&gt;
otherwise returns |archive-url= and |archive-date=&lt;br /&gt;
&lt;br /&gt;
There are two mostly compatible archive.org urls:&lt;br /&gt;
	//web.archive.org/&amp;lt;timestamp&amp;gt;...		-- the old form&lt;br /&gt;
	//web.archive.org/web/&amp;lt;timestamp&amp;gt;...	-- the new form&lt;br /&gt;
&lt;br /&gt;
The old form does not support or map to the new form when it contains a display flag.  There are four identified flags&lt;br /&gt;
(&#039;id_&#039;, &#039;js_&#039;, &#039;cs_&#039;, &#039;im_&#039;) but since archive.org ignores others following the same form (two letters and an underscore)&lt;br /&gt;
we don&#039;t check for these specific flags but we do check the form.&lt;br /&gt;
&lt;br /&gt;
This function supports a preview mode.  When the article is rendered in preview mode, this funct may return a modified&lt;br /&gt;
archive url:&lt;br /&gt;
	for save command errors, return undated wildcard (/*/)&lt;br /&gt;
	for timestamp errors when the timestamp has a wildcard, return the url unmodified&lt;br /&gt;
	for timestamp errors when the timestamp does not have a wildcard, return with timestamp limited to six digits plus wildcard (/yyyymm*/)&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local function archive_url_check (url, date)&lt;br /&gt;
	local err_msg = &#039;&#039;;															-- start with the error message empty&lt;br /&gt;
	local path, timestamp, flag;												-- portions of the archive.or url&lt;br /&gt;
	&lt;br /&gt;
	if (not url:match(&#039;//web%.archive%.org/&#039;)) and (not url:match(&#039;//liveweb%.archive%.org/&#039;)) then		-- also deprecated liveweb Wayback machine url&lt;br /&gt;
		return url, date;														-- not an archive.org archive, return ArchiveURL and ArchiveDate&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if url:match(&#039;//web%.archive%.org/save/&#039;) then								-- if a save command url, we don&#039;t want to allow saving of the target page &lt;br /&gt;
		err_msg = &#039;save command&#039;;&lt;br /&gt;
		url = url:gsub (&#039;(//web%.archive%.org)/save/&#039;, &#039;%1/*/&#039;, 1);				-- for preview mode: modify ArchiveURL&lt;br /&gt;
	elseif url:match(&#039;//liveweb%.archive%.org/&#039;) then&lt;br /&gt;
		err_msg = &#039;liveweb&#039;;&lt;br /&gt;
	else&lt;br /&gt;
		path, timestamp, flag = url:match(&#039;//web%.archive%.org/([^%d]*)(%d+)([^/]*)/&#039;);		-- split out some of the url parts for evaluation&lt;br /&gt;
		&lt;br /&gt;
		if not is_set(timestamp) or 14 ~= timestamp:len() then					-- path and flag optional, must have 14-digit timestamp here&lt;br /&gt;
			err_msg = &#039;timestamp&#039;;&lt;br /&gt;
			if &#039;*&#039; ~= flag then&lt;br /&gt;
				url=url:gsub (&#039;(//web%.archive%.org/[^%d]*%d?%d?%d?%d?%d?%d?)[^/]*&#039;, &#039;%1*&#039;, 1)	-- for preview, modify ts to be yearmo* max (0-6 digits plus splat)&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set(path) and &#039;web/&#039; ~= path then								-- older archive urls do not have the extra &#039;web/&#039; path element&lt;br /&gt;
			err_msg = &#039;path&#039;;&lt;br /&gt;
		elseif is_set (flag) and not is_set (path) then							-- flag not allowed with the old form url (without the &#039;web/&#039; path element)&lt;br /&gt;
			err_msg = &#039;flag&#039;;&lt;br /&gt;
		elseif is_set (flag) and not flag:match (&#039;%a%a_&#039;) then					-- flag if present must be two alpha characters and underscore (requires &#039;web/&#039; path element)&lt;br /&gt;
			err_msg = &#039;flag&#039;;&lt;br /&gt;
		else&lt;br /&gt;
			return url, date;													-- return archiveURL and ArchiveDate&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
																				-- if here, something not right so&lt;br /&gt;
	table.insert( z.message_tail, { set_error( &#039;archive_url&#039;, {err_msg}, true ) } );	-- add error message and&lt;br /&gt;
	if is_set (Frame:preprocess(&#039;{{REVISIONID}}&#039;)) then&lt;br /&gt;
		return &#039;&#039;, &#039;&#039;;															-- return empty strings for archiveURL and ArchiveDate&lt;br /&gt;
	else&lt;br /&gt;
		return url, date;														-- preview mode so return archiveURL and ArchiveDate&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; M I S S I N G _ P I P E _ C H E C K &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Look at the contents of a parameter. If the content has a string of characters and digits followed by an equal&lt;br /&gt;
sign, compare the alphanumeric string to the list of cs1|2 parameters.  If found, then the string is possibly a&lt;br /&gt;
parameter that is missing its pipe:&lt;br /&gt;
	{{cite ... |title=Title access-date=2016-03-17}}&lt;br /&gt;
&lt;br /&gt;
cs1|2 shares some parameter names with xml/html atributes: class=, title=, etc.  To prevent false positives xml/html&lt;br /&gt;
tags are removed before the search.&lt;br /&gt;
&lt;br /&gt;
If a missing pipe is detected, this function adds the missing pipe maintenance category.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function missing_pipe_check (value)&lt;br /&gt;
	local capture;&lt;br /&gt;
	value = value:gsub (&#039;%b&amp;lt;&amp;gt;&#039;, &#039;&#039;);											-- remove xml/html tags because attributes: class=, title=, etc &lt;br /&gt;
&lt;br /&gt;
	capture = value:match (&#039;%s+(%a[%a%d]+)%s*=&#039;) or value:match (&#039;^(%a[%a%d]+)%s*=&#039;);	-- find and categorize parameters with possible missing pipes&lt;br /&gt;
	if capture and validate (capture) then								-- if the capture is a valid parameter name&lt;br /&gt;
		add_maint_cat (&#039;missing_pipe&#039;);&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C I T A T I O N 0 &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This is the main function doing the majority of the citation formatting.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function citation0( config, args)&lt;br /&gt;
	--[[ &lt;br /&gt;
	Load Input Parameters&lt;br /&gt;
	The argument_wrapper facilitates the mapping of multiple aliases to single internal variable.&lt;br /&gt;
	]]&lt;br /&gt;
	local A = argument_wrapper( args );&lt;br /&gt;
	local i &lt;br /&gt;
&lt;br /&gt;
	-- Pick out the relevant fields from the arguments.  Different citation templates&lt;br /&gt;
	-- define different field names for the same underlying things.	&lt;br /&gt;
&lt;br /&gt;
-- set default parameter values defined by |mode= parameter.&lt;br /&gt;
	local Mode = A[&#039;Mode&#039;];&lt;br /&gt;
	if not is_valid_parameter_value (Mode, &#039;mode&#039;, cfg.keywords[&#039;mode&#039;]) then&lt;br /&gt;
		Mode = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local author_etal;&lt;br /&gt;
	local a	= {};																-- authors list from |lastn= / |firstn= pairs or |vauthors=&lt;br /&gt;
	local Authors;&lt;br /&gt;
	local NameListFormat = A[&#039;NameListFormat&#039;];&lt;br /&gt;
	local Collaboration = A[&#039;Collaboration&#039;];&lt;br /&gt;
&lt;br /&gt;
	do																			-- to limit scope of selected&lt;br /&gt;
		local selected = select_author_editor_source (A[&#039;Vauthors&#039;], A[&#039;Authors&#039;], args, &#039;AuthorList&#039;);&lt;br /&gt;
		if 1 == selected then&lt;br /&gt;
			a, author_etal = extract_names (args, &#039;AuthorList&#039;);				-- fetch author list from |authorn= / |lastn= / |firstn=, |author-linkn=, and |author-maskn=&lt;br /&gt;
		elseif 2 == selected then&lt;br /&gt;
			NameListFormat = &#039;vanc&#039;;											-- override whatever |name-list-format= might be&lt;br /&gt;
			a, author_etal = parse_vauthors_veditors (args, args.vauthors, &#039;AuthorList&#039;);	-- fetch author list from |vauthors=, |author-linkn=, and |author-maskn=&lt;br /&gt;
		elseif 3 == selected then&lt;br /&gt;
			Authors = A[&#039;Authors&#039;];												-- use content of |authors=&lt;br /&gt;
			if &#039;authors&#039; == A:ORIGIN(&#039;Authors&#039;) then							-- but add a maint cat if the parameter is |authors=&lt;br /&gt;
				add_maint_cat (&#039;authors&#039;);										-- because use of this parameter is discouraged; what to do about the aliases is a TODO:&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (Collaboration) then&lt;br /&gt;
			author_etal = true;													-- so that |display-authors=etal not required&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Others = A[&#039;Others&#039;];&lt;br /&gt;
&lt;br /&gt;
	local editor_etal;&lt;br /&gt;
	local e	= {};																-- editors list from |editor-lastn= / |editor-firstn= pairs or |veditors=&lt;br /&gt;
	local Editors;&lt;br /&gt;
&lt;br /&gt;
	do																			-- to limit scope of selected&lt;br /&gt;
		local selected = select_author_editor_source (A[&#039;Veditors&#039;], A[&#039;Editors&#039;], args, &#039;EditorList&#039;);&lt;br /&gt;
		if 1 == selected then&lt;br /&gt;
			e, editor_etal = extract_names (args, &#039;EditorList&#039;);				-- fetch editor list from |editorn= / |editor-lastn= / |editor-firstn=, |editor-linkn=, and |editor-maskn=&lt;br /&gt;
		elseif 2 == selected then&lt;br /&gt;
			NameListFormat = &#039;vanc&#039;;											-- override whatever |name-list-format= might be&lt;br /&gt;
			e, editor_etal = parse_vauthors_veditors (args, args.veditors, &#039;EditorList&#039;);	-- fetch editor list from |veditors=, |editor-linkn=, and |editor-maskn=&lt;br /&gt;
		elseif 3 == selected then&lt;br /&gt;
			Editors = A[&#039;Editors&#039;];												-- use content of |editors=&lt;br /&gt;
			add_maint_cat (&#039;editors&#039;);											-- but add a maint cat because use of this parameter is discouraged&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local t = {};																-- translators list from |translator-lastn= / translator-firstn= pairs&lt;br /&gt;
	local Translators;															-- assembled translators name list&lt;br /&gt;
	t = extract_names (args, &#039;TranslatorList&#039;);									-- fetch translator list from |translatorn= / |translator-lastn=, -firstn=, -linkn=, -maskn=&lt;br /&gt;
&lt;br /&gt;
	local interviewers_list = {};&lt;br /&gt;
	local Interviewers = A[&#039;Interviewers&#039;]&lt;br /&gt;
	if is_set (Interviewers) then												-- add a maint cat if the |interviewers= is used&lt;br /&gt;
		add_maint_cat (&#039;interviewers&#039;);											-- because use of this parameter is discouraged&lt;br /&gt;
	else&lt;br /&gt;
		interviewers_list = extract_names (args, &#039;InterviewerList&#039;);			-- else, process preferred interviewers parameters&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local c = {};																-- contributors list from |contributor-lastn= / contributor-firstn= pairs&lt;br /&gt;
	local Contributors;															-- assembled contributors name list&lt;br /&gt;
	local Contribution = A[&#039;Contribution&#039;];&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;book&amp;quot;,&amp;quot;citation&amp;quot;}) and not is_set(A[&#039;Periodical&#039;]) then	-- |contributor= and |contribution= only supported in book cites&lt;br /&gt;
		c = extract_names (args, &#039;ContributorList&#039;);							-- fetch contributor list from |contributorn= / |contributor-lastn=, -firstn=, -linkn=, -maskn=&lt;br /&gt;
		&lt;br /&gt;
		if 0 &amp;lt; #c then&lt;br /&gt;
			if not is_set (Contribution) then									-- |contributor= requires |contribution=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;contributor_missing_required_param&#039;, &#039;contribution&#039;)});	-- add missing contribution error message&lt;br /&gt;
				c = {};															-- blank the contributors&#039; table; it is used as a flag later&lt;br /&gt;
			end&lt;br /&gt;
			if 0 == #a then														-- |contributor= requires |author=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;contributor_missing_required_param&#039;, &#039;author&#039;)});	-- add missing author error message&lt;br /&gt;
				c = {};															-- blank the contributors&#039; table; it is used as a flag later&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else																		-- if not a book cite&lt;br /&gt;
		if select_one (args, cfg.aliases[&#039;ContributorList-Last&#039;], &#039;redundant_parameters&#039;, 1 ) then	-- are there contributor name list parameters?&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;contributor_ignored&#039;)});	-- add contributor ignored error message&lt;br /&gt;
		end&lt;br /&gt;
		Contribution = nil;														-- unset&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_valid_parameter_value (NameListFormat, &#039;name-list-format&#039;, cfg.keywords[&#039;name-list-format&#039;]) then			-- only accepted value for this parameter is &#039;vanc&#039;&lt;br /&gt;
		NameListFormat = &#039;&#039;;													-- anything else, set to empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Year = A[&#039;Year&#039;];&lt;br /&gt;
	local PublicationDate = A[&#039;PublicationDate&#039;];&lt;br /&gt;
	local OrigYear = A[&#039;OrigYear&#039;];&lt;br /&gt;
	local Date = A[&#039;Date&#039;];&lt;br /&gt;
	local LayDate = A[&#039;LayDate&#039;];&lt;br /&gt;
	------------------------------------------------- Get title data&lt;br /&gt;
	local Title = A[&#039;Title&#039;];&lt;br /&gt;
	local ScriptTitle = A[&#039;ScriptTitle&#039;];&lt;br /&gt;
	local BookTitle = A[&#039;BookTitle&#039;];&lt;br /&gt;
	local Conference = A[&#039;Conference&#039;];&lt;br /&gt;
	local TransTitle = A[&#039;TransTitle&#039;];&lt;br /&gt;
	local TitleNote = A[&#039;TitleNote&#039;];&lt;br /&gt;
	local TitleLink = A[&#039;TitleLink&#039;];&lt;br /&gt;
			link_title_ok (TitleLink, A:ORIGIN (&#039;TitleLink&#039;), Title, &#039;title&#039;);	-- check for wikimarkup in |title-link= or wikimarkup in |title= when |title-link= is set&lt;br /&gt;
&lt;br /&gt;
	local Chapter = A[&#039;Chapter&#039;];&lt;br /&gt;
	local ScriptChapter = A[&#039;ScriptChapter&#039;];&lt;br /&gt;
	local ChapterLink	-- = A[&#039;ChapterLink&#039;];									-- deprecated as a parameter but still used internally by cite episode&lt;br /&gt;
	local TransChapter = A[&#039;TransChapter&#039;];&lt;br /&gt;
	local TitleType = A[&#039;TitleType&#039;];&lt;br /&gt;
	local Degree = A[&#039;Degree&#039;];&lt;br /&gt;
	local Docket = A[&#039;Docket&#039;];&lt;br /&gt;
	local ArchiveFormat = A[&#039;ArchiveFormat&#039;];&lt;br /&gt;
&lt;br /&gt;
	local ArchiveDate;&lt;br /&gt;
	local ArchiveURL;&lt;br /&gt;
&lt;br /&gt;
	ArchiveURL, ArchiveDate = archive_url_check (A[&#039;ArchiveURL&#039;], A[&#039;ArchiveDate&#039;])&lt;br /&gt;
	&lt;br /&gt;
	local DeadURL = A[&#039;DeadURL&#039;]&lt;br /&gt;
		if not is_valid_parameter_value (DeadURL, &#039;dead-url&#039;, cfg.keywords [&#039;deadurl&#039;]) then	-- set in config.defaults to &#039;yes&#039;&lt;br /&gt;
			DeadURL = &#039;&#039;;														-- anything else, set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local URL = A[&#039;URL&#039;]&lt;br /&gt;
	local URLorigin = A:ORIGIN(&#039;URL&#039;);											-- get name of parameter that holds URL&lt;br /&gt;
	local ChapterURL = A[&#039;ChapterURL&#039;];&lt;br /&gt;
	local ChapterURLorigin = A:ORIGIN(&#039;ChapterURL&#039;);							-- get name of parameter that holds ChapterURL&lt;br /&gt;
	local ConferenceFormat = A[&#039;ConferenceFormat&#039;];&lt;br /&gt;
	local ConferenceURL = A[&#039;ConferenceURL&#039;];&lt;br /&gt;
	local ConferenceURLorigin = A:ORIGIN(&#039;ConferenceURL&#039;);						-- get name of parameter that holds ConferenceURL&lt;br /&gt;
	local Periodical = A[&#039;Periodical&#039;];&lt;br /&gt;
	local Periodical_origin = A:ORIGIN(&#039;Periodical&#039;);							-- get the name of the periodical parameter&lt;br /&gt;
&lt;br /&gt;
	local Series = A[&#039;Series&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local Volume;&lt;br /&gt;
	local Issue;&lt;br /&gt;
	local Page;&lt;br /&gt;
	local Pages;&lt;br /&gt;
	local At;&lt;br /&gt;
&lt;br /&gt;
	if in_array (config.CitationClass, cfg.templates_using_volume) then&lt;br /&gt;
		Volume = A[&#039;Volume&#039;];&lt;br /&gt;
	end&lt;br /&gt;
																				-- conference &amp;amp; map books do not support issue&lt;br /&gt;
	if in_array (config.CitationClass, cfg.templates_using_issue) and not (in_array (config.CitationClass, {&#039;conference&#039;, &#039;map&#039;}) and not is_set (Periodical))then&lt;br /&gt;
		Issue = A[&#039;Issue&#039;];&lt;br /&gt;
	end&lt;br /&gt;
	local Position = &#039;&#039;;&lt;br /&gt;
	if not in_array (config.CitationClass, cfg.templates_not_using_page) then&lt;br /&gt;
		Page = A[&#039;Page&#039;];&lt;br /&gt;
		Pages = hyphen_to_dash( A[&#039;Pages&#039;] );	&lt;br /&gt;
		At = A[&#039;At&#039;];&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Edition = A[&#039;Edition&#039;];&lt;br /&gt;
	local PublicationPlace = A[&#039;PublicationPlace&#039;]&lt;br /&gt;
	local Place = A[&#039;Place&#039;];&lt;br /&gt;
	&lt;br /&gt;
	local PublisherName = A[&#039;PublisherName&#039;];&lt;br /&gt;
	local RegistrationRequired = A[&#039;RegistrationRequired&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (RegistrationRequired, &#039;registration&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			RegistrationRequired=nil;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local SubscriptionRequired = A[&#039;SubscriptionRequired&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (SubscriptionRequired, &#039;subscription&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			SubscriptionRequired=nil;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local UrlAccess = A[&#039;UrlAccess&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (UrlAccess, &#039;url-access&#039;, cfg.keywords [&#039;url-access&#039;]) then&lt;br /&gt;
			UrlAccess = nil;&lt;br /&gt;
		end&lt;br /&gt;
		if not is_set(URL) and is_set(UrlAccess) then&lt;br /&gt;
			UrlAccess = nil;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;param_access_requires_param&#039;, {&#039;url&#039;}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_set (UrlAccess) and is_set (SubscriptionRequired) then			-- while not aliases, these are much the same so if both are set&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;url-access&#039;) .. &#039; and &#039; .. wrap_style (&#039;parameter&#039;, &#039;subscription&#039;)}, true ) } );		-- add error message&lt;br /&gt;
			SubscriptionRequired = nil;											-- unset; prefer |access= over |subscription=&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (UrlAccess) and is_set (RegistrationRequired) then			-- these are not the same but contradictory so if both are set&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;url-access&#039;) .. &#039; and &#039; .. wrap_style (&#039;parameter&#039;, &#039;registration&#039;)}, true ) } );		-- add error message&lt;br /&gt;
			RegistrationRequired = nil;											-- unset; prefer |access= over |registration=&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local ChapterUrlAccess = A[&#039;ChapterUrlAccess&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (ChapterUrlAccess, &#039;chapter-url-access&#039;, cfg.keywords [&#039;url-access&#039;]) then	-- same as url-access&lt;br /&gt;
			ChapterUrlAccess = nil;&lt;br /&gt;
		end&lt;br /&gt;
		if not is_set(ChapterURL) and is_set(ChapterUrlAccess) then&lt;br /&gt;
			ChapterUrlAccess = nil;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;param_access_requires_param&#039;, {&#039;chapter-url&#039;}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local Via = A[&#039;Via&#039;];&lt;br /&gt;
	local AccessDate = A[&#039;AccessDate&#039;];&lt;br /&gt;
	local Agency = A[&#039;Agency&#039;];&lt;br /&gt;
&lt;br /&gt;
	local Language = A[&#039;Language&#039;];&lt;br /&gt;
	local Format = A[&#039;Format&#039;];&lt;br /&gt;
	local ChapterFormat = A[&#039;ChapterFormat&#039;];&lt;br /&gt;
	local DoiBroken = A[&#039;DoiBroken&#039;];&lt;br /&gt;
	local ID = A[&#039;ID&#039;];&lt;br /&gt;
	local ASINTLD = A[&#039;ASINTLD&#039;];&lt;br /&gt;
	local IgnoreISBN = A[&#039;IgnoreISBN&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (IgnoreISBN, &#039;ignore-isbn-error&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			IgnoreISBN = nil;													-- anything else, set to empty string&lt;br /&gt;
		end&lt;br /&gt;
	local Embargo = A[&#039;Embargo&#039;];&lt;br /&gt;
	local Class = A[&#039;Class&#039;];													-- arxiv class identifier&lt;br /&gt;
&lt;br /&gt;
	local ID_list = extract_ids( args );&lt;br /&gt;
	local ID_access_levels = extract_id_access_levels( args, ID_list );&lt;br /&gt;
&lt;br /&gt;
	local Quote = A[&#039;Quote&#039;];&lt;br /&gt;
&lt;br /&gt;
	local LayFormat = A[&#039;LayFormat&#039;];&lt;br /&gt;
	local LayURL = A[&#039;LayURL&#039;];&lt;br /&gt;
	local LaySource = A[&#039;LaySource&#039;];&lt;br /&gt;
	local Transcript = A[&#039;Transcript&#039;];&lt;br /&gt;
	local TranscriptFormat = A[&#039;TranscriptFormat&#039;];&lt;br /&gt;
	local TranscriptURL = A[&#039;TranscriptURL&#039;] &lt;br /&gt;
	local TranscriptURLorigin = A:ORIGIN(&#039;TranscriptURL&#039;);						-- get name of parameter that holds TranscriptURL&lt;br /&gt;
&lt;br /&gt;
	local LastAuthorAmp = A[&#039;LastAuthorAmp&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (LastAuthorAmp, &#039;last-author-amp&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			LastAuthorAmp = nil;												-- set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	local no_tracking_cats = A[&#039;NoTracking&#039;];&lt;br /&gt;
		if not is_valid_parameter_value (no_tracking_cats, &#039;no-tracking&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
			no_tracking_cats = nil;												-- set to empty string&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	--local variables that are not cs1 parameters&lt;br /&gt;
	local use_lowercase;														-- controls capitalization of certain static text&lt;br /&gt;
	local this_page = mw.title.getCurrentTitle();								-- also used for COinS and for language&lt;br /&gt;
	local anchor_year;															-- used in the CITEREF identifier&lt;br /&gt;
	local COinS_date = {};														-- holds date info extracted from |date= for the COinS metadata by Module:Date verification&lt;br /&gt;
&lt;br /&gt;
	local DF = A[&#039;DF&#039;];															-- date format set in cs1|2 template&lt;br /&gt;
	if not is_valid_parameter_value (DF, &#039;df&#039;, cfg.keywords[&#039;date-format&#039;]) then	-- validate reformatting keyword&lt;br /&gt;
		DF = &#039;&#039;;																-- not valid, set to empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local sepc;											-- separator between citation elements for CS1 a period, for CS2, a comma&lt;br /&gt;
	local PostScript;&lt;br /&gt;
	local Ref;&lt;br /&gt;
	sepc, PostScript, Ref = set_style (Mode:lower(), A[&#039;PostScript&#039;], A[&#039;Ref&#039;], config.CitationClass);&lt;br /&gt;
	use_lowercase = ( sepc == &#039;,&#039; );					-- used to control capitalization for certain static text&lt;br /&gt;
&lt;br /&gt;
	--check this page to see if it is in one of the namespaces that cs1 is not supposed to add to the error categories&lt;br /&gt;
	if not is_set (no_tracking_cats) then										-- ignore if we are already not going to categorize this page&lt;br /&gt;
		if in_array (this_page.nsText, cfg.uncategorized_namespaces) then&lt;br /&gt;
			no_tracking_cats = &amp;quot;true&amp;quot;;											-- set no_tracking_cats&lt;br /&gt;
		end&lt;br /&gt;
		for _,v in ipairs (cfg.uncategorized_subpages) do						-- cycle through page name patterns&lt;br /&gt;
			if this_page.text:match (v) then									-- test page name against each pattern&lt;br /&gt;
				no_tracking_cats = &amp;quot;true&amp;quot;;										-- set no_tracking_cats&lt;br /&gt;
				break;															-- bail out if one is found&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- check for extra |page=, |pages= or |at= parameters. (also sheet and sheets while we&#039;re at it)&lt;br /&gt;
	select_one( args, {&#039;page&#039;, &#039;p&#039;, &#039;pp&#039;, &#039;pages&#039;, &#039;at&#039;, &#039;sheet&#039;, &#039;sheets&#039;}, &#039;redundant_parameters&#039; );		-- this is a dummy call simply to get the error message and category&lt;br /&gt;
&lt;br /&gt;
	local NoPP = A[&#039;NoPP&#039;] &lt;br /&gt;
	if is_set (NoPP) and is_valid_parameter_value (NoPP, &#039;nopp&#039;, cfg.keywords [&#039;yes_true_y&#039;]) then&lt;br /&gt;
		NoPP = true;&lt;br /&gt;
	else&lt;br /&gt;
		NoPP = nil;																-- unset, used as a flag later&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Page) then&lt;br /&gt;
		if is_set(Pages) or is_set(At) then&lt;br /&gt;
			Pages = &#039;&#039;;															-- unset the others&lt;br /&gt;
			At = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
		extra_text_in_page_check (Page);										-- add this page to maint cat if |page= value begins with what looks like p. or pp.&lt;br /&gt;
	elseif is_set(Pages) then&lt;br /&gt;
		if is_set(At) then&lt;br /&gt;
			At = &#039;&#039;;															-- unset&lt;br /&gt;
		end&lt;br /&gt;
		extra_text_in_page_check (Pages);										-- add this page to maint cat if |pages= value begins with what looks like p. or pp.&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	-- both |publication-place= and |place= (|location=) allowed if different&lt;br /&gt;
	if not is_set(PublicationPlace) and is_set(Place) then&lt;br /&gt;
		PublicationPlace = Place;							-- promote |place= (|location=) to |publication-place&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if PublicationPlace == Place then Place = &#039;&#039;; end		-- don&#039;t need both if they are the same&lt;br /&gt;
	&lt;br /&gt;
	--[[&lt;br /&gt;
	Parameter remapping for cite encyclopedia:&lt;br /&gt;
	When the citation has these parameters:&lt;br /&gt;
		|encyclopedia and |title then map |title to |article and |encyclopedia to |title&lt;br /&gt;
		|encyclopedia and |article then map |encyclopedia to |title&lt;br /&gt;
		|encyclopedia then map |encyclopedia to |title&lt;br /&gt;
	&lt;br /&gt;
		|trans-title maps to |trans-chapter when |title is re-mapped&lt;br /&gt;
		|url maps to |chapterurl when |title is remapped&lt;br /&gt;
	&lt;br /&gt;
	All other combinations of |encyclopedia, |title, and |article are not modified&lt;br /&gt;
	&lt;br /&gt;
	]]&lt;br /&gt;
&lt;br /&gt;
local Encyclopedia = A[&#039;Encyclopedia&#039;];&lt;br /&gt;
&lt;br /&gt;
	if ( config.CitationClass == &amp;quot;encyclopaedia&amp;quot; ) or ( config.CitationClass == &amp;quot;citation&amp;quot; and is_set (Encyclopedia)) then	-- test code for citation&lt;br /&gt;
		if is_set(Periodical) then												-- Periodical is set when |encyclopedia is set&lt;br /&gt;
			if is_set(Title) or is_set (ScriptTitle) then&lt;br /&gt;
				if not is_set(Chapter) then&lt;br /&gt;
					Chapter = Title;											-- |encyclopedia and |title are set so map |title to |article and |encyclopedia to |title&lt;br /&gt;
					ScriptChapter = ScriptTitle;&lt;br /&gt;
					TransChapter = TransTitle;&lt;br /&gt;
					ChapterURL = URL;&lt;br /&gt;
					ChapterUrlAccess = UrlAccess;&lt;br /&gt;
&lt;br /&gt;
					if not is_set (ChapterURL) and is_set (TitleLink) then&lt;br /&gt;
						Chapter = make_wikilink (TitleLink, Chapter);&lt;br /&gt;
					end&lt;br /&gt;
					Title = Periodical;&lt;br /&gt;
					ChapterFormat = Format;&lt;br /&gt;
					Periodical = &#039;&#039;;											-- redundant so unset&lt;br /&gt;
					TransTitle = &#039;&#039;;&lt;br /&gt;
					URL = &#039;&#039;;&lt;br /&gt;
					Format = &#039;&#039;;&lt;br /&gt;
					TitleLink = &#039;&#039;;&lt;br /&gt;
					ScriptTitle = &#039;&#039;;&lt;br /&gt;
				end&lt;br /&gt;
			else																-- |title not set&lt;br /&gt;
				Title = Periodical;												-- |encyclopedia set and |article set or not set so map |encyclopedia to |title&lt;br /&gt;
				Periodical = &#039;&#039;;												-- redundant so unset&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Special case for cite techreport.&lt;br /&gt;
	if (config.CitationClass == &amp;quot;techreport&amp;quot;) then								-- special case for cite techreport&lt;br /&gt;
		if is_set(A[&#039;Number&#039;]) then												-- cite techreport uses &#039;number&#039;, which other citations alias to &#039;issue&#039;&lt;br /&gt;
			if not is_set(ID) then												-- can we use ID for the &amp;quot;number&amp;quot;?&lt;br /&gt;
				ID = A[&#039;Number&#039;];												-- yes, use it&lt;br /&gt;
			else																-- ID has a value so emit error message&lt;br /&gt;
				table.insert( z.message_tail, { set_error(&#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;id&#039;) .. &#039; and &#039; .. wrap_style (&#039;parameter&#039;, &#039;number&#039;)}, true )});&lt;br /&gt;
			end&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- special case for cite mailing list&lt;br /&gt;
	if (config.CitationClass == &amp;quot;mailinglist&amp;quot;) then&lt;br /&gt;
		Periodical = A [&#039;MailingList&#039;];&lt;br /&gt;
	elseif &#039;mailinglist&#039; == A:ORIGIN(&#039;Periodical&#039;) then&lt;br /&gt;
		Periodical = &#039;&#039;;														-- unset because mailing list is only used for cite mailing list&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddity that is {{cite conference}}, before generation of COinS data.&lt;br /&gt;
	if &#039;conference&#039; == config.CitationClass then&lt;br /&gt;
		if is_set(BookTitle) then&lt;br /&gt;
			Chapter = Title;&lt;br /&gt;
--			ChapterLink = TitleLink;											-- |chapterlink= is deprecated&lt;br /&gt;
			ChapterURL = URL;&lt;br /&gt;
			ChapterUrlAccess = UrlAccess;&lt;br /&gt;
			ChapterURLorigin = URLorigin;&lt;br /&gt;
			URLorigin = &#039;&#039;;&lt;br /&gt;
			ChapterFormat = Format;&lt;br /&gt;
			TransChapter = TransTitle;&lt;br /&gt;
			Title = BookTitle;&lt;br /&gt;
			Format = &#039;&#039;;&lt;br /&gt;
--			TitleLink = &#039;&#039;;&lt;br /&gt;
			TransTitle = &#039;&#039;;&lt;br /&gt;
			URL = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	elseif &#039;speech&#039; ~= config.CitationClass then&lt;br /&gt;
		Conference = &#039;&#039;;														-- not cite conference or cite speech so make sure this is empty string&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- cite map oddities&lt;br /&gt;
	local Cartography = &amp;quot;&amp;quot;;&lt;br /&gt;
	local Scale = &amp;quot;&amp;quot;;&lt;br /&gt;
	local Sheet = A[&#039;Sheet&#039;] or &#039;&#039;;&lt;br /&gt;
	local Sheets = A[&#039;Sheets&#039;] or &#039;&#039;;&lt;br /&gt;
	if config.CitationClass == &amp;quot;map&amp;quot; then&lt;br /&gt;
		Chapter = A[&#039;Map&#039;];&lt;br /&gt;
		ChapterURL = A[&#039;MapURL&#039;];&lt;br /&gt;
		ChapterUrlAccess = UrlAccess;&lt;br /&gt;
		TransChapter = A[&#039;TransMap&#039;];&lt;br /&gt;
		ChapterURLorigin = A:ORIGIN(&#039;MapURL&#039;);&lt;br /&gt;
		ChapterFormat = A[&#039;MapFormat&#039;];&lt;br /&gt;
		&lt;br /&gt;
		Cartography = A[&#039;Cartography&#039;];&lt;br /&gt;
		if is_set( Cartography ) then&lt;br /&gt;
			Cartography = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;cartography&#039;, Cartography, use_lowercase);&lt;br /&gt;
		end		&lt;br /&gt;
		Scale = A[&#039;Scale&#039;];&lt;br /&gt;
		if is_set( Scale ) then&lt;br /&gt;
			Scale = sepc .. &amp;quot; &amp;quot; .. Scale;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite episode}} and {{cite serial}}, before generation of COinS data.&lt;br /&gt;
	if &#039;episode&#039; == config.CitationClass or &#039;serial&#039; == config.CitationClass then&lt;br /&gt;
		local AirDate = A[&#039;AirDate&#039;];&lt;br /&gt;
		local SeriesLink = A[&#039;SeriesLink&#039;];&lt;br /&gt;
&lt;br /&gt;
		link_title_ok (SeriesLink, A:ORIGIN (&#039;SeriesLink&#039;), Series, &#039;series&#039;);	-- check for wikimarkup in |series-link= or wikimarkup in |series= when |series-link= is set&lt;br /&gt;
&lt;br /&gt;
		local Network = A[&#039;Network&#039;];&lt;br /&gt;
		local Station = A[&#039;Station&#039;];&lt;br /&gt;
		local s, n = {}, {};&lt;br /&gt;
																				-- do common parameters first&lt;br /&gt;
		if is_set(Network) then table.insert(n, Network); end&lt;br /&gt;
		if is_set(Station) then table.insert(n, Station); end&lt;br /&gt;
		ID = table.concat(n, sepc .. &#039; &#039;);&lt;br /&gt;
		&lt;br /&gt;
		if not is_set (Date) and is_set (AirDate) then							-- promote airdate to date&lt;br /&gt;
			Date = AirDate;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if &#039;episode&#039; == config.CitationClass then								-- handle the oddities that are strictly {{cite episode}}&lt;br /&gt;
			local Season = A[&#039;Season&#039;];&lt;br /&gt;
			local SeriesNumber = A[&#039;SeriesNumber&#039;];&lt;br /&gt;
&lt;br /&gt;
			if is_set (Season) and is_set (SeriesNumber) then					-- these are mutually exclusive so if both are set&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;season&#039;) .. &#039; and &#039; .. wrap_style (&#039;parameter&#039;, &#039;seriesno&#039;)}, true ) } );		-- add error message&lt;br /&gt;
				SeriesNumber = &#039;&#039;;												-- unset; prefer |season= over |seriesno=&lt;br /&gt;
			end&lt;br /&gt;
																				-- assemble a table of parts concatenated later into Series&lt;br /&gt;
			if is_set(Season) then table.insert(s, wrap_msg (&#039;season&#039;, Season, use_lowercase)); end&lt;br /&gt;
			if is_set(SeriesNumber) then table.insert(s, wrap_msg (&#039;series&#039;, SeriesNumber, use_lowercase)); end&lt;br /&gt;
			if is_set(Issue) then table.insert(s, wrap_msg (&#039;episode&#039;, Issue, use_lowercase)); end&lt;br /&gt;
			Issue = &#039;&#039;;															-- unset because this is not a unique parameter&lt;br /&gt;
	&lt;br /&gt;
			Chapter = Title;													-- promote title parameters to chapter&lt;br /&gt;
			ScriptChapter = ScriptTitle;&lt;br /&gt;
			ChapterLink = TitleLink;											-- alias episodelink&lt;br /&gt;
			TransChapter = TransTitle;&lt;br /&gt;
			ChapterURL = URL;&lt;br /&gt;
			ChapterUrlAccess = UrlAccess;&lt;br /&gt;
			ChapterURLorigin = A:ORIGIN(&#039;URL&#039;);&lt;br /&gt;
			&lt;br /&gt;
			Title = Series;														-- promote series to title&lt;br /&gt;
			TitleLink = SeriesLink;&lt;br /&gt;
			Series = table.concat(s, sepc .. &#039; &#039;);								-- this is concatenation of season, seriesno, episode number&lt;br /&gt;
&lt;br /&gt;
			if is_set (ChapterLink) and not is_set (ChapterURL) then			-- link but not URL&lt;br /&gt;
				Chapter = make_wikilink (ChapterLink, Chapter);&lt;br /&gt;
			elseif is_set (ChapterLink) and is_set (ChapterURL) then			-- if both are set, URL links episode;&lt;br /&gt;
				Series = make_wikilink (ChapterLink, Series);&lt;br /&gt;
			end&lt;br /&gt;
			URL = &#039;&#039;;															-- unset&lt;br /&gt;
			TransTitle = &#039;&#039;;&lt;br /&gt;
			ScriptTitle = &#039;&#039;;&lt;br /&gt;
			&lt;br /&gt;
		else																	-- now oddities that are cite serial&lt;br /&gt;
			Issue = &#039;&#039;;															-- unset because this parameter no longer supported by the citation/core version of cite serial&lt;br /&gt;
			Chapter = A[&#039;Episode&#039;];												-- TODO: make |episode= available to cite episode someday?&lt;br /&gt;
			if is_set (Series) and is_set (SeriesLink) then&lt;br /&gt;
				Series = make_wikilink (SeriesLink, Series);&lt;br /&gt;
			end&lt;br /&gt;
			Series = wrap_style (&#039;italic-title&#039;, Series);						-- series is italicized&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
	-- end of {{cite episode}} stuff&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, {{cite citeseerx}}, before generation of COinS data.&lt;br /&gt;
	do&lt;br /&gt;
		if in_array (config.CitationClass, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then&lt;br /&gt;
			if not is_set (ID_list[config.CitationClass:upper()]) then			-- |arxiv= or |eprint= required for cite arxiv; |biorxiv= &amp;amp; |citeseerx= required for their templates&lt;br /&gt;
				table.insert( z.message_tail, { set_error( config.CitationClass .. &#039;_missing&#039;, {}, true ) } );		-- add error message&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if &#039;arxiv&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;arXiv&#039;;											-- set to arXiv for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if &#039;biorxiv&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;bioRxiv&#039;;											-- set to bioRxiv for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if &#039;citeseerx&#039; == config.CitationClass then&lt;br /&gt;
				Periodical = &#039;CiteSeerX&#039;;										-- set to CiteSeerX for COinS; after that, must be set to empty string&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- handle type parameter for those CS1 citations that have default values&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;AV-media-notes&amp;quot;, &amp;quot;interview&amp;quot;, &amp;quot;mailinglist&amp;quot;, &amp;quot;map&amp;quot;, &amp;quot;podcast&amp;quot;, &amp;quot;pressrelease&amp;quot;, &amp;quot;report&amp;quot;, &amp;quot;techreport&amp;quot;, &amp;quot;thesis&amp;quot;}) then&lt;br /&gt;
		TitleType = set_titletype (config.CitationClass, TitleType);&lt;br /&gt;
		if is_set(Degree) and &amp;quot;Thesis&amp;quot; == TitleType then						-- special case for cite thesis&lt;br /&gt;
			TitleType = Degree .. &#039; &#039; .. cfg.title_types [&#039;thesis&#039;]:lower();&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(TitleType) then													-- if type parameter is specified&lt;br /&gt;
		TitleType = substitute( cfg.messages[&#039;type&#039;], TitleType);				-- display it in parentheses&lt;br /&gt;
	-- TODO: Hack on TitleType to fix bunched parentheses problem&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- legacy: promote PublicationDate to Date if neither Date nor Year are set.&lt;br /&gt;
	if not is_set (Date) then&lt;br /&gt;
		Date = Year;															-- promote Year to Date&lt;br /&gt;
		Year = nil;																-- make nil so Year as empty string isn&#039;t used for CITEREF&lt;br /&gt;
		if not is_set (Date) and is_set(PublicationDate) then					-- use PublicationDate when |date= and |year= are not set&lt;br /&gt;
			Date = PublicationDate;												-- promote PublicationDate to Date&lt;br /&gt;
			PublicationDate = &#039;&#039;;												-- unset, no longer needed&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if PublicationDate == Date then PublicationDate = &#039;&#039;; end					-- if PublicationDate is same as Date, don&#039;t display in rendered citation&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Go test all of the date-holding parameters for valid MOS:DATE format and make sure that dates are real dates. This must be done before we do COinS because here is where&lt;br /&gt;
	we get the date used in the metadata.&lt;br /&gt;
	&lt;br /&gt;
	Date validation supporting code is in Module:Citation/CS1/Date_validation&lt;br /&gt;
	]]&lt;br /&gt;
	do	-- create defined block to contain local variables error_message, date_parameters_list, mismatch&lt;br /&gt;
		local error_message = &#039;&#039;;&lt;br /&gt;
																				-- AirDate has been promoted to Date so not necessary to check it&lt;br /&gt;
		local date_parameters_list = {[&#039;access-date&#039;]=AccessDate, [&#039;archive-date&#039;]=ArchiveDate, [&#039;date&#039;]=Date, [&#039;doi-broken-date&#039;]=DoiBroken,&lt;br /&gt;
				[&#039;embargo&#039;]=Embargo, [&#039;lay-date&#039;]=LayDate, [&#039;publication-date&#039;]=PublicationDate, [&#039;year&#039;]=Year};&lt;br /&gt;
&lt;br /&gt;
		anchor_year, Embargo, error_message = dates(date_parameters_list, COinS_date);&lt;br /&gt;
-- start temporary Julian / Gregorian calendar uncertainty categorization&lt;br /&gt;
		if COinS_date.inter_cal_cat then&lt;br /&gt;
			add_prop_cat (&#039;jul_greg_uncertainty&#039;);&lt;br /&gt;
		end&lt;br /&gt;
-- end temporary Julian / Gregorian calendar uncertainty categorization&lt;br /&gt;
&lt;br /&gt;
		if is_set (Year) and is_set (Date) then									-- both |date= and |year= not normally needed; &lt;br /&gt;
			local mismatch = year_date_check (Year, Date)&lt;br /&gt;
			if 0 == mismatch then												-- |year= does not match a year-value in |date=&lt;br /&gt;
				if is_set (error_message) then									-- if there is already an error message&lt;br /&gt;
					error_message = error_message .. &#039;, &#039;;						-- tack on this additional message&lt;br /&gt;
				end&lt;br /&gt;
				error_message = error_message .. &#039;&amp;amp;#124;year= / &amp;amp;#124;date= mismatch&#039;;&lt;br /&gt;
			elseif 1 == mismatch then											-- |year= matches year-value in |date=&lt;br /&gt;
				add_maint_cat (&#039;date_year&#039;);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if not is_set(error_message) then										-- error free dates only&lt;br /&gt;
			local modified = false;												-- flag&lt;br /&gt;
			&lt;br /&gt;
			if is_set (DF) then													-- if we need to reformat dates&lt;br /&gt;
				modified = reformat_dates (date_parameters_list, DF, false);	-- reformat to DF format, use long month names if appropriate&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if true == date_hyphen_to_dash (date_parameters_list) then			-- convert hyphens to dashes where appropriate&lt;br /&gt;
				modified = true;&lt;br /&gt;
				add_maint_cat (&#039;date_format&#039;);									-- hyphens were converted so add maint category&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
	-- for those wikis that can and want to have English date names translated to the local language,&lt;br /&gt;
	-- uncomment these three lines.  Not supported by en.wiki (for obvious reasons)&lt;br /&gt;
--			if date_name_xlate (date_parameters_list) then&lt;br /&gt;
--				modified = true;&lt;br /&gt;
--			end&lt;br /&gt;
&lt;br /&gt;
			if modified then													-- if the date_parameters_list values were modified&lt;br /&gt;
				AccessDate = date_parameters_list[&#039;access-date&#039;];				-- overwrite date holding parameters with modified values&lt;br /&gt;
				ArchiveDate = date_parameters_list[&#039;archive-date&#039;];&lt;br /&gt;
				Date = date_parameters_list[&#039;date&#039;];&lt;br /&gt;
				DoiBroken = date_parameters_list[&#039;doi-broken-date&#039;];&lt;br /&gt;
				LayDate = date_parameters_list[&#039;lay-date&#039;];&lt;br /&gt;
				PublicationDate = date_parameters_list[&#039;publication-date&#039;];&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;bad_date&#039;, {error_message}, true ) } );	-- add this error message&lt;br /&gt;
		end&lt;br /&gt;
	end	-- end of do&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddity that is {{cite journal}} with |pmc= set and |url= not set.  Do this after date check but before COInS.&lt;br /&gt;
	-- Here we unset Embargo if PMC not embargoed (|embargo= not set in the citation) or if the embargo time has expired. Otherwise, holds embargo date&lt;br /&gt;
	Embargo = is_embargoed (Embargo);&lt;br /&gt;
&lt;br /&gt;
	if config.CitationClass == &amp;quot;journal&amp;quot; and not is_set(URL) and is_set(ID_list[&#039;PMC&#039;]) then&lt;br /&gt;
		if not is_set (Embargo) then											-- if not embargoed or embargo has expired&lt;br /&gt;
			URL=cfg.id_handlers[&#039;PMC&#039;].prefix .. ID_list[&#039;PMC&#039;];				-- set url to be the same as the PMC external link if not embargoed&lt;br /&gt;
			URLorigin = cfg.id_handlers[&#039;PMC&#039;].parameters[1];					-- set URLorigin to parameter name for use in error message if citation is missing a |title=&lt;br /&gt;
			if is_set(AccessDate) then											-- access date requires |url=; pmc created url is not |url=&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;accessdate_missing_url&#039;, {}, true ) } );&lt;br /&gt;
				AccessDate = &#039;&#039;;												-- unset&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- At this point fields may be nil if they weren&#039;t specified in the template use.  We can use that fact.&lt;br /&gt;
	-- Test if citation has no title&lt;br /&gt;
	if	not is_set(Title) and&lt;br /&gt;
		not is_set(TransTitle) and&lt;br /&gt;
		not is_set(ScriptTitle) then&lt;br /&gt;
			if &#039;episode&#039; == config.CitationClass then							-- special case for cite episode; TODO: is there a better way to do this?&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;citation_missing_title&#039;, {&#039;series&#039;}, true ) } );&lt;br /&gt;
			else&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;citation_missing_title&#039;, {&#039;title&#039;}, true ) } );&lt;br /&gt;
			end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if &#039;none&#039; == Title and in_array (config.CitationClass, {&#039;journal&#039;, &#039;citation&#039;}) and is_set (Periodical) and &#039;journal&#039; == A:ORIGIN(&#039;Periodical&#039;) then	-- special case for journal cites&lt;br /&gt;
		Title = &#039;&#039;;																-- set title to empty string&lt;br /&gt;
		add_maint_cat (&#039;untitled&#039;);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	check_for_url ({															-- add error message when any of these parameters contains a URL&lt;br /&gt;
		[&#039;title&#039;]=Title,&lt;br /&gt;
		[A:ORIGIN(&#039;Chapter&#039;)]=Chapter,&lt;br /&gt;
		[A:ORIGIN(&#039;Periodical&#039;)]=Periodical,&lt;br /&gt;
		[A:ORIGIN(&#039;PublisherName&#039;)] = PublisherName&lt;br /&gt;
		});&lt;br /&gt;
&lt;br /&gt;
	-- COinS metadata (see &amp;lt;http://ocoins.info/&amp;gt;) for automated parsing of citation information.&lt;br /&gt;
	-- handle the oddity that is cite encyclopedia and {{citation |encyclopedia=something}}. Here we presume that&lt;br /&gt;
	-- when Periodical, Title, and Chapter are all set, then Periodical is the book (encyclopedia) title, Title&lt;br /&gt;
	-- is the article title, and Chapter is a section within the article.  So, we remap &lt;br /&gt;
	&lt;br /&gt;
	local coins_chapter = Chapter;												-- default assuming that remapping not required&lt;br /&gt;
	local coins_title = Title;													-- et tu&lt;br /&gt;
	if &#039;encyclopaedia&#039; == config.CitationClass or (&#039;citation&#039; == config.CitationClass and is_set (Encyclopedia)) then&lt;br /&gt;
		if is_set (Chapter) and is_set (Title) and is_set (Periodical) then		-- if all are used then&lt;br /&gt;
			coins_chapter = Title;												-- remap&lt;br /&gt;
			coins_title = Periodical;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local coins_author = a;														-- default for coins rft.au &lt;br /&gt;
	if 0 &amp;lt; #c then																-- but if contributor list&lt;br /&gt;
		coins_author = c;														-- use that instead&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- this is the function call to COinS()&lt;br /&gt;
	local OCinSoutput = COinS({&lt;br /&gt;
		[&#039;Periodical&#039;] = Periodical,&lt;br /&gt;
		[&#039;Encyclopedia&#039;] = Encyclopedia,&lt;br /&gt;
		[&#039;Chapter&#039;] = make_coins_title (coins_chapter, ScriptChapter),			-- Chapter and ScriptChapter stripped of bold / italic wikimarkup&lt;br /&gt;
		[&#039;Degree&#039;] = Degree;													-- cite thesis only&lt;br /&gt;
		[&#039;Title&#039;] = make_coins_title (coins_title, ScriptTitle),				-- Title and ScriptTitle stripped of bold / italic wikimarkup&lt;br /&gt;
		[&#039;PublicationPlace&#039;] = PublicationPlace,&lt;br /&gt;
		[&#039;Date&#039;] = COinS_date.rftdate,											-- COinS_date has correctly formatted date if Date is valid;&lt;br /&gt;
		[&#039;Season&#039;] = COinS_date.rftssn,&lt;br /&gt;
		[&#039;Chron&#039;] =  COinS_date.rftchron or (not COinS_date.rftdate and Date) or &#039;&#039;,	-- chron but if not set and invalid date format use Date; keep this last bit?&lt;br /&gt;
		[&#039;Series&#039;] = Series,&lt;br /&gt;
		[&#039;Volume&#039;] = Volume,&lt;br /&gt;
		[&#039;Issue&#039;] = Issue,&lt;br /&gt;
		[&#039;Pages&#039;] = get_coins_pages (first_set ({Sheet, Sheets, Page, Pages, At}, 5)),				-- pages stripped of external links&lt;br /&gt;
		[&#039;Edition&#039;] = Edition,&lt;br /&gt;
		[&#039;PublisherName&#039;] = PublisherName,&lt;br /&gt;
		[&#039;URL&#039;] = first_set ({ChapterURL, URL}, 2),&lt;br /&gt;
		[&#039;Authors&#039;] = coins_author,&lt;br /&gt;
		[&#039;ID_list&#039;] = ID_list,&lt;br /&gt;
		[&#039;RawPage&#039;] = this_page.prefixedText,&lt;br /&gt;
	}, config.CitationClass);&lt;br /&gt;
&lt;br /&gt;
	-- Account for the oddities that are {{cite arxiv}}, {{cite biorxiv}}, and {{cite citeseerx}} AFTER generation of COinS data.&lt;br /&gt;
	if in_array (config.CitationClass, {&#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) then	-- we have set rft.jtitle in COinS to arXiv, bioRxiv, or CiteSeerX now unset so it isn&#039;t displayed&lt;br /&gt;
		Periodical = &#039;&#039;;														-- periodical not allowed in these templates; if article has been published, use cite journal&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- special case for cite newsgroup.  Do this after COinS because we are modifying Publishername to include some static text&lt;br /&gt;
	if &#039;newsgroup&#039; == config.CitationClass then&lt;br /&gt;
		if is_set (PublisherName) then&lt;br /&gt;
			PublisherName = substitute (cfg.messages[&#039;newsgroup&#039;], external_link( &#039;news:&#039; .. PublisherName, PublisherName, A:ORIGIN(&#039;PublisherName&#039;), nil ));&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	-- Now perform various field substitutions.&lt;br /&gt;
	-- We also add leading spaces and surrounding markup and punctuation to the&lt;br /&gt;
	-- various parts of the citation, but only when they are non-nil.&lt;br /&gt;
	local EditorCount;															-- used only for choosing {ed.) or (eds.) annotation at end of editor name-list&lt;br /&gt;
	do&lt;br /&gt;
		local last_first_list;&lt;br /&gt;
		local control = { &lt;br /&gt;
			format = NameListFormat,											-- empty string or &#039;vanc&#039;&lt;br /&gt;
			maximum = nil,														-- as if display-authors or display-editors not set&lt;br /&gt;
			lastauthoramp = LastAuthorAmp,&lt;br /&gt;
			page_name = this_page.text,											-- get current page name so that we don&#039;t wikilink to it via editorlinkn&lt;br /&gt;
			mode = Mode&lt;br /&gt;
		};&lt;br /&gt;
&lt;br /&gt;
		do																		-- do editor name list first because the now unsupported coauthors used to modify control table&lt;br /&gt;
			control.maximum , editor_etal = get_display_authors_editors (A[&#039;DisplayEditors&#039;], #e, &#039;editors&#039;, editor_etal);&lt;br /&gt;
			last_first_list, EditorCount = list_people(control, e, editor_etal);&lt;br /&gt;
&lt;br /&gt;
			if is_set (Editors) then&lt;br /&gt;
				if editor_etal then&lt;br /&gt;
					Editors = Editors .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];			-- add et al. to editors parameter beause |display-editors=etal&lt;br /&gt;
					EditorCount = 2;											-- with et al., |editors= is multiple names; spoof to display (eds.) annotation&lt;br /&gt;
				else&lt;br /&gt;
					EditorCount = 2;											-- we don&#039;t know but assume |editors= is multiple names; spoof to display (eds.) annotation&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				Editors = last_first_list;										-- either an author name list or an empty string&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if 1 == EditorCount and (true == editor_etal or 1 &amp;lt; #e) then		-- only one editor displayed but includes etal then &lt;br /&gt;
				EditorCount = 2;												-- spoof to display (eds.) annotation&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do interviewers&lt;br /&gt;
			control.maximum = #interviewers_list;							-- number of interviewerss&lt;br /&gt;
			Interviewers = list_people(control, interviewers_list, false);	-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do translators&lt;br /&gt;
			control.maximum = #t;												-- number of translators&lt;br /&gt;
			Translators = list_people(control, t, false);						-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do contributors&lt;br /&gt;
			control.maximum = #c;												-- number of contributors&lt;br /&gt;
			Contributors = list_people(control, c, false);						-- et al not currently supported&lt;br /&gt;
		end&lt;br /&gt;
		do																		-- now do authors&lt;br /&gt;
			control.maximum , author_etal = get_display_authors_editors (A[&#039;DisplayAuthors&#039;], #a, &#039;authors&#039;, author_etal);&lt;br /&gt;
&lt;br /&gt;
			last_first_list = list_people(control, a, author_etal);&lt;br /&gt;
&lt;br /&gt;
			if is_set (Authors) then&lt;br /&gt;
				Authors, author_etal = name_has_etal (Authors, author_etal, false);	-- find and remove variations on et al.&lt;br /&gt;
				if author_etal then&lt;br /&gt;
					Authors = Authors .. &#039; &#039; .. cfg.messages[&#039;et al&#039;];			-- add et al. to authors parameter&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				Authors = last_first_list;										-- either an author name list or an empty string&lt;br /&gt;
			end&lt;br /&gt;
		end																		-- end of do&lt;br /&gt;
	&lt;br /&gt;
		if is_set (Authors) and is_set (Collaboration) then&lt;br /&gt;
			Authors = Authors .. &#039; (&#039; .. Collaboration .. &#039;)&#039;;					-- add collaboration after et al.&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- apply |[xx-]format= styling; at the end, these parameters hold correctly styled format annotation,&lt;br /&gt;
	-- an error message if the associated url is not set, or an empty string for concatenation&lt;br /&gt;
	ArchiveFormat = style_format (ArchiveFormat, ArchiveURL, &#039;archive-format&#039;, &#039;archive-url&#039;);&lt;br /&gt;
	ConferenceFormat = style_format (ConferenceFormat, ConferenceURL, &#039;conference-format&#039;, &#039;conference-url&#039;);&lt;br /&gt;
	Format = style_format (Format, URL, &#039;format&#039;, &#039;url&#039;);&lt;br /&gt;
	LayFormat = style_format (LayFormat, LayURL, &#039;lay-format&#039;, &#039;lay-url&#039;);&lt;br /&gt;
	TranscriptFormat = style_format (TranscriptFormat, TranscriptURL, &#039;transcript-format&#039;, &#039;transcripturl&#039;);&lt;br /&gt;
&lt;br /&gt;
	-- special case for chapter format so no error message or cat when chapter not supported&lt;br /&gt;
	if not (in_array(config.CitationClass, {&#039;web&#039;, &#039;news&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia))) then&lt;br /&gt;
			ChapterFormat = style_format (ChapterFormat, ChapterURL, &#039;chapter-format&#039;, &#039;chapter-url&#039;);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set(URL) then&lt;br /&gt;
		if in_array(config.CitationClass, {&amp;quot;web&amp;quot;,&amp;quot;podcast&amp;quot;, &amp;quot;mailinglist&amp;quot;}) then	-- |url= required for cite web, cite podcast, and cite mailinglist&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;cite_web_url&#039;, {}, true ) } );&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- do we have |accessdate= without either |url= or |chapter-url=?&lt;br /&gt;
		if is_set(AccessDate) and not is_set(ChapterURL)then					-- ChapterURL may be set when URL is not set;&lt;br /&gt;
			table.insert( z.message_tail, { set_error( &#039;accessdate_missing_url&#039;, {}, true ) } );&lt;br /&gt;
			AccessDate = &#039;&#039;;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local OriginalURL, OriginalURLorigin, OriginalFormat, OriginalAccess;&lt;br /&gt;
	DeadURL = DeadURL:lower();													-- used later when assembling archived text&lt;br /&gt;
	if is_set( ArchiveURL ) then&lt;br /&gt;
		if is_set (ChapterURL) then 											-- URL not set so if chapter-url is set apply archive url to it&lt;br /&gt;
			OriginalURL = ChapterURL;											-- save copy of source chapter&#039;s url for archive text&lt;br /&gt;
			OriginalURLorigin = ChapterURLorigin;								-- name of chapter-url parameter for error messages&lt;br /&gt;
			OriginalFormat = ChapterFormat;										-- and original |format=&lt;br /&gt;
			if &#039;no&#039; ~= DeadURL then&lt;br /&gt;
				ChapterURL = ArchiveURL											-- swap-in the archive&#039;s url&lt;br /&gt;
				ChapterURLorigin = A:ORIGIN(&#039;ArchiveURL&#039;)						-- name of archive-url parameter for error messages&lt;br /&gt;
				ChapterFormat = ArchiveFormat or &#039;&#039;;							-- swap in archive&#039;s format&lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set (URL) then&lt;br /&gt;
			OriginalURL = URL;													-- save copy of original source URL&lt;br /&gt;
			OriginalURLorigin = URLorigin;										-- name of url parameter for error messages&lt;br /&gt;
			OriginalFormat = Format; 											-- and original |format=&lt;br /&gt;
			OriginalAccess = UrlAccess;&lt;br /&gt;
			if &#039;no&#039; ~= DeadURL then												-- if URL set then archive-url applies to it&lt;br /&gt;
				URL = ArchiveURL												-- swap-in the archive&#039;s url&lt;br /&gt;
				URLorigin = A:ORIGIN(&#039;ArchiveURL&#039;)								-- name of archive url parameter for error messages&lt;br /&gt;
				Format = ArchiveFormat or &#039;&#039;;									-- swap in archive&#039;s format&lt;br /&gt;
				UrlAccess = nil;												-- restricted access levels do not make sense for archived urls&lt;br /&gt;
			end&lt;br /&gt;
 		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if in_array(config.CitationClass, {&#039;web&#039;,&#039;news&#039;,&#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or	-- if any of the &#039;periodical&#039; cites except encyclopedia&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) then&lt;br /&gt;
			local chap_param;&lt;br /&gt;
			if is_set (Chapter) then											-- get a parameter name from one of these chapter related meta-parameters&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;Chapter&#039;)&lt;br /&gt;
			elseif is_set (TransChapter) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;TransChapter&#039;)&lt;br /&gt;
			elseif is_set (ChapterURL) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ChapterURL&#039;)&lt;br /&gt;
			elseif is_set (ScriptChapter) then&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ScriptChapter&#039;)&lt;br /&gt;
			else is_set (ChapterFormat)&lt;br /&gt;
				chap_param = A:ORIGIN (&#039;ChapterFormat&#039;)&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if is_set (chap_param) then											-- if we found one&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;chapter_ignored&#039;, {chap_param}, true ) } );		-- add error message&lt;br /&gt;
				Chapter = &#039;&#039;;													-- and set them to empty string to be safe with concatenation&lt;br /&gt;
				TransChapter = &#039;&#039;;&lt;br /&gt;
				ChapterURL = &#039;&#039;;&lt;br /&gt;
				ScriptChapter = &#039;&#039;;&lt;br /&gt;
				ChapterFormat = &#039;&#039;;&lt;br /&gt;
			end&lt;br /&gt;
	else																		-- otherwise, format chapter / article title&lt;br /&gt;
		local no_quotes = false;												-- default assume that we will be quoting the chapter parameter value&lt;br /&gt;
		if is_set (Contribution) and 0 &amp;lt; #c then								-- if this is a contribution with contributor(s)&lt;br /&gt;
			if in_array (Contribution:lower(), cfg.keywords.contribution) then	-- and a generic contribution title&lt;br /&gt;
				no_quotes = true;												-- then render it unquoted&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		Chapter = format_chapter_title (ScriptChapter, Chapter, TransChapter, ChapterURL, ChapterURLorigin, no_quotes, ChapterUrlAccess);		-- Contribution is also in Chapter&lt;br /&gt;
		if is_set (Chapter) then&lt;br /&gt;
			Chapter = Chapter .. ChapterFormat ;&lt;br /&gt;
			if &#039;map&#039; == config.CitationClass and is_set (TitleType) then&lt;br /&gt;
				Chapter = Chapter .. &#039; &#039; .. TitleType;							-- map annotation here; not after title&lt;br /&gt;
			end&lt;br /&gt;
			Chapter = Chapter.. sepc .. &#039; &#039;;&lt;br /&gt;
		elseif is_set (ChapterFormat) then										-- |chapter= not set but |chapter-format= is so ...&lt;br /&gt;
			Chapter = ChapterFormat .. sepc .. &#039; &#039;;								-- ... ChapterFormat has error message, we want to see it&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Format main title.&lt;br /&gt;
	if &#039;...&#039; == Title:sub (-3) then												-- if elipsis is the last three characters of |title=&lt;br /&gt;
		Title = mw.ustring.gsub (Title, &#039;(%.%.%.)%.+$&#039;, &#039;%1&#039;);					-- limit the number of dots to three&lt;br /&gt;
	elseif not mw.ustring.find (Title, &#039;%.%s*%a%.&#039;) then						-- end of title is not a &#039;dot-(optional space-)letter-dot&#039; initialism&lt;br /&gt;
		Title = mw.ustring.gsub(Title, &#039;%&#039;..sepc..&#039;$&#039;, &#039;&#039;);						-- remove any trailing separator character&lt;br /&gt;
	end&lt;br /&gt;
	if is_set(TitleLink) and is_set(Title) then&lt;br /&gt;
		Title = make_wikilink (TitleLink, Title);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if in_array(config.CitationClass, {&#039;web&#039;, &#039;news&#039;, &#039;journal&#039;, &#039;magazine&#039;, &#039;pressrelease&#039;, &#039;podcast&#039;, &#039;newsgroup&#039;, &#039;mailinglist&#039;, &#039;interview&#039;, &#039;arxiv&#039;, &#039;biorxiv&#039;, &#039;citeseerx&#039;}) or&lt;br /&gt;
		(&#039;citation&#039; == config.CitationClass and is_set (Periodical) and not is_set (Encyclopedia)) or&lt;br /&gt;
		(&#039;map&#039; == config.CitationClass and is_set (Periodical)) then			-- special case for cite map when the map is in a periodical treat as an article&lt;br /&gt;
			Title = kern_quotes (Title);										-- if necessary, separate title&#039;s leading and trailing quote marks from Module provided quote marks&lt;br /&gt;
			Title = wrap_style (&#039;quoted-title&#039;, Title);&lt;br /&gt;
			Title = script_concatenate (Title, ScriptTitle);					-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
			TransTitle= wrap_style (&#039;trans-quoted-title&#039;, TransTitle );&lt;br /&gt;
	elseif &#039;report&#039; == config.CitationClass then								-- no styling for cite report&lt;br /&gt;
		Title = script_concatenate (Title, ScriptTitle);						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
		TransTitle= wrap_style (&#039;trans-quoted-title&#039;, TransTitle );				-- for cite report, use this form for trans-title&lt;br /&gt;
	else&lt;br /&gt;
		Title = wrap_style (&#039;italic-title&#039;, Title);&lt;br /&gt;
		Title = script_concatenate (Title, ScriptTitle);						-- &amp;lt;bdi&amp;gt; tags, lang atribute, categorization, etc; must be done after title is wrapped&lt;br /&gt;
		TransTitle = wrap_style (&#039;trans-italic-title&#039;, TransTitle);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local TransError = &amp;quot;&amp;quot;;&lt;br /&gt;
	if is_set(TransTitle) then&lt;br /&gt;
		if is_set(Title) then&lt;br /&gt;
			TransTitle = &amp;quot; &amp;quot; .. TransTitle;&lt;br /&gt;
		else&lt;br /&gt;
			TransError = &amp;quot; &amp;quot; .. set_error( &#039;trans_missing_title&#039;, {&#039;title&#039;} );&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(Title) then&lt;br /&gt;
		if not is_set(TitleLink) and is_set(URL) then&lt;br /&gt;
			&lt;br /&gt;
			Title = external_link( URL, Title, URLorigin, UrlAccess ) .. TransTitle .. TransError .. Format;&lt;br /&gt;
			URL = &#039;&#039;;															-- unset these because no longer needed&lt;br /&gt;
			Format = &amp;quot;&amp;quot;;&lt;br /&gt;
		else&lt;br /&gt;
			Title = Title .. TransTitle .. TransError;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		Title = TransTitle .. TransError;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Place) then&lt;br /&gt;
		Place = &amp;quot; &amp;quot; .. wrap_msg (&#039;written&#039;, Place, use_lowercase) .. sepc .. &amp;quot; &amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set (Conference) then&lt;br /&gt;
		if is_set (ConferenceURL) then&lt;br /&gt;
			Conference = external_link( ConferenceURL, Conference, ConferenceURLorigin, nil );&lt;br /&gt;
		end&lt;br /&gt;
		Conference = sepc .. &amp;quot; &amp;quot; .. Conference .. ConferenceFormat;&lt;br /&gt;
	elseif is_set(ConferenceURL) then&lt;br /&gt;
		Conference = sepc .. &amp;quot; &amp;quot; .. external_link( ConferenceURL, nil, ConferenceURLorigin, nil );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not is_set(Position) then&lt;br /&gt;
		local Minutes = A[&#039;Minutes&#039;];&lt;br /&gt;
		local Time = A[&#039;Time&#039;];&lt;br /&gt;
&lt;br /&gt;
		if is_set(Minutes) then&lt;br /&gt;
			if is_set (Time) then&lt;br /&gt;
				table.insert( z.message_tail, { set_error( &#039;redundant_parameters&#039;, {wrap_style (&#039;parameter&#039;, &#039;minutes&#039;) .. &#039; and &#039; .. wrap_style (&#039;parameter&#039;, &#039;time&#039;)}, true ) } );&lt;br /&gt;
			end&lt;br /&gt;
			Position = &amp;quot; &amp;quot; .. Minutes .. &amp;quot; &amp;quot; .. cfg.messages[&#039;minutes&#039;];&lt;br /&gt;
		else&lt;br /&gt;
			if is_set(Time) then&lt;br /&gt;
				local TimeCaption = A[&#039;TimeCaption&#039;]&lt;br /&gt;
				if not is_set(TimeCaption) then&lt;br /&gt;
					TimeCaption = cfg.messages[&#039;event&#039;];&lt;br /&gt;
					if sepc ~= &#039;.&#039; then&lt;br /&gt;
						TimeCaption = TimeCaption:lower();&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				Position = &amp;quot; &amp;quot; .. TimeCaption .. &amp;quot; &amp;quot; .. Time;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		Position = &amp;quot; &amp;quot; .. Position;&lt;br /&gt;
		At = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Page, Pages, Sheet, Sheets = format_pages_sheets (Page, Pages, Sheet, Sheets, config.CitationClass, Periodical_origin, sepc, NoPP, use_lowercase);&lt;br /&gt;
&lt;br /&gt;
	At = is_set(At) and (sepc .. &amp;quot; &amp;quot; .. At) or &amp;quot;&amp;quot;;&lt;br /&gt;
	Position = is_set(Position) and (sepc .. &amp;quot; &amp;quot; .. Position) or &amp;quot;&amp;quot;;&lt;br /&gt;
	if config.CitationClass == &#039;map&#039; then&lt;br /&gt;
		local Section = A[&#039;Section&#039;];&lt;br /&gt;
		local Sections = A[&#039;Sections&#039;];&lt;br /&gt;
		local Inset = A[&#039;Inset&#039;];&lt;br /&gt;
		&lt;br /&gt;
		if is_set( Inset ) then&lt;br /&gt;
			Inset = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;inset&#039;, Inset, use_lowercase);&lt;br /&gt;
		end			&lt;br /&gt;
&lt;br /&gt;
		if is_set( Sections ) then&lt;br /&gt;
			Section = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;sections&#039;, Sections, use_lowercase);&lt;br /&gt;
		elseif is_set( Section ) then&lt;br /&gt;
			Section = sepc .. &amp;quot; &amp;quot; .. wrap_msg (&#039;section&#039;, Section, use_lowercase);&lt;br /&gt;
		end&lt;br /&gt;
		At = At .. Inset .. Section;		&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	if is_set (Language) then&lt;br /&gt;
		Language = language_parameter (Language);								-- format, categories, name from ISO639-1, etc&lt;br /&gt;
	else&lt;br /&gt;
		Language=&amp;quot;&amp;quot;;															-- language not specified so make sure this is an empty string;&lt;br /&gt;
	--[[ TODO: need to extract the wrap_msg from language_parameter&lt;br /&gt;
	so that we can solve parentheses bunching problem with Format/Language/TitleType&lt;br /&gt;
	]]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Others = is_set(Others) and (sepc .. &amp;quot; &amp;quot; .. Others) or &amp;quot;&amp;quot;;&lt;br /&gt;
	&lt;br /&gt;
	if is_set (Translators) then&lt;br /&gt;
		Others = sepc .. &#039; &#039; .. wrap_msg (&#039;translated&#039;, Translators, use_lowercase) .. Others;&lt;br /&gt;
	end&lt;br /&gt;
	if is_set (Interviewers) then&lt;br /&gt;
		Others = sepc .. &#039; &#039; .. wrap_msg (&#039;interview&#039;, Interviewers, use_lowercase) .. Others;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	TitleNote = is_set(TitleNote) and (sepc .. &amp;quot; &amp;quot; .. TitleNote) or &amp;quot;&amp;quot;;&lt;br /&gt;
	if is_set (Edition) then&lt;br /&gt;
		if Edition:match (&#039;%f[%a][Ee]d%.?$&#039;) or Edition:match (&#039;%f[%a][Ee]dition$&#039;) then&lt;br /&gt;
			add_maint_cat (&#039;extra_text&#039;, &#039;edition&#039;);&lt;br /&gt;
		end&lt;br /&gt;
		Edition = &amp;quot; &amp;quot; .. wrap_msg (&#039;edition&#039;, Edition);&lt;br /&gt;
	else&lt;br /&gt;
		Edition = &#039;&#039;;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	Series = is_set(Series) and (sepc .. &amp;quot; &amp;quot; .. Series) or &amp;quot;&amp;quot;;&lt;br /&gt;
		OrigYear = is_set(OrigYear) and (&amp;quot; [&amp;quot; .. OrigYear .. &amp;quot;]&amp;quot;) or &amp;quot;&amp;quot;;		-- TODO: presentation&lt;br /&gt;
&lt;br /&gt;
	Agency = is_set(Agency) and (sepc .. &amp;quot; &amp;quot; .. Agency) or &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	Volume = format_volume_issue (Volume, Issue, config.CitationClass, Periodical_origin, sepc, use_lowercase);&lt;br /&gt;
&lt;br /&gt;
	------------------------------------ totally unrelated data&lt;br /&gt;
	if is_set(Via) then&lt;br /&gt;
		Via = &amp;quot; &amp;quot; .. wrap_msg (&#039;via&#039;, Via);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Subscription implies paywall; Registration does not.  If both are used in a citation, the subscription required link&lt;br /&gt;
	note is displayed. There are no error messages for this condition.&lt;br /&gt;
	&lt;br /&gt;
	]]&lt;br /&gt;
	if is_set (SubscriptionRequired) then&lt;br /&gt;
		SubscriptionRequired = sepc .. &amp;quot; &amp;quot; .. cfg.messages[&#039;subscription&#039;];		-- subscription required message&lt;br /&gt;
	elseif is_set (RegistrationRequired) then&lt;br /&gt;
		SubscriptionRequired = sepc .. &amp;quot; &amp;quot; .. cfg.messages[&#039;registration&#039;];		-- registration required message&lt;br /&gt;
	else&lt;br /&gt;
		SubscriptionRequired = &#039;&#039;;												-- either or both might be set to something other than yes true y&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(AccessDate) then&lt;br /&gt;
		local retrv_text = &amp;quot; &amp;quot; .. cfg.messages[&#039;retrieved&#039;]&lt;br /&gt;
&lt;br /&gt;
		AccessDate = nowrap_date (AccessDate);									-- wrap in nowrap span if date in appropriate format&lt;br /&gt;
		if (sepc ~= &amp;quot;.&amp;quot;) then retrv_text = retrv_text:lower() end				-- if mode is cs2, lower case&lt;br /&gt;
		AccessDate = substitute (retrv_text, AccessDate);						-- add retrieved text&lt;br /&gt;
&lt;br /&gt;
		AccessDate = substitute (cfg.presentation[&#039;accessdate&#039;], {sepc, AccessDate});	-- allow editors to hide accessdates&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(ID) then ID = sepc ..&amp;quot; &amp;quot;.. ID; end&lt;br /&gt;
   	if &amp;quot;thesis&amp;quot; == config.CitationClass and is_set(Docket) then&lt;br /&gt;
		ID = sepc ..&amp;quot; Docket &amp;quot;.. Docket .. ID;&lt;br /&gt;
	end&lt;br /&gt;
   	if &amp;quot;report&amp;quot; == config.CitationClass and is_set(Docket) then					-- for cite report when |docket= is set&lt;br /&gt;
		ID = sepc .. &#039; &#039; .. Docket;												-- overwrite ID even if |id= is set&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	ID_list = build_id_list( ID_list, {IdAccessLevels=ID_access_levels, DoiBroken = DoiBroken, ASINTLD = ASINTLD, IgnoreISBN = IgnoreISBN, Embargo=Embargo, Class = Class} );&lt;br /&gt;
&lt;br /&gt;
	if is_set(URL) then&lt;br /&gt;
		URL = &amp;quot; &amp;quot; .. external_link( URL, nil, URLorigin, UrlAccess );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Quote) then&lt;br /&gt;
		if Quote:sub(1,1) == &#039;&amp;quot;&#039; and Quote:sub(-1,-1) == &#039;&amp;quot;&#039; then				-- if first and last characters of quote are quote marks&lt;br /&gt;
			Quote = Quote:sub(2,-2);											-- strip them off&lt;br /&gt;
		end&lt;br /&gt;
		Quote = sepc ..&amp;quot; &amp;quot; .. wrap_style (&#039;quoted-text&#039;, Quote ); 				-- wrap in &amp;lt;q&amp;gt;...&amp;lt;/q&amp;gt; tags&lt;br /&gt;
		PostScript = &amp;quot;&amp;quot;;														-- cs1|2 does not supply terminal punctuation when |quote= is set&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local Archived&lt;br /&gt;
	if is_set(ArchiveURL) then&lt;br /&gt;
		if not is_set(ArchiveDate) then&lt;br /&gt;
			ArchiveDate = set_error(&#039;archive_missing_date&#039;);&lt;br /&gt;
		end&lt;br /&gt;
		if &amp;quot;no&amp;quot; == DeadURL then&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			Archived = sepc .. &amp;quot; &amp;quot; .. substitute( cfg.messages[&#039;archived-not-dead&#039;],&lt;br /&gt;
				{ external_link( ArchiveURL, arch_text, A:ORIGIN(&#039;ArchiveURL&#039;), nil ) .. ArchiveFormat, ArchiveDate } );&lt;br /&gt;
			if not is_set(OriginalURL) then&lt;br /&gt;
				Archived = Archived .. &amp;quot; &amp;quot; .. set_error(&#039;archive_missing_url&#039;);							   &lt;br /&gt;
			end&lt;br /&gt;
		elseif is_set(OriginalURL) then											-- DeadURL is empty, &#039;yes&#039;, &#039;true&#039;, &#039;y&#039;, &#039;unfit&#039;, &#039;usurped&#039;&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived-dead&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			if in_array (DeadURL, {&#039;unfit&#039;, &#039;usurped&#039;, &#039;bot: unknown&#039;}) then&lt;br /&gt;
				Archived = sepc .. &amp;quot; &amp;quot; .. &#039;Archived from the original on &#039; .. ArchiveDate;	-- format already styled&lt;br /&gt;
				if &#039;bot: unknown&#039; == DeadURL then&lt;br /&gt;
					add_maint_cat (&#039;bot:_unknown&#039;);								-- and add a category if not already added&lt;br /&gt;
				else&lt;br /&gt;
					add_maint_cat (&#039;unfit&#039;);									-- and add a category if not already added&lt;br /&gt;
				end&lt;br /&gt;
			else																-- DeadURL is empty, &#039;yes&#039;, &#039;true&#039;, or &#039;y&#039;&lt;br /&gt;
				Archived = sepc .. &amp;quot; &amp;quot; .. substitute( arch_text,&lt;br /&gt;
					{ external_link( OriginalURL, cfg.messages[&#039;original&#039;], OriginalURLorigin, OriginalAccess ) .. OriginalFormat, ArchiveDate } );	-- format already styled&lt;br /&gt;
			end	&lt;br /&gt;
		else&lt;br /&gt;
			local arch_text = cfg.messages[&#039;archived-missing&#039;];&lt;br /&gt;
			if sepc ~= &amp;quot;.&amp;quot; then arch_text = arch_text:lower() end&lt;br /&gt;
			Archived = sepc .. &amp;quot; &amp;quot; .. substitute( arch_text, &lt;br /&gt;
				{ set_error(&#039;archive_missing_url&#039;), ArchiveDate } );&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set (ArchiveFormat) then&lt;br /&gt;
		Archived = ArchiveFormat;												-- if set and ArchiveURL not set ArchiveFormat has error message&lt;br /&gt;
	else&lt;br /&gt;
		Archived = &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local Lay = &#039;&#039;;&lt;br /&gt;
	if is_set(LayURL) then&lt;br /&gt;
		if is_set(LayDate) then LayDate = &amp;quot; (&amp;quot; .. LayDate .. &amp;quot;)&amp;quot; end&lt;br /&gt;
		if is_set(LaySource) then &lt;br /&gt;
			LaySource = &amp;quot; &amp;amp;ndash; &#039;&#039;&amp;quot; .. safe_for_italics(LaySource) .. &amp;quot;&#039;&#039;&amp;quot;;&lt;br /&gt;
		else&lt;br /&gt;
			LaySource = &amp;quot;&amp;quot;;&lt;br /&gt;
		end&lt;br /&gt;
		if sepc == &#039;.&#039; then&lt;br /&gt;
			Lay = sepc .. &amp;quot; &amp;quot; .. external_link( LayURL, cfg.messages[&#039;lay summary&#039;], A:ORIGIN(&#039;LayURL&#039;), nil ) .. LayFormat .. LaySource .. LayDate&lt;br /&gt;
		else&lt;br /&gt;
			Lay = sepc .. &amp;quot; &amp;quot; .. external_link( LayURL, cfg.messages[&#039;lay summary&#039;]:lower(), A:ORIGIN(&#039;LayURL&#039;), nil ) .. LayFormat .. LaySource .. LayDate&lt;br /&gt;
		end			&lt;br /&gt;
	elseif is_set (LayFormat) then												-- Test if |lay-format= is given without giving a |lay-url=&lt;br /&gt;
		Lay = sepc .. LayFormat;												-- if set and LayURL not set, then LayFormat has error message&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if is_set(Transcript) then&lt;br /&gt;
		if is_set(TranscriptURL) then&lt;br /&gt;
			Transcript = external_link( TranscriptURL, Transcript, TranscriptURLorigin, nil );&lt;br /&gt;
		end&lt;br /&gt;
		Transcript = sepc .. &#039; &#039; .. Transcript .. TranscriptFormat;&lt;br /&gt;
	elseif is_set(TranscriptURL) then&lt;br /&gt;
		Transcript = external_link( TranscriptURL, nil, TranscriptURLorigin, nil );&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local Publisher;&lt;br /&gt;
	if is_set(PublicationDate) then&lt;br /&gt;
		PublicationDate = wrap_msg (&#039;published&#039;, PublicationDate);&lt;br /&gt;
	end&lt;br /&gt;
	if is_set(PublisherName) then&lt;br /&gt;
		if is_set(PublicationPlace) then&lt;br /&gt;
			Publisher = sepc .. &amp;quot; &amp;quot; .. PublicationPlace .. &amp;quot;: &amp;quot; .. PublisherName .. PublicationDate;&lt;br /&gt;
		else&lt;br /&gt;
			Publisher = sepc .. &amp;quot; &amp;quot; .. PublisherName .. PublicationDate;  &lt;br /&gt;
		end			&lt;br /&gt;
	elseif is_set(PublicationPlace) then &lt;br /&gt;
		Publisher= sepc .. &amp;quot; &amp;quot; .. PublicationPlace .. PublicationDate;&lt;br /&gt;
	else &lt;br /&gt;
		Publisher = PublicationDate;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Several of the above rely upon detecting this as nil, so do it last.&lt;br /&gt;
	if is_set(Periodical) then&lt;br /&gt;
		if is_set(Title) or is_set(TitleNote) then &lt;br /&gt;
			Periodical = sepc .. &amp;quot; &amp;quot; .. wrap_style (&#039;italic-title&#039;, Periodical) &lt;br /&gt;
		else &lt;br /&gt;
			Periodical = wrap_style (&#039;italic-title&#039;, Periodical)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	Handle the oddity that is cite speech.  This code overrides whatever may be the value assigned to TitleNote (through |department=) and forces it to be &amp;quot; (Speech)&amp;quot; so that&lt;br /&gt;
	the annotation directly follows the |title= parameter value in the citation rather than the |event= parameter value (if provided).&lt;br /&gt;
	]]&lt;br /&gt;
	if &amp;quot;speech&amp;quot; == config.CitationClass then				-- cite speech only&lt;br /&gt;
		TitleNote = &amp;quot; (Speech)&amp;quot;;							-- annotate the citation&lt;br /&gt;
		if is_set (Periodical) then							-- if Periodical, perhaps because of an included |website= or |journal= parameter &lt;br /&gt;
			if is_set (Conference) then						-- and if |event= is set&lt;br /&gt;
				Conference = Conference .. sepc .. &amp;quot; &amp;quot;;		-- then add appropriate punctuation to the end of the Conference variable before rendering&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Piece all bits together at last.  Here, all should be non-nil.&lt;br /&gt;
	-- We build things this way because it is more efficient in LUA&lt;br /&gt;
	-- not to keep reassigning to the same string variable over and over.&lt;br /&gt;
&lt;br /&gt;
	local tcommon;&lt;br /&gt;
	local tcommon2;																-- used for book cite when |contributor= is set&lt;br /&gt;
	&lt;br /&gt;
	if in_array(config.CitationClass, {&amp;quot;journal&amp;quot;,&amp;quot;citation&amp;quot;}) and is_set(Periodical) then&lt;br /&gt;
		if is_set(Others) then Others = Others .. sepc .. &amp;quot; &amp;quot; end&lt;br /&gt;
		tcommon = safe_join( {Others, Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Edition, Publisher, Agency, Volume}, sepc );&lt;br /&gt;
	elseif in_array(config.CitationClass, {&amp;quot;book&amp;quot;,&amp;quot;citation&amp;quot;}) and not is_set(Periodical) then		-- special cases for book cites&lt;br /&gt;
		if is_set (Contributors) then											-- when we are citing foreword, preface, introduction, etc&lt;br /&gt;
			tcommon = safe_join( {Title, TitleNote}, sepc );					-- author and other stuff will come after this and before tcommon2&lt;br /&gt;
			tcommon2 = safe_join( {Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	elseif &#039;map&#039; == config.CitationClass then									-- special cases for cite map&lt;br /&gt;
		if is_set (Chapter) then												-- map in a book; TitleType is part of Chapter&lt;br /&gt;
			tcommon = safe_join( {Title, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );&lt;br /&gt;
		elseif is_set (Periodical) then											-- map in a periodical&lt;br /&gt;
			tcommon = safe_join( {Title, TitleType, Format, Periodical, Scale, Series, Language, Cartography, Others, Publisher, Volume}, sepc );&lt;br /&gt;
		else																	-- a sheet or stand-alone map&lt;br /&gt;
			tcommon = safe_join( {Title, TitleType, Format, Edition, Scale, Series, Language, Cartography, Others, Publisher}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
	elseif &#039;episode&#039; == config.CitationClass then								-- special case for cite episode&lt;br /&gt;
		tcommon = safe_join( {Title, TitleNote, TitleType, Series, Transcript, Language, Edition, Publisher}, sepc );&lt;br /&gt;
&lt;br /&gt;
	else																		-- all other CS1 templates&lt;br /&gt;
		tcommon = safe_join( {Title, TitleNote, Conference, Periodical, Format, TitleType, Series, Language, &lt;br /&gt;
			Volume, Others, Edition, Publisher, Agency}, sepc );&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if #ID_list &amp;gt; 0 then&lt;br /&gt;
		ID_list = safe_join( { sepc .. &amp;quot; &amp;quot;,  table.concat( ID_list, sepc .. &amp;quot; &amp;quot; ), ID }, sepc );&lt;br /&gt;
	else&lt;br /&gt;
		ID_list = ID;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local idcommon = safe_join( { ID_list, URL, Archived, AccessDate, Via, SubscriptionRequired, Lay, Quote }, sepc );&lt;br /&gt;
	local text;&lt;br /&gt;
	local pgtext = Position .. Sheet .. Sheets .. Page .. Pages .. At;&lt;br /&gt;
&lt;br /&gt;
	if is_set(Date) then&lt;br /&gt;
		if is_set (Authors) or is_set (Editors) then							-- date follows authors or editors when authors not set&lt;br /&gt;
			Date = &amp;quot; (&amp;quot; .. Date ..&amp;quot;)&amp;quot; .. OrigYear .. sepc .. &amp;quot; &amp;quot;;				-- in paranetheses&lt;br /&gt;
		else																	-- neither of authors and editors set&lt;br /&gt;
			if (string.sub(tcommon,-1,-1) == sepc) then							-- if the last character of tcommon is sepc&lt;br /&gt;
				Date = &amp;quot; &amp;quot; .. Date .. OrigYear;									-- Date does not begin with sepc&lt;br /&gt;
			else&lt;br /&gt;
				Date = sepc .. &amp;quot; &amp;quot; .. Date .. OrigYear;							-- Date begins with sepc&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end	&lt;br /&gt;
	if is_set(Authors) then&lt;br /&gt;
		if (not is_set (Date)) then												-- when date is set it&#039;s in parentheses; no Authors termination&lt;br /&gt;
			Authors = terminate_name_list (Authors, sepc);						-- when no date, terminate with 0 or 1 sepc and a space&lt;br /&gt;
		end&lt;br /&gt;
		if is_set(Editors) then&lt;br /&gt;
			local in_text = &amp;quot; &amp;quot;;&lt;br /&gt;
			local post_text = &amp;quot;&amp;quot;;&lt;br /&gt;
			if is_set(Chapter) and 0 == #c then&lt;br /&gt;
				in_text = in_text .. cfg.messages[&#039;in&#039;] .. &amp;quot; &amp;quot;&lt;br /&gt;
				if (sepc ~= &#039;.&#039;) then&lt;br /&gt;
					in_text = in_text:lower()									-- lowercase for cs2&lt;br /&gt;
				 end&lt;br /&gt;
			else&lt;br /&gt;
				if EditorCount &amp;lt;= 1 then&lt;br /&gt;
					post_text = &amp;quot;, &amp;quot; .. cfg.messages[&#039;editor&#039;];&lt;br /&gt;
				else&lt;br /&gt;
					post_text = &amp;quot;, &amp;quot; .. cfg.messages[&#039;editors&#039;];&lt;br /&gt;
				end&lt;br /&gt;
			end &lt;br /&gt;
			Editors = terminate_name_list (in_text .. Editors .. post_text, sepc);	-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
		end&lt;br /&gt;
		if is_set (Contributors) then											-- book cite and we&#039;re citing the intro, preface, etc&lt;br /&gt;
			local by_text = sepc .. &#039; &#039; .. cfg.messages[&#039;by&#039;] .. &#039; &#039;;&lt;br /&gt;
			if (sepc ~= &#039;.&#039;) then by_text = by_text:lower() end					-- lowercase for cs2&lt;br /&gt;
			Authors = by_text .. Authors;										-- author follows title so tweak it here&lt;br /&gt;
			if is_set (Editors) and is_set (Date) then							-- when Editors make sure that Authors gets terminated&lt;br /&gt;
				Authors = terminate_name_list (Authors, sepc);					-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
			end&lt;br /&gt;
			if (not is_set (Date)) then											-- when date is set it&#039;s in parentheses; no Contributors termination&lt;br /&gt;
				Contributors = terminate_name_list (Contributors, sepc);		-- terminate with 0 or 1 sepc and a space&lt;br /&gt;
			end&lt;br /&gt;
			text = safe_join( {Contributors, Date, Chapter, tcommon, Authors, Place, Editors, tcommon2, pgtext, idcommon }, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			text = safe_join( {Authors, Date, Chapter, Place, Editors, tcommon, pgtext, idcommon }, sepc );&lt;br /&gt;
		end&lt;br /&gt;
	elseif is_set(Editors) then&lt;br /&gt;
		if is_set(Date) then&lt;br /&gt;
			if EditorCount &amp;lt;= 1 then&lt;br /&gt;
				Editors = Editors .. &amp;quot;, &amp;quot; .. cfg.messages[&#039;editor&#039;];&lt;br /&gt;
			else&lt;br /&gt;
				Editors = Editors .. &amp;quot;, &amp;quot; .. cfg.messages[&#039;editors&#039;];&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if EditorCount &amp;lt;= 1 then&lt;br /&gt;
				Editors = Editors .. &amp;quot; (&amp;quot; .. cfg.messages[&#039;editor&#039;] .. &amp;quot;)&amp;quot; .. sepc .. &amp;quot; &amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				Editors = Editors .. &amp;quot; (&amp;quot; .. cfg.messages[&#039;editors&#039;] .. &amp;quot;)&amp;quot; .. sepc .. &amp;quot; &amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		text = safe_join( {Editors, Date, Chapter, Place, tcommon, pgtext, idcommon}, sepc );&lt;br /&gt;
	else&lt;br /&gt;
		if in_array(config.CitationClass, {&amp;quot;journal&amp;quot;,&amp;quot;citation&amp;quot;}) and is_set(Periodical) then&lt;br /&gt;
			text = safe_join( {Chapter, Place, tcommon, pgtext, Date, idcommon}, sepc );&lt;br /&gt;
		else&lt;br /&gt;
			text = safe_join( {Chapter, Place, tcommon, Date, pgtext, idcommon}, sepc );&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(PostScript) and PostScript ~= sepc then&lt;br /&gt;
		text = safe_join( {text, sepc}, sepc );  --Deals with italics, spaces, etc.&lt;br /&gt;
		text = text:sub(1,-sepc:len()-1);&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
	text = safe_join( {text, PostScript}, sepc );&lt;br /&gt;
&lt;br /&gt;
	-- Now enclose the whole thing in a &amp;lt;cite/&amp;gt; element&lt;br /&gt;
	local options = {};&lt;br /&gt;
	&lt;br /&gt;
	if is_set(config.CitationClass) and config.CitationClass ~= &amp;quot;citation&amp;quot; then&lt;br /&gt;
		options.class = config.CitationClass;&lt;br /&gt;
		options.class = &amp;quot;citation &amp;quot; .. config.CitationClass;					-- class=citation required for blue highlight when used with |ref=&lt;br /&gt;
	else&lt;br /&gt;
		options.class = &amp;quot;citation&amp;quot;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if is_set(Ref) and Ref:lower() ~= &amp;quot;none&amp;quot; then								-- set reference anchor if appropriate&lt;br /&gt;
		local id = Ref&lt;br /&gt;
		if (&#039;harv&#039; == Ref ) then&lt;br /&gt;
			local namelist = {};												-- holds selected contributor, author, editor name list&lt;br /&gt;
			local year = first_set ({Year, anchor_year}, 2);					-- Year first for legacy citations and for YMD dates that require disambiguation&lt;br /&gt;
&lt;br /&gt;
			if #c &amp;gt; 0 then														-- if there is a contributor list&lt;br /&gt;
				namelist = c;													-- select it&lt;br /&gt;
			elseif #a &amp;gt; 0 then													-- or an author list&lt;br /&gt;
				namelist = a;&lt;br /&gt;
			elseif #e &amp;gt; 0 then													-- or an editor list&lt;br /&gt;
				namelist = e;&lt;br /&gt;
			end&lt;br /&gt;
			if #namelist &amp;gt; 0 then												-- if there are names in namelist&lt;br /&gt;
				id = anchor_id (namelist, year);								-- go make the CITEREF anchor&lt;br /&gt;
			else&lt;br /&gt;
				id = &#039;&#039;;														-- unset&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		options.id = id;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if string.len(text:gsub(&amp;quot;&amp;lt;span[^&amp;gt;/]*&amp;gt;(.-)&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;%1&amp;quot;):gsub(&amp;quot;%b&amp;lt;&amp;gt;&amp;quot;,&amp;quot;&amp;quot;)) &amp;lt;= 2 then	-- remove &amp;lt;span&amp;gt; tags and other html-like markup; then get length of what remains&lt;br /&gt;
		z.error_categories = {};&lt;br /&gt;
		text = set_error(&#039;empty_citation&#039;);&lt;br /&gt;
		z.message_tail = {};&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local render = {};															-- here we collect the final bits for concatenation into the rendered citation&lt;br /&gt;
&lt;br /&gt;
	if is_set(options.id) then													-- here we wrap the rendered citation in &amp;lt;cite ...&amp;gt;...&amp;lt;/cite&amp;gt; tags&lt;br /&gt;
		table.insert (render, substitute (cfg.presentation[&#039;cite-id&#039;], {mw.uri.anchorEncode(options.id), mw.text.nowiki(options.class), text}));	-- when |ref= is set&lt;br /&gt;
	else&lt;br /&gt;
		table.insert (render, substitute (cfg.presentation[&#039;cite&#039;], {mw.text.nowiki(options.class), text}));	-- all other cases&lt;br /&gt;
	end		&lt;br /&gt;
&lt;br /&gt;
	table.insert (render, substitute (cfg.presentation[&#039;ocins&#039;], {OCinSoutput}));		-- append metadata to the citation&lt;br /&gt;
&lt;br /&gt;
	if #z.message_tail ~= 0 then&lt;br /&gt;
		table.insert (render, &#039; &#039;);&lt;br /&gt;
		for i,v in ipairs( z.message_tail ) do&lt;br /&gt;
			if is_set(v[1]) then&lt;br /&gt;
				if i == #z.message_tail then&lt;br /&gt;
					table.insert (render, error_comment( v[1], v[2] ));&lt;br /&gt;
				else&lt;br /&gt;
					table.insert (render, error_comment( v[1] .. &amp;quot;; &amp;quot;, v[2] ));&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if #z.maintenance_cats ~= 0 then&lt;br /&gt;
		table.insert (render, &#039;&amp;lt;span class=&amp;quot;citation-comment&amp;quot; style=&amp;quot;display:none; color:#33aa33; margin-left:0.3em&amp;quot;&amp;gt;&#039;);&lt;br /&gt;
		for _, v in ipairs( z.maintenance_cats ) do								-- append maintenance categories&lt;br /&gt;
			table.insert (render, v);&lt;br /&gt;
			table.insert (render, &#039; (&#039;);&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;:Category:&#039; .. v, &#039;link&#039;));&lt;br /&gt;
			table.insert (render, &#039;) &#039;);&lt;br /&gt;
		end&lt;br /&gt;
		table.insert (render, &#039;&amp;lt;/span&amp;gt;&#039;);&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	no_tracking_cats = no_tracking_cats:lower();&lt;br /&gt;
	if in_array(no_tracking_cats, {&amp;quot;&amp;quot;, &amp;quot;no&amp;quot;, &amp;quot;false&amp;quot;, &amp;quot;n&amp;quot;}) then&lt;br /&gt;
		for _, v in ipairs( z.error_categories ) do&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Category:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in ipairs( z.maintenance_cats ) do								-- append maintenance categories&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Category:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in ipairs( z.properties_cats ) do								-- append properties categories&lt;br /&gt;
			table.insert (render, make_wikilink (&#039;Category:&#039; .. v));&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat (render);	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C S 1 . C I T A T I O N &amp;gt;------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
This is used by templates such as {{cite book}} to create the actual citation text.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function cs1.citation(frame)&lt;br /&gt;
	Frame = frame;																-- save a copy incase we need to display an error message in preview mode&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local validation, utilities, identifiers, metadata;&lt;br /&gt;
	&lt;br /&gt;
	if nil ~= string.find (frame:getTitle(), &#039;sandbox&#039;, 1, true) then			-- did the {{#invoke:}} use sandbox version?&lt;br /&gt;
		cfg = mw.loadData (&#039;Module:Citation/CS1/Configuration/sandbox&#039;);		-- load sandbox versions of support modules&lt;br /&gt;
		whitelist = mw.loadData (&#039;Module:Citation/CS1/Whitelist/sandbox&#039;);&lt;br /&gt;
		utilities = require (&#039;Module:Citation/CS1/Utilities/sandbox&#039;);&lt;br /&gt;
		validation = require (&#039;Module:Citation/CS1/Date_validation/sandbox&#039;);&lt;br /&gt;
		identifiers = require (&#039;Module:Citation/CS1/Identifiers/sandbox&#039;);&lt;br /&gt;
		metadata = require (&#039;Module:Citation/CS1/COinS/sandbox&#039;);&lt;br /&gt;
		&lt;br /&gt;
	else																		-- otherwise&lt;br /&gt;
		cfg = mw.loadData (&#039;Module:Citation/CS1/Configuration&#039;);				-- load live versions of support modules&lt;br /&gt;
		whitelist = mw.loadData (&#039;Module:Citation/CS1/Whitelist&#039;);&lt;br /&gt;
		utilities = require (&#039;Module:Citation/CS1/Utilities&#039;);&lt;br /&gt;
		validation = require (&#039;Module:Citation/CS1/Date_validation&#039;);&lt;br /&gt;
		identifiers = require (&#039;Module:Citation/CS1/Identifiers&#039;);&lt;br /&gt;
		metadata = require (&#039;Module:Citation/CS1/COinS&#039;);&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	utilities.set_selected_modules (cfg);										-- so that functions in Utilities can see the cfg tables&lt;br /&gt;
	identifiers.set_selected_modules (cfg, utilities);							-- so that functions in Identifiers can see the selected cfg tables and selected Utilities module&lt;br /&gt;
	validation.set_selected_modules (cfg, utilities);							-- so that functions in Date validataion can see selected cfg tables and the selected Utilities module&lt;br /&gt;
	metadata.set_selected_modules (cfg, utilities);								-- so that functions in COinS can see the selected cfg tables and selected Utilities module&lt;br /&gt;
&lt;br /&gt;
	dates = validation.dates;													-- imported functions from Module:Citation/CS1/Date validation&lt;br /&gt;
	year_date_check = validation.year_date_check;&lt;br /&gt;
	reformat_dates = validation.reformat_dates;&lt;br /&gt;
	date_hyphen_to_dash = validation.date_hyphen_to_dash;&lt;br /&gt;
	date_name_xlate = validation.date_name_xlate;&lt;br /&gt;
&lt;br /&gt;
	is_set = utilities.is_set;													-- imported functions from Module:Citation/CS1/Utilities&lt;br /&gt;
	in_array = utilities.in_array;&lt;br /&gt;
	substitute = utilities.substitute;&lt;br /&gt;
	error_comment = utilities.error_comment;&lt;br /&gt;
	set_error = utilities.set_error;&lt;br /&gt;
	select_one = utilities.select_one;&lt;br /&gt;
	add_maint_cat = utilities.add_maint_cat;&lt;br /&gt;
	wrap_style = utilities.wrap_style;&lt;br /&gt;
	safe_for_italics = utilities.safe_for_italics;&lt;br /&gt;
	is_wikilink = utilities.is_wikilink;&lt;br /&gt;
	make_wikilink = utilities.make_wikilink;&lt;br /&gt;
&lt;br /&gt;
	z = utilities.z;															-- table of error and category tables in Module:Citation/CS1/Utilities&lt;br /&gt;
&lt;br /&gt;
	extract_ids = identifiers.extract_ids;										-- imported functions from Module:Citation/CS1/Identifiers&lt;br /&gt;
	build_id_list = identifiers.build_id_list;&lt;br /&gt;
	is_embargoed = identifiers.is_embargoed;&lt;br /&gt;
	extract_id_access_levels = identifiers.extract_id_access_levels;&lt;br /&gt;
	&lt;br /&gt;
	make_coins_title = metadata.make_coins_title;								-- imported functions from Module:Citation/CS1/COinS&lt;br /&gt;
	get_coins_pages = metadata.get_coins_pages;&lt;br /&gt;
	COinS = metadata.COinS;&lt;br /&gt;
&lt;br /&gt;
	local args = {};															-- table where we store all of the template&#039;s arguments&lt;br /&gt;
	local suggestions = {};														-- table where we store suggestions if we need to loadData them&lt;br /&gt;
	local error_text, error_state;&lt;br /&gt;
&lt;br /&gt;
	local config = {};															-- table to store parameters from the module {{#invoke:}}&lt;br /&gt;
	for k, v in pairs( frame.args ) do&lt;br /&gt;
		config[k] = v;&lt;br /&gt;
--		args[k] = v;															-- debug tool that allows us to render a citation from module {{#invoke:}}&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	local capture;																-- the single supported capture when matching unknown parameters using patterns&lt;br /&gt;
	for k, v in pairs( pframe.args ) do&lt;br /&gt;
		if v ~= &#039;&#039; then&lt;br /&gt;
			if not validate( k, config.CitationClass ) then			&lt;br /&gt;
				error_text = &amp;quot;&amp;quot;;&lt;br /&gt;
				if type( k ) ~= &#039;string&#039; then&lt;br /&gt;
					-- Exclude empty numbered parameters&lt;br /&gt;
					if v:match(&amp;quot;%S+&amp;quot;) ~= nil then&lt;br /&gt;
						error_text, error_state = set_error( &#039;text_ignored&#039;, {v}, true );&lt;br /&gt;
					end&lt;br /&gt;
				elseif validate( k:lower(), config.CitationClass ) then &lt;br /&gt;
					error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, k:lower()}, true );&lt;br /&gt;
				else&lt;br /&gt;
					if nil == suggestions.suggestions then						-- if this table is nil then we need to load it&lt;br /&gt;
						if nil ~= string.find (frame:getTitle(), &#039;sandbox&#039;, 1, true) then			-- did the {{#invoke:}} use sandbox version?&lt;br /&gt;
							suggestions = mw.loadData( &#039;Module:Citation/CS1/Suggestions/sandbox&#039; );	-- use the sandbox version&lt;br /&gt;
						else&lt;br /&gt;
							suggestions = mw.loadData( &#039;Module:Citation/CS1/Suggestions&#039; );			-- use the live version&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					for pattern, param in pairs (suggestions.patterns) do		-- loop through the patterns to see if we can suggest a proper parameter&lt;br /&gt;
						capture = k:match (pattern);							-- the whole match if no caputre in pattern else the capture if a match&lt;br /&gt;
						if capture then											-- if the pattern matches &lt;br /&gt;
							param = substitute( param, capture );				-- add the capture to the suggested parameter (typically the enumerator)&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, param}, true );	-- set the error message&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					if not is_set (error_text) then								-- couldn&#039;t match with a pattern, is there an expicit suggestion?&lt;br /&gt;
						if suggestions.suggestions[ k:lower() ] ~= nil then&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored_suggest&#039;, {k, suggestions.suggestions[ k:lower() ]}, true );&lt;br /&gt;
						else&lt;br /&gt;
							error_text, error_state = set_error( &#039;parameter_ignored&#039;, {k}, true );&lt;br /&gt;
							v = &#039;&#039;;												-- unset value assigned to unrecognized parameters (this for the limited parameter lists)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end				  &lt;br /&gt;
				if error_text ~= &#039;&#039; then&lt;br /&gt;
					table.insert( z.message_tail, {error_text, error_state} );&lt;br /&gt;
				end				&lt;br /&gt;
			end&lt;br /&gt;
			missing_pipe_check (v);												-- do we think that there is a parameter that is missing a pipe?&lt;br /&gt;
			&lt;br /&gt;
			args[k] = v;&lt;br /&gt;
		elseif args[k] ~= nil or (k == &#039;postscript&#039;) then&lt;br /&gt;
			args[k] = v;&lt;br /&gt;
		end		&lt;br /&gt;
	end	&lt;br /&gt;
&lt;br /&gt;
	for k, v in pairs( args ) do&lt;br /&gt;
		if &#039;string&#039; == type (k) then											-- don&#039;t evaluate positional parameters&lt;br /&gt;
			has_invisible_chars (k, v);&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return citation0( config, args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return cs1;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Yesno-no&amp;diff=28451</id>
		<title>Template:Yesno-no</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Yesno-no&amp;diff=28451"/>
		<updated>2018-04-06T09:40:17Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{safesubst:&amp;lt;noinclude /&amp;gt;yesno|{{{1}}}|yes={{{yes|yes}}}|no={{{no|no}}}|blank={{{blank|no}}}|¬={{{¬|no}}}|def={{{def|no}}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation|Template:Yesno/doc}}&lt;br /&gt;
&amp;lt;!--Categories go in the doc page referenced above; interwikis go in Wikidata.--&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Yesno&amp;diff=28449</id>
		<title>Template:Yesno</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Yesno&amp;diff=28449"/>
		<updated>2018-04-06T09:40:16Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&amp;lt;includeonly&amp;gt;safesubst:&amp;lt;/includeonly&amp;gt;#switch: {{&amp;lt;includeonly&amp;gt;safesubst:&amp;lt;/includeonly&amp;gt;lc: {{{1|¬}}} }}&lt;br /&gt;
 |no&lt;br /&gt;
 |n&lt;br /&gt;
 |false&lt;br /&gt;
 |off&lt;br /&gt;
 |0        = {{{no|&amp;lt;!-- null --&amp;gt;}}}&lt;br /&gt;
 |         = {{{blank|{{{no|&amp;lt;!-- null --&amp;gt;}}}}}}&lt;br /&gt;
 |¬        = {{{¬|}}}&lt;br /&gt;
 |yes&lt;br /&gt;
 |y&lt;br /&gt;
 |true&lt;br /&gt;
 |on&lt;br /&gt;
 |1        = {{{yes|yes}}}&lt;br /&gt;
 |#default = {{{def|{{{yes|yes}}}}}}&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Xt&amp;diff=28447</id>
		<title>Template:Xt</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Xt&amp;diff=28447"/>
		<updated>2018-04-06T09:40:16Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.}}|&amp;lt;span class=&amp;quot;example&amp;quot; style=&amp;quot;font-family: Georgia, &#039;DejaVu Serif&#039;, serif; color: #006400;&amp;quot; {{#if:{{{title|}}}|title=&amp;quot;{{{title}}}&amp;quot;}}&amp;gt;{{{1|Example text}}}&amp;lt;/span&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:MEpedia_referencing&amp;diff=28445</id>
		<title>Template:MEpedia referencing</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:MEpedia_referencing&amp;diff=28445"/>
		<updated>2018-04-06T09:40:15Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Navbox&lt;br /&gt;
| name = Wikipedia referencing&lt;br /&gt;
| state = {{{state&amp;lt;includeonly&amp;gt;|{{{1|autocollapse}}}&amp;lt;/includeonly&amp;gt;}}}&lt;br /&gt;
| bodyclass = hlist&lt;br /&gt;
| title = [[Wikipedia:Verifiability|Wikipedia referencing]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| group1 = Policies and guidelines&lt;br /&gt;
| list1 =&lt;br /&gt;
* [[Wikipedia:Verifiability|Verifiability]]&lt;br /&gt;
* [[Wikipedia:Biographies of living persons|Biographies of living persons]]&lt;br /&gt;
* [[Wikipedia:Identifying reliable sources|Identifying reliable sources]]&lt;br /&gt;
** [[Wikipedia:Identifying reliable sources (medicine)|Medicine]]&lt;br /&gt;
* [[Wikipedia:Citing sources|Citing sources]]&lt;br /&gt;
* [[Wikipedia:Scientific citation guidelines|Scientific citations]]&lt;br /&gt;
&lt;br /&gt;
| group2 = General advice&lt;br /&gt;
| list2 =&lt;br /&gt;
* [[Wikipedia:Citation needed|Citation needed]]&lt;br /&gt;
* [[Help:Find sources|Find sources]]&lt;br /&gt;
* [[Wikipedia:Combining sources|Combining sources]]&lt;br /&gt;
* [[Wikipedia:Offline sources|Offline sources]]&lt;br /&gt;
* [[Help:Overview of referencing styles|Referencing styles]]&lt;br /&gt;
&lt;br /&gt;
| group3 = [[Wikipedia:Citing sources|Citing sources]]&lt;br /&gt;
| list3 =&lt;br /&gt;
* [[Help:Citation Style 1|Citation Style 1]]&lt;br /&gt;
* [[Help:Citation Style 2|Citation Style 2]]&lt;br /&gt;
* [[Help:Citation Style Vancouver|Citation Style Vancouver]]&lt;br /&gt;
* [[:Category:LSA style citation templates|LSA]]&lt;br /&gt;
* [[:Category:Comics citation templates|Comics]]&lt;br /&gt;
* [[Wikipedia:Citation templates|Citation templates]]&lt;br /&gt;
* [[Template:Reflist|Reflist template]]&lt;br /&gt;
&lt;br /&gt;
| group4 = [[Wikipedia:Inline citation|Inline citations]]&lt;br /&gt;
| list4 =&lt;br /&gt;
* [[Help:Footnotes|Footnotes]]&lt;br /&gt;
* [[Wikipedia:Parenthetical referencing|Parenthetical referencing]]&lt;br /&gt;
* [[MOS:PUNCTFOOT|Punctuation and footnotes]]&lt;br /&gt;
* [[Help:Shortened footnotes|Shortened footnotes]]&lt;br /&gt;
* [[Wikipedia:Nesting footnotes|Nesting footnotes]]&lt;br /&gt;
&lt;br /&gt;
| group5 = [[Help:Referencing for beginners|Help for beginners]]&lt;br /&gt;
| list5 =&lt;br /&gt;
*[[Help:Reftags|Reference-tags]]&lt;br /&gt;
* [[Help:Citations quick reference|Citations quick reference]]&lt;br /&gt;
* [[Help:Introduction to referencing/1|Introduction to referencing]]&lt;br /&gt;
* [[Help:Referencing for beginners with citation templates|Referencing with citation templates]]&lt;br /&gt;
* [[Help:Referencing for beginners without using templates|Referencing without using templates]]&lt;br /&gt;
* [[Wikipedia:References dos and don&#039;ts|Referencing dos and don&#039;ts]]&lt;br /&gt;
*[[Wikipedia:Citing Wikipedia|Citing Wikipedia]]&lt;br /&gt;
&lt;br /&gt;
| group6 = Advanced help&lt;br /&gt;
| list6 =&lt;br /&gt;
* [[Help:Cite link labels|Cite link labels]]&lt;br /&gt;
* [[Help:Citation tools|Citation tools]]&lt;br /&gt;
* [[Help:Cite errors|Cite errors]]&lt;br /&gt;
* [[Help:Cite messages|Cite messages]]&lt;br /&gt;
* [[Help:Converting between references formats|Converting between references formats]]&lt;br /&gt;
* [[Help:Reference display customization|Reference display customization]]&lt;br /&gt;
* [[Help:References and page numbers|References and page numbers]]&lt;br /&gt;
&lt;br /&gt;
| group7 = Template documentation &lt;br /&gt;
| list7 =&lt;br /&gt;
* {{tl|Edit refs}}&lt;br /&gt;
* {{tl|Refref}}&lt;br /&gt;
* {{tl|Refref2}}&lt;br /&gt;
* {{tl|Refstart}}&lt;br /&gt;
&lt;br /&gt;
| group8 = Tools&lt;br /&gt;
| list8 =&lt;br /&gt;
* [[Wikipedia:The Wikipedia Library|Wikipedia Library]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation&lt;br /&gt;
 | content =&lt;br /&gt;
{{Collapsible option |statename=optional}}&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* {{tl|Wikipedia editor navigation}} an amalgamation of navboxes that includes this navbox.&lt;br /&gt;
{{Wikipedia editor navigation templates|state=expanded}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation assistance templates]]&lt;br /&gt;
[[Category:Wikipedia help navigation|Referencing]]&lt;br /&gt;
[[Category:Wikipedia citation administration]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Tlx&amp;diff=28443</id>
		<title>Template:Tlx</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Tlx&amp;diff=28443"/>
		<updated>2018-04-06T09:40:14Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
    --&amp;gt;&amp;lt;code&amp;gt;&amp;lt;!--&lt;br /&gt;
        --&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}&amp;lt;!--&lt;br /&gt;
                     --&amp;gt;[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{2|}}}  |&amp;amp;#124;{{{2}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{3|}}}  |&amp;amp;#124;{{{3}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{4|}}}  |&amp;amp;#124;{{{4}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{5|}}}  |&amp;amp;#124;{{{5}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{6|}}}  |&amp;amp;#124;{{{6}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{7|}}}  |&amp;amp;#124;{{{7}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{8|}}}  |&amp;amp;#124;{{{8}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{9|}}}  |&amp;amp;#124;{{{9}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{10|}}} |&amp;amp;#124;{{{10}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{11|}}} |&amp;amp;#124;{{{11}}}}}&amp;lt;!--&lt;br /&gt;
                          --&amp;gt;{{#if:{{{12|}}} |&amp;amp;#124;&#039;&#039;...&#039;&#039;}}&amp;lt;!--&lt;br /&gt;
        --&amp;gt;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;!--&lt;br /&gt;
    --&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Template_error_report&amp;diff=28441</id>
		<title>Template:Template error report</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Template_error_report&amp;diff=28441"/>
		<updated>2018-04-06T09:40:13Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#ifeq:{{yesno-no|{{{lc}}}}}|no|S|s}}ee the [https://tools.wmflabs.org/bambots/TemplateParam.php?wiki=enwiki&amp;amp;template={{Urlencode:{{{1|{{ROOTPAGENAME}}}}}}} monthly error report] for this template.&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&lt;br /&gt;
[[Category:External link templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:TemplateData_header&amp;diff=28439</id>
		<title>Template:TemplateData header</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:TemplateData_header&amp;diff=28439"/>
		<updated>2018-04-06T09:40:13Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;templatedata-header&amp;quot;&amp;gt;{{#if:{{{noheader|}}}|{{Template error report}}|This is the {{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:TemplateData|TemplateData]]}} documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template error report|lc=yes}}}} &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TemplateData for {{{1|{{BASEPAGENAME}}}}}&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
[[Category:TemplateData documentation]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:TemplateDataHeader&amp;diff=28437</id>
		<title>Template:TemplateDataHeader</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:TemplateDataHeader&amp;diff=28437"/>
		<updated>2018-04-06T09:40:12Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Template:TemplateData header]]&lt;br /&gt;
{{R from move}}&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Tag&amp;diff=28435</id>
		<title>Template:Tag</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Tag&amp;diff=28435"/>
		<updated>2018-04-06T09:40:12Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;code class=&amp;quot;{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}&amp;quot; style=&amp;quot;{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
 Opening tag&lt;br /&gt;
--&amp;gt;{{#switch:{{{2|pair}}}&lt;br /&gt;
  |c|close =&lt;br /&gt;
  |e|empty|s|single|v|void&lt;br /&gt;
  |o|open&lt;br /&gt;
  |p|pair = &amp;amp;lt;{{{1|tag}}}{{#if:{{{params|}}}|&amp;amp;#32;{{{params}}}}}&lt;br /&gt;
 }}&amp;lt;!--&lt;br /&gt;
 Content between tags&lt;br /&gt;
--&amp;gt;{{#switch:{{{2|pair}}}&lt;br /&gt;
  |c|close = {{{content|}}}&lt;br /&gt;
  |e|empty|s|single|v|void = &amp;amp;#32;&amp;amp;#47;&amp;amp;gt;&lt;br /&gt;
  |o|open = &amp;amp;gt;{{{content|}}}&lt;br /&gt;
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&amp;amp;gt;}}{{{content|...}}}&lt;br /&gt;
 }}&amp;lt;!--&lt;br /&gt;
 Closing tag&lt;br /&gt;
--&amp;gt;{{#switch:{{{2|pair}}}&lt;br /&gt;
  |e|empty|s|single|v|void&lt;br /&gt;
  |o|open =&lt;br /&gt;
  |c|close&lt;br /&gt;
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&amp;amp;gt;|&amp;amp;lt;&amp;amp;#47;{{{1|tag}}}&amp;amp;gt;}}&lt;br /&gt;
 }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Sup&amp;diff=28433</id>
		<title>Template:Sup</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Sup&amp;diff=28433"/>
		<updated>2018-04-06T09:40:12Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;sup&amp;gt;{{{1}}}&amp;lt;/sup&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add cats and interwikis to the /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
	<entry>
		<id>https://me-pedia.org/w/index.php?title=Template:Sfnote&amp;diff=28431</id>
		<title>Template:Sfnote</title>
		<link rel="alternate" type="text/html" href="https://me-pedia.org/w/index.php?title=Template:Sfnote&amp;diff=28431"/>
		<updated>2018-04-06T09:40:11Z</updated>

		<summary type="html">&lt;p&gt;Brettz9:1 revision imported&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Help:Shortened footnotes|{{#ifeq:{{{lc}}}|{{{lc|}}}|shortened footnotes|Shortened footnotes}}]]&amp;lt;noinclude&amp;gt;{{documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brettz9</name></author>
	</entry>
</feed>