Template:Italic title: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
unsafe; fixed.
 
Line 2: Line 2:
| {{#replace: {{PAGENAME}} | {{{1}}} | ''{{{1}}}'' }}
| {{#replace: {{PAGENAME}} | {{{1}}} | ''{{{1}}}'' }}
| {{#if: {{#pos: {{PAGENAMEE}} | _( }}  
| {{#if: {{#pos: {{PAGENAMEE}} | _( }}  
   | {{#replace: {{PAGENAME}} | {{#sub: {{PAGENAME}} | 0 | {{#pos: {{PAGENAMEE}} | _( }} }} | ''{{#sub: {{PAGENAME}} | 0 | {{#pos: {{PAGENAMEE}} | _( }} }}'' }}
   | {{#replace: {{PAGENAME}} | {{#sub: {{PAGENAME}} | 0 | {{#expr: {{#pos: {{PAGENAME}} | ( }} - 1 }} }} | ''{{#sub: {{PAGENAME}} | 0 | {{#expr: {{#pos: {{PAGENAMEE}} | ( }} - 1 }} }}'' }}
   | ''{{PAGENAME}}''
   | ''{{PAGENAME}}''
   }}
   }}
}}}}</includeonly><noinclude>{{/doc}}</noinclude>
}}}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 07:25, 7 September 2021

This template can italicize an article title without using {{DISPLAYTITLE:''<Pagename>''}}.

Usage[edit source]

Without parameters (i.e. {{Italic title}})

With an anonymous parameter (i.e. {{Italic title|<name of the title>}})