(Created page with "<include●only><!--Template Subcategories--></include●only> <!--Template Description--> ==Usage== <!--Parameters and such go here.--> ==Returns== {{Code|<nowiki>{{TrimEnd|</nowiki>{{#dpl: | category = Portrait | ordermethod = firstedit | order = descending | format = ,%TITLE%;,, | count = 6 }}<nowiki>}}</nowiki>}} returns: {{Return|{{TrimEnd|{{#dpl: | category = Portrait | ordermethod = firstedit | order = descending | format = ,%TITLE%;,, | count = 6 }}}}}}") |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <includeonly><!--Template Subcategories--></includeonly> | ||
{{Template|TrimEnd}} is used to remove a character, typically a delimiter, from the end of a string. | |||
==Usage== | ==Usage== | ||
It accepts two {{Parameter|mandatory}}: | |||
# is the string to be parsed. | |||
# is the character to be removed. | |||
==Returns== | ==Returns== | ||
{{Code|<nowiki>{{TrimEnd|</nowiki>{{#dpl: | {{Code|<nowiki>{{TrimEnd|</nowiki>{{#dpl: | ||
Revision as of 12:41, 23 February 2024
Template:TrimEnd is used to remove a character, typically a delimiter, from the end of a string.
Usage
It accepts two mandatory parameter:
- is the string to be parsed.
- is the character to be removed.
Returns
{{TrimEnd|Peng diana-patient-p.png;Hope justice-casual-p.png;Hope tommelise-casual-p.png;Hope charlotte-casual-p.png;Green-arthur gold-p.png;Hope charlotte-jammies-p.png;}} returns:
{{{2}}}
