모듈:위키베이스 편집 버튼

최근 편집: 2019년 12월 9일 (월) 20:52
낙엽1124 (토론 | 기여)님의 2019년 12월 9일 (월) 20:52 판 (새 문서: p = {} function p.main(frame) local args = frame.args[1] ~= nil and frame.args or frame:getParent().args local id = mw.wikibase.getEntityIdForCurrentPage() if not id then re...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

이 모듈에 대한 설명문서는 모듈:위키베이스 편집 버튼/설명문서에서 만들 수 있습니다

p = {}

function p.main(frame)
  local args = frame.args[1] ~= nil and frame.args or frame:getParent().args
  
  local id = mw.wikibase.getEntityIdForCurrentPage()
  if not id then return end
  
  return '[[Item' .. id .. '|정보 수정]]'
end