<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://afropedia.world/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fspell</id>
	<title>Template:Convert/spell - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://afropedia.world/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fspell"/>
	<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Template:Convert/spell&amp;action=history"/>
	<updated>2026-06-23T09:30:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://afropedia.world/index.php?title=Template:Convert/spell&amp;diff=5574&amp;oldid=prev</id>
		<title>Djehuti: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Template:Convert/spell&amp;diff=5574&amp;oldid=prev"/>
		<updated>2024-06-17T21:17:12Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--&lt;br /&gt;
-=============================================================&lt;br /&gt;
- Template:Convert/spell - Convert and spell amount in words&lt;br /&gt;
-=============================================================&lt;br /&gt;
--                                  (see NOTES at bottom)&lt;br /&gt;
--&amp;gt;{{#switch:{{{disp|b}}} &amp;lt;!--#1a--&amp;gt;&lt;br /&gt;
  | out|2|output only|#|number =&lt;br /&gt;
  | #default = &amp;lt;!--else-show-inputs--&lt;br /&gt;
=============================================== Show inputs&lt;br /&gt;
------------------------------------ show amount 1&lt;br /&gt;
--&amp;gt;{{#switch: {{{1|0}}}&lt;br /&gt;
 | 1/2 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-half&lt;br /&gt;
 | 1/3 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-third&lt;br /&gt;
 | 2/3 = {{#ifeq:{{{case|L}}}|u|T|t}}wo-thirds&lt;br /&gt;
 | 1/4 = {{&lt;br /&gt;
    #ifeq:{{{sp|en}}}|us&lt;br /&gt;
    | {{#ifeq:{{{case|L}}}|u|O|o}}ne-fourth&lt;br /&gt;
    | {{#ifeq:{{{case|L}}}|u|O|o}}ne-quarter}}&lt;br /&gt;
 | 3/4 = {{&lt;br /&gt;
    #ifeq:{{{sp|en}}}|us&lt;br /&gt;
    | {{#ifeq:{{{case|L}}}|u|T|t}}hree-fourths&lt;br /&gt;
    | {{#ifeq:{{{case|L}}}|u|T|t}}hree-quarters}}&lt;br /&gt;
 | 1/5 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-fifth&lt;br /&gt;
 | 2/5 = {{#ifeq:{{{case|L}}}|u|T|t}}wo-fifths&lt;br /&gt;
 | 3/5 = {{#ifeq:{{{case|L}}}|u|T|t}}hree-fifths&lt;br /&gt;
 | 4/5 = {{#ifeq:{{{case|L}}}|u|F|f}}our-fifths&lt;br /&gt;
 | 1/6 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-sixth&lt;br /&gt;
 | 5/6 = {{#ifeq:{{{case|L}}}|u|F|f}}ive-sixths&lt;br /&gt;
 | 1/8 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-eighth&lt;br /&gt;
 | 3/8 = {{#ifeq:{{{case|L}}}|u|T|t}}hree-eighths&lt;br /&gt;
 | 5/8 = {{#ifeq:{{{case|L}}}|u|F|f}}ive-eighths&lt;br /&gt;
 | 7/8 = {{#ifeq:{{{case|L}}}|u|S|s}}even-eighths&lt;br /&gt;
 | 1/16 = {{#ifeq:{{{case|L}}}|u|O|o}}ne-sixteenth&lt;br /&gt;
 | 3/16 = {{#ifeq:{{{case|L}}}|u|T|t}}hree-sixteenths&lt;br /&gt;
 | 5/16 = {{#ifeq:{{{case|L}}}|u|F|f}}ive-sixteenths&lt;br /&gt;
 | 7/16 = {{#ifeq:{{{case|L}}}|u|S|s}}even-sixteenths&lt;br /&gt;
 | 9/16 = {{#ifeq:{{{case|L}}}|u|N|n}}ine-sixteenths&lt;br /&gt;
 | 11/16 = {{#ifeq:{{{case|L}}}|u|E|e}}leven-sixteenths&lt;br /&gt;
 | 13/16 = {{#ifeq:{{{case|L}}}|u|T|t}}hirteen-sixteenths&lt;br /&gt;
 | 15/16 = {{#ifeq:{{{case|L}}}|u|F|f}}ifteen-sixteenths&lt;br /&gt;
 | #default =&lt;br /&gt;
   {{spellnum|{{formatnum:{{{1|9500.12}}}|R}}&amp;lt;!--&lt;br /&gt;
   --&amp;gt;| case={{{case|L}}} &amp;lt;!--&lt;br /&gt;
   --&amp;gt;| sp={{{sp|us}}} &amp;lt;!--&lt;br /&gt;
   --&amp;gt;| adj={{{adj|off}}}&amp;lt;!--pass adjective mode&lt;br /&gt;
   --&amp;gt;}}&amp;lt;!--endspellnum&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--endswitch {1}&lt;br /&gt;
------------------------------------------------ space/hyphen&lt;br /&gt;
--&amp;gt;{{#ifeq:{{{adj|off}}}|off|&amp;lt;!--&lt;br /&gt;
  then--&amp;gt;{{&lt;br /&gt;
    #ifexpr:{{formatnum:{{{1|9999}}}|R}} &amp;gt; 999|&amp;amp;#32;|&amp;amp;nbsp;}}&amp;lt;!--&lt;br /&gt;
  else--&amp;gt;|-&amp;lt;!--put hyphen for adjective mode&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--endifeq {adj}=off&lt;br /&gt;
--show-unit--&amp;gt;{{convert|{{{1|10}}}|{{{2|m}}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;|abbr=def&amp;lt;!-- don&amp;#039;t use an abbreviation with spelt-out numbers&lt;br /&gt;
  --&amp;gt;|lk={{{lk|off}}}|adj={{{sing|{{{adj|off}}}}}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;|disp=unit|sp={{{sp|}}} }}&amp;lt;!--show unit&lt;br /&gt;
=============================================== Mid-text if any&lt;br /&gt;
  --&amp;gt;{{#ifeq: {{{adj|off}}}|mid|&amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{#ifeq:{{padleft:|1|{{{4|}}}}}|-||&amp;amp;#32;}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{{4|zzz}}}&amp;lt;!--show mid-text&lt;br /&gt;
  --&amp;gt;}}&amp;lt;!--endifeq {adj}=mid&lt;br /&gt;
----------------------------------------------- Show separator&lt;br /&gt;
--&amp;gt;{{#switch:{{{disp|b}}} &amp;lt;!--#1b--&amp;gt;&lt;br /&gt;
  | b = &amp;amp;#32;(&lt;br /&gt;
  | br = &amp;lt;br/&amp;gt;&lt;br /&gt;
  | sqbr = &amp;amp;#32;[&lt;br /&gt;
  | or = &amp;amp;#32;or&amp;amp;#32;&lt;br /&gt;
  | s|/ = &amp;amp;#32;/&amp;amp;#32;&lt;br /&gt;
  | comma = ,&amp;amp;#32;&lt;br /&gt;
  | semi|semicolon = &amp;amp;#59;&amp;amp;#32;&lt;br /&gt;
  | x = &amp;lt;b/&amp;gt;{{{4|zzz}}}&amp;lt;b/&amp;gt;&lt;br /&gt;
  | #default = &amp;#039;&amp;#039;&amp;#039;[[Template:Convert/spell|Convert/spell]] -&amp;lt;!--&lt;br /&gt;
  --&amp;gt; Invalid separator&amp;#039;&amp;#039;&amp;#039; &amp;quot;disp={{{disp|xx}}}&amp;quot; - try: disp=s,&amp;lt;!--&lt;br /&gt;
  --&amp;gt; disp=or, disp=comma, disp=semi, disp=out, disp=number,&amp;lt;!--&lt;br /&gt;
  --&amp;gt; disp=x or disp=b.&lt;br /&gt;
  }}&amp;lt;!--endswitch {disp} #1b --&amp;gt;&lt;br /&gt;
}}&amp;lt;!--endsw {disp} #1a&lt;br /&gt;
================================================= Show results&lt;br /&gt;
--&amp;gt;{{formatnum: {{{{&amp;lt;!--insert commas if needed--&amp;gt;&lt;br /&gt;
#ifeq:{{{words|in}}}|out|spellnum|1x}}&amp;lt;!--spell number in result?&lt;br /&gt;
  --&amp;gt;|{{convert&lt;br /&gt;
       |{{formatnum:{{{1|9500.12}}}}}&amp;lt;!--endformatnum&lt;br /&gt;
    --&amp;gt;|{{{2|m}}}|{{&lt;br /&gt;
         #switch:{{{2|m}}}&lt;br /&gt;
         | cm = {{{3|in}}} | in = {{{3|cm}}}&lt;br /&gt;
         | ft = {{{3|m}}}  | km = {{{3|mi}}}&lt;br /&gt;
         | m = {{{3|ft}}}  | mi = {{{3|km}}}&lt;br /&gt;
         | #default = {{{3|0}}}&lt;br /&gt;
       }}&amp;lt;!--endsw {2}&lt;br /&gt;
    --&amp;gt;|{{#if:{{{r|}}}|{{{r|9}}}&amp;lt;!--allow r=round else...&lt;br /&gt;
      else--&amp;gt;|{{#ifeq:{{{adj|off}}}|mid|{{{5|}}}&amp;lt;!--&lt;br /&gt;
        else--&amp;gt;|{{#ifeq:{{{disp|b}}}|x|{{{6|}}}&amp;lt;!--&lt;br /&gt;
          else--&amp;gt;|{{{4|}}}&amp;lt;!--&lt;br /&gt;
        --&amp;gt;}}&amp;lt;!--endifeq disp=x&lt;br /&gt;
      --&amp;gt;}}&amp;lt;!--endifeq adj=mid&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--endif r&lt;br /&gt;
    --&amp;gt;|{{{5|}}}|{{{6|}}}&amp;lt;!--optional&lt;br /&gt;
    --&amp;gt;|disp=output number only&amp;lt;!--show result 4 &amp;amp; unit--&lt;br /&gt;
    --&amp;gt;|abbr=comma&amp;lt;!--use abbreviation-mode&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--endconvert of amount&lt;br /&gt;
--&amp;gt;|prec={{#ifeq:{{#expr: 0*{{{4|a}}} }}|0&amp;lt;!--if {4} numeric&lt;br /&gt;
     then--&amp;gt;|{{{4|2}}}&amp;lt;!--precision as {4}--&lt;br /&gt;
     else--&amp;gt;|{{#if:{{{r|}}}&amp;lt;!--&lt;br /&gt;
       then--&amp;gt;|{{{r|}}}&amp;lt;!--use r=rounding&lt;br /&gt;
       else--&amp;gt;|{{precision&lt;br /&gt;
         |{{formatnum:{{{1|9500.12}}}|R}}}}&amp;lt;!--&lt;br /&gt;
     --&amp;gt;}}&amp;lt;!--endif {r}&lt;br /&gt;
   --&amp;gt;}}&amp;lt;!--endif {4} numeric&lt;br /&gt;
   --&amp;gt;| case=L &amp;lt;!--&lt;br /&gt;
   --&amp;gt;| adj={{{adj|off}}}&amp;lt;!--pass adjective mode&lt;br /&gt;
   --&amp;gt;}}&amp;lt;!--end 1x/spellnum #2&lt;br /&gt;
 --&amp;gt;}}&amp;lt;!--endformatnum&lt;br /&gt;
--------------------------------------------------&lt;br /&gt;
--&amp;gt;{{#switch:{{{disp|b}}} &amp;lt;!-- #2 --&amp;gt;&lt;br /&gt;
  | number|#|output number only =&lt;br /&gt;
  | #default =&lt;br /&gt;
  &amp;amp;#32;&amp;lt;!--space&lt;br /&gt;
  --&amp;gt;{{convert|{{formatnum:{{{1|10,005.123}}}|R}}&amp;lt;!--endformatnum&lt;br /&gt;
    --&amp;gt;|{{{2|m}}}|{{{3|0}}}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;|disp=u2&amp;lt;!--show result unit--&lt;br /&gt;
    --&amp;gt;|lk={{&lt;br /&gt;
    #switch:{{{lk|off}}}&amp;lt;!--condense link-mode as: off/on--&amp;gt;&lt;br /&gt;
      | off|in = off&lt;br /&gt;
      | on|out = on&lt;br /&gt;
    }}&amp;lt;!--endsw{lk}--&lt;br /&gt;
    --&amp;gt;|abbr={{&amp;lt;!--use abbreviation-mode--&amp;gt;&lt;br /&gt;
    #switch:{{{words|A{{{abbr|on}}}}}}&amp;lt;!--condense 7 values to off/on--&amp;gt;&lt;br /&gt;
      | out|Anone|Aoff = off&amp;lt;!-- don&amp;#039;t use abbr with spelt-out numbers --&amp;gt;&lt;br /&gt;
      | on&lt;br /&gt;
    }}&amp;lt;!--endsw{abbr}--&lt;br /&gt;
    --&amp;gt;|adj={{{sing|{{{adj|off}}}}}}&amp;lt;!--use adjective-mode&lt;br /&gt;
    --&amp;gt;|r={{{sp|}}} }}&amp;lt;!--endconvert of amount&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--endsw {disp} #2&lt;br /&gt;
-------------------------------------------------- show end text&lt;br /&gt;
  --&amp;gt;{{#switch:{{{disp|b}}} &amp;lt;!-- #3 --&amp;gt;&lt;br /&gt;
   | b = )&lt;br /&gt;
   | sqbr = ]&lt;br /&gt;
   | x = &amp;lt;b/&amp;gt;{{{5|}}}&amp;lt;b/&amp;gt;&lt;br /&gt;
   | #default =&lt;br /&gt;
   }}&amp;lt;!--endsw {disp} #3&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
-------------------------------------------------- Doc text--&amp;gt;&lt;br /&gt;
{| width=585px style=&amp;quot;background:transparent;&amp;quot;&lt;br /&gt;
| The converter [[Template:Convert/spell]] will convert an amount and display the amount spelled in words. The resulting 2nd amount will be shown using a numeral (&amp;quot;330 ft&amp;quot;), unless option words=out is used. To set the rounding precision, the output unit must be specified, or put &amp;quot;0&amp;quot; to default.&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;Usage&amp;#039;&amp;#039;&amp;#039;: &amp;amp;nbsp; &amp;amp;nbsp; {&amp;amp;#123;convert/spell |100|m|ft}}&lt;br /&gt;
::::{&amp;amp;#123;convert/spell |1,234|km|mi|abbr=on}}&lt;br /&gt;
::::{&amp;amp;#123;convert/spell |10.5|L|usgal|3}}&lt;br /&gt;
::::{&amp;amp;#123;convert/spell |7|km|mi|case=u}}&amp;amp;nbsp; - words with upper-case letter&lt;br /&gt;
::::{&amp;amp;#123;convert/spell |7|km|mi|disp=x|long (|)}} - custom output&lt;br /&gt;
Use case=u to show an upper-case letter (capital letter) in the number. The template allows the same parameters as [[Template:Convert]], and so it allows abbreviation abbr=in or abbr=out or abbr=none, wikilinks lk=in or lk=out, and adjective mode adj=on or adj=mid. The separator can also be a semicolon: disp=semi, disp=or, disp=comma, disp=x (customized), disp=sqbr (square brackets), disp=b (default as parentheses), disp=2 (or disp=out) and disp=# (or disp=number).&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
The examples show various options of conversions:&lt;br /&gt;
* {&amp;amp;#123;convert/spell |950|km|mi}}{{pad|2em}}&amp;amp;rarr; {{convert/spell |950|km|mi}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |123|km|mi|abbr=on}}{{pad|1em}}&amp;amp;rarr; {{convert/spell |123|km|mi|abbr=on}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |95.1|km|mi|lk=out}} &amp;amp;rarr; {{convert/spell |95.1|km|mi|lk=out}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |140|ft|m|0}}{{pad|53px}}&amp;amp;rarr; {{convert/spell |140|ft|m|0}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |140|ft|m|words=out}}{{pad|2px}}&amp;amp;rarr; {{convert/spell |140|ft|m|words=out}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |140|ft|m|case=u }}{{pad|23px}}&amp;amp;rarr; {{convert/spell |140|ft|m|case=u }}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |140|ft|m|sp=en }}{{pad|23px}}&amp;amp;rarr; {{convert/spell |140|ft|m|sp=en }}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |1/2|ft|cm|words=out}}{{pad|2px}}&amp;amp;rarr; {{convert/spell |1/2|ft|cm|words=out}}&lt;br /&gt;
* {&amp;amp;#123;convert/spell |1/2|mi}}{{pad|2px}}&amp;amp;rarr; {{convert/spell |1/2|mi}}&lt;br /&gt;
&lt;br /&gt;
Display types: disp=comma, disp=semi, disp=or, disp=out, disp=number, disp=x and disp=b. The numeric results are identical to using Template:Convert to show numerals instead of words.&lt;br /&gt;
&lt;br /&gt;
===Common problems===&lt;br /&gt;
Note the name of this template is &amp;quot;convert/spell&amp;quot; and omitting the suffix &amp;quot;/spell&amp;quot; will not show words for numbers. Also, putting &amp;quot;spell&amp;quot; as parameter 1 will cause the number to be treated as a template name &amp;quot;Convert/&amp;lt;number&amp;gt;&amp;quot; such as {&amp;amp;#123;convert|spell|34|km}} will show &amp;quot;{{convert|spell|34|km}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The amount is followed by a unit-code (such as &amp;quot;|m&amp;quot;) as the 2nd parameter. The output unit-code can be &amp;quot;0&amp;quot; as the 3rd parameter, to allow the default output unit to be triggered, while setting parameter 4 to a rounding precision (such as &amp;quot;|5&amp;quot;) or use r=5 to set the rounding level.&lt;br /&gt;
|}&amp;lt;!--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--NOTES&lt;br /&gt;
--&lt;br /&gt;
-- NOTE A1: This template converts numbers and spells the amount&lt;br /&gt;
--      in words, using {spellnum|...} to display the words.&lt;br /&gt;
--      It is a wrapper for Template:Convert, which is used&lt;br /&gt;
--      3 times for each conversion, to set the input unit&lt;br /&gt;
--      name (or symbol), the output amount, and output unit.&lt;br /&gt;
--&lt;br /&gt;
-- NOTE S2: The value of any decimal portions are shifted,&lt;br /&gt;
--      slightly, when displayed, to correct for any potential&lt;br /&gt;
--      rounding errors when displaying the edit-digits of&lt;br /&gt;
--      the decimal portion. The shift is only for display,&lt;br /&gt;
--      and the amounts being converted are not shifted.&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--HISTORY:&lt;br /&gt;
--14Apr2011 Created, from Convert/gaps to spell numbers.&lt;br /&gt;
--14Apr2011 Put NOTES comments to explain template operation.&lt;br /&gt;
--14Apr2011 Allowed disp=2 or disp=out to show output only.&lt;br /&gt;
--14Apr2011 Allowed disp=# or disp=number to show only number.&lt;br /&gt;
--24Apr2011 Allowed c=L for case=L &amp;amp; noted disp=br (brackets).&lt;br /&gt;
--28Apr2011 Allowed options for adj=mid &amp;amp; disp=x.&lt;br /&gt;
--28Apr2011 New option r=5 to set rounding level to 5 decimals.&lt;br /&gt;
--02May2011 Formatted commas (if needed) in output number.&lt;br /&gt;
--14May2011 Fixed adj=on or adj=mid to show hyphen &amp;quot;-&amp;quot;.&lt;br /&gt;
--18May2011 Fixed output unit symbol/name from param. {3}.&lt;br /&gt;
--21May2011 Allow 20 fractions: 1/2, 1/3, 2/3, 1/4, 1/8...&lt;br /&gt;
--12Jul2011 Defaulted {3} by {2} to avoid rounding as &amp;quot;|0&amp;quot;.&lt;br /&gt;
--12Jul2011 For spelling sp=en, uses &amp;quot;quarters&amp;quot; not &amp;quot;fourths&amp;quot;.&lt;br /&gt;
--12Jul2011 Defaulted case=L to show lower-case numbers.&lt;br /&gt;
--16Jul2011 Fixed sp=us to show &amp;quot;-er&amp;quot; endings.&lt;br /&gt;
--03Aug2011 Dissallow abbr with spelt out numbers per MOSNUM&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:2011 Convert unit subtemplates]]&lt;br /&gt;
[[Category:Extended Convert subtemplates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Djehuti</name></author>
	</entry>
</feed>