Vorlage:ParseTextValue4ical: Unterschied zwischen den Versionen

Aus Bayernflora
Wechseln zu: Navigation, Suche
K
K (DEBUG)
Zeile 62: Zeile 62:
 
     -->{{#vardefine: textWrapped |<!--  
 
     -->{{#vardefine: textWrapped |<!--  
 
     -->{{#sub: {{#var: text}} | 0 | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
 
     -->{{#sub: {{#var: text}} | 0 | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
     --><nowiki></nowiki>
+
     -->{{#if:||<nowiki></nowiki>
  <nowiki></nowiki><!--  
+
  <nowiki></nowiki>}}<!--  
 
     -->{{#sub: {{#var: text}} | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
 
     -->{{#sub: {{#var: text}} | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
 
   -->}}<!--  
 
   -->}}<!--  
     set -->{{#vardefine: i-loop |{{#expr: 1 + {{#var: i-loop}}}}}}<!--output
+
 
 +
     set
 +
  -->{{#vardefine: i-loop |{{#expr: 1 + {{#var: i-loop}}}}}}<!--output
 
   -->|{{#var: i-loop}}<br/><!--output sep
 
   -->|{{#var: i-loop}}<br/><!--output sep
 
   -->}}<!-- end arraymap  
 
   -->}}<!-- end arraymap  

Version vom 14. Januar 2014, 18:00 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