m (Protected "Template:Italic title" ([Edit=Allow only CyberAcme staff] (indefinite) [Move=Allow only CyberAcme staff] (indefinite))) |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div>{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#if:{{{1|}}}|{{{1}}}|{{# | <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></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
To italicize the | To italicize the article title, ignoring the identifier (if present), use: | ||
:<code><nowiki>{{italic title}}</nowiki></code> | :<code><nowiki>{{italic title}}</nowiki></code> | ||
Line 9: | Line 9: | ||
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 ''Marathon'' staff}}</nowiki></code> | :<code><nowiki>{{italic title|List of ''Marathon'' staff}}</nowiki></code> | ||
== About == | == About == | ||
Used for italicizing article titles. It's not necessary to | Used for italicizing article titles. It's not necessary to apply this template to other namespaces (e.g. categories, talk pages). | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 19:12, December 27, 2023
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 ''Marathon'' staff}}
About
Used for italicizing article titles. It's not necessary to apply this template to other namespaces (e.g. categories, talk pages).