模板:Ruby:修订间差异

来自萌战EVOLUTION
无编辑摘要
无编辑摘要
 
(未显示同一用户的9个中间版本)
第1行: 第1行:
<ruby {{#if:{{{样式}}}|style="{{{样式}}}"}}>{{{文字}}}<rp>(</rp><rt>{{{注音}}}</rt><rp>)</rp></ruby>
<ruby {{#if:{{{样式|}}}|style="{{{样式}}}"}}>{{{文字}}}{{#if:{{{注音|}}}|<rp>(</rp><rt {{#if:{{{注音样式|}}}|style="{{{注音样式}}}"}}>{{{注音}}}</rt><rp>)</rp>}}</ruby><noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"样式": {
"description": "全局 CSS 样式",
"type": "string"
},
"文字": {
"文字": {
"description": "需要用旁注标记标注的文字",
"description": "需要用旁注标记标注的文字",
第17行: 第12行:
"type": "content",
"type": "content",
"required": true
"required": true
},
"样式": {
"description": "全局 CSS 样式",
"type": "string"
},
"注音样式": {
"description": "注音 CSS 样式",
"type": "string"
}
}
},
},
"description": "通用旁注标记模板。",
"description": "通用旁注标记模板。",
"paramOrder": [
"文字",
"注音",
"样式"
],
"format": "block"
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

2023年11月28日 (二) 00:55的最新版本

{{{文字}}}

通用旁注标记模板。

[编辑模板数据]

模板参数

此模板首选参数换行的代码块格式。

参数描述类型状态
文字文字

需要用旁注标记标注的文字

内容必需
注音注音

用旁注标记注音

内容必需
样式样式

全局 CSS 样式

字符串可选
注音样式注音样式

注音 CSS 样式

字符串可选