Vorlage:ParseTextValue4ical: Unterschied zwischen den Versionen

Aus Bayernflora
Wechseln zu: Navigation, Suche
K (textLength fix)
K (DEBUG)
Zeile 59: Zeile 59:
 
   -->|§<!-- assign temporary var
 
   -->|§<!-- assign temporary var
 
   -->|<!--  
 
   -->|<!--  
   -->{{#vardefine: textWrapped |<!--  
+
   -->{{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }}<br><!--
 +
    -->{{#vardefine: textWrapped |<!--  
 
     -->{{#sub: {{#var: text}} | 0 | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
 
     -->{{#sub: {{#var: text}} | 0 | {{#expr: {{#var: i-loop}} * {{#var: textBreakLength}} }} }}<!--  
 
     --><nowiki></nowiki>
 
     --><nowiki></nowiki>

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