Vorlage:ParseTextValue4ical: Unterschied zwischen den Versionen
Aus Bayernflora
K (DEBUG) |
K (fix arraymap) |
||
Zeile 8: | Zeile 8: | ||
; 1= : the text value | ; 1= : the text value | ||
</div> | </div> | ||
+ | |||
+ | |||
<pre> | <pre> | ||
Zeile 53: | Zeile 55: | ||
cut text each textBreakLength | cut text each textBreakLength | ||
− | -->{{#arraymap: {{PADLEFT:|{{#expr: ceil ( {{#var: textLength}} / {{#var: textBreakLength }} ) }}|.}}<!-- | + | -->{{#arraymap: {{#replace:{{PADLEFT:|{{#expr: ceil ( {{#var: textLength}} / {{#var: textBreakLength }} ) }}|.}}|.|x.}}<!-- |
-->|.<!-- sep | -->|.<!-- sep | ||
-->|§<!-- assign temporary var | -->|§<!-- assign temporary var |
Version vom 14. Januar 2014, 17:52 Uhr
Following transformation will be done:
- wrap text to 75 and indent it by 1 space
- escape: \, \; \n
Parameters
- 1=
- the text value
{{ParseTextValue4ical|1=very long text very long text very long text very long text very long text very long text next line goes here }}
very long text very long text very long text very long text very long text
very long text \n\nnext line goes here