Minecraft Wiki
가입하기
Advertisement
이 문서는 설명문서입니다. 틀 페이지 본문에 삽입되어야 합니다. 자세한 정보는 틀:Documentation를 참조하십시오.
문서 바로가기

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 has an information icon using [[Template:CommentSprite]]
}}
This has an information icon using Template:CommentSprite
Advanced usage:
{{msgbox
| bgcol = rgba(203, 203, 249, 0.2)
| linecol = rgba(107, 107, 253, 0.2)
| 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 #787878;
}}
Bot
This is a blue message box Discuss
It has a discuss link, some custom CSS and a custom image
Advanced mini usage:
{{msgbox
| mini = 1
| image = Bot.png
| bgcol = rgba(147, 122, 85, 0.2)
| linecol = rgba(187, 116, 13, 0.2)
| css = box-shadow: 0px 0px 6px #787878;
| text = This is using similar settings as the advanced example above.
}}
Bot
This is using similar settings as the advanced example above.

틀:Experiment

Advertisement