편집 요약 없음 |
편집 요약 없음 |
||
17번째 줄: | 17번째 줄: | ||
}}</pre></div></div> | }}</pre></div></div> | ||
<onlyinclude><includeonly>{{#css: .talking-box-monitor::-webkit-scrollbar { width: 0!important; } }}{{#switch:{{{1|}}} | <onlyinclude><includeonly>{{#css: .talking-box-monitor::-webkit-scrollbar { width: 0!important; } }}{{#switch:{{{1|}}} | ||
|body = <div style="position: relative; max-width: {{{width|350px}}}; width: 100%; margin: {{#switch:{{{align|}}}|left = .8rem auto 0 0|center = .8rem auto 0|right = .8rem 0 0 auto|#default = .8rem auto 0}}; background: var(--box--border); border-top: 30px solid var(--box--border); border-radius: 15px 15px 0 0;"><div style="position: absolute; top: -25px; left: 5px; color: white; font-weight: bold;">{{지역시분}}</div><div style="position: absolute; top: -25px; right: 5px; font-weight: bold;">{{exhide|type=jwiki|틀:말풍선CSH|{{c|white|{{fa|clock}} {{fa|signal}} {{fa|wifi}} {{#switch:{{랜덤|4}}|0=100|1=75|2=50|3=25}}% {{#switch:{{랜덤|4}}|0={{fa|battery-full}}|1={{fa|battery-three-quarters}}|2={{fa|battery-half}}|3={{fa|battery-quarter}}}}}}}}</div></div><div class="talking-box-monitor" style="max-width: {{{width|350px}}}; width: 100%; aspect-ratio: 9 / 14; margin: {{#switch:{{{align|}}}|left = 0 auto 0 0|center = 0 auto|right = 0 0 0 auto|#default = 0 auto}}; padding: 5px 10px; background: #00beff; border-style: solid; border-color: var(--box--border); border-width: 0 3px; overflow-y: | |body = <div style="position: relative; max-width: {{{width|350px}}}; width: 100%; margin: {{#switch:{{{align|}}}|left = .8rem auto 0 0|center = .8rem auto 0|right = .8rem 0 0 auto|#default = .8rem auto 0}}; background: var(--box--border); border-top: 30px solid var(--box--border); border-radius: 15px 15px 0 0;"><div style="position: absolute; top: -25px; left: 5px; color: white; font-weight: bold;">{{지역시분}}</div><div style="position: absolute; top: -25px; right: 5px; font-weight: bold;">{{exhide|type=jwiki|틀:말풍선CSH|{{c|white|{{fa|clock}} {{fa|signal}} {{fa|wifi}} {{#switch:{{랜덤|4}}|0=100|1=75|2=50|3=25}}% {{#switch:{{랜덤|4}}|0={{fa|battery-full}}|1={{fa|battery-three-quarters}}|2={{fa|battery-half}}|3={{fa|battery-quarter}}}}}}}}</div></div><div class="talking-box-monitor" style="max-width: {{{width|350px}}}; width: 100%; aspect-ratio: 9 / 14; margin: {{#switch:{{{align|}}}|left = 0 auto 0 0|center = 0 auto|right = 0 0 0 auto|#default = 0 auto}}; padding: 5px 10px; background: #00beff; border-style: solid; border-color: var(--box--border); border-width: 0 3px; overflow-y: auto;">{{{2|}}}</div><div style="max-width: {{{width|350px}}}; width: 100%; margin: {{#switch:{{{align|}}}|left = 0 auto .8rem 0|center = 0 auto .8rem|right = 0 0 .8rem auto|#default = 0 auto .8rem}}; text-align: center; background: var(--box--border); border-bottom: 3px solid var(--box--border); border-radius: 0 0 15px 15px;"><div style="display: inline-block; width: 20%; height: 15px; margin-top: 7px; border: 1px solid white; border-radius: 20px;"></div></div> | ||
|me = <div style="display: inline-block; margin: 5px 0; width: 100%; text-align: right;"><!-- | |me = <div style="display: inline-block; margin: 5px 0; width: 100%; text-align: right;"><!-- | ||
--><div style="width: 70%; margin: 0 10px; display: inline-block; vertical-align: top;">'''{{c|white|{{{2|이름}}}}}'''<br><!-- | --><div style="width: 70%; margin: 0 10px; display: inline-block; vertical-align: top;">'''{{c|white|{{{2|이름}}}}}'''<br><!-- |
2024년 9월 16일 (월) 23:05 판
틀:말풍선CSH | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
{{말풍선CSH|body| {{말풍선CSH|me|김찬|KimChan.jpg|이 틀은}} {{말풍선CSH|me|김찬|KimChan.jpg|이렇게}} {{말풍선CSH|me|김찬|KimChan.jpg|쓰는 거예요}} {{말풍선CSH|narration|얘는 나레이션이고요}} {{말풍선CSH|other|Jwiki|4=우와}} {{말풍선CSH|other|Jwiki|4=그렇군요}} }}
[ 사용법 ]
{{말풍선CSH|body| {{말풍선CSH|<me or other>|<이름>|<프로필 사진>|<내용>|border=<테두리(선택)>|bg=<배경색(선택)>|color=<글씨색(선택)>}} {{말풍선CSH|<me or other>|<이름>|<프로필 사진>|image=<이미지>|<이미지 너비>}} {{말풍선CSH|narration|<내용>|bg=<배경색(선택)>}} }}
- 모든 말풍선 틀은
{{말풍선CSH|body|<여기>}}
안에 작성되어야 합니다. body 변수는 말풍선이 깔리는 기본적인 배경 레이아웃을 제공합니다. - 가장 처음 오는 변수에는 반드시
me
또는other
이 와야 합니다.- 첫 변수에
narration
이 왔다면, 누가 보내는 메시지도 아닌 화면 가운데에 내레이션처럼 출력되는 박스를 생성합니다.
- 첫 변수에
- 두 번째 변수는 보내는 사람의 이름을 표시합니다. 입력하지 않으면 기본값으로 이름이 출력됩니다.
- 세 번째 변수는 보내는 사람의 프로필 사진을 표시합니다. 입력하지 않으면 기본값으로 파일:기본프사.png(
)가 출력됩니다. 틀 내에서 이미지의 모서리를 자동으로 둥글게 처리하므로 너비와 높이가 같은 1:1 정사각형 이미지로 사용할 것을 권장합니다.
- 네 번째 변수는 본격적으로 말풍선의 내용을 표시합니다. 입력한 텍스트가 말풍선 안에 표시됩니다.
border
선택 변수는 말풍선의 테두리를 지정할 수 있습니다.<두께> <형태> <색깔>
로 입력해야 합니다.bg
선택 변수는 말풍선의 배경색을 지정할 수 있습니다.color
선택 변수는 말풍선 안의 글씨색을 지정할 수 있습니다.- 만일 텍스트가 아닌 이미지를 보내는 말풍선을 만들고 싶다면
image
변수를 사용할 수 있습니다. 이때 기존에 내용을 입력하던 네 번째 변수는 이미지의 너비 변수로 바뀝니다.