Difference between revisions of "Template:Italic dab"
Dinoguy1000 (talk | contribs) (update from Template:Italic title) |
Dinoguy1000 (talk | contribs) (allow passing in a custom italic title (e.g. for stuff like "(anime DDM)"); don't add the DISPLAYTITLE if there's no brackets in the pagename) |
||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE:{{ #replace: {{ #replace: {{FULLPAGENAME}} | ( | (<i> }} | ) | </i>) }} | + | {{ #if: {{ #pos: {{PAGENAME}} | ( }} |
+ | | {{DISPLAYTITLE:{{ #if: {{{1|}}} | {{{1}}} {{ #replace: {{ #replace: {{FULLPAGENAME}} | ( | (<i> }} | ) | </i>) }} }} | ||
+ | }} | ||
}}{{ #if: {{{t<includeonly>|</includeonly>}}} || [[Category:Pages directly using a display title template]] }}<noinclude> | }}{{ #if: {{{t<includeonly>|</includeonly>}}} || [[Category:Pages directly using a display title template]] }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 14:58, 18 November 2017
{{Italic dab}} is used to italicise the disambiguation portion of a pagename. That is any portion of the pagename, that is enclosed in brackets.
Categories
{{Italic dab}} automatically adds direct uses to the category Category:Pages directly using a display title template.
See also
- {{Italic title}}
- {{Lowercase name}}