Template:Italic title/doc: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
Line 6: Line 6:
This template italicizes page titles. Article titles cannot contain wiki-formatting, such as <code><nowiki>''</nowiki></code>, 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:
This template italicizes page titles. Article titles cannot contain wiki-formatting, such as <code><nowiki>''</nowiki></code>, 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]] <code>()</code> are fully italicised:
*Titles with no parentheses <code>()</code> are fully italicised:
**{{Nowrap|<code>Foo</code>}} &rarr; {{Nowrap|'''''Foo'''''}}
**{{Nowrap|<code>Foo</code>}} &rarr; {{Nowrap|'''''Foo'''''}}
**{{Nowrap|<code>Talk:Foo</code>}} &rarr; {{Nowrap|'''Talk:''Foo'''''}}
**{{Nowrap|<code>Talk:Foo</code>}} &rarr; {{Nowrap|'''Talk:''Foo'''''}}

Revision as of 00:22, 27 April 2020

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:
    • 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.

This template should only be used in articles that meet the criteria for italic titles given in the Article titles policy.

Parameters

Template:TemplateDataHeader

A template to italicize article titles

Template parameters

ParameterDescriptionTypeStatus
Error options1

If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options.

Stringoptional
Allall

If set to "yes", italicization is forced on parenthesized text.

Stringoptional
Stringstring

Specify a string in the title to italicize, rather than italicizing the entire title.

Stringoptional