Jump to content
Panguna nga menu
Panguna nga menu
move to sidebar
Tago-i
paglayag
Syahan nga Pakli
Ganghaan han Komunidad
Mga kabag-ohan
Bisan ano nga pakli
Bulig
Mga pinaurog nga pakli
Bilnga
Bilnga
Appearance
Mga Donasyon
Himo-a an akawnt
Sakob
Mga pankalugaringon nga garamiton
Mga Donasyon
Himo-a an akawnt
Sakob
Ginliliwat
Module:StringReplace
Dugngi hin mga pinulongan
Module
Hiruhimangraw
English
Basaha
Igliwat an wikitext
Kitaa an kaagi
Garamiton
Mga tool
move to sidebar
Tago-i
Actions
Basaha
Igliwat an wikitext
Kitaa an kaagi
Kasahiran
Mga nasumpay dinhi
Mga may kalabotan nga binag-o
Pagkarga hin file
Impormasyon han pakli
Kuhaa an pinahalipot nga URL
Download QR code
Switch to new parser (Parsoid)
Appearance
move to sidebar
Tago-i
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check.
Ayaw
pagbinutangi dinhi!
-- Module for different search and replace operations on strings. local p = {} -- Takes one string parameter, and returns the string with all characters with special meaning for Lua patterns escaped with a preceding `%`. function p.escape_pattern(text) -- Replaces each occurrence of any of ().%+-*?[^$ with a `%` and then the character. local r = string.gsub(text, "[%(%)%.%%%+%-%*%?%[%^%$]", "%%%1") return r end -- Returns the first parameter, with all occurrences of the second parameter replaced with the third parameter. -- All special characters are ignored: {{#invoke:StringReplace|replace_all|test.a%1$foo|%1|bar}} results in `test.abarfoo`. function p.replace_all(frame) local str = frame.args[1] local strToFind = frame.args[2] local strToreplaceWith = frame.args[3] local r = string.gsub(str, p.escape_pattern(strToFind), p.escape_pattern(strToreplaceWith)) return r end p['encode wiki page name'] = function( frame ) local x = mw.ustring.gsub( frame.args[1] or '', '[\'"&_]', { ["'"] = ''', ['"'] = '"', ['&'] = '&', ['_'] = ' ', } ) return mw.text.trim( x ) end return p
Halipotay nga masisiring:
Han pag-save han mga ginbag-o, ikaw in natugot han
mga Termino hit Paggamit
, ngan ikaw in waray atrasan nga natugot nga ihatag an imo amot ha ilarom han
CC BY-SA 4.0 License
ngan an
GFDL
. Natugot ka nga sadang na iton hyperlink o URL para han attribution ha ilarom han Creative Commons nga paglisensya.
Pasagdi
Pagliwat hin pabulig
(nabuklad hin bag-o nga tamboan o bintana)
Preview page with this template
Wikidata entities used in this page
Module:StringReplace
: Sitelink, Description: en
Mga batakan nga gingamit dinhi nga pakli:
Module:StringReplace/doc
(
igliwat
)
Bilnga
Bilnga
Ginliliwat
Module:StringReplace
Dugngi hin mga pinulongan
Igdugang hin himangrawon