No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
It accepts two {{Parameter|mandatory}}: | It accepts two {{Parameter|mandatory}}: | ||
# is the character to be removed. | |||
# is the string to be parsed. | # is the string to be parsed. | ||
==Returns== | ==Returns== | ||
{{Code|<nowiki>{{TrimEnd|</nowiki>{{#dpl: | {{Code|<nowiki>{{TrimEnd|;|</nowiki>{{#dpl: | ||
| category = Portrait | | category = Portrait | ||
| ordermethod = firstedit | | ordermethod = firstedit | ||
| Line 12: | Line 12: | ||
| format = ,%TITLE%;,, | | format = ,%TITLE%;,, | ||
| count = 6 | | count = 6 | ||
}}<nowiki>}}</nowiki>}} returns: {{Return|{{TrimEnd|{{#dpl: | }}<nowiki>}}</nowiki>}} returns: {{Return|{{TrimEnd|;|{{#dpl: | ||
| category = Portrait | | category = Portrait | ||
| ordermethod = firstedit | | ordermethod = firstedit | ||
Latest revision as of 12:43, 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 character to be removed.
- is the string to be parsed.
Returns
{{TrimEnd|;|Peng diana-patient-p.png;Hope tommelise-casual-p.png;Hope charlotte-casual-p.png;Hope justice-casual-p.png;Green-arthur gold-p.png;Hope charlotte-jammies-p.png;}} returns:
Peng diana-patient-p.png;Hope tommelise-casual-p.png;Hope charlotte-casual-p.png;Hope justice-casual-p.png;Green-arthur gold-p.png;Hope charlotte-jammies-p.png
