Template:Italic title: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(category)
mNo edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</includeonly><noinclude>
<includeonly><div>{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{PAGENAME}}|{{SUBPAGENAME}}||{{BASEPAGENAME}}/}}{{#if:{{{id|}}}|{{#if:{{#pos:{{SUBPAGENAME}}|<nowiki/> (}}|{{#sub:{{SUBPAGENAME}}|0|{{#rpos:{{SUBPAGENAME}}|<nowiki/> (}}}} (''{{#sub:{{SUBPAGENAME}}|{{#expr:{{#rpos:{{SUBPAGENAME}}|<nowiki/> (}}+2}}|-1}}'')|{{SUBPAGENAME}}}}|{{#if:{{#pos:{{SUBPAGENAME}}|<nowiki/> (}}|''{{#sub:{{SUBPAGENAME}}|0|{{#rpos:{{SUBPAGENAME}}|<nowiki/> (}}}}'' ({{#sub:{{SUBPAGENAME}}|{{#expr:{{#rpos:{{SUBPAGENAME}}|<nowiki/> (}}+2}}|-1}})|''{{SUBPAGENAME}}''}}}}}}}}</div>{{#switch:{{NAMESPACE}}||Gallery={{#if:{{{1|}}}|{{#ifeq:{{ucfirst:{{#replace:{{#replace:{{#replace:{{{1}}}|''}}|<i>}}|</i>}}}}|{{PAGENAME}}||[[Category:Articles with incorrect italic titles]]}}}}}}</includeonly><noinclude>
Used for italicizing main and gallery namespace titles. To italicize the full title (such as for games), use:
== Usage ==
To italicize the 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 ''Super Mario Galaxy'' staff}}</nowiki></code>


<code><nowiki>{{italic title|List of ''Super Mario Galaxy'' staff}}</nowiki></code>
== About ==
Used for italicizing article and gallery titles. Do not apply this template to other namespaces (e.g. categories, 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.
Articles which have a custom italic title that doesn't match the actual article title are placed in [[:Category:Articles with incorrect italic titles]].


See [[MarioWiki:Naming#Italics]] for more info.[[Category:Formatting templates]]</noinclude>
== See also ==
* [[MarioWiki:Naming#Italics]]
 
[[Category:Title templates]]</noinclude>

Latest revision as of 13:46, September 17, 2024

Usage

To italicize the 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 ''Super Mario Galaxy'' staff}}

About

Used for italicizing article and gallery titles. Do not apply this template to other namespaces (e.g. categories, talk pages).

Articles which have a custom italic title that doesn't match the actual article title are placed in Category:Articles with incorrect italic titles.

See also