<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.wrestlewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fnumdisp%2Fdoc</id>
	<title>Template:Convert/numdisp/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.wrestlewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fnumdisp%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.wrestlewiki.com/w/index.php?title=Template:Convert/numdisp/doc&amp;action=history"/>
	<updated>2026-07-18T13:19:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://www.wrestlewiki.com/w/index.php?title=Template:Convert/numdisp/doc&amp;diff=1010&amp;oldid=prev</id>
		<title>Zweig: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://www.wrestlewiki.com/w/index.php?title=Template:Convert/numdisp/doc&amp;diff=1010&amp;oldid=prev"/>
		<updated>2012-01-11T06:01:26Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:01, 11 January 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Zweig</name></author>
		
	</entry>
	<entry>
		<id>https://www.wrestlewiki.com/w/index.php?title=Template:Convert/numdisp/doc&amp;diff=1009&amp;oldid=prev</id>
		<title>198.102.153.2 at 20:41, 15 July 2011</title>
		<link rel="alternate" type="text/html" href="https://www.wrestlewiki.com/w/index.php?title=Template:Convert/numdisp/doc&amp;diff=1009&amp;oldid=prev"/>
		<updated>2011-07-15T20:41:14Z</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;The '''[[Template:Convert/numdisp]]''' processes a number, for display, by checking to display a fraction part (at &amp;quot;/&amp;quot;), else it just uses [[Help:Parser functions|parser-function]] &amp;lt;nowiki&amp;gt;{{formatnum:{{{1|6000}}}}}&amp;lt;/nowiki&amp;gt; to add commas, such as to show &amp;quot;6,000&amp;quot;. In 99% of recent Wikipedia usage, there are relatively few articles using fractions (less than 1% of articles using Convert show fractions).&lt;br /&gt;
: '''Usage:'''&amp;amp;nbsp; &amp;lt;nowiki&amp;gt;{{convert/numdisp|6+3/8}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{convert/numdisp|6+3/8}}&lt;br /&gt;
:::&amp;lt;nowiki&amp;gt;{{convert/numdisp|-4-1/2}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{convert/numdisp|-4-1/2}}&lt;br /&gt;
:::&amp;lt;nowiki&amp;gt;{{convert/numdisp|23500}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{convert/numdisp|23500}}&lt;br /&gt;
:::&amp;lt;nowiki&amp;gt;{{convert/numdisp|2300+643/1250}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{convert/numdisp|2300+643/1250}}&lt;br /&gt;
:::&amp;lt;nowiki&amp;gt;{{convert/numdisp|14+6/ }}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; &amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;Pfunc_expr_unexpected_operator&amp;quot;&amp;gt;Expression error: Unexpected &amp;amp;lt; operator&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The check, for fraction parts, uses parser-function &amp;lt;nowiki&amp;gt;{{#titleparts:xx/xx|1|2}}&amp;lt;/nowiki&amp;gt; to split a number at &amp;quot;/&amp;quot; (if any, as in: 6+3/8) and then checks if part 2 (the denominator, after the slash) contains a number, to trigger use of {{tl|Convert/numdisp/frac}}). Hence, the template uses:&lt;br /&gt;
::: &amp;lt;nowiki&amp;gt;#if: {{#titleparts:{{{1|6+3/8}}}|1|2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
That if-expression will be true if a denominator exists (such as &amp;quot;8&amp;quot; in 6+3/8).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Template:Convert/numdisp/frac]] - branches by negative/0/positive fraction&lt;br /&gt;
* [[Template:Convert/numdisp/frac1]] - displays positive fractions&lt;br /&gt;
* [[Template:Convert/numdisp/frac-1]] - displays negative fractions&lt;br /&gt;
* [[Template:Convert/numdisp/frac0]] - displays fractions led by 0&lt;br /&gt;
* [[Template_talk:Convert/nesting]] - issues about nested if-else logic &amp;amp; templates&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Subtemplates of Template Convert]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--PUT any INTERWIKI links HERE to avoid changing template--&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.102.153.2</name></author>
		
	</entry>
</feed>