Difference between revisions of "Template:Italic dab"
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) |
Dinoguy1000 (talk | contribs) (fix) |
||
Line 1: | Line 1: | ||
{{ #if: {{ #pos: {{PAGENAME}} | ( }} | {{ #if: {{ #pos: {{PAGENAME}} | ( }} | ||
− | | {{DISPLAYTITLE:{{ #if: {{{1|}}} | {{{1}}} {{ #replace: {{ #replace: {{FULLPAGENAME}} | ( | (<i> }} | ) | </i>) }} }} | + | | {{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> |
Latest revision as of 20:10, 28 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[edit]
{{Italic dab}} automatically adds direct uses to the category Category:Pages directly using a display title template.
See also[edit]
- {{Italic title}}
- {{Lowercase name}}