편집 요약 없음 |
편집 요약 없음 |
||
2번째 줄: | 2번째 줄: | ||
{{틀 도움}} | {{틀 도움}} | ||
<onlyinclude><includeonly>{{#switch:{{{1|}}} | <onlyinclude><includeonly>{{#switch:{{{1|}}} | ||
|body = {{#switch:{{{type|}}}|phone=<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;">{{지역시분}}</div><div style="position: absolute; top: -25px; right: 5px;">{{cl|틀: | |body = {{#switch:{{{type|}}}|phone=<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;">{{지역시분}}</div><div style="position: absolute; top: -25px; right: 5px;">{{cl|틀:말풍선|white|{{fa|clock}} {{fa|signal}} {{fa|wifi}} 75% {{fa|battery-three-quarters}}}}</div></div><div 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: #ddd; 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>|default=<div style="max-width: 600px; margin: {{#switch:{{{align|}}}|left = .8rem auto .8rem 0|center = .8rem auto|right = .8rem 0 .8rem auto|#default = .8rem auto}}; padding: 5px 10px; background: #ddd; border-left: 30px solid #292d34; border-radius: 0 15px 0 0;">{{너비맞춤}}{{{2|}}}</div>|#default=<div style="max-width: 600px; margin: {{#switch:{{{align|}}}|left = .8rem auto .8rem 0|center = .8rem auto|right = .8rem 0 .8rem auto|#default = .8rem auto}}; padding: 5px 10px; background: #ddd; border-left: 30px solid #292d34; border-radius: 0 15px 0 0;">{{너비맞춤}}{{{2|}}}</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|#6d6d6d|{{{2|이름}}}}}'''<br><!-- | --><div style="width: 70%; margin: 0 10px; display: inline-block; vertical-align: top;">'''{{c|#6d6d6d|{{{2|이름}}}}}'''<br><!-- |
2024년 9월 5일 (목) 23:33 판
틀:말풍선 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
설명
붕괴: 스타레일의 문자 메시지를 나무위키가 모방한 것을 참고하여 제작한 말풍선 틀입니다.
사용법
{{말풍선|body| {{말풍선|<me or other>|<이름>|<프로필 사진>|<내용>|border=<테두리(선택)>|bg=<배경색(선택)>|color=<글씨색(선택)>}} {{말풍선|<me or other>|<이름>|<프로필 사진>|image=<이미지>|<이미지 너비>}} {{말풍선|narration|<내용>|bg=<배경색(선택)>}} }}
- 모든 말풍선 틀은
{{말풍선|body|<여기>}}
안에 작성되어야 합니다. body 변수는 말풍선이 깔리는 기본적인 배경 레이아웃을 제공합니다. - 가장 처음 오는 변수에는 반드시
me
[*][*] 내가 보내는 메시지로, 화면의 우측에 표시되며 기본 배경색이 #D4BA8B으로 표시됩니다. 또는other
[*][*] 남이 보내는 메시지로, 화면의 좌측에 표시되며 기본 배경색이 #FFFFFF으로 표시됩니다.이 와야 합니다.- 첫 변수에
narration
이 왔다면, 누가 보내는 메시지도 아닌 화면 가운데에 내레이션처럼 출력되는 박스를 생성합니다.
- 첫 변수에
- 두 번째 변수는 보내는 사람의 이름을 표시합니다. 입력하지 않으면 기본값으로 이름이 출력됩니다.
- 세 번째 변수는 보내는 사람의 프로필 사진을 표시합니다. 입력하지 않으면 기본값으로 파일:기본프사.png(
)가 출력됩니다. 틀 내에서 이미지의 모서리를 자동으로 둥글게 처리하므로 너비와 높이가 같은 1:1 정사각형 이미지로 사용할 것을 권장합니다.
- 네 번째 변수는 본격적으로 말풍선의 내용을 표시합니다. 입력한 텍스트가 말풍선 안에 표시됩니다.
border
선택 변수는 말풍선의 테두리를 지정할 수 있습니다.<두께> <형태> <색깔>
로 입력해야 합니다.bg
선택 변수는 말풍선의 배경색을 지정할 수 있습니다.color
선택 변수는 말풍선 안의 글씨색을 지정할 수 있습니다.- 만일 텍스트가 아닌 이미지를 보내는 말풍선을 만들고 싶다면
image
변수를 사용할 수 있습니다. 이때 기존에 내용을 입력하던 네 번째 변수는 이미지의 너비 변수로 바뀝니다.
사용 예제
[ 펼치기 · 접기 ]
| |
[ 펼치기 · 접기 ]
|