更多操作
删除的内容 添加的内容
完成设置语言模板 |
Finished template |
||
第1行: | 第1行: | ||
<includeonly><templatestyles src="Lang/styles.css" /><span lang="{{{1}}}" class="clear-font">{{{2}}}</span></includeonly><noinclude> |
<includeonly><templatestyles src="Lang/styles.css" /><span lang="{{{1}}}" class="clear-font">{{{2}}}</span></includeonly><noinclude> |
||
= Specify language = |
|||
= 设置语言 = |
|||
Mainly used for Hanzi (Chinese characters)/Kanji/Hanja display, can display special fonts in different language environments. |
|||
主要用于汉字显示,可以显示在不同语言环境下的特殊字体 |
|||
== |
== Usage == |
||
<pre> |
<pre> |
||
{{lang|Language ISO Code|Text to display}} |
|||
{{设置语言|语言代号|要显示的文本}} |
|||
</pre> |
</pre> |
||
⚫ | |||
或: |
|||
⚫ | |||
⚫ | |||
<pre> |
|||
{{lang|语言代号|要显示的文本}} |
|||
</pre> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{ |
{{lang|zh-tw|如月蒼太}} |
||
<pre> |
<pre> |
||
{{ |
{{lang|ja|如月蒼太}} |
||
{{ |
{{lang|zh-cn|如月苍太}} |
||
{{ |
{{lang|zh-tw|如月蒼太}} |
||
</pre> |
</pre> |
||
<templatedata> |
<templatedata> |
||
第32行: | 第26行: | ||
"params": { |
"params": { |
||
"1": { |
"1": { |
||
"label": " |
"label": "Language Code", |
||
"description": " |
"description": "Please use ISO code", |
||
"example": "Japanese:ja;Traditional Chinese:zh-hant;Simplified Chinese:zh-hans;Korean:kor", |
|||
"example": "日语:ja;繁体中文:zh-hant;简体中文:zh-hans;韩语:kor", |
|||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
||
}, |
}, |
||
"2": { |
"2": { |
||
"label": " |
"label": "Text", |
||
"description": "要显示的文本内容", |
|||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
2022年4月29日 (五) 11:05的版本
Specify language
Mainly used for Hanzi (Chinese characters)/Kanji/Hanja display, can display special fonts in different language environments.
Usage
{{lang|Language ISO Code|Text to display}}
Examples
如月蒼太
如月苍太
如月蒼太
{{lang|ja|如月蒼太}} {{lang|zh-cn|如月苍太}} {{lang|zh-tw|如月蒼太}}
无描述。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Language Code | 1 | Please use ISO code
| 字符串 | 必需 |
Text | 2 | 无描述 | 字符串 | 必需 |