Vorlage:Cutword: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Änderung 13989 von Murmelgrumpf (Diskussion) rückgängig gemacht. |
||
Zeile 1: | Zeile 1: | ||
<nowiki> | |||
{{#vardefine: current|{{#explode:{{{2}}}| |0}}}} | {{#vardefine: current|{{#explode:{{{2}}}| |0}}}} | ||
{{#vardefine: next|{{#explode:{{{2}}}| |1}}}} | {{#vardefine: next|{{#explode:{{{2}}}| |1}}}} | ||
{{#vardefine: clen|{{#len:{{#var: current}}}}}} | {{#vardefine: clen|{{#len:{{#var: current}}}}}} | ||
{{#vardefine: nlen|{{#len:{{#var: next}}}}}} | {{#vardefine: nlen|{{#len:{{#var: next}}}}}} | ||
{{#vardefine: len|{{#len:{{{2|}}}}}}} | {{#vardefine: len|{{#len:{{{2|}}}}}}} | ||
{{#vardefine: end|{{{1}}}}} | {{#vardefine: end|{{{1}}}}} | ||
{{#vardefine: i|0}} | {{#vardefine: i|0}} | ||
{{#ifexpr: {{#var: end}}>{{#var: len }}|{{#vardefine: end|0}}}} | {{#ifexpr: {{#var: end}}>{{#var: len }}|{{#vardefine: end|0}}}} | ||
{{#vardefine: i | 0 }}{{#while: | {{#vardefine: i | 0 }}{{#while: | ||
| {{#ifexpr: {{#expr: {{#var: nlen }}+1+{{#var: clen }}}} < {{#var: end}} | true }} | | {{#ifexpr: {{#expr: {{#var: nlen }}+1+{{#var: clen }}}} < {{#var: end}} | true }} | ||
Zeile 16: | Zeile 22: | ||
{{#vardefine: next|{{#explode:{{{2}}}| |{{#expr: {{#var: i}}+1}}}}}} | {{#vardefine: next|{{#explode:{{{2}}}| |{{#expr: {{#var: i}}+1}}}}}} | ||
{{#vardefine: nlen|{{#len:{{#var: next}}}}}} | {{#vardefine: nlen|{{#len:{{#var: next}}}}}} | ||
}} | }} | ||
</nowiki> | |||
{{#ifexpr: {{#var: end}}>{{#var: len }} |{{#var: current}}%@%{{#sub:{{{2}}}|{{#expr: 1+{{#var: clen}}}}}}|{{{2}}}}} | {{#ifexpr: {{#var: end}}>{{#var: len }} |{{#var: current}}%@%{{#sub:{{{2}}}|{{#expr: 1+{{#var: clen}}}}}}|{{{2}}}}} |
Version vom 11. Januar 2020, 22:23 Uhr
{{#vardefine: current|{{#explode:{{{2}}}| |0}}}} {{#vardefine: next|{{#explode:{{{2}}}| |1}}}} {{#vardefine: clen|{{#len:{{#var: current}}}}}} {{#vardefine: nlen|{{#len:{{#var: next}}}}}} {{#vardefine: len|{{#len:{{{2|}}}}}}} {{#vardefine: end|{{{1}}}}} {{#vardefine: i|0}} {{#ifexpr: {{#var: end}}>{{#var: len }}|{{#vardefine: end|0}}}} {{#vardefine: i | 0 }}{{#while: | {{#ifexpr: {{#expr: {{#var: nlen }}+1+{{#var: clen }}}} < {{#var: end}} | true }} | <nowiki /> {{#vardefine: current|{{#var: current}} {{#var: next}}}} {{#vardefine: clen|{{#len:{{#var: current}}}}}} {{#vardefine: i|{{#expr: {{#var: i}}+1}}}} {{#vardefine: next|{{#explode:{{{2}}}| |{{#expr: {{#var: i}}+1}}}}}} {{#vardefine: nlen|{{#len:{{#var: next}}}}}} }} Fehler im Ausdruck: Unerwarteter Operator >