Template:Italic title: Difference between revisions

From Vigyanwiki
Template>Algebraist
(this template should not have an italicized title)
Template>Happy-melon
(sometimes we can do it automatically)
Line 1: Line 1:
<includeonly><span id="RealTitle" style="display:none"><!--
<includeonly><span id="RealTitle" style="display:none"><!--
-->{{#switch: <!--
-->{{#switch: <!--
     -->{{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1 | 1 | 0  
     -->{{#ifexpr: {{str_find|{{PAGENAME}}|(}} != -1 | 1 | 0  
       }}{{#if:    {{{force|}}}                      | 1 | 0
       }}{{#if:    {{{force|}}}                      | 1 | 0
       }}{{#ifexpr: {{str len|{{PAGENAME}}}} < 50    | 1 | 0  
       }}{{#ifexpr: {{str_len|{{PAGENAME}}}} < 50    | 1 | 0  
       }}
       }}
     |100
     |100 = {{#if:{{NAMESPACE}}
    |101 = {{#if:{{NAMESPACE}}
             |{{#switch:{{FULLPAGENAME}}
             |{{#switch:{{FULLPAGENAME}}
               |{{NAMESPACE}}:{{{1}}} ({{{2|}}}) = {{NAMESPACE}}:''{{{1}}}'' ({{{2|}}})
               |{{NAMESPACE}}:{{{1}}} ({{{2|}}}) = {{NAMESPACE}}:''{{{1}}}'' ({{{2|}}})
Line 23: Line 22:
               |#default = {{FULLPAGENAME}}
               |#default = {{FULLPAGENAME}}
             }}
             }}
          }}
    |101 = {{#if:{{NAMESPACE}}
            |{{NAMESPACE}}:''{{str_left| {{PAGENAME}} | {{#expr:{{str_find|{{PAGENAME}}|(}}-2}} }}'' {{str_sub| {{PAGENAME}} | {{str_find|{{PAGENAME}}|(}} | {{#expr: {{str_len|{{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 03:28, 24 March 2009

Template documentation