Template:Italic title: Difference between revisions

From Research Realm
No edit summary
(old version. whatever. i don't know how this works)
Line 1: Line 1:
<includeonly><div>{{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}}''}}}}}}}}</div></includeonly><noinclude>
<includeonly><div>{{DISPLAYTITLE:{{#if:{{{1|}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{1}}}|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{PAGENAME}}''}}}}</div></includeonly><noinclude>
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=yes}}</nowiki></code>


For custom italics, use the desired title as the given parameter:
For custom italics, use the desired title as the given parameter:
:<code><nowiki>{{italic title|List of ''LEGO Island'' characters}}</nowiki></code>
:<code><nowiki>{{italic title|List of ''LEGO Island'' characters}}</nowiki></code>
</noinclude>
</noinclude>

Revision as of 04:09, 18 January 2023

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|List of ''LEGO Island'' characters}}