请输入您要查询的百科知识:

 

词条 Module:Sandbox/pppery/massrfd
释义

local p = {};

local redr = require("Module:Redirect");

function p.main(frame)

local output = "";

local text = frame.args.text;

local matcher = string.gmatch(text, "[^\]+")

while true do

local p = matcher();

if not p then

return output;

end

p= p:gsub("^.*(Wikipedia:.-) %(.*$","%1")

p = mw.text.trim(p)

local q = mw.title.new(p):getContent()

if q ~= nil then

q = q:gsub(".*content=","")

local target = redr.getTargetFromText(q)

if target and not (target == p) then

target = target:gsub("_"," ")

local code = "{{subst:rfd2|multi=yes|redirect="..p.."|target="..target.."}}"

output = output..frame:preprocess(code);

end

end

end

end

return p;

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/16 16:11:32