From FloraWiki - das Wiki zur Schweizer Flora
< Vorlage:Trim
Revision as of 02:30, 20 January 2015 by Andreas Plank (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This template trims whitespace and extra newlines from the start and end of the parameter. Example:


zzz zzz

zzz zzz  


gives: "000zzz zzz

zzz zzz000"


Although it is possible to use the template without the "1=", such usage will break whenever an equal sign occurs in the input (the part before the "=" will then be consider a parameter name). Using the template with a named (here first number) parameter prevents this.