模板:QuoteBox:修订间差异

跳到导航 跳到搜索
删除683字节 、​ 2025年12月24日 (星期三)
撤销Kufscrow讨论)的版本7046
无编辑摘要
标签已被回退
(撤销Kufscrow讨论)的版本7046)
标签撤销
 
第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>
</table><br><noinclude>{{Documentation}}</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>

导航菜单