| This template is used on approximately 258,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
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:
- Titles with no parentheses
()are fully italicized:Foo→ FooTalk:Foo→ Talk:Foo
- Titles which contain parentheses are italicized 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=yesparameter.
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.
Location on page
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.
Usage
Basic usage
{{Italic title}}
All parameters
{{Italic title|noerror|string=text in title|all=yes}}
Wrapper
Most calls to this template are of the form {{italic title|string=<foo>}}. The wrapper template {{ititle}} provides a shorthand for this case:
Parameters
|1=: if this is set to|1=noerror, error messages are suppressed. See #Errors for more details.|all=: if this is set to|all=yes, the entire title is italicized, including any parentheses and text therein.|string=: instead of italicizing the whole title, italicize only some specific text. For example, using|string=Ally McBealon the page "List of Ally McBeal episodes" results in "List of Ally McBeal episodes".
If |all=yes and |string= are both used when text inside the disambiguator needs to be italicized.
In cases not covered by the parameters, titles needing both a lowercased first character and either this template without parameters or only |all=yes should instead use {{Lowercase title}}, which has parameters covering those two cases, as shown in the second table below; other non-standard cases, such as lowercased titles needing this template with |string= set, titles with multiple italicized substrings, or titles needing italicization combined with other modifications not pertaining to case or italicization should use {{DISPLAYTITLE}} directly.
Note that specifying a value for |string= italicizes all instances of that text in the title if there are multiple in the targeted portion of the title, meaning that titles where repeated text should be italicized some places in that portion but not others require direct usage of {{DISPLAYTITLE}}, while titles needing all instances of such repeated text italicized can use this template normally.
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 {{Italic title}} on the page, usually added by one of the infoboxes. Certain infoboxes, such as {{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 does not 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).
Tracking 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
TemplateData for Italic title
A template to italicize article titles
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Error options | 1 | If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options. | String | optional |
| All | all | If set to "yes", italicization is forced on parenthesized text. | String | optional |
| String | string | Specify a string in the title to italicize, rather than italicizing the entire title. | String | optional |
See also
- WP:ITALICTITLE
{{Italic disambiguation}}{{Italic title prefixed}}{{Italics correction}}{{Title language}}
| 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 | i 2 (EYE) | I 2 (EYE) |
| {{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 |
| {{Title language|la}} | Indicates that the title is in the foreign language specified by the parameter and sets the text to italics. Preferable to {{Italic title}} for foreign titles per MOS:FOREIGNITALICS | Ad hominem | Ad hominem |
| {{Title language|de|italic=no}} | Indicates that the title is in the foreign language specified by the parameter but disables italics | Schottenstift | Schottenstift |
| Magic word | |||
| {{DISPLAYTITLE:_NSAKEY}} | Various | _NSAKEY | NSAKEY |
| Title corrections | |||
| {{Correct title}} | Various | <|°_°|> | Robot Face |
| {{Correct title|reason=bracket}} | < > [ ] { } | Benzo[a]pyrene | Benzo(a)pyrene |
| {{Correct title|reason=#}} | # | Pilot #5 | Pilot No. 5 |
| {{Correct title|reason=vbar}} | | | C|T Group | C/T Group |
| {{Correct title|reason=:}} | : | DK: King of Swing | DK King of Swing |
| {{Correct title|reason=.}} | . | . | Period (Kesha album) |
| {{Correct title|reason=length}} | Title exceeding 256 bytes | The Boy Bands Have Won, and All the Copyists and the Tribute Bands and the TV Talent Show Producers Have Won, If We Allow Our Culture to Be Shaped by Mimicry, Whether from Lack of Ideas or from Exaggerated Respect. You Should Never Try to Freeze Culture. What You Can Do Is Recycle That Culture. Take Your Older Brother's Hand-Me-Down Jacket and Re-Style It, Re-Fashion It to the Point Where It Becomes Your Own. But Don't Just Regurgitate Creative History, or Hold Art and Music and Literature as Fixed, Untouchable and Kept Under Glass. The People Who Try to 'Guard' Any Particular Form of Music Are, Like the Copyists and Manufactured Bands, Doing It the Worst Disservice, Because the Only Thing That You Can Do to Music That Will Damage It Is Not Change It, Not Make It Your Own. Because Then It Dies, Then It's Over, Then It's Done, and the Boy Bands Have Won. | The Boy Bands Have Won |