<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FBrandonXLF%2FModule%3AMap_params%2Fdoc</id>
	<title>Module:Sandbox/BrandonXLF/Module:Map params/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FBrandonXLF%2FModule%3AMap_params%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/BrandonXLF/Module:Map_params/doc&amp;action=history"/>
	<updated>2026-04-20T17:38:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Sandbox/BrandonXLF/Module:Map_params/doc&amp;diff=24324368&amp;oldid=prev</id>
		<title>imported&gt;BrandonXLF: beta</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/BrandonXLF/Module:Map_params/doc&amp;diff=24324368&amp;oldid=prev"/>
		<updated>2024-09-08T17:34:51Z</updated>

		<summary type="html">&lt;p&gt;beta&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Module rating|beta}}&lt;br /&gt;
{{Lua|Module:Yesno}}&lt;br /&gt;
&lt;br /&gt;
{{mlx|Map params|map}} maps parameters received by a function to wikitext using {{para|1}} or to a template call using {{para|call}}.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Map params|main|&amp;#039;&amp;#039;parameters&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
=== Input ===&lt;br /&gt;
* {{para|prefix&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} - The prefix of the parameters to process. All registered prefixes will be checked to determine if a number is present in the provided arguments. {{para|prefix1}} defaults to processing unnamed parameters.&lt;br /&gt;
* {{para|extra&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} - An extra parameter to pass to the wikitext or template being called. If the extra parameter is suffixed with a number (same as prefixed parameters but not checked to determine if a number is present), add the suffix &amp;lt;code&amp;gt;(i)&amp;lt;/code&amp;gt;. For example, &amp;lt;code&amp;gt;style(i)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* {{para|sparse}} - Set to &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; to support parameter lists with gaps. Defaults to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;.&lt;br /&gt;
* {{para|optnum}} - Whether or not to support passing the first parameter without a number, i.e. allow it to be {{para|&amp;#039;&amp;#039;prefix&amp;#039;&amp;#039;}} rather than {{para|&amp;#039;&amp;#039;prefix&amp;#039;&amp;#039;1}}. Defaults to &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Map to ===&lt;br /&gt;
* {{para|1}} - The wikitext to map parameters to. Parameters are substituted with their number removed, i.e. {{para|item&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} becomes {{para|item}} etc. The parameter {{param|i}} is replaced with the current index and {{param|1}} is replaced with the current unnamed parameter (if applicable).&lt;br /&gt;
* {{para|call}} - Template to call. Parameters are passed with their number removed, i.e. {{para|item&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} becomes {{para|item}} etc. The parameter {{param|i}} is the current index and {{param|1}} is the current unnamed parameter (if applicable). Overrides {{para|1}}.&lt;br /&gt;
&lt;br /&gt;
=== Concatenation ===&lt;br /&gt;
* {{para|sep}} / {{para|2}} - Separator to add between outputs. To preserve leading and tailing whitespace, {{para|2}} can be used instead, or {{para|1}} when {{para|call}} is being used.&lt;br /&gt;
* {{para|conj}} - Special separator to use before the final output. Outer spaces can be added with {{tlx|sp}} or &amp;lt;code&amp;gt;&amp;amp;amp;#32;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Advanced ===&lt;br /&gt;
* {{para|expand}} - Whether or not to expand templates, parser functions, extension tags, etc. after substituting parameters. This is most useful when {{para|1}} is used without {{tag|nowiki}} tags and can provide a slight performance advantage. Only relevant when using {{para|1}}. Defaults to &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Navbox&lt;br /&gt;
| title = [[Help:Infinite parameters|Infinite parameters]] modules&lt;br /&gt;
| group1 = Fixed format&lt;br /&gt;
| list1 = {{Plainlist|&lt;br /&gt;
* {{ml|Separated entries|main}} - Joins unnamed parameters prose-style&lt;br /&gt;
* {{ml|Enumerate|main}} - Enumerates parameters as a list&lt;br /&gt;
}}&lt;br /&gt;
| group2 = Arbitrary output&lt;br /&gt;
| list2 = {{Plainlist|&lt;br /&gt;
* {{ml|Map params|map}} - Maps parameters to arbitrary wikitext or a template&lt;br /&gt;
* {{ml|Params}} - Advanced module that enables modifying parameters before operating on them&lt;br /&gt;
* {{ml|ArgRest|main}} - Auto-detects incrementing parameters, no separator support&lt;br /&gt;
* {{ml|For nowiki|template}} - Equivalent to {{tl|For nowiki}} for template parameters&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;BrandonXLF</name></author>
	</entry>
</feed>