Difference between revisions of "Template:Italic title"

From RRU Knowledge Base
m (Undo revision 7747 by Jessietail (talk))
 
(12 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>
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>{{italic title|''Italic'' title}}__NOTOC__
== Usage ==
==Usage instructions==
Use this template on pages that you want to display with all or part of the article title in italics, such as for proper names of books, movies, video games, etc.<br><br> Example usage: <tt><nowiki>{{italic title|Template:''Italic title''}}</nowiki></tt>
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]].
[[Category:Utility templates]]</noinclude>
 
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 italicize only part of the title, add a parameter consisting of the page's ''full exact title'' with normal Mediawiki italic formatting <code><nowiki>''</nowiki></code> around the parts of the title desired to be italicized. An example of this usage is <code><nowiki>{{italic title|''Italic'' title}}</nowiki></code>, which causes the word ''Italic'' in this template's title to display as italic text. Note that the page's [[mediawikiwiki:Namespaces|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==
*<code><nowiki>{{italic title}}</nowiki></code> →<br \><span style="font-weight: 600; font-size: 39px;">''Example title 1''</span>
 
*<code><nowiki>{{italic title|Example ''title'' 2}}</nowiki></code> →<br \><span style="font-weight: 600; font-size: 39px;">Example ''title'' 2</span>
==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:
 
{{error|Warning:|<nowiki>Display title "Template:Template:<i>Italic</i> title" was ignored since it is not equivalent to the page's actual title.</nowiki>}}
 
Multiple instances of <nowiki>{{italic title}}</nowiki> on a page will cause something like the following error message to display:
 
{{error|Warning:|<nowiki>Display title "Template:<i>Italic</i> title" overrides earlier display title "Template:<i>Italic title</i>".</nowiki>}}
 
[[Category:Formatting templates]]</noinclude>

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>".