แม่แบบ:ชื่อเอียง - วิกิพีเดีย (original) (raw)

Template:Italic title italicizes page titles. Article titles cannot contain wiki formatting, such as '', so article titles cannot be italicized in the normal way. This template has the following effects:

This template should only be used in articles that meet the criteria for italic titles given in the Article titles policy.

Meta templates which use this template should place {{Auto italic title}} in their documentation.

If the page has a {{Short description}} template, this template should go immediately underneath it, normally as the second item on the page. If there is no {{Short description}} template, add this template at the very top of the page, above everything else. There ought to be no blank line after {{Italic title}} because that will cause an extra blank line in the page's rendered appearance.

{{[Italic title](/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Italic%5Ftitle "แม่แบบ:Italic title")}}

{{[Italic title](/wiki/%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Italic%5Ftitle "แม่แบบ:Italic title")|noerror|string=text in title|all=yes}}

{{[DISPLAYTITLE](/w/index.php?title=%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4%E0%B8%9E%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2:Page%5Fname&action=edit&redlink=1 "วิกิพีเดีย:Page name (ไม่มีหน้านี้)"):Desired Title}} can be used instead in cases not covered by the parameters, e.g. two substrings with italics, or italics combined with lowercase first character.

Sometimes you may see red error messages like this at the top of the page:

Warning: Display title "Article title (disambiguation)" overrides earlier display title "Article title (disambiguation)".

This usually means that there is another instance of {{Italic title}} on the page, usually added by one of the infoboxes. Certain infoboxes, for example {{Infobox album}}, add {{Italic title}} by default. Check the template documentation for any infobox used on the page; it may have instructions about how to deal with italic titles. You may be able to adjust the italics from the infobox instead of using {{Italic title}} at the top of the article. Or if that doesn't work, you may be able to disable the infobox's italics code altogether.

If you are still having problems, try putting {{Italic title}} after the infobox. You can suppress the error message by using the code {{Italic title|noerror}}.

Technical details: this template uses the DISPLAYTITLE magic word to italicize the title. Error messages can be produced by any two templates which use this magic word, and are not limited to this template. If you are unsure why you are getting a particular error message, you can ask about it at Wikipedia:Village pump (technical).

If the |string= parameter is used but that string is not found in the title, the page is added to Category:Pages using italic title with no matching string.

A template to italicize article titles

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

พารามิเตอร์ คำอธิบาย ชนิด สถานะ
Error options 1 If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options. สตริง เลือกได้
All all If set to "yes", italicization is forced on parenthesized text. สตริง เลือกได้
String string Specify a string in the title to italicize, rather than italicizing the entire title. สตริง เลือกได้

แม่แบบ:Correct title examples