Nodyn:Trim
Gwedd
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 cod]{{trim|text}} = text with any leading or trailing whitespace removed.
Example
[golygu cod]{{trim|abc}}
produces abc.
See also
[golygu cod]- {{Strip whitespace}} which does nearly the exact same thing, but which should not be substituted.
Mae'r ddogfennaeth uchod wedi ei thrawsgynnwys o Nodyn:Trim/doc. (golygu | hanes) Gall golygyddion arbrofi yn y tudalennau pwll tywod (creu | drych) a testcases (creu). Os gwelwch yn dda, ychwanegwch gategorïau a rhyngwicis at yr is-dudalen /doc. Is-dudalennau'r nodyn hwn. |