Template:Lowercase title: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m (1 revision imported: Wikipedia article on Nicotine templates needed)
Wikipedia >Gonnym
(added a |dab= to additionally place the dab portion in italics)
Line 1: Line 1:
{{#if:{{{italic|}}}
<includeonly>{{DISPLAYTITLE: {{#if: {{NAMESPACE}}|{{NAMESPACE}}:}}{{#if: {{{italic|}}}
|{{DISPLAYTITLE:{{
   | {{#if: {{{force|}}}
#switch:
    | ''{{lcfirst:{{PAGENAME}}}}''
  {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
    | {{#invoke:MultiReplace|main|{{lcfirst:{{PAGENAME}}}}|^(.*)(%b())$|''%1''%2|.*|''%1''}}
  | 1
    }}
  | 0
   | {{#if: {{{dab|}}}
  }}{{#if: {{{force|}}}  
    | {{#invoke:MultiReplace|main|{{lcfirst:{{PAGENAME}}}}|{{Title disambig text|{{PAGENAME}}}}|''{{Title disambig text|{{PAGENAME}}}}''}}
   | 1
    | {{lcfirst:{{PAGENAME}}}}
  | 0
    }}
  }}{{#ifexpr: {{str len|{{PAGENAME}}}} < 50  <!-- The max {{str find}} can handle -->
  }}
  | 1
}}</includeonly><noinclude>
  | 0
{{Documentation}}
  }}<!--
 
-->| 100 = {{
  #if:{{NAMESPACE}}
  | {{NAMESPACE}}:
  }}{{#switch:{{PAGENAME}}
  | {{{1}}} ({{{2|}}}) = ''{{lcfirst:{{{1}}}}}'' ({{{2|}}})
  | {{{1}}} ({{{3|}}}) = ''{{lcfirst:{{{1}}}}}'' ({{{3|}}})
  | {{{1}}} ({{{4|}}}) = ''{{lcfirst:{{{1}}}}}'' ({{{4|}}})
  | {{{1}}} ({{{5|}}}) = ''{{lcfirst:{{{1}}}}}'' ({{{5|}}})
  | {{{1}}} ({{{6|}}}) = ''{{lcfirst:{{{1}}}}}'' ({{{6|}}})
  | #default = {{PAGENAME}}
   }}<!--
 
-->| 101 = {{
  #if:{{NAMESPACE}}
  | {{NAMESPACE}}:
  }}''{{lcfirst:{{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}}:
  }}''{{lcfirst:{{PAGENAME}}}}''<!--
 
-->| 000 = {{FULLPAGENAME}}<!--
 
-->}}}}
|<span>{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}</span>
}}<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:59, 19 October 2021