“模板:Unichar”的版本间的差异

来自个人维基
跳转至: 导航搜索
 
(未显示1个用户的2个中间版本)
第1行: 第1行:
<includeonly><span style="white-space: nowrap"><span class="lnnblog-font-monospace">U+{{{1}}}</span>&#32;</span>{{#ifeq:{{{nochar|0}}}|0|{{#tag:span|&#x{{{1}}};|style=font-size:125%;line-height:1em|class={{{cclass|}}}}} <nowiki/>}}{{#if:{{{2|}}}|<span style="text-transform: uppercase; font-size: 85%">{{{2}}}</span>}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly><span style="white-space: nowrap"><span class="lnnblog-font-monospace">U+{{{1}}}</span>&#32;</span>{{#ifeq:{{{nochar|0}}}|0|<span style="font-size:125%;line-height:1em" class="{{{cclass|}}}">&#x{{{1}}};</span> <nowiki/>}}{{#if:{{{2|}}}|<span style="text-transform: uppercase; font-size: 85%">{{{2}}}</span>}}</includeonly><noinclude>{{documentation}}</noinclude>

2023年10月25日 (三) 23:50的最后版本

模板文档 [查看] [编辑]

显示 Unicode 字符及编码。

模板数据

<templatedata>
{
"params": {
"1": {
"label": "字符编码",
"description": "十六进制字符编码",
"example": "0041",
"type": "string",
"required": true
},
"2": {
"label": "字符名称",
"description": "字符的英文名称,会以全大写字母显示。",
"example": "Latin Capital Letter A",
"type": "string"
},
"cclass": {
"label": "字符 CSS 类",
"description": "字符预览的 CSS 类",
"example": "lnnblog-font-qaac",
"type": "string",
"suggestedvalues": [
"lnnblog-font-g",
"lnnblog-font-hans",
"lnnblog-font-lzh",
"lnnblog-font-hant",
"lnnblog-font-hant-hk",
"lnnblog-font-qaac",
"lnnblog-font-qaaz",
"lnnblog-font-qaax"
]
},
"nochar": {
"label": "不显示字符预览",
"description": "传入 1 或空白,则不会显示字符预览。",
"type": "boolean"
}
},
"description": "显示 Unicode 字符及编码。"
}
</templatedata>