Difference between revisions of "Template:Italic title"

From LIMSWiki
Jump to navigationJump to search
(Created template.)
 
m (Testing mid-level Lua)
Line 1: Line 1:
{{DISPLAYTITLE:{{
{{DISPLAYTITLE:{{#if: {{#invoke:String|find|{{PAGENAME}}|(}}  
#switch:
|{{#if:{{NAMESPACE}}|{{NAMESPACE}}: }}''{{#Invoke:String|replace|{{PAGENAME}}| (|'' (}}
  {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
|{{#if:{{NAMESPACE}}|{{NAMESPACE}}: }}''{{PAGENAME}}''
  | 1
}}
  | 0
}}<noinclude>
  }}{{#if: {{{force|}}}
{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
  | 1
</noinclude>
  | 0
  }}{{str ≤ len | {{PAGENAME}} | 49 <!-- The max {{str find}} can handle is 50 --> | 1 | 0 }}<!--
 
-->| 100 = {{
  #if:{{NAMESPACE}}
  | {{NAMESPACE}}:
  }}{{#switch:{{PAGENAME}}
  | {{{1}}} ({{{2|}}}) = ''{{{1}}}'' ({{{2|}}})
  | {{{1}}} ({{{3|}}}) = ''{{{1}}}'' ({{{3|}}})
  | {{{1}}} ({{{4|}}}) = ''{{{1}}}'' ({{{4|}}})
  | {{{1}}} ({{{5|}}}) = ''{{{1}}}'' ({{{5|}}})
  | {{{1}}} ({{{6|}}}) = ''{{{1}}}'' ({{{6|}}})
  | #default = {{PAGENAME}}
  }}<!--
 
-->| 101 = {{
  #if:{{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 }}
 
| 010
| 011
| 110
| 111
| 001 = {{
  #if:{{NAMESPACE}}
  | {{NAMESPACE}}:
  }}''{{PAGENAME}}''<!--
 
-->| 000 = {{FULLPAGENAME}}<!--
 
-->}}}}

Revision as of 19:02, 2 March 2016

[create] Template documentation