Шаблон:Msgbox

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
Цей шаблон i18n-ready, що означає, що його легко локалізувати для різних мов. Будь ласка, ознайомтеся з i18n та l10n для шаблонів, щоб дізнатися більше.
Див. «Шаблон:Msgbox/l10n» для локалізації цього шаблону.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:Msgbox/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

This template displays a basic message box.

Usage

All parameters are optional.

{{msgbox
| class = <css classes>
| style/css = <css styles>
| width = <box width>
| image = <personal image choice>
| imagesize = <image size>
| imagelink = <image link>
| imagetext = <image alt text>
| imagealt = <completely custom image display>
| discuss = y/yes
| discusspage = <discuss page>
| discussanchor <discuss section name>
| title = <box title>
| text = <box text>
}}
ПараметрОписТипСтатус
CSS classclass
Custom CSS class
За замовчуванням:
msgbox
Короткий текст
необов'язковий
CSS stylestyle
css
Inline CSS style; overrides $bgcol and $width
Короткий текст
необов'язковий
Background colorbgcol
Background color of the box
Приклад:
#E4F0F7
Короткий текст
застарілий
see below
Box widthwidth
Width of the box
Приклад:
200px
Короткий текст
необов'язковий
Box imageimage
Image that is displayed in the box on the left
Приклад:
Warning-yellow.svg
Файл
необов'язковий
Image sizeimagesize
Size of the $image
За замовчуванням:
32px
Короткий текст
необов'язковий
Image textimagetext
Alt text for $image
Короткий текст
необов'язковий
Custom imageimagealt
Completely custom image display; overrides $image and $imagesize
Незбалансований вікі-текст
необов'язковий
Discuss optiondiscuss
Adds a link to the current page's talk page (or $discusspage); only has an effect if a $title is set
Логічне значення
необов'язковий
Discuss linkdiscusspage
The page that $discuss will link to
Короткий текст
необов'язковий
Discuss anchordiscussanchor
The section on the page that $discuss will link to
Короткий текст
необов'язковий
Box titletitle
Title of the box
Рядок
необов'язковий
Main texttext
Text inside the box
Незбалансований вікі-текст
пропонований

Examples

For compatibility with wiki.gg's theme, hardcoded background/border colors should be avoided. Instead, use one of the predefined classes listed below, which are styled for the different themes.

Code Result
{{msgbox|text=Message box text|class=msgbox-color-blue}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-red}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-purple}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-green}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-yellow}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-orange}}
Message box text
{{msgbox|text=Message box text|class=msgbox-color-pink}}
Message box text
{{msgbox|text=Message box text}}
Message box text