본문으로 이동

미디어위키 1.45 안정화가 거의 끝났습니다. 다만 Flow 확장 기능 관련 이슈가 있어서 대체하는 작업을 수행할 계획입니다.

  1. 큰숲백과:청사진에서 위키 발전의 대략적인 방향성을 제시했습니다. 의견이 있으신 분은 큰숲백과토론:청사진에서 의견을 남겨주시면 좋겠습니다.
  2. 기능상의 오류로 지원하지 않고 있는 기능에 대해서는 큰숲백과토론:이슈 트래커에 요약했습니다. 참고하시기 바랍니다.
  3. 데이터베이스 덤프 받고싶으신 분은 큰숲백과 가입 후에 사용자토론:Bigforest에 의견 남겨주시면 ftp 주소, 계정, 비밀번호를 특수:EmailUser를 통해서 공개할 예정입니다.

모듈:Linkwithtemplate: 두 판 사이의 차이

큰숲백과, 나무를 보지 말고 큰 숲을 보라.
새 문서: local 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 ''..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.build...
 
편집 요약 없음
1번째 줄: 1번째 줄:
local p = {}
local p = {}


p.test = function(frame)
p.main = function(frame)
local args = require('Module:Arguments').getArgs(frame)
local args = require('Module:Arguments').getArgs(frame)
local doc = args[1] or ''
local article = args[1] or ''
local linkname = args[2] or nil
local linkname = args[2] or nil
local class = args['class'] or ''
local class = args['class'] or ''


if mw.title.new(doc).exists then
if mw.title.new(article).exists then
if linkname then
return '[[' .. article .. (linkname and '|'..linkname or '') .. ']]'  
return '[['..doc..'|'..linkname..']]'
else
return '[['..doc..']]'
end
else
else
if linkname == nil then
if linkname == nil then
linkname = doc
linkname = article
end
end
return '<span class="plainlinks new '..class..'">['..mw.site.server..'/index.php?'..
return '<span class="plainlinks new '..class..'">['..mw.site.server..'/index.php?'..
mw.uri.buildQueryString {
mw.uri.buildQueryString {
    action = 'edit',
    action = 'edit', title = article, editintro = args['editintro'], preload = args['템플릿']
preload = args['템플릿'],
    editintro = args['editintro'],
    title = doc
}..' '..linkname..']</span>'
}..' '..linkname..']</span>'
end
end

2025년 1월 30일 (목) 16:59 판

local p = {}

p.main = function(frame)
	local args = require('Module:Arguments').getArgs(frame)
	local article = args[1] or ''
	local linkname = args[2] or nil
	local class = args['class'] or ''

	if mw.title.new(article).exists then
		return '[[' .. article .. (linkname and '|'..linkname or '') .. ']]' 
	else
		if linkname == nil then
			linkname = article
		end
		return '<span class="plainlinks new '..class..'">['..mw.site.server..'/index.php?'..
			mw.uri.buildQueryString {
		    	action = 'edit', title = article, editintro = args['editintro'], preload = args['템플릿']
			}..' '..linkname..']</span>'
	end
end
------------------------------------------------------------------------------------
return p