Teamplaid:Italic title
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Uses Lua: |
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 parentheses
()
are fully italicised:Foo
→ FooTalk: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 Article titles policy.
Ùsaid - Usage
deasaichÙsaid bunasach - Basic usage
deasaich{{Italic title}}
A h-uile paramadair - All parameters
{{Italic title|noerror|string=text in title|all=yes}}
Paramadairean - Parameters
deasaich- 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.
Mearachdan - Errors
deasaichSometimes 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, 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 Village pump (technical).
Roinnean-seòrsa - Categories
deasaichIf the |string=
parameter is used but that string is not found in the title, the page is added to Roinn-seòrsa:Roinn-seòrsa:Pages using Italic title with no matching string (0).
Teamplaid-dàta - TemplateData
deasaichItalic title
A template to italicize article titles
Paramadair | Tuairisgeul | Seòrsa | Staid | |
---|---|---|---|---|
Error options | 1 | If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options. | Sreang | roghainneil |
All | all | If set to "yes", italicization is forced on parenthesized text. | Sreang | roghainneil |
String | string | Specify a string in the title to italicize, rather than italicizing the entire title. | Sreang | roghainneil |
Faic cuideachd - Also see
Teamplaid:WrongTitleExamples Templates which use this template should display the following notice:
The above documentation is transcluded from Teamplaid:Italic title/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |