<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_item%2Fdoc</id>
	<title>Template:Format item/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_item%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Format_item/doc&amp;action=history"/>
	<updated>2026-05-10T21:12:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Format_item/doc&amp;diff=36691&amp;oldid=prev</id>
		<title>imported&gt;Gonnym: doc cleanup</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Format_item/doc&amp;diff=36691&amp;oldid=prev"/>
		<updated>2021-12-18T12:46:59Z</updated>

		<summary type="html">&lt;p&gt;doc cleanup&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:Item}}&lt;br /&gt;
This template transforms a given [[Template:item|item]] using a given template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|Format item|item{{=}}&amp;#039;&amp;#039;[[Template:Item|Item]]&amp;#039;&amp;#039;|template{{=}}&amp;#039;&amp;#039;TransformationTemplate&amp;#039;&amp;#039;|...}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;TransformationTemplate&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; is called with the parameters that the item has been created with, plus any additional parameters passed to {{tl|Format item}}. Contents of the item take precedence over the additional parameters, unless the parameter name is prepended with {{nowrap|&amp;lt;code&amp;gt;important &amp;lt;/code&amp;gt;.}} If the parameter name collides with the parameters of {{tl|Format item}} itself, prepend it with {{nowrap|&amp;lt;code&amp;gt;param &amp;lt;/code&amp;gt;.}} There is no need to combine {{nowrap|&amp;lt;code&amp;gt;param &amp;lt;/code&amp;gt;}}and {{nowrap|&amp;lt;code&amp;gt;important &amp;lt;/code&amp;gt;}}, though.&lt;br /&gt;
&lt;br /&gt;
It is also possible to [[Template:Item#Format each item using a template|transform multiple items at once]], but not with this template.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Automarkup&lt;br /&gt;
|1={{((}}Format item&lt;br /&gt;
{{!}} item = {{((}}Item{{!}}name=Tom{{!}}animal=cat{{))}}&lt;br /&gt;
{{!}} template = Show pet&lt;br /&gt;
{{))}}&lt;br /&gt;
|2={{((}}Format item&lt;br /&gt;
{{!}} item = {{((}}Item{{!}}name=Tom{{!}}animal=cat{{))}}&lt;br /&gt;
{{!}} template = Show pet&lt;br /&gt;
{{!}} legs = 4&lt;br /&gt;
{{))}}&lt;br /&gt;
|3={{((}}Format item&lt;br /&gt;
{{!}} item = {{((}}Item{{!}}name=Tom{{!}}animal=cat{{))}}&lt;br /&gt;
{{!}} template = Show pet&lt;br /&gt;
{{!}} param legs = 4&lt;br /&gt;
{{))}}&lt;br /&gt;
|4={{((}}Format item&lt;br /&gt;
{{!}} item = {{((}}Item{{!}}name=Tom{{!}}animal=cat{{))}}&lt;br /&gt;
{{!}} template = Show pet&lt;br /&gt;
{{!}} animal = dog&lt;br /&gt;
{{))}}&lt;br /&gt;
|5={{((}}Format item&lt;br /&gt;
{{!}} item = {{((}}Item{{!}}name=Tom{{!}}animal=cat{{))}}&lt;br /&gt;
{{!}} template = Show pet&lt;br /&gt;
{{!}} important animal = dog&lt;br /&gt;
{{))}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Component}}&lt;br /&gt;
* {{tl|Item}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Wikipedia formatting and function templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Gonnym</name></author>
	</entry>
</feed>