Don't like the ads? Then create an account! Users with accounts have more options than anonymous users.

Difference between revisions of "Template:Italic title"

From Triforce Wiki, a The Legend of Zelda wiki
Jump to navigationJump to search
(new template page)
 
(update)
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}}}|{{#ifeq:{{{id}}}|only|{{#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 main and gallery namespace 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=only}}</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|''The Legend of Zelda'' (television series)}}</nowiki></code>


<code><nowiki>{{italic title|''The Legend of Zelda'' (television series)}}</nowiki></code>
The line of code should be placed at the very top of the page without any blank lines following it.
 
== About ==
Used for italicizing main and gallery namespace titles. It's not necessary to make this change to talk pages.


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.
== See also ==
*[[Triforce Wiki:Naming#Italics]]


See [[Triforce Wiki:Naming#Italics]] for more info.[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 12:21, May 17, 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=only}}

For custom italics, use the desired title as the given parameter: {{italic title|''The Legend of Zelda'' (television series)}}

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

About

Used for italicizing main and gallery namespace titles. It's not necessary to make this change to talk pages.

See also