แม่แบบ:Quote frame

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

แม่แบบ:Quote/doc/boilerplate

Usage[แก้]

Compatibility warning: This template uses |title= for the italicized title of a major work, not for a heading above the quotation as some other templates do.

This template provides a quotation in a bordered box, on a light grey background, and spanning the page width by default. Do not put quotation marks around the quoted material.

มาร์กอัพ แสดงผลเป็น
{{Quote frame |quote=Quoted material |author=Author |title=Title |source=other details}}

{{Quote frame|Quoted material|Author|Title|other details}}
Quoted material — Author, Title, other details
{{Quote frame |quote=Quoted material |author=Author |source="Article Title", ''Newspaper Name'', date}}

{{Quote frame|Quoted material|Author||"Article Title", ''Newspaper Name'', date}}
Quoted material — Author, "Article Title", Newspaper Name, date
In the short syntax, the 3rd parameter (which auto-italicizes) has been included but left empty to skip it, and we use the 4th to manually apply italics where needed.
{{Quote frame |quote=Quoted material |author=Author |title=Title}}

{{Quote frame|Quoted material|Author|Title}}
Quoted material — Author, Title
{{Quote frame |quote=Quoted material}}

{{Quote frame|Quoted material}}
Quoted material
{{Quote frame |quote=Quoted material |source="Article Title", ''Newspaper Name'', date}}

{{Quote frame|Quoted material|||"Article Title", ''Newspaper Name'', date}}
Quoted material — "Article Title", Newspaper Name, date
In the short syntax, we skip two parameters by giving them empty.
{{Quote frame|Quoted material |align=center}}
Quoted material
{{Quote frame|Quoted material |align=right}}
Quoted material
{{Quote frame|Quoted material |align=right |width=33%}}
Quoted material

The |width= parameter takes any valid CSS width value, such as แม่แบบ:Kbd or แม่แบบ:Kbd. This should not be specified in fixed pixel sizes (like 100px). As shown in the table above, the width is relative to the size of the container not the entire page, so the displayed width will be smaller if used inside a table.

The equal sign (=)[แก้]

If any of the parameters' content include an equal sign (=) in its input, this will make the template not recognize the parameter properly unless:

  • The parameters are named or numbered:

แม่แบบ:In5{{Quote frame |quote=Einstein's equation, E=mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it. |author=Abdul Kalam}}
แม่แบบ:In5{{Quote frame |1=Einstein's equation, E=mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it. |2=Abdul Kalam}}

  • The = in the content is escaped with the {{=}} template:

แม่แบบ:In5{{Quote frame|Einstein's equation, E{{=}}mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it.|Abdul Kalam}}

  • The = in the content is escaped with the = character reference:

แม่แบบ:In5{{Quote frame|Einstein's equation, E=mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it.|Abdul Kalam}}

TemplateData[แก้]

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ Quote frame (ยังไม่มีการตรวจสอบ)

insert description here

พารามิเตอร์แม่แบบ

พารามิเตอร์คำอธิบายชนิดสถานะ
Quoted material1

สตริงจำเป็น
Author2

สตริงเลือกได้
Title3

สตริงเลือกได้
Publication4

Use <ref>and {{Cite book}} etc.

สตริงเลือกได้
Alignmentalign

Alignment of the quote box on the page—left / right / center / none. Defaults to none alignment.

สตริงเลือกได้
Widthwidth

Fixed width of the quote box, in a valid CSS value. Defaults to no fixed width.

สตริงเลือกได้

Bugs[แก้]

  • ข้อมูลเมื่อ 28 พฤศจิกายน ค.ศ. 2015 (2015 -11-28) using {{quote frame}} in a discussion that will later be archived with {{archive top}} and {{archive bottom}} will cause problems if the line in which the template is used in is intended with colons. In other words, avoid doing this if you expect the discussion to be archived using the "archive top" and "archive bottom" templates:
    :{{quote frame|quoted material}}

Example of bug:

{{archive top}}
Some text here.
:{{quote frame|quoted text}}
More text here.
{{archive bottom}}

results in:

แม่แบบ:Archive top Some text here.

quoted text

More text here. แม่แบบ:Archive bottom

Redirects[แก้]


See also[แก้]

แม่แบบ:Quotation templates