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
(update)
(ok wait)
 
Line 1: Line 1:
<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>
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>
This template for italicizing main and gallery namespace titles. It is not necessary to make this change to talk pages. The original template can be found at the [[mariowiki:Template:Italic title|Super Mario Wiki]].
 
== Usage ==
== Usage ==
To italicize the full article title, ignoring the identifier if present, use:
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 custom italics, use the desired title as the given parameter:
For custom italics, use the desired title as the given parameter:
Line 11: Line 10:


The line of code should be placed at the very top of the page without any blank lines following it.
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 ==
== See also ==

Latest revision as of 12:27, May 17, 2021

This template for italicizing main and gallery namespace titles. It is not necessary to make this change to talk pages. The original template can be found at the Super Mario Wiki.

Usage[edit]

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

{{italic title}}

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.

See also[edit]