편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
local p = {} | local p = {} | ||
p. | p.test = function(frame) | ||
local args = require('Module:Arguments').getArgs(frame) | |||
local doc = args[1] or '' | |||
local linkname = args[2] or nil | |||
local class = args['class'] or '' | |||
if mw.title.new(doc).exists then | |||
if linkname then | |||
return '[['..doc..'|'..linkname..']]' | |||
else | |||
return '[['..doc..']]' | |||
end | |||
else | |||
if linkname == nil then | |||
linkname = doc | |||
end | |||
return '<span class="plainlinks new '..class..'">['..mw.site.server..'/index.php?'.. | |||
mw.uri.buildQueryString { | |||
action = 'edit', | |||
preload = args['템플릿'], | |||
editintro = args['editintro'], | |||
title = doc | |||
}..' '..linkname..']</span>' | |||
end | |||
end | end | ||
------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ||
return p | return p |