模板:居中:修订间差异

来自「荏苒之境」
无编辑摘要
无编辑摘要
 
第1行: 第1行:
<noinclude>{{模板文档}}</noinclude><includeonly><!--
<noinclude>{{模板文档}}</noinclude><includeonly><!--
--><div style="text-align:center">{{{1}}}</div><!--
--><div style="text-align:center;{{{样式|}}}">{{{1}}}</div><!--
--></includeonly><noinclude>
--></includeonly><noinclude>
<templatedata>
<templatedata>
第7行: 第7行:
"1": {
"1": {
"description": "要居中对齐的文段。",
"description": "要居中对齐的文段。",
"type": "content"
"type": "content",
"required": true
},
"样式": {
"description": "额外的 CSS 样式。",
"type": "line"
}
}
},
},

2025年8月25日 (一) 11:32的最新版本

Hello world
你好世界

示例代码:

{{居中|Hello world<br/>你好世界|样式=background: antiquewhite}}

用于使文字居中对齐的组件。

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
11

要居中对齐的文段。

内容必需
样式样式

额外的 CSS 样式。

单行文本可选