Vorlage:ParseTextValue4ical: Unterschied zwischen den Versionen

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

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