This wiki has had no edits or log actions made within the last 45 days and has been automatically marked as inactive. If you would like to prevent this wiki from being closed, please start showing signs of activity here. If there are no signs of this wiki being used within the next 15 days, this wiki will be closed in accordance to the Dormancy Policy (which all wiki founders accept when requesting a wiki). If this wiki is closed and no one reopens it 135 days from now, this wiki will become eligible for deletion. Note: If you are a bureaucrat, you can go to Special:ManageWiki and uncheck "inactive" yourself.


Template page
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Replace/doc. Changes can be proposed in the talk page.
Template:Replace invokes function replace in Module:String using Lua.

{{replace |<string >|<target >|<replacement>|<count>}}

Returns string with the first n occurrences of target replaced with replacement. Omitting count will replace all occurrences.

  • {{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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.