모듈:PlaycityMap 문서 원본 보기 | 읽기역사 보기 | 모듈토론 참조된 문서 문서 정보 캐시 새로고침 ← 모듈:PlaycityMap 분류: 문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. local p = {} local function normalizeArg(value) if value == nil then return nil end local text = tostring(value) if text == "" then return nil end return text end local function buildTagAttributes(args) local attrs = {} local base = normalizeArg(args.base) if base then attrs.base = base end if normalizeArg(args.mode) then attrs.mode = args.mode end if normalizeArg(args.x) then attrs.x = args.x end if normalizeArg(args.z) then attrs.z = args.z end if normalizeArg(args.center) then attrs.center = args.center end if normalizeArg(args.zoom) then attrs.zoom = args.zoom end local controlValue = normalizeArg(args.control) or normalizeArg(args.controls) or normalizeArg(args.interactive) if controlValue then attrs.control = controlValue end if normalizeArg(args.marker) then attrs.marker = args.marker end if normalizeArg(args.hash) then attrs.hash = args.hash end attrs.width = normalizeArg(args.width) or "100%" attrs.height = normalizeArg(args.height) or "420" attrs.loading = normalizeArg(args.loading) or "lazy" attrs.referrerpolicy = normalizeArg(args.referrerpolicy) or "no-referrer-when-downgrade" return attrs end function p.embed(frame) local args = (frame.getParent and frame:getParent() or frame).args or {} local tag = mw.html.create("playcitymap") local attrs = buildTagAttributes(args) for key, value in pairs(attrs) do tag:attr(key, value) end return tostring(tag) end return p 이 문서에서 사용한 틀: 모듈:PlaycityMap/설명문서 (원본 보기) 모듈:PlaycityMap 문서로 돌아갑니다. 분류