Difference between revisions of "Template:Italic dab"

From Yugipedia
Jump to: navigation, search
(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)
(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