Template:Italic title: Difference between revisions

From Vigyanwiki
Template>MSGJ
(use Template:Str ≤ len instead of Template:Str len, per request)
Template>TheDJ
(replace str sub with substr any. Fixes issues with diacritics. per talkpage request)
Line 24: Line 24:
   #if:{{NAMESPACE}}
   #if:{{NAMESPACE}}
   | {{NAMESPACE}}:
   | {{NAMESPACE}}:
   }}''{{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }}'' {{str sub| {{PAGENAME}} | {{#expr: {{str find|{{PAGENAME}}|(}} - 1}} | {{#expr: {{str len|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} + 1 }}
   }}''{{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }}'' {{substr any| {{PAGENAME}} | {{#expr: {{str find|{{PAGENAME}}|(}} - 1}} | {{#expr: {{str len|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} + 1 }}


| 010
| 010

Revision as of 00:56, 13 June 2011

Template documentation