A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

Template:Italic title/doc

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]

{{#invoke:Fallback | autotranslate

      |base = Documentation subpage
      |lang = 
      |page = Template:Italic title
    }}

{{

 {{#invoke:Namespace detect|main}}

| type = | image = 42px | imageright = | class = | style = | textstyle = | text = This template uses Module:Italic title, a script written in the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

This template can be used to italicise page titles. It should only be used in articles that meet the criteria for italic titles given in the Article titles policy.

Normally the template is placed at the top of the article.

IF IT DOESN'T WORK: Try putting the template after the infobox. If it still doesn't work, use DISPLAYTITLE instead of this template; again, this may need to go after the infobox.

Usage

Basic usage
{{italic title}}
All italicized
{{italic title|all=yes}}

Article titles cannot contain wiki-formatting, such as '', so cannot be made italic 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:
    • FooFoo
    • Talk:FooTalk: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.

Some infoboxes automatically attempt to italicise the title of the article in which they are included. When this works correctly, this template is not needed. When it doesn't work correctly, try putting the {{Italic title}} after the infobox.

TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Italic title <templatedata> {

       "description": "A template to italicize article titles",
       "params": {
               "yes": {
                       "label": "All",
                       "description": "Italicization forced on parenthesized text",
                       "type": "string",
                       "required": false
               }
       }

} </templatedata>

See also

Template Involves Correct name Actual article name
{{Italic title}} Title in italics Batman (1989 film) Batman (1989 film)
{{Lowercase title}} Lowercase first character eBay EBay
{{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
{{DISPLAYTITLE}} Various

Templates which use this template should display the following notice:


Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=Template:Italic_title/doc&oldid=2663"

History of Early American Landscape Design contributors, "Template:Italic title/doc," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=Template:Italic_title/doc&oldid=2663 (accessed March 19, 2024).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington