|
|
| 第1行: |
第1行: |
| <includeonly>{{#vardefine:quote_before|{{#invoke:Quote|split|{{{1|引文}}}|part=before}}}}{{#vardefine:quote_after|{{#invoke:Quote|split|{{{1|引文}}}|part=after}}}}{{#if:{{#var:quote_before}}| | | <includeonly><table class="quotetable"> |
| {{#if:{{#var:quote_last}}|
| |
| {{#ifeq:{{#var:quote_before}}|{{#var:quote_last}}|
| |
| {{#if:
| |
| {{#pos:{{#var:quote_after}}|(男)}}{{#pos:{{#var:quote_after}}|(女)}}
| |
| |<!-- Do nothing if quote_after contains either gender marker -->
| |
| |{{#vardefine:quote_before|}}<!-- Clear quote_before if identical to quote_last and no gender markers -->
| |
| }}
| |
| }}
| |
| }}
| |
| }}<table class="quotetable">
| |
| <tr> | | <tr> |
| <td rowspan="2" class="decorativesquote"> | | <td rowspan="2" class="decorativesquote"> |
| </td> | | </td> |
| <td class="squotetext{{#ifeq:{{{text|}}}|english|english|}}">{{#if:{{#var:quote_before}}|{{#var:quote_before}}:{{#vardefine:quote_last|{{#var:quote_before}}}}|}}“{{#if:{{#var:quote_after}}|{{#var:quote_after}}|{{{1|引文}}}}}” | | <td class="squotetext{{#ifeq:{{{text|}}}|english|english|}}">“{{{1|引文}}}” |
| </td></tr> | | </td></tr> |
| {{#if:{{{2|}}}|<nowiki /> | | {{#if:{{{2|}}}|<nowiki /> |
描述
当前模板用于展示一条简洁的引文。
用法
在相关页面通过以下格式调用本模板:
{{Squote|被引用文本}}
如果展示的引文是纯英语文本,可设置 |lang=en。
示例
基础引用
模板:模板
纯英语文本引用
模板:模板
另见