Template:Italictitle/doc
This is a documentation subpage for Template:Italictitle. It contains usage information, categories, and other content that is not part of the original template page. |
This template can be used to italicise page titles. It produces a hidden HTML element that is picked up by the site JavaScript in MediaWiki:Common.js and is used to replace the visible page title.
Usage
edit- {{italictitle}} italicises the title automatically under certain circumstances. If the title is less than 50 characters in length, italicisation is always performed automatically:
- Titles with no brackets () are fully italicised:
- {{{1}}} → Foo
- {{{1}}} → Talk:Foo
- Titles which contain brackets are italicised before the first open bracket:
- {{{1}}} → Foo (bar)
- {{{1}}} → Talk:Foo (bar)
- Titles with no brackets () are fully italicised:
- Titles longer than 50 characters are not automatically italicised. However, you can pass parameters for the template to test the title against: if a match is found, italicisation is performed:
- {{{1}}}, where "name" is the first part of the title (before any brackets) and the "bracket#" are a list of up to five possible brackets: {{{1}}} will italicise as follows:
- {{{1}}} → Foo
- {{{1}}} → Foo (bar)
- {{{1}}} → Foo (baz)
- {{{1}}} → Foo (quok)
- {{{1}}}, where "name" is the first part of the title (before any brackets) and the "bracket#" are a list of up to five possible brackets: {{{1}}} will italicise as follows:
See also
edit{{Lowercase title}}