Template:Cquote
Jump to navigation
Jump to search
“ | ” |
This template is used to display quoted comments.
Usage
parameter list
- {{{1}}}:Required. Quoted comments text.
- {{{2}}}:Author.
- {{{3}}}:Source.
- {{{width}}}:Width, default is
auto
。 - {{{bgcolor}}}:Background color, default is
transparent
, When this parameter is not empty, add a border with the style of1px solid #AAAAAA
to the template。 - {{{4}}}、{{{size}}}、{{{quotewidth}}}:Set
font-size
of quotation marks.font-size
of quotation marks, default is36px
。- If only the parameter
width
is set but no one of the three parameters is set, thefont size
of quotation marks is set according to the value ofwidth
. Otherwise, the setting is made according to the value set in the three parameters. The relationship between the setting value and thefont size
of quotation marks is shown in the following table.
Set value | font-size of quotation marks.
|
---|---|
10px | 20px |
30px | 60px |
40px | 80px |
50px | 100px |
60px | 120px |
Other values | 36px |
- {{{open}}}:Set the text used as the opening quotation mark. The default value is
-{“}-
。 - {{{close}}}:Set the text used as the closing quotation mark. The default value is
-{”}-
。
Examples of use
{{Cquote|This is an introduction}}
“ | This is an introduction | ” |
{{Cquote|introduction|Fix}}
“ | introduction | ” |
——Fix |
{{Cquote|introduction|Fix|user 's manual}}
“ | introduction | ” |
——Fix,user 's manual |
{{Cquote|Here is a six word introduction|sb.|The book|bgcolor=#66ccff|width=200px|size=30px|open=「|close=』}}
「 | Here is a six word introduction | 』 |
——sb.,The book |
Be careful
- Please do not add a semicolon for indenting in front of this template, which will cause errors in the layout of the whole page!
- Solution: replace the half colon
:
with<dl><dd>{{Cquote|indent the introduction content}}</dd></dl>
, and so on. For example, if:::
, it needs to be replaced with<dl><dd><dl><dd><dd>{Cquote|The introduction of indented part}}</dd></dl></dd></dl></dl>
- Solution: replace the half colon
- Errors may occur when using HTML tags directly in this template. The reason for the error is that the equal sign
=
in the HTML tag will be incorrectly identified.- Solution: Please use
{{=}}
instead of=
in the HTML tag; Or use the ordinal variable name1=<Citation>
,2=<Author>
in the template parameters; Or HTML entities using the equal sign&# 61;
。
- Solution: Please use
- When this template is used at the top of the page, it should be below {{info}}.