모듈:links/연습장
< 모듈:links
이 모듈은 영어판 윅셔너리의 module:links를 갈무리한 것입니다.
local export = {}
local gsub = mw.ustring.gsub
-- Strips all square brackets out or replaces them.
function export.remove_links(text)
if type(text) == "table" then text = text.args[1] end; if not text then text = "" end
text = text:gsub("%[%[[^|%]]-|", "")
text = text:gsub("%[%[", "")
text = text:gsub("%]%]", "")
return text
end
function export.full_link(data, face, allow_self_link, show_qualifiers)
-- Prevent data from being destructively modified.
local data = require("Module:table").shallowcopy(data)
if type(data) ~= "table" then
error("full_link 함수의 데이터 타입은 테이블이어야 합니다."
.. "윅셔너리 영어판의 Module:links/documentation를 참고하세요.")
end
end
return export