<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APercent_and_number%2Fdoc</id>
	<title>Template:Percent and number/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APercent_and_number%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Percent_and_number/doc&amp;action=history"/>
	<updated>2026-04-05T00:36:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Percent_and_number/doc&amp;diff=26793&amp;oldid=prev</id>
		<title>Wikipedia&gt;Frietjes: /* Basic examples */</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Percent_and_number/doc&amp;diff=26793&amp;oldid=prev"/>
		<updated>2016-05-11T23:06:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Basic examples&lt;/span&gt;&lt;/span&gt;&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;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This template may be used to generate a percentage of total followed by the number.  For the reverse, see {{tl|number and percent}}.&lt;br /&gt;
== Usage ==&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|number|total}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|number|total|decimals to round to (zero or greater)}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optional parameters ===&lt;br /&gt;
For two-column table output, use {{para|disp|table}}&lt;br /&gt;
&lt;br /&gt;
To insert a line break before the parenthetical expression, use {{para|disp|br()}}&lt;br /&gt;
&lt;br /&gt;
To add a prefix to the numbers, use {{para|prefix}}; for example, &amp;lt;code&amp;gt;prefix=$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a suffix to the number, use {{para|suffix}}; for example, &amp;lt;code&amp;gt;suffix=&amp;amp;amp;nbsp;units&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To pad the result with zeros to achieve the desired precision, use {{para|pad|yes}}.&lt;br /&gt;
&lt;br /&gt;
To override the default right alignment in table mode, use {{para|align|left}} or {{para|align|center}}.&lt;br /&gt;
&lt;br /&gt;
== Basic examples ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|3333|20000}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|3333|20000}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|3333|20000|3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|3333|20000|3}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|3,333|20,000}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|3,333|20,000}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|3,333|20,000|3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|3,333|20,000|3}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|111|1000|4|pad=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|111|1000|4|pad=yes}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{percent and number|3333|20000|disp=br()}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{percent and number|3333|20000|disp=br()}}&lt;br /&gt;
&lt;br /&gt;
== Table display ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Location !! Percentage !! Population &lt;br /&gt;
|-&lt;br /&gt;
| City A || {{percent and number|5000|12000|disp=table}}&lt;br /&gt;
|-&lt;br /&gt;
| City B || {{percent and number|6500|12000|disp=table}}&lt;br /&gt;
|-&lt;br /&gt;
| City C || {{percent and number|500|12000|disp=table}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Location !! Percentage !! Population &lt;br /&gt;
|-&lt;br /&gt;
| City A || {{percent and number|5000|12000|disp=table}}&lt;br /&gt;
|-&lt;br /&gt;
| City B || {{percent and number|6500|12000|disp=table}}&lt;br /&gt;
|-&lt;br /&gt;
| City C || {{percent and number|500|12000|disp=table}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|percentage}}&lt;br /&gt;
* {{tl|number and percent}} &lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{basepage subpage|&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Mathematical function templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Frietjes</name></author>
	</entry>
</feed>