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