Template:Italic title: Difference between revisions

From Destinypedia, the Destiny wiki

m (Protected "Template:Italic title" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
No edit summary
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>
<includeonly>{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#if:{{{1|}}}|{{{1}}}|{{#if:{{{id|}}}|{{#if:{{#pos:{{PAGENAME}}|(}}{{#pos:{{PAGENAME}}|)}}|{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|(}}}} (''{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|(}}+1}}|-1}}'')|{{PAGENAME}}}}|{{#if:{{#pos:{{PAGENAME}}|(}}{{#pos:{{PAGENAME}}|)}}|''{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|(}}}}'' ({{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|(}}+1}}|-1}})|''{{PAGENAME}}''}}}}}}}}</includeonly><noinclude>
Used for italicizing titles. To italicize the full title (such as for games), use:
== Usage ==
To italicize the full article title, ignoring the identifier (if present), use:
:<code><nowiki>{{italic title}}</nowiki></code>


<code><nowiki>{{italic title}}</nowiki></code>
To italicize just the article identifier (e.g. a game name in parenthesis), use:
:<code><nowiki>{{italic title|id=yes}}</nowiki></code>


For partial italics, use the desired title as a parameter:
For custom italics, use the desired title as the given parameter:
:<code><nowiki>{{italic title|List of ''Destiny'' staff}}</nowiki></code>


<code><nowiki>{{italic title|List of ''Destiny'' staff}}</nowiki></code>
The line of code should be placed at the very top of the page without any blank lines following it.


Either line of code should be placed at the very top of the page without any blank or empty lines following it. It's not necessary to make this change to talk pages.</noinclude>
== About ==
Used for italicizing article titles. It's not necessary to make this change to talk pages.
 
[[Category:Templates]]</noinclude>

Revision as of 11:32, May 27, 2021

Usage

To italicize the full article title, ignoring the identifier (if present), use:

{{italic title}}

To italicize just the article identifier (e.g. a game name in parenthesis), use:

{{italic title|id=yes}}

For custom italics, use the desired title as the given parameter:

{{italic title|List of ''Destiny'' staff}}

The line of code should be placed at the very top of the page without any blank lines following it.

About

Used for italicizing article titles. It's not necessary to make this change to talk pages.