i don't know if it is possible to rejetto to create a lot of macros
{{length line|#line|source}} return the number of caracters (exept #10#13) of the line #line from source
{{count lines|source}} return number of begining of lines in source (NOT number of #10#13) if source is empty this macro return 0, if the last line is 'abcde' then it is a valid line.
{{trim lines|source}} works as {{trim|source}} but it remove empty lines at END and BEGIN of source
usage by example {{trim lines| {{section|mysection}} }}
sometime I use empty line to separate sections in my template.
{{cut lines|begin_line|end_line|source}}begin_line and end_line can be negativ values
usage by example {{cut line|1|{{sub|{{length line|source.txt}}|x}}|source.txt}}
missing to macro {{for|}} a macro named
{{exit for}}usage by example
{{for|x|1|{{count lines|source}}|{{if|{{length line|{{^x}}|source}}>63|{{exit for}}|Line {{^x}} is <64 /if}} /for}}
modification to accept {{?urlvar|defaultvalue}}
application {{get|url|sort={{?sort|n}}|rev={{?rev|1}} }}
ceci n'est qu'un exemple non restrictif
<form name=frm>
Name <input id=login name=name value="{{?name|%user%}}">
<p>Text <input id=text name=text>
<p><input type=submit>
</form>
<script>document.frm.text.focus();</script>
<a href="{{get|url|text=}}">REFRESH</a>