문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 중 하나의 권한을 가진 사용자에게 제한됩니다: 사용자, 관리자. 문서를 고치려면 이메일 인증 절차가 필요합니다. 사용자 환경 설정에서 이메일 주소를 입력하고 이메일 주소 인증을 해주시기 바랍니다. 문서의 원본을 보거나 복사할 수 있습니다. local p = {} local sites = { -- interwiki prefix, parameter, label and site id (for Wikidata) { 'w', '위키백과', '위키백과 문서', 'kowiki' }, { 'commons', '공용', '공용 갤러리', 'commonswiki' }, { 'commons:Category', '공용분류', '공용 분류', '' }, { 'q', '위키인용집', '인용', 'kowikiquote' }, { 'n', '위키뉴스', '뉴스', 'kowikinews' }, { 'wikt', '위키낱말사전', '사전 정의', 'kowiktionary' }, { 'b', '위키책', '교과서', 'kowikibooks' }, { 'v', '위키배움터', '교육 과정', 'kowikiversity' }, { 'wikispecies', '위키스피시즈', '생물 분류', 'specieswiki' }, { 'voy', '위키여행', '여행 가이드', 'enwikivoyage' }, { 'd', '위키데이터', '위키데이터 항목', 'wikidatawiki' }, { 'bibliowiki', '비블리오위키', '비블리오위키', '' }, { 'm', '메타', '메타', 'metawiki' } } function p.interprojetPart( frame ) local frame = frame:getParent() local item = mw.wikibase.getEntityObject() local links = {} for _, site in pairs( sites ) do local val = '' if val == '' and frame.args[site[2]] ~= nil then val = frame.args[site[2]] end if val == '' and site[4] ~= '' and item ~= nil then if site[4] == 'wikidatawiki' then val = item.id or '' else val = item:getSitelink( site[4] ) or '' end end if val ~= '' then table.insert( links, '[[' .. site[1] .. ':' .. val .. '|' .. site[3] .. ']]' ) end end if next( links ) == nil then return '' end return '' end return p 이 문서에서 사용한 틀: 모듈:Plain sister/설명문서 (원본 보기) 모듈:Plain sister 문서로 돌아갑니다.