Vorlage:Italic title: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(Changed to use the more efficient {{str len full}}. Removed code duplication. Removed <includeonly>, let's show what it does here. Tested in /sandbox. No change in functionality.)
K (40 Versionen von wpen:Template:Italic_title importiert)
 
(16 dazwischenliegende Versionen von 13 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<span id="RealTitle" style="display:none;">{{
<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 full|{{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}} | {{str find|{{PAGENAME}}|(}} | {{#expr: {{str len full|{{PAGENAME}}}} - {{str find|{{PAGENAME}}|(}} }} }}
 
| 010
| 011
| 110
| 111
| 001 =
  {{#if:{{NAMESPACE}}
  | {{NAMESPACE}}:
  }}''{{PAGENAME}}''
 
| 000 = {{FULLPAGENAME}}
 
}}</span><noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Aktuelle Version vom 16. Februar 2023, 23:24 Uhr

Template-info.png Dokumentation für die Vorlage {{Italic title}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]
Für die Vorlage {{Italic title}} gibt es noch keine Dokumentation. Du kannst sie aber anlegen.
Hinweise