Template:Cquote

From EarthMC
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 isauto
  • {{{bgcolor}}}:Background color, default istransparent, When this parameter is not empty, add a border with the style of 1px solid #AAAAAA to the template。
  • {{{4}}}{{{size}}}{{{quotewidth}}}:Set font-size of quotation marks.
    • font-size of quotation marks, default is 36px
    • If only the parameterwidthis set but no one of the three parameters is set, thefont sizeof 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 sizeof quotation marks is shown in the following table.
Set value font-sizeof 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

  1. 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>
  2. 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&amp# 61;
  3. When this template is used at the top of the page, it should be below {{info}}.