Difference between revisions of "Template:Italic title"

From RRU Knowledge Base
m (Undo revision 7747 by Jessietail (talk))
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>{{italic title|''Italic'' title}}
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>{{italic title|''Italic'' title}}__NOTOC__
This template italicizes all or part of a page's title. Italicized titles should be used when italics would be used in running text. This primarily involves the titles of books, films, video games, and other creative works. Other syntax, such as taxonomic names, the names of ships, and foreign phrases, would also be italicized if applicable (eg. [[LMS Explorer|LMS ''Explorer'']]).
==Usage instructions==
This template italicizes all or part of a page's title. Article titles can't contain working wiki formatting, as attempting to add it will just result in it becoming part of the page's URL, and the title's font appearance will not be affected. Italicized titles should be used when italics would be used in running text. For complete instructions on when to italicize titles, please see [[RRU Knowledge Base:Guidelines#Italic type|RRU Knowledge Base:Guidelines § Italic type]].


Article titles can't contain working wiki formatting, such as single quote, as attempting to add it will result in it becoming part of the page's URL, and the title's font appearance will not be affected.
[[Wikipedia:WP:DISPLAYTITLE|DISPLAYTITLE]] [[Wikipedia:H:MW|magic word]], which this template uses, must instead be used when formatted titles are desired.
==Usage instructions==
To use this template, add <code><nowiki>{{italic title}}</nowiki></code> to an article, preferably at the top. This will cause the entire title to display in italics.
To use this template, add <code><nowiki>{{italic title}}</nowiki></code> to an article, preferably at the top. This will cause the entire title to display in italics.



Latest revision as of 09:16, 27 May 2018

Usage instructions

This template italicizes all or part of a page's title. Article titles can't contain working wiki formatting, as attempting to add it will just result in it becoming part of the page's URL, and the title's font appearance will not be affected. Italicized titles should be used when italics would be used in running text. For complete instructions on when to italicize titles, please see RRU Knowledge Base:Guidelines § Italic type.

To use this template, add {{italic title}} to an article, preferably at the top. This will cause the entire title to display in italics.

To italicize only part of the title, add a parameter consisting of the page's full exact title with normal Mediawiki italic formatting '' around the parts of the title desired to be italicized. An example of this usage is {{italic title|''Italic'' title}}, which causes the word Italic in this template's title to display as italic text. Note that the page's namespace does not count as part of its title, and can't be included as part of this parameter without returning an error message.

Example usage

  • {{italic title}}
    Example title 1
  • {{italic title|Example ''title'' 2}}
    Example title 2

Errors

Aside from the apostrophes needed to create italic text, the title given must be identical to the page title. Any changes will result in the template being ignored and an error message being displayed. For example, if the namespace is included in this template's title, the following error message will display on the editing screen:

Warning: Display title "Template:Template:<i>Italic</i> title" was ignored since it is not equivalent to the page's actual title.

Multiple instances of {{italic title}} on a page will cause something like the following error message to display:

Warning: Display title "Template:<i>Italic</i> title" overrides earlier display title "Template:<i>Italic title</i>".