「Template:Cquote」:修訂間差異

模板頁面
([InPageEdit] 没有编辑摘要)
(// Edit via Wikiplus)
 
(未顯示同一使用者於中間所作的 1 次修訂)
第4行: 第4行:
| #default = margin:auto
| #default = margin:auto
}}; display:table; border-collapse: collapse; border: none; background-color: {{{bgcolor|transparent}}}; width: {{#if: {{{wide|}}} | 100% | {{{width|auto}}}}}; {{#if: {{{bgcolor|}}} | border: 1px solid #AAAAAA;}}"
}}; display:table; border-collapse: collapse; border: none; background-color: {{{bgcolor|transparent}}}; width: {{#if: {{{wide|}}} | 100% | {{{width|auto}}}}}; {{#if: {{{bgcolor|}}} | border: 1px solid #AAAAAA;}}"
| style="width: 20px; vertical-align: top; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{4|20px}}}}}}}}}}}}
| style="width: 20px; vertical-align: top; border: none; color: {{{qcolor|#328C60}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{4|20px}}}}}}}}}}}}
|10px=20px
|10px=20px
|30px=60px
|30px=60px
第12行: 第12行:
|#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}}; text-orientation: upright" | {{#if:{{{rtl|}}}|”|“}}
|#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}}; text-orientation: upright" | {{#if:{{{rtl|}}}|”|“}}
| 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="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}}}}}}}}}}}}
| style="width: 20px; vertical-align: bottom; border: none; color: {{{qcolor|#328C60}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{4|20px}}}}}}}}}}}}
|10px=20px
|10px=20px
|30px=60px
|30px=60px

於 2024年1月28日 (日) 12:28 的最新修訂

文檔圖示 模板文件[檢視] [編輯] [查看歷史] [清除快取]

{{Cquote}}是一個適合於抬升式引用(pull quote)的模板,此類引用從一個頁面的文本中獨立展示出來。當抬升式引用被用在一個章節的開頭或結尾做簡短的引用,用以幫助強調該章節的內容,此時這種引用效果最好。

注意:本模板不應當用於條目文本中的塊引用(Block quote)。對於文本中很長的引用,格式手冊中建議使用HTML的<blockquote>元素,就像通過使用{{Quote}}模板那樣。

用法

  • {{Cquote|text=引用文本|author=引用来源|source=引用出处}}

參數

參數1quote
引用的文本;用<p>...</p>包着第二個起每個段落。另見{{Poemquote}}。
注意:如果引用的文本含有一個或更多「=」(等號),那么此模板必須以{{cquote|1=引用文本}}的形式調用。

接下來的兩個參數能夠用來提供引文的出處。

參數author
人的名字,引文即是他/她所述或所着。可以包含連結。
參數source
該引文的來源(演講、出版物標題,等等)。可以包含連結。

語法

{{Cquote|<引用内容>|<引用来源>|<引用出处>}}

相關模板

  • {{Quote}}——不帶邊框的引用,可設定高度。
    • {{QuoteH}}——和{{QuoteF}}成對使用,作為{{Quote}}的補充。
    • {{Poemquote}}——引用詩歌、歌詞等頻頻斷行的引文,與{{Quote}}相同。

帶邊框式

  • {{Wquote}}——帶柔和漸變的灰色陰影,採用圓角。
  • {{現代顯示框}}——同樣帶柔和漸變的灰色陰影,但更為柔和、沒有圓角,且更為美觀。
  • {{現代藍邊、漸變底紋顯示框}}——框內由上至下呈現白色至藍色的漸變,非常柔和,邊線偏藍且較為柔和。
  • {{Quote box}}——帶邊框的引用,在一個縮小的浮動框中。
  • {{Quote frame}}——帶邊框的引用。
  • {{Squote}}——帶邊框的引用,有立體感。

帶引號式

  • {{Cquote}}——帶引號標記的抬升式引用,採用頁面寬度。
  • {{Rquote}}——帶引號標記的抬升式引用,在一個縮小的區域中。

討論頁

上述文檔內容嵌入自Template:Cquote/doc編輯 | 歷史
編者可以在本模板的沙盒創建 | 鏡像和測試樣例創建頁面進行實驗。
請將模板自身所屬的分類添加在文檔中。本模板的子頁面