Module:Cmap/doc: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
For now this is really just a replace module -- could probably just call this replace instead.
Returns arg1 with all instances of arg2 replaced with arg3:
Returns arg1 with all instances of arg2 replaced with arg3:
<pre>{{#invoke:cmap|cmap|needle in haystack|needle|hay}}</pre>
<pre>{{#invoke:cmap|cmap|needle in haystack|needle|hay}}</pre>
:{{#invoke:cmap|cmap|needle in haystack|needle|hay}}
:{{#invoke:cmap|cmap|needle in haystack|needle|hay}}

Revision as of 00:46, 8 January 2024

Returns arg1 with all instances of arg2 replaced with arg3:

{{#invoke:cmap|cmap|needle in haystack|needle|hay}}
hay in haystack