Nodyn:Trim/doc
Dyma is-ddalen dogfennaeth ar gyfer Nodyn:Trim. Mae'n cynnwys gwybodaeth defnydd, categorïau, dolenni rhyngiaith a chynnwys eraill sydd ddim yn rhan o nodyn dudalen wreiddiol. |
This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as Nodyn:Tlxs, the resulting wikicode is "clean".
Usage golygu
{{trim|text}} = text with any leading or trailing whitespace removed.
Example golygu
{{trim|abc}}
produces abc.
See also golygu
- {{Strip whitespace}} which does nearly the exact same thing, but which should not be substituted.
Nodyn:String templates see also