<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHands%2Fnumdisp</id>
	<title>Template:Hands/numdisp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHands%2Fnumdisp"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Hands/numdisp&amp;action=history"/>
	<updated>2026-04-04T18:35:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Template:Hands/numdisp&amp;diff=6666&amp;oldid=prev</id>
		<title>&gt;GKFX: Remove strlen short</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Hands/numdisp&amp;diff=6666&amp;oldid=prev"/>
		<updated>2021-04-17T12:46:12Z</updated>

		<summary type="html">&lt;p&gt;Remove strlen short&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--============================================================&lt;br /&gt;
-- Display a number, with optional fraction part: 6+3/8&lt;br /&gt;
--============================================================&lt;br /&gt;
--                                (see NOTES at bottom)&lt;br /&gt;
--&lt;br /&gt;
--&amp;gt;&amp;lt;/noinclude&amp;gt;{{#if:{{#titleparts:{{{1|-1200-3~118}}}|1|2}}&lt;br /&gt;
|{{hands/numdisp/frac&lt;br /&gt;
  |{{{1|-1200-3/118}}}|{{#titleparts:{{{1|-1200-3/118}}}|1|1}}|{{#titleparts:{{{1|-1200-3/118}}}|1|2}}}}&amp;lt;!--split at &amp;quot;/&amp;quot;&lt;br /&gt;
--else--&amp;gt;|{{#ifexpr:{{{1|-14000.00}}}*0 = 0 and {{{1|-14000.00}}} &amp;lt; 0&lt;br /&gt;
  |&amp;lt;!--then re-build negative number (see NOTE Z4 below)&lt;br /&gt;
--&amp;gt;{{formatnum:&lt;br /&gt;
  {{padright:−&amp;lt;!--&amp;amp;minus--&amp;gt;{{#expr:-( {{{1|-14000.00}}} ) }}&amp;lt;!--endexpr&lt;br /&gt;
    --put decimal if needed--&amp;gt;{{&lt;br /&gt;
     #ifexpr:{{{1|-14000.00}}}0={{{1|-14000.00}}}&lt;br /&gt;
     and {{{1|-14000.00}}}=floor( {{{1|-14000.00}}} )|.}}&amp;lt;!--&lt;br /&gt;
  padlength--&amp;gt;|{{#expr:&lt;br /&gt;
    {{#invoke:String|len|s={{{1|-14000.00}}}}} + {{&lt;br /&gt;
    #ifeq:&amp;amp;minus| {{padleft:|6|{{{1|x}}} }} |-6|0}} }}&amp;lt;!--endexpr&lt;br /&gt;
    --&amp;gt;|0}}&amp;lt;!--endpadright end-zeroes &amp;quot;0&amp;quot; to original length&lt;br /&gt;
  --&amp;gt;}}&amp;lt;!--endformatnum&lt;br /&gt;
  else--&amp;gt;|{{formatnum: {{{1|6000.500}}} }}}}&amp;lt;!--endif {1}&amp;lt;0&lt;br /&gt;
--&amp;gt;}}&amp;lt;noinclude&amp;gt;&amp;lt;!--endif {#titleparts..}&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--NOTES:&lt;br /&gt;
--     [ These comments are skipped by &amp;lt;noinclude&amp;gt; and not sent&lt;br /&gt;
--       in formatted Internet pages, only during edit. ]&lt;br /&gt;
--&lt;br /&gt;
--NOTE A1: This template processes a number, for display, by&lt;br /&gt;
--     checking to display a fraction part (&amp;quot;/&amp;quot;), else it&lt;br /&gt;
--     will check for negative to display a unicode &amp;amp;minus&lt;br /&gt;
--     and {{formatnum:{{#expr:abs( {{{1|-6000}}} )}}}} such&lt;br /&gt;
--     as &amp;quot;-6000&amp;quot; with a full minus sign rather than hyphen.&lt;br /&gt;
--     In 99% of Wikipedia usage, there are no fractions.&lt;br /&gt;
--&lt;br /&gt;
--NOTE D2: The check, for fraction parts, uses parser-function&lt;br /&gt;
--     #titleparts to split the number at &amp;quot;/&amp;quot; (if any) and&lt;br /&gt;
--     then checks part 2 (the denominator, after the slash)&lt;br /&gt;
--     to trigger use of {{hands/numdisp/fracparts}}. Hence,&lt;br /&gt;
--         #if: {{#titleparts:{{{1|6+3/8}}}|1|2}}&lt;br /&gt;
--     will be true if a denominator exists (such as &amp;quot;8&amp;quot;).&lt;br /&gt;
--&lt;br /&gt;
--NOTE N3: This template uses minimal expansion depth of the&lt;br /&gt;
--     if-else logic by checking for &amp;quot;/&amp;quot; before invoking the&lt;br /&gt;
--     nested subtemplate {{hands/numdisp/fracparts}}. The&lt;br /&gt;
--     check for a negative number increases the nesting depth&lt;br /&gt;
--     by 1 level to apply abs({1}) in a nested {#expr:} parser&lt;br /&gt;
--     function, to use the absolute value of the amount {1}.&lt;br /&gt;
--&lt;br /&gt;
--NOTE Z4: Any end-zeroes on a decimal are preserved by not&lt;br /&gt;
--     using positive amounts in an expression, and for rare&lt;br /&gt;
--     negative amounts, the &amp;amp;minus with inverse -&amp;lt;nowiki/&amp;gt;{1} is padded&lt;br /&gt;
--     by {padright:} with end-zeroes &amp;quot;0&amp;quot; to {strlen_short} but&lt;br /&gt;
--     uses #ifexpr:{1}0={1} and floor({1})={1} to put &amp;quot;.&amp;quot;.&lt;br /&gt;
--     So, {strlen_short} keeps minimal expansion depth of +2.&lt;br /&gt;
--&lt;br /&gt;
-- WARNING: *** DO NOT DELETE COMMENTS FROM THIS TEMPLATE ***&lt;br /&gt;
--      Unless these comments are readily available, people&lt;br /&gt;
--      might tinker with the coding (or rename templates),&lt;br /&gt;
--      in hopes to clarify operation because these comments&lt;br /&gt;
--      were not nearby to explain the issues. Having these&lt;br /&gt;
--      comments only on a doc-page increases the danger of&lt;br /&gt;
--      explanations no longer matching the current coding.&lt;br /&gt;
--      UPDATE these comments to match changes to the template.&lt;br /&gt;
--      UPDATE the HISTORY during major changes (not typos).&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--HISTORY:&lt;br /&gt;
--03Apr09 Created by [[User:Jimp]] on English Wikipedia.&lt;br /&gt;
--19Nov10 Invokes subtemplate only if has denominator (at &amp;quot;/&amp;quot;).&lt;br /&gt;
--19Nov10 Put NOTES comments to explain template coding.&lt;br /&gt;
--19Nov10 Put HISTORY comments to log major changes.&lt;br /&gt;
--19Nov10 Put all parameters on 1 line to avoid newline &amp;quot;2^ /3&amp;quot;&lt;br /&gt;
--20Nov10 Linked {Documentation} to hold any interwiki links.&lt;br /&gt;
--12Feb11 Shows Unicode &amp;amp;minus (&amp;quot;−&amp;quot;) for negative numbers.&lt;br /&gt;
--17Feb11 Used {padright:} to re-add end-zeroes on negatives.&lt;br /&gt;
--17Feb11 Used #ifexpr:{1}0={1} and floor({1})={1}, to put &amp;quot;.&amp;quot;&lt;br /&gt;
--30Nov13 Fixed to allow prefix &amp;quot;&amp;amp;minus;&amp;quot; as extra 6 long.&lt;br /&gt;
--07Jan14 Fixed to pass negative sum without padding &amp;quot;0&amp;quot;.&lt;br /&gt;
--&lt;br /&gt;
 ** Add interwiki links to /doc subpage to avoid changes here **&lt;br /&gt;
--&lt;br /&gt;
--&amp;gt;{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;GKFX</name></author>
	</entry>
</feed>