<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.rosssurnameproject.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACartesian_with_comma%2Fdoc</id>
	<title>Module:Cartesian with comma/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.rosssurnameproject.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACartesian_with_comma%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.rosssurnameproject.net/wiki/index.php?title=Module:Cartesian_with_comma/doc&amp;action=history"/>
	<updated>2026-10-21T22:38:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://www.rosssurnameproject.net/wiki/index.php?title=Module:Cartesian_with_comma/doc&amp;diff=4403&amp;oldid=prev</id>
		<title>Redheadkelly at 04:54, 1 May 2025</title>
		<link rel="alternate" type="text/html" href="https://www.rosssurnameproject.net/wiki/index.php?title=Module:Cartesian_with_comma/doc&amp;diff=4403&amp;oldid=prev"/>
		<updated>2025-05-01T04:54:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
This module computes and returns the cartesian product of multiple input sets (i.e., lists of strings), and then formats and combines the results into a single output string. Because this module was original developed to deal with locations, if a value in the first set contains a comma, a comma will be added to the end of that value before it is combined with a value from the second set.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
It is called by {{tl|Combine categories}} to create category names from a list of locations and a list of topics.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{#invoke:Cartesian categories|combine&lt;br /&gt;
    | {{{location}}}&lt;br /&gt;
    | {{lc:{{{locality_subjects}}}}}&lt;br /&gt;
    | format = [[Category:%s %s]]&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Input:&lt;br /&gt;
&amp;lt;syntaxhighlight &amp;gt;{{Combine categories&lt;br /&gt;
|location=Bucks County, Pennsylvania;Chester County, Pennsylvania;Pennsylvania&lt;br /&gt;
|locality_subjects=Court records;Probate records;Vital records&lt;br /&gt;
}}&amp;lt;/syntaxhighlight &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output: &lt;br /&gt;
&amp;lt;pre&amp;gt;[[Category:Pennsylvania court records]]&lt;br /&gt;
[[Category:Pennsylvania probate records]]&lt;br /&gt;
[[Category:Pennsylvania vital records]]&lt;br /&gt;
[[Category:Bucks County, Pennsylvania, court records]]&lt;br /&gt;
[[Category:Bucks County, Pennsylvania, probate records]]&lt;br /&gt;
[[Category:Bucks County, Pennsylvania, vital records]]&lt;br /&gt;
[[Category:Chester County, Pennsylvania, court records]]&lt;br /&gt;
[[Category:Chester County, Pennsylvania, probate records]]&lt;br /&gt;
[[Category:Chester County, Pennsylvania, vital records]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:Cartesian]]&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements ==&lt;br /&gt;
Original code provided by [https://stackoverflow.com/questions/79589576/best-way-to-explode-two-strings-and-create-combinations-of-values-from-each-stri/79590068#79590068 Alexander Mashin].&lt;/div&gt;</summary>
		<author><name>Redheadkelly</name></author>
	</entry>
</feed>