편집 요약 없음 |
편집 요약 없음 |
||
(같은 사용자의 중간 판 4개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
{{namucat|별점 틀|김찬/제작한 틀}} | {{namucat|별점 틀|김찬/제작한 틀}} | ||
{{틀 도움 | {{틀 도움 | ||
|날짜1=2023.07.06|업데이트1='''반별({{별점/stars|half|#373a3c}}) 구현''' 및 그에 따른 반올림 체계 재정립}} | |날짜1=2023.07.06|업데이트1='''반별({{별점/stars|type={{{type|★}}}|half|#373a3c}}) 구현''' 및 그에 따른 반올림 체계 재정립 | ||
|날짜2=2023.11.20|업데이트2=별을 커스터마이징할 수 있는 기능 추가 | |||
}} | |||
{{하위 문서2|stars}} | |||
<onlyinclude><includeonly>{{css|별점}}<span class="stars-template" style="{{#if:{{{size|}}}|font-size: {{{size|}}};|}}">{{#if:{{{1|}}}|<!-- | <onlyinclude><includeonly>{{css|별점}}<span class="stars-template" style="{{#if:{{{size|}}}|font-size: {{{size|}}};|}}">{{#if:{{{1|}}}|<!-- | ||
0 이상 0.5 미만 | 0 이상 0.5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 0 and {{{1|}}} < 0.5|<!-- | -->{{#ifexpr:{{{1|}}} >= 0 and {{{1|}}} < 0.5|<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
0.5 이상 1 미만 | 0.5 이상 1 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 0.5 and {{{1|}}} < 1.0|<!-- | -->{{#ifexpr:{{{1|}}} >= 0.5 and {{{1|}}} < 1.0|<!-- | ||
-->{{별점/stars|half|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|half|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
1 이상 1.5 미만 | 1 이상 1.5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 1.0 and {{{1|}}} < 1.5|<!-- | -->{{#ifexpr:{{{1|}}} >= 1.0 and {{{1|}}} < 1.5|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
1.5 이상 2 미만 | 1.5 이상 2 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 1.5 and {{{1|}}} < 2.0|<!-- | -->{{#ifexpr:{{{1|}}} >= 1.5 and {{{1|}}} < 2.0|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|half|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|half|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
2 이상 2.5 미만 | 2 이상 2.5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 2.0 and {{{1|}}} < 2.5|<!-- | -->{{#ifexpr:{{{1|}}} >= 2.0 and {{{1|}}} < 2.5|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
2.5 이상 3 미만 | 2.5 이상 3 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 2.5 and {{{1|}}} < 3.0|<!-- | -->{{#ifexpr:{{{1|}}} >= 2.5 and {{{1|}}} < 3.0|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|half|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|half|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
3 이상 3.5 미만 | 3 이상 3.5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 3.0 and {{{1|}}} < 3.5|<!-- | -->{{#ifexpr:{{{1|}}} >= 3.0 and {{{1|}}} < 3.5|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
3.5 이상 4 미만 | 3.5 이상 4 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 3.5 and {{{1|}}} < 4.0|<!-- | -->{{#ifexpr:{{{1|}}} >= 3.5 and {{{1|}}} < 4.0|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|half|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|half|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
4 이상 4.5 미만 | 4 이상 4.5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 4.0 and {{{1|}}} < 4.5|<!-- | -->{{#ifexpr:{{{1|}}} >= 4.0 and {{{1|}}} < 4.5|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|empty|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|empty|{{{color|orange}}}}}|<!-- | ||
4.5 이상 5 미만 | 4.5 이상 5 미만 | ||
-->{{#ifexpr:{{{1|}}} >= 4.5 and {{{1|}}} < 5.0|<!-- | -->{{#ifexpr:{{{1|}}} >= 4.5 and {{{1|}}} < 5.0|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|half|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|half|{{{color|orange}}}}}|<!-- | ||
5 | 5 | ||
-->{{#ifexpr:{{{1|}}} = 5.0|<!-- | -->{{#ifexpr:{{{1|}}} = 5.0|<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}<!-- | ||
-->{{별점/stars|full|{{{color|orange}}}}}|<!-- | -->{{별점/stars|type={{{type|★}}}|full|{{{color|orange}}}}}|<!-- | ||
--><strong class="error">변수 오류: 유효하지 않은 값입니다.</strong>}}}}}}}}}}}}}}}}}}}}}}|<!-- | --><strong class="error">변수 오류: 유효하지 않은 값입니다.</strong>}}}}}}}}}}}}}}}}}}}}}}|<!-- | ||
106번째 줄: | 109번째 줄: | ||
!변수 값 {{math|{{=}}\alpha}}||출력 | !변수 값 {{math|{{=}}\alpha}}||출력 | ||
|- | |- | ||
|{{math|0\le\alpha | |{{math|0\le\alpha<0.5}}||{{별점|0}} | ||
|- | |- | ||
|{{math|0.5\le\alpha | |{{math|0.5\le\alpha<1.0}}||{{별점|0.5}} | ||
|- | |- | ||
|{{math|1.0\le\alpha | |{{math|1.0\le\alpha<1.5}}||{{별점|1}} | ||
|- | |- | ||
|{{math|1.5\le\alpha | |{{math|1.5\le\alpha<2.0}}||{{별점|1.5}} | ||
|- | |- | ||
|{{math|2.0\le\alpha | |{{math|2.0\le\alpha<2.5}}||{{별점|2}} | ||
|- | |- | ||
|{{math|2.5\le\alpha | |{{math|2.5\le\alpha<3.0}}||{{별점|2.5}} | ||
|- | |- | ||
|{{math|3.0\le\alpha | |{{math|3.0\le\alpha<3.5}}||{{별점|3}} | ||
|- | |- | ||
|{{math|3.5\le\alpha | |{{math|3.5\le\alpha<4.0}}||{{별점|3.5}} | ||
|- | |- | ||
|{{math|4.0\le\alpha | |{{math|4.0\le\alpha<4.5}}||{{별점|4}} | ||
|- | |- | ||
|{{math|4.5\le\alpha | |{{math|4.5\le\alpha<5.0}}||{{별점|4.5}} | ||
|- | |- | ||
|{{math|\alpha{{=}}5.0}}||{{별점|5}} | |{{math|\alpha{{=}}5.0}}||{{별점|5}} | ||
137번째 줄: | 140번째 줄: | ||
{{u|size}} 변수에 숫자와 단위를 넣어 font-size 속성을 바꿈으로써 별점의 크기를 달리할 수 있습니다. | {{u|size}} 변수에 숫자와 단위를 넣어 font-size 속성을 바꿈으로써 별점의 크기를 달리할 수 있습니다. | ||
{{u|type}} 변수로 별이 아닌 기호로도 나타낼 수 있습니다. 다만 ☆, ♡, ♤ 등 안쪽이 비어 있거나 ♠, ♦, 이모지 등 그 자체로 색깔이 있는 기호는 얼마나 칠해져 있는지 알 수 없기 때문에 주의하십시오. | |||
== 응용 == | == 응용 == |
2024년 2월 14일 (수) 23:39 기준 최신판
틀:별점 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
[ 주요 업데이트 노트 ]
|
하위 문서: stars
설명
{{별점|값}}
부터 사이의 숫자를 넣어 별점을 나타낼 수 있습니다. 부터 사이이기만 하면 정수가 아니어도 상관 없습니다. 이때는 소수점 첫째 자리 아래에서 반올림하여 처리됩니다. 즉 는 ★★★★★로, 는 ★★★★★로, 는 ★★★★★로 표시됩니다. 변수를 입력하지 않거나, 변수가 미만 또는 초과일 경우 오류로 인식됩니다.
부터 단위로 별이 반 개씩 차오르며, 꽉 찬 다섯 개의 별은 오직 의 자연수에서만 나타납니다.
변수 값 | 출력 |
---|---|
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
★★★★★ | |
또는 | 변수 오류: 유효하지 않은 값입니다. |
미입력 |
기본적으로 주황색이며, color 변수를 통해 별점의 색을 달리할 수도 있습니다.
size 변수에 숫자와 단위를 넣어 font-size 속성을 바꿈으로써 별점의 크기를 달리할 수 있습니다.
type 변수로 별이 아닌 기호로도 나타낼 수 있습니다. 다만 ☆, ♡, ♤ 등 안쪽이 비어 있거나 ♠, ♦, 이모지 등 그 자체로 색깔이 있는 기호는 얼마나 칠해져 있는지 알 수 없기 때문에 주의하십시오.
응용
실시간으로 변하는 변수를 별점 틀에 넣어 사용할 수 있습니다. 다른 사용자로부터 부터 까지의 점수를 받고 그 모든 점수를 합한 뒤 더해진 점수의 수만큼 나눈 숫자(즉, 평균값)가 곧 최종적으로 별점 틀의 변수로 인식되게 됩니다. 아이펠루스에서 처음 시작하여 윈테라, LRFU, 즈바이란트, 칠성고등학교 등 몇몇 세계관에서도 채택하였습니다.
하지만 안타깝게도 문서 편집에 로그인을 필수로 요구하는 제이위키 특성상 별점을 익명으로 부여할 수는 없습니다.
만일 이러한 별점 시스템을 추가하고 싶다면 하위 문서의 템플릿을 복사하여 틀:[세계관명] 별점 문서를 생성한 후 틀:세계관 별점을 참고하십시오.
기타
- {{별점/세계관 별점 템플릿}}
- {{별점/stars}}
- {{별점/styles.css}}