Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:TrimEnd/Documentation: Difference between revisions

No edit summary
No edit summary
 
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.
# is the character to be removed.
==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
Line 18: Line 18:
| format = ,%TITLE%;,,
| format = ,%TITLE%;,,
| count = 6
| count = 6
}}|;}}}}
}}}}}}

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:

  1. is the character to be removed.
  2. 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