<?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%3AChem_molar_mass%2Fformat</id>
	<title>Template:Chem molar mass/format - 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%3AChem_molar_mass%2Fformat"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Chem_molar_mass/format&amp;action=history"/>
	<updated>2026-04-04T21:10:20Z</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:Chem_molar_mass/format&amp;diff=7651&amp;oldid=prev</id>
		<title>&gt;DMacks: /* top */ {{{value|}}} comes as zero not blank (thanks User:Christian75!)</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Chem_molar_mass/format&amp;diff=7651&amp;oldid=prev"/>
		<updated>2020-06-24T04:11:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;top: &lt;/span&gt; {{{value|}}} comes as zero not blank (thanks &lt;a href=&quot;/wiki/index.php?title=User:Christian75&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Christian75 (page does not exist)&quot;&gt;User:Christian75&lt;/a&gt;!)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#if:{{{fixed|}}}|{{#ifexpr:{{{value|}}}&amp;gt;0|[[Category:Chem-molar-mass both hardcoded and calculated]]}}}}{{#iferror:{{{value|}}}&amp;lt;!--&lt;br /&gt;
 iferror: true&lt;br /&gt;
--&amp;gt;|{{#if:{{{fixed|}}}|&amp;lt;!-- error in fixed, return as is: --&amp;gt;{{{fixed|}}}|&amp;lt;!-- error is in calculation: --&amp;gt;&amp;lt;sup class=&amp;quot;noprint Inline-Template&amp;quot; style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;&amp;amp;#91;&amp;#039;&amp;#039;[[Wikipedia:WikiProject Chemicals/Molar mass#Cannot calculate molar mass|&amp;lt;span title=&amp;quot;Cannot calculate molar mass from chemical formula)&amp;quot;&amp;gt;cannot calculate&amp;lt;/span&amp;gt;]]&amp;#039;&amp;#039;&amp;amp;#93;&amp;lt;/sup&amp;gt;}}{{main other|[[Category:Articles with erroneous molar mass calculations]]}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
 iferror:false&lt;br /&gt;
 prefix: hidden sortkey ntsh&lt;br /&gt;
 buggy: this way, sorted is the non-rounded value...&lt;br /&gt;
 --&amp;gt;|{{#ifeq:{{{sortable|no}}}|yes|{{ntsh|1={{#if:{{{fixed|}}}|{{#invoke:String|match|s={{{fixed|}}} |pattern=^[%d%.%-%−]+ |plain=false |nomatch={{{fixed|0}}}}} |{{{value|0}}} }} |debug=no&amp;lt;!-- set to =yes to test/show the hidden key --&amp;gt;}} }}&amp;lt;!--&lt;br /&gt;
 round the value:&lt;br /&gt;
 parameter round can be: yes, no, smart, number.&lt;br /&gt;
 rounding number cannot be greater than smart (=smart number of decimals), so use min(,).&lt;br /&gt;
&lt;br /&gt;
 smart number cannot be empty, but is covered with &amp;quot;|2&amp;quot; here&lt;br /&gt;
  --&amp;gt;{{#if:{{{fixed|}}}|{{{fixed|}}}|&lt;br /&gt;
{{#ifexpr:{{{value|0}}}=0|&amp;lt;!-- no input, no value output --&amp;gt;|{{val|{{#invoke:math|precision_format |{{{value|0}}} &lt;br /&gt;
 |{{#switch:{{{round|smart}}}&lt;br /&gt;
 |yes={{min|2|{{{smart_round|2}}}}}&amp;lt;!-- min(2, smart) --&amp;gt;&lt;br /&gt;
 |no={{{smart_round|2}}}&amp;lt;!-- smart --&amp;gt;&lt;br /&gt;
 ||default|smart={{{smart_round|2}}}&lt;br /&gt;
 |#default={{min|{{{round|0}}}|{{{smart_round|2}}}}}&amp;lt;!-- when number; min(number, smart) --&amp;gt;}}&lt;br /&gt;
}} }} }} }}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
 iferror: close&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
 suffix: if sort=no then add unit&lt;br /&gt;
--&amp;gt;{{#ifexpr:{{{value|0}}}=0||{{#ifeq:|{{{sortable|unk}}}|no|&amp;amp;nbsp;{{#if:{{{unit|}}} |{{{unit|}}}|g·mol&amp;lt;sup&amp;gt;−1&amp;lt;/sup&amp;gt;}}}}}}&amp;lt;!--&lt;br /&gt;
 suffixes, will always show:&lt;br /&gt;
--&amp;gt;{{{ref|}}}{{#if:{{{comment|}}}|&amp;amp;#x20;{{{comment|}}}}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-xxx-&amp;gt; &amp;lt;small&amp;gt;(debug:smart_round={{{smart_round|(blank)}}})&amp;lt;/small&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;{{documentation|1=Template:Chem molar mass/doc}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;DMacks</name></author>
	</entry>
</feed>