模板:Center/doc

来自Kyoshihira Encyclopedia
Lhscogs​(留言 | 贡献)2025年6月29日 (日) 08:54的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

Template:Template doc page viewed directly

模板介绍

这是一个简单的让内容居中的模板。

范例

代码 {{Center|Hello world!}}
效果
Hello world!

您也可以使用以下代码而无需本模板: <syntaxhighlight lang="html">

...

</syntaxhighlight> <templatedata> { "description": "", "params": { "1": { "description": "想要居中的内容", "type": "string", "required": true }, "style": { "description": "附加的样式", "type": "string", "required": false } } } </templatedata>