Advertisement

Message box

[보기 | 편집 | 역사 | 캐시 제거]설명문서
문서 바로가기

This template is used to add consistent styling to message boxes.

Usage

{{Message box
| mini = Mini mode
| small = Mini mode
| class = Classes for the template
| type = Notice type
| bgcol = Custom background color
| linecol = Custom line color
| width = Custom width
| float = Custom alignment
| icon = Icon from Template:CommentSprite
| imagecss = Custom image CSS
| image = Extra image
| imagetextbefore = Text before the image
| imagetextafter = Text after the image
| imagesize = Image size
| title = Template title
| discuss = Discuss button
| discussPage = Talk page link
| discussAnchor = Talk page section specification
| linkshere = Links button to Special:WhatLinksHere
| text = Template text
| css = Custom CSS
}}

Parameters

Message boxes are used to create most templates present on the wiki. The following table shows a description of the parameter usage of this template.

틀 변수

이 틀은 변수마다 줄바꿈을 하여 쓰는 것이 권장됩니다.

변수설명형식상태
Mini modemini small

Changes the message box size to one that is more suited to an article section.

부울식선택 사항
Typetype

Message box notice category. See [[#Types]].

예시
<code>type=content</code> for a content issue msgbox
문자열선택 사항
Classclass

Adds class to the template.

문자열제안
Background colorbgcol

Changes the background color.

기본값
#FCFCFC
문자열선택 사항
Line colorlinecol

Changes the line color.

문자열선택 사항
Widthwidth

Changes the template width.

기본값
90%; 30em in mini mode
문자열선택 사항
Alignmentfloat

Changes the template position.

문자열선택 사항
Iconicon

Adds an icon from Template:CommentSprite. Incompatible with the {{{image}}} parameter and its derivatives.

문자열선택 사항
Image CSS customizationimagecss

Further customization of an image on the message box with CSS.

문자열선택 사항
Imageimage

Adds an image icon to the template. Incompatible with the {{{icon}}} parameter.

파일선택 사항
Additional textimagetextbefore

Adds a text before/above the image.

문자열선택 사항
Additional textimagetextafter

Adds a text after/below the image.

문자열선택 사항
Image sizeimagesize

Changes the image size if the {{{image}}} parameter is set.

기본값
32px; 16px in mini mode
문자열선택 사항
Titletitle

Adds a title to the template.

문자열제안
Discuss button?discuss

Adds a button named [Discuss] that links to the talk page of the page where the message box is used.

부울식선택 사항
Talk page link customizationdiscussPage

Changes the [Discuss] button to link to a custom talk page.

문서선택 사항
Talk page section specificationdiscussAnchor

Makes the [Discuss] button to link to a specific section of the talk page.

문자열선택 사항
Links button?linkshere

Adds a button named [Links] that links to Special:WhatLinksHere which lists the page usage of the current page.

부울식선택 사항
Texttext

Adds text to the template.

내용제안
CSS customizationcss

Further customization of the message box with CSS.

문자열선택 사항

Types

Colors are used to indicate the type of message box:

Criteria Type Color displayed
Unclassified templates (default)
Lorem ipsum
Warning for disclaimer/deletion of a page type = delete
Lorem ipsum
Suggesting a page to be moved/split/merged type = move
Lorem ipsum
Notice for content issues of a page type = content
Lorem ipsum
Notice for style issues of a page type = style
Lorem ipsum
Information regarding the status of a page type = notice
Lorem ipsum
Details about editions and/or versions type = edition
Lorem ipsum
Unused/custom purposes type = other
Lorem ipsum

Examples

Code Result
Basic usage:
{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
This is a normal message box 
With helpful and descriptive subtext
Mini usage:
{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}
This is a mini message box with an information icon using Template:CommentSprite
Advanced usage:
{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image = Bot.png
| css = box-shadow: 10px 10px 2px #888;
}}
This is a blue message box [토론]
It has a discuss link, some custom CSS and a custom image
Advanced mini usage:
{{msgbox
| mini = 1
| image = Bot.png
| bgcol = #ddc
| linecol = #dcb
| css = box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}
This is a mini message box, it is using similar settings as the box used in the advanced example above.

틀:Experiment

[보기 | 편집 | 역사 | 캐시 제거]위 설명문서는 틀:Message box/doc에서 왔습니다.
이 커뮤니티의 콘텐츠는 별다른 언급이 없는 한 CC BY-NC-SA 3.0 라이선스하에 배포됩니다.

Fandom의 이 Minecraft 위키(모든 언어판)는 더 이상 공식 위키가 아닙니다. 자세한 사항은 이곳을 참조해 주시기 바랍니다.


현재 위키 개선 프로젝트가 진행중입니다! 해당 문서를 통하여 자세한 정보를 확인해보세요!

새로 오신 분들은 길라잡이위키 규칙을 꼭 읽어주세요.

문서 작성번역을 도와주시면 이 위키에 큰 힘이 됩니다.

READ MORE