Difference between revisions of "Template:Italic dab"

From Yugipedia
Jump to: navigation, search
(update from Template:Italic title)
(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