Vorlage:Trim/doc: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
K (1 Version)
K (Kategorien geändert)
Zeile 23: Zeile 23:
  
 
<includeonly>
 
<includeonly>
[[Category:Templates/Formatting]]
+
[[Category:Formatierung]]
 
</includeonly><noinclude>
 
</includeonly><noinclude>
[[Category: Template documentation]]</noinclude>
+
[[Category: Vorlagen/Templates]]</noinclude>

Version vom 17. Januar 2010, 22:04 Uhr

Usage

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

000{{Trim|1=

zzz zzz

zzz zzz  

}}000

gives: "000zzz zzz

zzz zzz000"

Warning

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.

Quelle: Offene Naturführer, Das Wiki zu Bestimmungsfragen: Vorlage:Trim/doc. Abgerufen am 6. April 2025, 06:39 von https://offene-naturfuehrer.de/web/Vorlage:Trim/doc