Template:Italic title: Difference between revisions

From Vigyanwiki
Template>Davidgothberg
(Changed to use the more efficient {{str len full}}. Removed code duplication. Removed <includeonly>, let's show what it does here. Tested in /sandbox. No change in functionality.)
Template>Davidgothberg
(Changed all references from {{str len full}} to {{str len}} due to move to that name.)
Line 7: Line 7:
   | 1
   | 1
   | 0
   | 0
   }}{{#ifexpr: {{str len full|{{PAGENAME}}}} < 50  <!-- The max {{str find}} can handle -->
   }}{{#ifexpr: {{str len|{{PAGENAME}}}} < 50  <!-- The max {{str find}} can handle -->
   | 1
   | 1
   | 0
   | 0
Line 27: Line 27:
   {{#if:{{NAMESPACE}}
   {{#if:{{NAMESPACE}}
   | {{NAMESPACE}}:
   | {{NAMESPACE}}:
   }}''{{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }}'' {{str sub| {{PAGENAME}} | {{str find|{{PAGENAME}}|(}} | {{#expr: {{str len full|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} }}
   }}''{{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }}'' {{str sub| {{PAGENAME}} | {{str find|{{PAGENAME}}|(}} | {{#expr: {{str len|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} }}


| 010
| 010

Revision as of 08:40, 30 March 2009

Template documentation