Vorlage:Replace

Aus Wikivoyage
Zur Navigation springen Zur Suche springen

{{{1}}}

Template-info.png Dokumentation für die Vorlage {{Replace}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Usage

{{Replace|<string>|<find>|<replacewith>[|count=n]}}

Returns <string> with the n occurrences of <find> replaced with <replacewith>. Omitting count will replace all occurrences

Example

  • {{Replace|One two two three two four twotwo five|two|NINE}} → One NINE NINE three NINE four NINENINE five
  • {{Replace|One two two three two four twotwo five|two|NINE|count=2}} → One NINE NINE three two four twotwo five

See also

  • {{str rep}} — replaces only the first occurrence.

Siehe auch

Hinweise