익명 사용자
로그인하지 않음
계정 만들기
로그인
K-위키
검색
주사위 문서 원본 보기
K-위키
이름공간
문서
토론
더 보기
더 보기
문서 행위
읽기
원본 보기
역사
←
주사위
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다:
사용자
.
문서의 원본을 보거나 복사할 수 있습니다.
==주사위 굴리기== {{#expr: {{#time: s}} mod 6 + 1}} <onlyinclude> <div style="position:relative; width:{{{1|150}}}px; height:{{{1|150}}}px; border:{{{2|5px solid black}}};"> {{#switch:{{#expr:{{#time:s}} mod 6 + 1}} |1= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:45%; top:45%;"></div> |2= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:5%;"></div> |3= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:45%; top:45%;"></div> |4= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; bottom:5%;"></div> |5= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:45%; top:45%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; bottom:5%;"></div> |6= <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; left:5%; top:45%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:{{{3|black}}}; right:5%; top:45%;"></div> }} </div> <span style="background:{{{6|cyan}}}; display:inline-block; padding:0.5em 1em;" title="{{{4|다시 굴리기}}}" class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{{5|다시 굴리기}}}]</span> </onlyinclude> === 다른 문서에서 쓸려면 === <nowiki>{{:주사위|크기(px 안 붙여야한다.)|테두리 속성(색, 모양, 굵기 다 적어야한다.)|점 색깔|다시 굴리기 버튼에 마우스 올리면 뜨는 메시지|다시 굴리기 버튼에 쓰일 글자|다시 굴리기 버튼 색}} 이렇게 적어서 쓰자.</nowiki> [현재 2차 업그레이드 모드] 예를 들어서 <nowiki>{{:주사위|200|5px dotted blue|red|다시|다시 굴려!|yellow}}</nowiki>면 {{:주사위|200|5px dotted blue|red|다시|다시 굴려!|yellow}} 그리고 이거 한 문서에 두 개 넣었을때 두 개 다 다른 결과가 나오는 거랑 꼭 다시 굴리기를 누르지 않아도 결과가 바뀌는건 [https://mediawiki.org/wiki/Extension:RandomSelection 랜덤 선택 확장 기능]이 설치가 안 되서 div로 겨우 한거라 현재는 아직 안 된다. === 3d 버전 === <div style="width:100px; height:100px; prespective:200px; margin:50px auto;"> <div style="position:relative; transform:rotateX({{#switch:{{#expr:floor({{#time:U}} mod 24 mod 6) +1}}|1|6=45|-45}}deg) rotateY({{#switch:{{#expr:floor({{#time:U}} mod 24 mod 6) + 1}}|1=0|6=180|{{#expr:45 + ({{#expr:floor({{#time:U}} mod 24 div 4)}}) * 90}}}}deg) rotateZ({{#switch:{{#expr:floor({{#time:U}} mod 24 mod 6) + 1}}|2=270|3=180|4=0|5=90|{{#expr:45 + ({{#expr:floor({{#time:U}} mod 24 div 4)}}) * 90}}}}deg); transform-style:preserve-3d; width:100%; height:100%;"> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateY(0deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:45%; top:45%;"></div> </div> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateY(90deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:5%;"></div> </div> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateY(180deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:45%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; top:45%;"></div> </div> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateY(270deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:45%; top:45%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; bottom:5%;"></div> </div> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateX(90deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; bottom:5%;"></div> </div> <div style="position:absolute; width:96px; height:96px; opacity:0.9; transform:rotateX(270deg) translateZ(50px); border:2px black solid; background:white;"> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; right:5%; bottom:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:5%; top:5%;"></div> <div style="position:absolute; width:10%; height:10%; border-radius:50%; background:black; left:45%; top:45%;"></div> </div> </div> </div> <span style="background:cyan; display:inline-block; padding:0.5em 1em;" title="다시 굴리기" class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=purge}} 다시 굴리기]</span>
주사위
문서로 돌아갑니다.
둘러보기
둘러보기
대문
디시위키 사용하기
디시위키 소개
작성방법
문법
심심할 땐 랜덤
볼거리
최근 바뀜
새 문서
많이 편집된 문서
긴 문서
짧은문서
쓸거리
외톨이문서
막다른 문서
위키 도구
위키 도구
문서 도구
문서 도구
사용자 문서 도구
더 보기
여기를 가리키는 문서
가리키는 글의 최근 바뀜
문서 정보
문서 기록