4,962
个编辑
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
<table style="border-spacing: 0px; border: 0px solid lightgray;float:center;margin:auto;width:720px;"> | <table style="border-spacing: 0px; border: 0px solid lightgray;float:center;margin:auto;width:720px;"> | ||
<tr><td style="width:5px;background:#d9dce3"></td><td style="text-align:left;width:510px;padding-left:20px;"><font size={{#if:{{{textsize|}}}|{{{textsize}}}|4}}>{{{text}}}</font></td>{{#if:{{{source|}}}|<tr><td style="width:5px;background:#d9dce3"></td><td style="text-align:right;">—{{{source}}}</td></td>||}}</tr> | <tr><td style="width:5px;background:#d9dce3"></td><td style="text-align:left;width:510px;padding-left:20px;"><font size={{#if:{{{textsize|}}}|{{{textsize}}}|4}}>{{{text}}}</font></td>{{#if:{{{source|}}}|<tr><td style="width:5px;background:#d9dce3"></td><td style="text-align:right;">—{{{source}}}</td></td>||}}</tr> | ||
</table><br><noinclude>{{Documentation}}</noinclude> | </table><br><noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Displays a centered quote or highlighted text block with optional source attribution.", | |||
"params": { | |||
"text": { | |||
"label": "Text", | |||
"description": "Main text content to display inside the block.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"textsize": { | |||
"label": "Text size", | |||
"description": "Font size for the main text. Defaults to 4 if not specified.", | |||
"type": "number", | |||
"default": "4", | |||
"suggested": true | |||
}, | |||
"source": { | |||
"label": "Source", | |||
"description": "Optional source or attribution displayed below the text.", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
{{Documentation}} | |||
</noinclude> | |||