Template:Italic title: Difference between revisions

From Vigyanwiki
Template>Amalthea
(Tweak, per request at WP:AN: [http://en.wikipedia.org?diff=297418477])
m (42 revisions imported from alpha:Template:Italic_title)
 
(13 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{
<includeonly>{{#invoke:Italic title|main}}</includeonly><noinclude>
#switch:
{{Documentation}}
  {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
<!-- Add categories to the /doc subpage and interwikis to Wikidata. -->
  | 1
  | 0
  }}{{#if: {{{force|}}}
  | 1
  | 0
  }}{{#ifexpr: {{str len|{{PAGENAME}}}} < 50  <!-- The max {{str find}} can handle -->
  | 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}}
 
}}}}<noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 10:09, 6 January 2023

Template documentation