求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:Cquote 3/doc

增加 4,959 位元組, 7 年前
// Edit via Wikiplus
<includeonly><!-- {{template doc page transcluded}} -->{{Esoteric}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
'''{{tl|Cquote 3}}'''用于进行繁简转换的页面,其它与{{tl|Cquote}} 相同。

'''{{tl|Cquote 3}}'''是一个适合于抬升式引用([[:en:pull quote|pull quote]])的模板,此类引用从一个页面的文字中独立展示出来。它一般不应当用于条目中,除非那样做有一个很好的理由。当抬升式引用被用在一个章节的开头或结尾做简短的引用,用以帮助强调该章节的内容,此时这种引用效果最好。

'''注意''':本模板'''不应当'''用于条目文字中的块引用([[:en:Block quote|Block quote]])。对于文字中很长的引用,[[:en:Wikipedia:Manual of Style#Quotations|格式手册]]中建议使用HTML的&lt;[[:en:blockquote|blockquote]]&gt;元素,就像通过使用{{tl|Quote}}模板那样。

<!--
'''{{tl|Cquote 3}}''' is a template meant for [[pull-quote]]s, which stand apart from the text of a page. It generally should not be used in articles unless there is a good justification for doing so. Pull-quotes work best when used with short quotes, and at the start or end of a section, to help emphasize the content of the section. For shorter pull-quotes of 50 words or fewer in a similar style, consider using {{tl|Rquote}}.

'''NOTE''': This template should '''not be used''' for [[block quote]]s in article text. For long quotations in the text, the [[Wikipedia:Manual of Style#Quotations|Manual of Style]] recommends using the HTML &lt;[[blockquote]]&gt; element, such as through the use of the {{tl|Quote}} template.
-->
== 用法 ==
* <code><nowiki>{{</nowiki>cquote 3|''引用文字''<nowiki>}}</nowiki></code>
* <code><nowiki>{{</nowiki>cquote 3|''引用文字''|''引用来源''|''引用出处''<nowiki>}}</nowiki></code>
* <code><nowiki>{{</nowiki>cquote 3|''引用文字''|''引用来源''|''引用出处''|''40px''|bgcolor=''背景色''<nowiki>}}</nowiki></code>

只有第一个参数是必需的。
== 参数 ==
* 参数1:引用的文字;在段落之间建议使用<code><nowiki><br /></nowiki></code>。<br />'''注意''':如果引用的文字含有一个或更多“[[等於|=]]”([[等号]]),那么此模板必须以<nowiki>{{Cquote 3|</nowiki>'''<span style="color:red;">1=</span>'''''引用文字''<nowiki>}}</nowiki>的形式调用。
接下来的两个参数能够用来提供引文的出处。
* 参数2:人的名字,引文即是他/她所述或所著。可以包含链接。
* 参数3:该引文的来源(演讲、出版物标题,等等)。可以包含链接。
以下两个参数用于设置引号大小、背景色。
* 参数4:“quotewidth”,引号的字体大小,缺省为20px。可以设置为10px、20px、30px等等,不建议超过50。
* 参数“bgcolor”,主体的背景色,缺省为transparent。可以设置为十六进制编码,如“#FFC0CB”,或者已命名颜色的名称,如“pink”。
<!--
==语法==
<pre>
{{Cquote 3|<引用内容>|<引用来源>|<引用出处>}}
</pre>
-->

==举例==
;<code><nowiki>{{</nowiki>cquote 3|''引用文字''<nowiki>}}</nowiki></code>
就像吉米·威尔士所说的
{{Cquote 3|维基百科不仅是技术上的创新,更是人际社群的创新。}}
;<code><nowiki>{{</nowiki>cquote 3|''引用文字''|''引用来源''|''引用出处''<nowiki>}}</nowiki></code>
<pre>
{{Cquote 3|子曰:学而时习之,不亦说乎?<br />
有朋自远方来,不亦乐乎?<br />
人不知而不愠,不亦君子乎?|<nowiki>[[孔丘]]|《[[论语]]》</nowiki>}}
</pre>
页面展示效果为:
{{Cquote 3|子曰:学而时习之,不亦说乎?<br />有朋自远方来,不亦乐乎?<br />人不知而不愠,不亦君子乎?|[[孔丘]]|《[[论语]]》}}
;<code><nowiki>{{</nowiki>cquote 3|''引用文字''|quotewidth=''40px''<nowiki>}}</nowiki></code>
这样加大了引号:
{{Cquote 3|你有权保持沉默。你所说的一切将被作为呈堂证供。你有权请律师,如果你请不起律师,法庭可以为你代请一名。|quotewidth=40px}}
带ref标签的例子:
<pre>
{{Cquote 3|◇我绝对不能再作那政府任命的校长。<br />
◇我绝对不能再做不自由的大学校长。<br />
◇思想自由,是世界大学的通例。|蔡元培|《不肯再任北大校长的宣言》<ref>(写于1919年6月15日)选自中华书局1984年版《蔡元培全集》第3卷</ref>|quotewidth=40px}}
</pre>
{{Cquote 3|◇我绝对不能再作那政府任命的校长。<br />
◇我绝对不能再做不自由的大学校长。<br />
◇思想自由,是世界大学的通例。|蔡元培|《不肯再任北大校长的宣言》<ref>(写于1919年6月15日)选自中华书局1984年版《蔡元培全集》第3卷</ref>|quotewidth=40px}}
<references />
== 参见 ==
{{Quotation templates}}
<includeonly>
[[Category:引文模板]]
</includeonly>
匿名用戶