Difference between revisions of "Template:Armenian"

From blackwiki
Jump to navigation Jump to search
m (15 revisions imported)
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#ifeq:{{#expr: {{{1}}} > 29999}} | 1 ||<!--
+
{{<includeonly>safesubst:</includeonly>#invoke:Armenian|main}}<noinclude>
-->{{#switch:{{#expr: ({{{1}}} div 10000) mod 3}}|0=|2=Ֆ|1=Օ}}<!--
+
{{documentation}}
-->{{#switch:{{#expr: ({{{1}}} div 1000) mod 10}}|0=|9=Ք|8=Փ|7=Ւ|6=Ց|5=Ր|4=Տ|3=Վ|2=Ս|1=Ռ}}<!--
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
-->{{#switch:{{#expr: ({{{1}}} div 100) mod 10}}|0=|9=Ջ|8=Պ|7=Չ|6=Ո|5=Շ|4=Ն|3=Յ|2=Մ|1=Ճ}}<!--
+
</noinclude>
-->{{#switch:{{#expr: ({{{1}}} div 10) mod 10}}|0=|9=Ղ|8=Ձ|7=Հ|6=Կ|5=Ծ|4=Խ|3=Լ|2=Ի|1=Ժ}}<!--
 
-->{{#switch:{{#expr: {{{1}}} mod 10}}|0=|9=Թ|8=Ը|7=Է|6=Զ|5=Ե|4=Դ|3=Գ|2=Բ|1=Ա}}}}<!--
 
--><noinclude>{{/doc}}</noinclude>
 
 
 
 
 
[[ru:Шаблон:Armenian]]
 
[[eo:Ŝablono:Armena]]
 
[[su:Citakan:Arménia]]
 

Latest revision as of 13:05, 28 October 2020

Template documentation[view] [edit] [history] [purge]

This template converts Arabic numerals into Armenian numerals. It currently works for any whole number between 1 and 29999.

Usage

To use it, enter {{Armenian|YOURNUMBER}}, replacing "YOURNUMBER" with a number.

Examples of Armenian numeral conversion
Arabic Numerals Template Call Armenian Numerals
1 {{Armenian|1}} Ա
2 {{Armenian|2}} Բ
49 {{Armenian|49}} ԽԹ
50 {{Armenian|50}} Ծ
51 {{Armenian|51}} ԾԱ
1024 {{Armenian|1024}} ՌԻԴ
4999 {{Armenian|4999}} ՏՋՂԹ
5000 {{Armenian|5000}} Ր
5001 {{Armenian|5001}} ՐԱ

If given a value larger than 29999, the output is blank and returns no value.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Armenian

Converts numbers into old Armenian numerals. Possible values range from 1-29999.

Template parameters

ParameterDescriptionTypeStatus
Number1

The number to convert. Values less than 1 or greater than 29999 will result in blank output.

Numberoptional