模板:Infobox Awards
Example |
Infobox awards may be used as a supplement below an existing infobox to list awards and honors that may not normally be included. It may also be used in an article about awards or honors to list related awards or honors. Or, it may be used to group any general images or text. In the past, tables were used to perform such grouping. Tables require repetitive wikicode and may be esoteric to some editors. They may also require the use of breaks to keep them in proper alignment. {{Infobox Awards}} has been developed to resolve these issues and to ease the inclusion of images in this manner. The box on the right is coded as:
- {{Infobox awards
- | title =
- | halign = center
- | award1 = [[Image:Example.png|90px]][[Image:Example.png|90px]]
- | award2 = Example
- }}
Usage
[编辑]This infobox may be added by copy-pasting the template as shown below into an article.
{{Infobox awards |title = |halign = |box_width = |award1 = |award2 = |award3 = |award4 = |award5 = |award6 = |award7 = |award8 = |award9 = |award10 = |award11 = |award12 = }}
Parameters
[编辑]All parameters are optional.
Parameter | Explanation |
---|---|
title |
Insert the desired title; this will be centered and bolded; for no title, leave blank |
halign | Set the horizontal alignment for the award fields to left, center or right; if this field is not included or blank, it defaults to left |
box_width | Set width of infobox using em, px or %; if this field is not included, the default is 18em; if included with no parameter, the box is the width of the longest line |
It may be desirable to match the width of another infobox in the article. Since infobox widths vary, some common boxes are:
| |
award1 | Name of the award or honor |
through | |
award12 | Name of the award or honor |
Issues
[编辑]When a number of infoboxes are stacked up, the section [edit] links may get bunched up. See WP:BUNCH for a resolution.
See also
[编辑]- {{Awards}}
- {{Infobox award}}
- {{Infobox awards}}
上述文档嵌入自Template:Infobox Awards/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |