Vorlage:Italic title: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(replace str sub with substr any. Fixes issues with diacritics. per talkpage request)
(strip out excessive whitespace)
Zeile 1: Zeile 1:
{{DISPLAYTITLE:{{
{{DISPLAYTITLE:{{#switch:
#switch:
   {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
   {{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
   | 1
   | 1
Zeile 8: Zeile 7:
   | 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}}|
-->| 100 = {{
{{NAMESPACE}}:
  #if:{{NAMESPACE}}
  | {{NAMESPACE}}:
   }}{{#switch:{{PAGENAME}}
   }}{{#switch:{{PAGENAME}}
   | {{{1}}} ({{{2|}}}) = ''{{{1}}}'' ({{{2|}}})
   | {{{1}}} ({{{2|}}}) = ''{{{1}}}'' ({{{2|}}})
Zeile 20: Zeile 17:
   | #default = {{PAGENAME}}
   | #default = {{PAGENAME}}
   }}<!--
   }}<!--
 
-->| 101 = {{#if:{{NAMESPACE}}|
-->| 101 = {{
{{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 }}
  #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 = {{
| 001 = {{#if:{{NAMESPACE}}|
  #if:{{NAMESPACE}}
{{NAMESPACE}}:
  | {{NAMESPACE}}:
   }}''{{PAGENAME}}''<!--
   }}''{{PAGENAME}}''<!--
-->| 000 = {{FULLPAGENAME}}<!--
-->| 000 = {{FULLPAGENAME}}<!--
 
-->}}}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
-->}}}}<noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Version vom 28. Juli 2011, 13:39 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