Module:User:Aryamanarora/linker
Jump to navigation
Jump to search
- This module lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
This is a private module sandbox of Aryamanarora, for their own experimentation. Items in this module may be added and removed at Aryamanarora's discretion; do not rely on this module's stability.
local export = {}
local tt = {
[','] = '', ['.'] = '', ['?'] = '', ['।'] = '', ['!'] = '', [':'] = '', [';'] = '',
['['] = '', [']'] = '', ['('] = '', [')'] = '',
};
local space = { [' '] = "]] [[", };
function export.tr(text, lang, sc)
text = mw.ustring.gsub(text, '.', tt)
return ("[[" .. mw.ustring.gsub(text, '.', space) .. "]]")
end
return export