모듈:Message box 편집하기

귀하는 로그인되어 있지 않습니다. 이대로 편집하면 귀하의 IP 주소가 편집 기록에 남게 됩니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
67번째 줄: 67번째 줄:
args = args or {}
args = args or {}
local obj = {}
local obj = {}
 
obj.boxType = boxType
obj.boxType = boxType


488번째 줄: 488번째 줄:
))
))
end
end
 
-- Add TemplateStyles
-- Add TemplateStyles
root:wikitext(mw.getCurrentFrame():extensionTag{
root:wikitext(mw.getCurrentFrame():extensionTag{
496번째 줄: 496번째 줄:


-- Create the box table.
-- Create the box table.
local boxTable
local boxTable = root:tag('table')
-- Check for fmbox because not all interface messages have mw-parser-output
-- which is necessary for TemplateStyles. Add the wrapper class if it is and
-- then start the actual mbox, else start the mbox.
if self.boxType == 'fmbox' then
boxTable = root:tag('div')
:addClass('mw-parser-output')
:tag('table')
else
boxTable = root:tag('table')
end
 
boxTable:attr('id', self.id or nil)
boxTable:attr('id', self.id or nil)
for i, class in ipairs(self.classes or {}) do
for i, class in ipairs(self.classes or {}) do
가온 위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 가온 위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!
취소 편집 도움말 (새 창에서 열림)