پرش به محتوا

الگو:عنوان مورب

الگو به طور دائم حفاظت‌شده است
از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

This template italicizes page titles. Article titles cannot contain wiki formatting, such as '', so article titles cannot be italicized in the normal way. Instead, place this template in the article, normally at the very top. It will then have the following effect:

  • Titles with no قلاب (نشان‌گذاری متن) () are fully italicised:
    • Foo Foo
    • Talk:Foo Talk:Foo
  • Titles which contain parentheses are italicised before the first opening parenthesis:
    • Foo (bar) Foo (bar)
    • Talk:Foo (bar) Talk:Foo (bar)
  • Italicization can be forced on parenthesized text with the |all=yes parameter.

This template should only be used in articles that meet the criteria for italic titles given in the ویکی‌پدیا:قواعد نام‌گذاری policy.

Usage

Basic usage

{{عنوان مورب}}

All parameters

{{عنوان مورب|noerror|string=text in title|all=yes}}

Parameters

  • 1: if this is set to "noerror", error messages are suppressed. See #Errors for more details.
  • all: if this is set to "yes", text in parentheses is italicized.
  • string: instead of italicizing the whole title, italicize only some specific text. For example, using |string=Ally McBeal on the page "List of Ally McBeal episodes" would result in "List of Ally McBeal episodes".

{{DISPLAYTITLE: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.

Errors

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

Warning: Display title "<i>Article title (disambiguation)</i>" overrides earlier display title "<i>Article title</i> (disambiguation)".

This usually means that there is another instance of {{عنوان مورب}} on the page, usually added by one of the infoboxes. Certain infoboxes, for example {{infobox album}}, add {{عنوان مورب}} 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 {{عنوان مورب}} 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 {{عنوان مورب}} after the infobox. You can suppress the error message by using the code {{عنوان مورب|noerror}}.

Technical details: this template uses the راهنما:کلمات جادویی 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 ویکی‌پدیا:قهوه‌خانه/فنی.

Categories

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.

TemplateData

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده عنوان مورب

A template to italicize article titles

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
Error options1

If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options.

رشتهاختیاری
Allall

If set to "yes", italicization is forced on parenthesized text.

رشتهاختیاری
Stringstring

Specify a string in the title to italicize, rather than italicizing the entire title.

رشتهاختیاری

See also

واژه‌های جادویی و الگوهای تغییر یا تصحیح
Wiki markup
Transclusion from template:
Involves Correct name Actual article name
{{Italic title}} Title in italics To Kill a Mockingbird To Kill a Mockingbird
{{Italic title|all=yes}} Complete title in italics, including parentheses Randall and Hopkirk (Deceased) Randall and Hopkirk (Deceased)
{{Italic title|string=Ally McBeal}} Phrase of |string= in italics List of Ally McBeal episodes List of Ally McBeal episodes
{{Italic title|all=yes|string=Fringe}} Phrase of |string= in italics; also looks in parentheses Peter (Fringe episode) Peter (Fringe episode)
{{Italic disambiguation}} Disambiguation in italics The End (Lost) The End (Lost)
{{Lowercase title}} Lowercase first character eBay EBay
{{Lowercase title|italic=yes}} Lowercase first character and place title in italics, not including disambiguation iCarly (soundtrack) ICarly (soundtrack)
{{Lowercase title|italic=yes|force=yes}} Lowercase first character and place title in italics, including disambiguation
{{Lowercase title|dab=yes}} Lowercase first character and place disambiguation in italics iSpy (Modern Family) ISpy (Modern Family)
{{Italic title prefixed|17}} Italicize after the number characters at the beginning of the title German battleship Bismarck German battleship Bismarck
Magic word
{{DISPLAYTITLE:_NSAKEY}} Various _NSAKEY NSAKEY
Title corrections
{{Correct title|reason=bracket}} < > [ ] { } Benzo[a]pyrene Benzo(a)pyrene
{{Correct title|reason=#}} # Pilot #5Pilot No. 5
{{Correct title|reason=:}} : DK: King of Swing DK King of Swing

Templates which use this template should display the following notice: