Module:User:Wyang/filter-ja-no-zh
- This module sandbox 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 Wyang, for their own experimentation. Items in this module may be added and removed at Wyang's discretion; do not rely on this module's stability.
local export = {}
function export.filter(frame)
local output_text = {}
local m_data = mw.loadData("Module:User:Wyang/filter-ja-no-zh/data").list
for _, word in ipairs(m_data) do
local content = mw.title.new(word):getContent()
if content then
if not mw.ustring.match(content, "==Chinese==") and not mw.ustring.match(content, "{{also|") then
table.insert(output_text, "#[[" .. word .. "]]")
end
end
end
return table.concat(output_text, "\n")
end
return export