Template:Italic disambiguation/doc
This is a documentation subpage for Template:Italic disambiguation. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template italicizes the disambiguation portion of page titles. Article titles cannot contain wiki-formatting, such as ''
, so cannot be italicized in the normal way. Instead, place this template in the article, normally at the top (right below the "short description"). It will then have the following effect:
- If the title contains parentheses
()
at the end, the text between the parentheses is italicized:Foo (bar)
→ Foo (bar)Talk:Foo (bar)
→ Talk:Foo (bar)
- Titles with no parentheses
()
are unaltered:Foo
→ FooTalk:Foo
→ Talk:Foo
This template should only be used when the title disambiguation text meets the criteria for italic titles given in the Article titles policy.
Usage
[edit]Basic usage
{{Italic disambiguation}}
With error suppression
{{Italic disambiguation|noerror}}
Parameters
[edit]- 1: if this is set to "noerror", error messages are suppressed. See #Errors for more details.
Errors
[edit]Sometimes you may see red error messages like this at the top of the page:
Warning: Display title "<i>Article title</i> (disambiguation)" overrides earlier display title "Article title (<i>disambiguation</i>)".
This usually means that there is another instance of a title-italicizing template (e.g. {{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 disambiguation}} after the infobox. You can suppress the error message by using the code {{Italic disambiguation|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).
TemplateData
[edit]TemplateData for Italic disambiguation
A template to italicize disambiguation text in 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 |
See also
[edit]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 #5 | Pilot No. 5 |
{{Correct title|reason=:}} | : | DK: King of Swing | DK King of Swing |