export = {}

local output = [=[
{| class="wikitable mw-collapsible mw-expanded" style="text-align:center; width:55em;"
|-
! colspan=17| Penulisan nombor Cina
|-
!
! 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>
|-
! Kegunaan biasa<br><span style="white-space:nowrap">([[小寫#]]/[[小写#]])</span>
| [[〇#]], [[零#]]
| [[一#]]
| [[二#]]
| [[三#]]
| [[四#]]
| [[五#]]
| [[六#]]
| [[七#]]
| [[八#]]
| [[九#]]
| [[十#]]
| [[百#]]
| [[千#]]
| rowspan="2" | [[萬#]]/[[万#]]<br />[[十千#]] <span style="font-size: small;">(Malaysia, Singapura)</span>
| rowspan="2" | [[億#]]/[[亿#]]
| rowspan="2" | <span style="white-space:nowrap">[[兆#]] <span style="font-size: small;">(Taiwan)</span></span><br><span style="white-space:nowrap">[[萬億#]]/[[万亿#]] <span style="font-size: small;">(China)</span></span>
|-
! [[w:Angka Cina|Kegunaan perbankan]]<br><span style="white-space:nowrap">([[大寫#]]/[[大写#]])</span>
| [[零#]]
| [[壹#]]
| [[貳#]]/[[贰#]]
| [[參#]]/[[叁#]]
| [[肆#]]
| [[伍#]]
| [[陸#]]/[[陆#]]
| [[柒#]]
| [[捌#]]
| [[玖#]]
| [[拾#]]
| [[佰#]]
| [[仟#]]
|}[[Kategori:Nombor kardinal Cina]]]=]

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

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

	return output
end

return export