<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ASprintf%2Fdoc</id>
	<title>Template:Sprintf/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ASprintf%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:Sprintf/doc&amp;action=history"/>
	<updated>2026-05-04T14:39:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Template:Sprintf/doc&amp;diff=37821&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{Documentation}} {{invokes|sprintf}} Provides access to the lua [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format] function.  ==Usage== &lt;pre&gt;{{Sprintf|format string|param1|param2|...|paramN}}&lt;/pre&gt;  The format string is specified according to [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format], which uses [http://www.cplusplus.com/reference/cstdio/printf/ printf formatti...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:Sprintf/doc&amp;diff=37821&amp;oldid=prev"/>
		<updated>2024-10-16T23:47:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation}} {{invokes|sprintf}} Provides access to the lua [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format] function.  ==Usage== &amp;lt;pre&amp;gt;{{Sprintf|format string|param1|param2|...|paramN}}&amp;lt;/pre&amp;gt;  The format string is specified according to [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format], which uses [http://www.cplusplus.com/reference/cstdio/printf/ printf formatti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
{{invokes|sprintf}}&lt;br /&gt;
Provides access to the lua [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format] function.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Sprintf|format string|param1|param2|...|paramN}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The format string is specified according to [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format string.format], which uses [http://www.cplusplus.com/reference/cstdio/printf/ printf formatting] with a few exceptions. See documentation for full details. The paramters should be provided as required by the format string.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* Two strings: {{Sprintf|%s - %s|abyssal|whip}}&lt;br /&gt;
* Floating point formatting: {{Sprintf|%3.2f|12345.678901}}&lt;br /&gt;
* Hexadecimal conversion: {{Sprintf|%x|100}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Two strings: {{Sprintf|%s - %s|abyssal|whip}}&lt;br /&gt;
* Floating point formatting: {{Sprintf|%3.2f|12345.678901}}&lt;br /&gt;
* Hexadecimal conversion: {{Sprintf|%x|100}}&lt;br /&gt;
&lt;br /&gt;
{{TemplateData|&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Format string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Parameter 1&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Param to be inserted in the first replacement position.&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;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Parameter 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Second parameter (repeat for as many as are specified by the format string)&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Provides access to the lua string formatting function.&amp;quot;,&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;1&amp;quot;,&lt;br /&gt;
		&amp;quot;2&amp;quot;,&lt;br /&gt;
		&amp;quot;3&amp;quot;&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;
&amp;lt;includeonly&amp;gt;[[Category:Formatting templates]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>