<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ANumcr2namecr%2Fdoc</id>
	<title>Template:Numcr2namecr/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ANumcr2namecr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Numcr2namecr/doc&amp;action=history"/>
	<updated>2026-04-08T17:41:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Numcr2namecr/doc&amp;diff=12294&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  === Usage === This template converses a &#039;&#039;&#039;&#039;&#039;numerical&#039;&#039; character referenc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Numcr2namecr/doc&amp;diff=12294&amp;oldid=prev"/>
		<updated>2020-10-18T21:09:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  === Usage === This template converses a &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;numerical&amp;#039;&amp;#039; character referenc...&amp;quot;&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 ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This template converses a &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;numerical&amp;#039;&amp;#039; character reference&amp;#039;&amp;#039;&amp;#039; into a &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;named&amp;#039;&amp;#039; character reference&amp;#039;&amp;#039;&amp;#039;. It converts a number to the named character reference for HTML, also often called a &amp;quot;character entity&amp;quot;. The input number can be decimal or hexadecimal.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Numcr2namecr|A0}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{Numcr2namecr|A0}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Numcr2namecr|160|base=dec}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{Numcr2namecr|160|base=dec}}&lt;br /&gt;
&lt;br /&gt;
By default the numeric base is presumed to be &amp;#039;&amp;#039;hexadecimal&amp;#039;&amp;#039;. When the base is decimal, it needs to be specified using &amp;quot;base=dec&amp;quot;&lt;br /&gt;
&lt;br /&gt;
When the number has no related named character, an blank is presented. This message can be overruled:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Numcr2namecr|61}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{Numcr2namecr|61}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Numcr2namecr|61|notfoundmsg=Not named}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{Numcr2namecr|61|notfoundmsg=Not named}}&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;First parameter, 1=&amp;#039;&amp;#039;&amp;#039; Unnamed, required. Numerical value in hex or decimal. Hexadecimal can have the prefix &amp;quot;0x&amp;quot;. Input like &amp;#039;&amp;#039;&amp;amp;amp;#160;&amp;#039;&amp;#039; (expected output &amp;amp;amp;nbsp;) can not be processed.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;base=&amp;#039;&amp;#039;&amp;#039; Required when base=decimal, default base=hex. When the input number (parameter 1) is &amp;#039;&amp;#039;decimal&amp;#039;&amp;#039;, the base= &amp;#039;&amp;#039;must&amp;#039;&amp;#039; be defined through: &amp;quot;base=dec&amp;quot;, &amp;quot;base=d&amp;quot;, &amp;quot;base=10&amp;quot;.&lt;br /&gt;
:For clarity in code, the hex base may be defined as well: &amp;quot;base=hex&amp;quot;, &amp;quot;base=h&amp;quot;, &amp;quot;base=16&amp;quot;. The base is also hexadecimal when the prefix &amp;quot;0x&amp;quot; is used with the number.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;notfoundmsg=&amp;#039;&amp;#039;&amp;#039; Optional message, default= (blank). Will be returned when the value does not have a named reference.  &lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{numcr2namecr|61}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{numcr2namecr|61}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{numcr2namecr|61|notfoundmsg=Cannot find the name}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --&amp;gt; {{Numcr2namecr|61|notfoundmsg=Cannot find the name}}&lt;br /&gt;
&lt;br /&gt;
===Technical notes===&lt;br /&gt;
The template uses the subtemplate {{tlx|numcr2namecr/listbydec}}, which contains a list of all &amp;#039;&amp;#039;&amp;#039;2032&amp;#039;&amp;#039;&amp;#039; character names (or &amp;#039;&amp;#039;&amp;#039;1446&amp;#039;&amp;#039;&amp;#039; unique characters). Hexadecimal-decimal calculations are performed by {{tlx|hex2dec}} and {{tlx|hexadecimal}}.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[List of XML and HTML character entity references]] gives background and an overview&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Conversion templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>