Template:Italic title/doc: Difference between revisions
MusikAnimal (talk | contribs) m (1 revision imported) |
MusikAnimal (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | ||
{{lua|Module:Italic title}} | {{lua|Module:Italic title}} | ||
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 | *Titles with no parentheses <code>()</code> are fully italicised: | ||
**{{Nowrap|<code>Foo</code>}} → {{Nowrap|'''''Foo'''''}} | **{{Nowrap|<code>Foo</code>}} → {{Nowrap|'''''Foo'''''}} | ||
**{{Nowrap|<code>Talk:Foo</code>}} → {{Nowrap|'''Talk:''Foo'''''}} | **{{Nowrap|<code>Talk:Foo</code>}} → {{Nowrap|'''Talk:''Foo'''''}} | ||
Line 16: | Line 15: | ||
This template should only be used in articles that meet the criteria for italic titles given in the [[Wikipedia:Article titles#Italics and other formatting|Article titles]] policy. | This template should only be used in articles that meet the criteria for italic titles given in the [[Wikipedia:Article titles#Italics and other formatting|Article titles]] policy. | ||
== Parameters == | == Parameters == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 76: | Line 41: | ||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 02:46, 27 April 2020
This is a documentation subpage for Template:Italic title. It contains usage information, categories and other content that is not part of the original template page. |
This template 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.
Parameters[edit source]
A template to italicize 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 |
All | all | If set to "yes", italicization is forced on parenthesized text. | String | optional |
String | string | Specify a string in the title to italicize, rather than italicizing the entire title. | String | optional |