模組:Zh-numbers

維基詞典,自由的多語言詞典


export = {}

local output = [=[
{| class="wikitable mw-collapsible mw-expanded" style="text-align:center; width:60em;"
|-
! colspan=17| 漢語數詞
|-
!
! 0
! 1
! 2
! 3
! 4
! 5
! 6
! 7
! 8
! 9
! 10
! 10<sup>2</sup>
! 10<sup>3</sup>
! 10<sup>4</sup>
! 10<sup>8</sup>
! 10<sup>12</sup>
|-
! 標準<br><span style="white-space:nowrap">([[小寫#]]/[[小写#]])</span>
| [[〇#]]/[[零#]]
| [[一#]]
| [[二#]]
| [[三#]]
| [[四#]]
| [[五#]]
| [[六#]]
| [[七#]]
| [[八#]]
| [[九#]]
| [[十#]]
| [[百#]]
| [[千#]]
| rowspan="2" | [[萬#]]/-{[[万#]]}-<br />/[[十千#]] <span style="font-size: small;">(馬來西亞、新加坡)</span>
| rowspan="2" | [[億#]]/-{[[亿#]]}-
| rowspan="2" | <span style="white-space:nowrap">[[兆#]] <span style="font-size: small;">(臺灣)</span></span><br><span style="white-space:nowrap">[[萬億#]]/-{[[万亿#]]}- <span style="font-size: small;">(中國大陸)</span></span>
|-
! [[w:中文数字#日常使用|金融]]<br><span style="white-space:nowrap">([[大寫#]]/[[大写#]])</span>
| [[零#]]
| [[壹#]]
| [[貳#]]/-{[[贰#]]}-
| [[參#]]/-{[[叁#]]}-
| [[肆#]]
| [[伍#]]
| [[陸#]]/-{[[陆#]]}-
| [[柒#]]
| [[捌#]]
| [[玖#]]
| [[拾#]]
| [[佰#]]
| [[仟#]]
|}[[Category:漢語基數詞]]]=]

local function link(text)
	return '<span class="Hani" lang="zh">[[' .. text .. '#漢語|' .. text .. ']]</span>'
end

function export.show(frame)	
	output = mw.ustring.gsub(
		output,
		'%[%[([^%]]+)#%]%]',
		link
	)

	return output
end

return export