Template:Center/doc
跳转到导航
跳转到搜索
| File:Edit-copy green.svg | 此頁面是Template:Center的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 警告 | 此Template文档被引用於約40,000個頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
模板介紹[编辑]
这是一个简单的让内容居中的模板。
範例[编辑]
| 代码 | {{Center|Hello world!}} |
|---|---|
| 效果 | Hello world!
|
您也可以使用以下代码而无需本模板:
<div class="center">...</div>
<templatedata> { "description": "", "params": { "1": { "description": "想要居中的内容", "type": "string", "required": true }, "style": { "description": "附加的样式", "type": "string", "required": false } } } </templatedata>