Wikipedia:WikiProject Food and drink/Announcement
Appearance
This page is designed to be transcluded to the Main page. Edits here will need to be verified on the main page. |
Hello and welcome to the Food & Drink WikiProject! | |
We hope you can stay a while and see what we do and are about. |
This is used for the announcement panel on the main page. |
This panel is designed to go atop WikiProject main pages to add any announcements. When not being used, just remark the template out (<!-- -->).
Usage
[edit]{{Announcement panel |image = |size = |border = |border_width = |background = |font = |comment = |comment_size = |comment_color = |comment_shadow = |text = |text_size = |text_color = |ul = |ur = |ll = |lr = }}
{{公告面板 |图片 = |图片_尺寸 = |边框_颜色 = |边框_尺寸 = |背景_颜色 = |字型 = |内容 = |内容_尺寸 = |内容_颜色 = |右上角 = |左上角 = |右下角 = |左下角 = }}
Field descriptions:
- image - Changes the default image from the Wikipedia puzzle globe. Do not include the Image: or File: name space tags
- size - Changes the default image size from 100 pixels. Do not include the px.
- border - Changes the border color from #668CFF. The notation can be hex or a CSS defined color.
- border_width - Changes the default border thickness from 2 pixels. Do not include the px.
- background - Changes the background color from #EBF0FF. The notation can be hex or a CSS defined color.
- font - Changes the font used in the box. Default is Verdana.
- comment - Adds a bold opening comment with shadow above a horizontal rule.
- comment_size - Changes the default comment size from 28 points. Do not include the pt.
- comment_color - Changes the text of the comment color from black. The notation can be hex or a CSS defined color.
- comment_shadow - Changes the text of the comment shadow color from gray. The notation can be hex or a CSS defined color.
- text - Adds body text below the comment.
- text_size - Changes the default body text size from 12 points. Do not include the pt.
- text_color - Changes the body text color which is the same as the comment color by default. The notation can be hex or a CSS defined color.
Example
[edit]Example
{{Announcement panel |image = Frühlingsblumen Krokus.jpg |size = 125 |border = green |background = limegreen |comment = Spring has sprung! |comment_size = 36 |comment_color = orange |comment_shadow = black |text = {{lorem ipsum}} |text_size = 10 |text_color = black }}
Will produce:
Corner changes
[edit]The corners are rounded by default on this template at 12 pixels, but the corner rounding can be changed by modifying the corner rounding fields; do not include the px. The field names are:
- ul - upper left corner
- ur - upper right corner
- ll - lower left corner
- lr - lower right corner
Rounded corners
{{Announcement panel |text = {{lorem ipsum}} |ul = 24 |ur = 2 |ll = 2 |lr = 24 }}
Will produce:
Versus:
A value of zero ("0") will make the corners square.