模板:Cquote:修订间差异

    来自中国珂学院
    Cquote>Πrate
    (IE需指定為英語才能強制套用英語字型+內縮來源出處的位置)
    小 (去除非必须分类)
     
    (未显示18个用户的39个中间版本)
    第1行: 第1行:
    {| align="center" style="border-collapse:collapse; border-style:none; background-color:transparent; margin: 5px auto;" class="cquote"
    {| class="cquote pullquote" role="presentation" {{#if:{{{rtl|}}}|dir="rtl"}} style="{{#switch:{{{float|}}}
    |-
      | left = float:left
    | valign="top"  style="width:20px; color:#B2B7F2; font-size:{{{size|{{{quotewidth|{{{width|40px}}}}}}}}}; font-family:Elephant,'Times New Roman',serif; font-weight:bold; text-align:left; padding:10px 10px;" |{{lang|en|“}}
      | right = float:right
    | valign="top" style="padding:4px 10px;" | {{{1|在第一个参数插入引用内容,不要有引号。}}}
      | #default = margin:auto
    | valign="bottom"  style="width:20px; color:#B2B7F2; font-size:{{{size|{{{quotewidth|{{{width|40px}}}}}}}}}; font-family:Elephant,'Times New Roman',serif; font-weight:bold; text-align:right; padding:10px 10px; " |{{lang|en|”}}
      }}; border-collapse: collapse; border: none; background-color: {{{bgcolor|transparent}}}; width: {{#if: {{{wide|}}} | 100% | {{{width|auto}}}}}; {{#if: {{{bgcolor|}}} | border: 1px solid #AAAAAA;}}"
    {{#if:{{{2|}}}{{{3|}}}<noinclude>有来源</noinclude>|
    | style="width: 20px; vertical-align: top; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{4|20px}}}}}}}}}}}}
    {{!}}-
    |10px=20px
    {{!}} colspan="3" style="padding-top: 10px" {{!}} {{#if:{{{2|<noinclude>来源</noinclude>}}}|<p style="font-size:smaller;line-height:1em;text-align: right; margin-right: 4em"><cite style="font-style:normal;">—{{{2<noinclude>|来源</noinclude>}}}{{#if:{{{3|<noinclude>出处</noinclude>}}}|, {{{3<noinclude>|出处</noinclude>}}}}}</cite></p>}}
    |30px=60px
    |40px=80px
    |50px=100px
    |60px=120px
    |#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: left; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" | “
    | style="vertical-align: top; border: none;{{#if:{{{rtl|}}}|direction:rtl;}} padding: {{#if:{{{small|}}}|4px 2px|4px 10px}};" | {{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly><noinclude>{{lorem ipsum}}</noinclude>}}}}}}}}}}}}}}}
    | style="width: 20px; vertical-align: bottom; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{4|20px}}}}}}}}}}}}
    |10px=20px
    |30px=60px
    |40px=80px
    |50px=100px
    |60px=120px
    |#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: right; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" | ”
    |-
    {{#if:{{{author|{{{personquoted|{{{source|{{{publication|{{{title|{{{quotesource|{{{2|{{{3|}}}}}}}}}}}}}}}}}}}}}}}}|
    {{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; text-align: right;" {{!}} <cite>——&thinsp;{{#if:{{{author|{{{personquoted|{{{2|}}}}}}}}}|{{{author|{{{personquoted|{{{2}}}}}}}}}{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{3|}}}}}}}}}}}}}}}|, {{{source|{{{publication|{{{title|{{{quotesource|{{{3}}}}}}}}}}}}}}}}}|{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{3|}}}}}}}}}}}}}}}|{{{source|{{{publication|{{{title|{{{quotesource|{{{3}}}}}}}}}}}}}}}}}}}</cite>
    }}
    }}
    |}<noinclude>
    |}<!-- {{subst:FULLPAGENAME}} --><noinclude>
    ==语法==
    {{documentation}}
    <pre>
    {{Cquote|<引用内容>|<引用来源>|<引用出处>}}
    </pre>
    ==效果==
    <pre>
    {{Cquote|子曰:学而时习之,不亦说乎?
    有朋自远方来,不亦乐乎?
    人不知而不愠,不亦君子乎?|<nowiki>[[孔丘]]|[[论语]]</nowiki>}}
    </pre>
    {{Cquote|子曰:学而时习之,不亦说乎?有朋自远方来,不亦乐乎?人不知而不愠,不亦君子乎?|[[孔丘]]|[[论语]]}}
    [[Category:引用模板]]
    [[en:Template:Cquote]]
    </noinclude>
    </noinclude>

    2020年4月24日 (五) 11:00的最新版本

    文档图示 模板文档[创建]