둘러보기 메뉴
검색
바뀐글
임의글
개인 도구
가입하기
로그인
도움말
도움말
질문게시판
자주 묻는 질문
커뮤니티
실시간 채팅방
가입인사게시판
자유게시판
뉴스게시판
제재안게시판
최근 토론
페미위키
공지사항
개선 요청
바뀐글
임의글
파일 올리기
다면 분류 목록
특수 문서 목록
모듈:출생지 문서 원본 보기
이름공간
모듈
토론
주시
도구
여기를 가리키는 문서
가리키는 글의 최근 바뀜
문서 정보
위키베이스 항목
행위
보기
읽기
원본 보기
역사 보기
←
모듈:출생지
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요.
요청한 명령은 다음 중 하나의 권한을 가진 사용자에게 제한됩니다:
사용자
,
Seeders
.
문서를 고치려면 이메일 인증 절차가 필요합니다.
사용자 환경 설정
에서 이메일 주소를 입력하고 이메일 주소 인증을 해주시기 바랍니다.
문서의 원본을 보거나 복사할 수 있습니다.
p = {} local entity, qid local function makeLink(id) local wt = mw.wikibase.getLabel(id) local title = mw.wikibase.getSitelink( id ) if title then wt = '[[' .. title .. '|' .. wt .. ']]' end return wt end local function getCountry( placeId ) local country = mw.wikibase.getBestStatements(placeId, 'P11')[1] if not country then return nil end local countryId = country.mainsnak.datavalue.value.id return makeLink(countryId) end function p.main(frame) local args = frame.args[1] ~= nil and frame.args or frame:getParent().args entity = mw.wikibase.getEntity() qid = mw.wikibase.getEntityIdForCurrentPage() local place = entity:getBestStatements( 'P10' )[1] if not place then return '' end local placeId = place.mainsnak.datavalue.value.id local placeId = place.mainsnak.datavalue.value.id local country = getCountry(placeId) if country then return country .. ', ' .. makeLink(placeId) end return makeLink(placeId) end return p
이 문서에서 사용한 틀:
모듈:출생지/설명문서
(
원본 보기
)
모듈:출생지
문서로 돌아갑니다.
다른 언어