Template:Italic title: Difference between revisions

From Vigyanwiki
Template>Thumperward
(strip out excessive whitespace)
Template>Thumperward
(more whitespace)
Line 1: Line 1:
{{DISPLAYTITLE:{{#switch:
{{DISPLAYTITLE:{{#switch: {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
  {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
   | 1
   | 1
   | 0
   | 0
Line 6: Line 5:
   | 1
   | 1
   | 0
   | 0
   }}{{str ≤ len | {{PAGENAME}} | 49 <!-- The max {{str find}} can handle is 50 --> | 1 | 0 }}<!--
   }}{{str ≤ len | {{PAGENAME}} | 49 <!-- The max {{str find}} can handle is 50 --> | 1 | 0 }}| 100 = {{#if:{{NAMESPACE}}|{{NAMESPACE}}: }}{{#switch:{{PAGENAME}}
-->| 100 = {{#if:{{NAMESPACE}}|
{{NAMESPACE}}:
  }}{{#switch:{{PAGENAME}}
   | {{{1}}} ({{{2|}}}) = ''{{{1}}}'' ({{{2|}}})
   | {{{1}}} ({{{2|}}}) = ''{{{1}}}'' ({{{2|}}})
   | {{{1}}} ({{{3|}}}) = ''{{{1}}}'' ({{{3|}}})
   | {{{1}}} ({{{3|}}}) = ''{{{1}}}'' ({{{3|}}})
Line 16: Line 12:
   | {{{1}}} ({{{6|}}}) = ''{{{1}}}'' ({{{6|}}})
   | {{{1}}} ({{{6|}}}) = ''{{{1}}}'' ({{{6|}}})
   | #default = {{PAGENAME}}
   | #default = {{PAGENAME}}
   }}<!--
   }}| 101 = {{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}''{{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }}'' {{substr any| {{PAGENAME}} | {{#expr: {{str find|{{PAGENAME}}|(}} - 1}} | {{#expr: {{str len|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} + 1 }}
-->| 101 = {{#if:{{NAMESPACE}}|
{{NAMESPACE}}:}}''{{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
| 011
| 011
| 110
| 110
| 111
| 111
| 001 = {{#if:{{NAMESPACE}}|
| 001 = {{#if:{{NAMESPACE}}|{{NAMESPACE}}: }}''{{PAGENAME}}'' | 000 = {{FULLPAGENAME}} }} }}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
{{NAMESPACE}}:
  }}''{{PAGENAME}}''<!--
-->| 000 = {{FULLPAGENAME}}<!--
-->}}}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>

Revision as of 18:11, 28 July 2011

Template documentation