This page is protected against editing.

Template:Replace text

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{{1}}}

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Replace text/doc.

This template is for replacing certain patterns in strings, for example in template parameters.

Usage

{{replace text |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1sourceThe source stringemptyrequired
2patternThe pattern to be replaced. Regexes are not allowed (use Module:String directly to use them).emptyrequired
3replacementThe string to be inserted in place of the pattern.emptyrequired
countreplace countThe number of occurrences to replace. If not given, replace all.emptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Relies on:
Module:String

Localization

This template is not intended to be localized.