模板:Chset-cell4

&#x{{{1}}};
{{{1}}}
{{{3}}}
{{{4}}}

文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

模板介紹

此模板替換Template:chset-cell並且是Template:chset-cell3的增強版,可以額外顯示八進位代碼點。

使用方法

Template:chset-tableformat一同使用,來創建可輸出字符的單元格。

  • 參數1: hhhh,十六進位Unicode值,4 digits (如0041)
  • 參數2: X,連接到文章的可顯示文字(e.g., [[A]]);默認為"&#xhhhh;"使用參數1的值
  • 參數3: dd,十進位字符代碼, 1–3位數字(如65)
  • 參數4: ooo,八進位字符代碼, 3位數字(如101)

例如,一組四個ASCII數字"0"到"3"(Unicode編碼從U+0030到U+0033,十進位代碼48到51,八進位代碼從060到063),在字符集表格中的代碼如下所示:

{|
|{{chset-color-digit}}|{{chset-cell4|0030|[[0]]|48|060}}
|{{chset-color-digit}}|{{chset-cell4|0031|[[1]]|49|061}}
|{{chset-color-digit}}|{{chset-cell4|0032|[[2]]|50|062}}
|{{chset-color-digit}}|{{chset-cell4|0033|[[3]]|51|063}}
|}

這將產生:

0
0030
48
060
1
0031
49
061
2
0032
50
062
3
0033
51
063

Chset系列模板

表格建立

頁眉和頁腳

字符的行標題

字符集單元格顏色

字符集單元格內容

清理標籤

  • Template:cleanup-chartable — 為需要維基化的字符集表格設定的標籤(包括一個編寫字符集表格的例子)