<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AArray%2Fdoc</id>
	<title>Template:Array/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AArray%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Array/doc&amp;action=history"/>
	<updated>2026-11-20T03:22:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Array/doc&amp;diff=166914&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Template Doc Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Array/doc&amp;diff=166914&amp;oldid=prev"/>
		<updated>2023-07-23T23:51:02Z</updated>

		<summary type="html">&lt;p&gt;Template Doc Creation&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;
{{Lua|Module:String}}&lt;br /&gt;
{{Lua|Module:String2}}&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
This template will allow manipulation or retrieve properties of an array list with a designated separator. It handles three functions: count, get and pos.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Array|&amp;lt;Function&amp;gt;|&amp;lt;Array items&amp;gt;|&amp;lt;Separator&amp;gt;|&amp;lt;Property&amp;gt;|Parameters (optional)}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5th parameter only valid with pos function when limiting multiple outputs to a single position.&lt;br /&gt;
&lt;br /&gt;
===Functions===&lt;br /&gt;
;Count&lt;br /&gt;
Will count the total number of items in the array using the designated separator. Leading or trailing separators will be stripped out.&lt;br /&gt;
* {{tlx|Array|count|This is my array|&amp;amp;#32;}} → {{Array|count|This is my array| }}&lt;br /&gt;
* {{tlx|Array|count|An,array,separated,by,commas|,}} → {{Array|count|An,array,separated,by,commas|,}}&lt;br /&gt;
* {{tlx|Array|count|,An,array,with,trailing,commas,|,}} → {{Array|count|,An,array,with,trailing,commas,|,}}&lt;br /&gt;
;Get&lt;br /&gt;
Will get the Nth item in the array.&lt;br /&gt;
* {{tlx|Array|get|My,wiki,test,array|,|3}} → {{Array|get|My,wiki,test,array|,|3}}&lt;br /&gt;
* {{tlx|Array|get|A.list.of.dot.separated.items|.|2}} → {{Array|get|A.list.of.dot.separated.items|.|2}}&lt;br /&gt;
* {{tlx|Array|get|A sentence of typical words|&amp;amp;#32;|5}} → {{Array|get|A sentence of typical words| |5}}&lt;br /&gt;
;Pos&lt;br /&gt;
Will retrieve the Nth position of the search item. If duplicates are found, will output all results with the designated separator. Output can be limited by specifying a 5th parameter. Can be used as true or false if output exists to determine if a match exists.&lt;br /&gt;
&lt;br /&gt;
Do not use the ^ character as this is used as a placeholder.&lt;br /&gt;
* {{tlx|Array|pos|A sentence of typical words|&amp;amp;#32;|sentence}} → {{Array|pos|A sentence of typical words| |sentence}}&lt;br /&gt;
* {{tlx|Array|pos|A.wiki.test.string.in.a.test.array|.|unmatched}} → {{Array|pos|My.wiki.test.string.in.a.test.array|.|unmatched}}&lt;br /&gt;
* {{tlx|Array|pos|A.wiki.test.string.in.a.test.array|.|test}} → {{Array|pos|A.wiki.test.string.in.a.test.array|.|test}}&lt;br /&gt;
* {{tlx|Array|pos|Position,of,the,second,test,in,a,test,array|,|test|2}} → {{Array|pos|Position,of,the,second,test,in,a,test,array|,|test|2}}&lt;br /&gt;
* {{tlx|Array|pos|2,4,6,6,7,11,12|,|7}} → {{Array|pos|2,4,6,6,7,11,12|,|7}}&lt;br /&gt;
* {{tlx|Array|pos|2,4,6,6,7,11,12|,|6|2}} → {{Array|pos|2,4,6,6,7,11,12|,|6|2}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
{{String-handling templates |anlys/tech}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
[[Category:Formatting and function templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>