Template:Infobox Awards
From Wikipedia, the free encyclopedia
This template has a sandbox (edit) and testcases (edit) for editors to experiment.
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
- }}
[edit] 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 = }}
[edit] 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 |
[edit] Issues
When a number of infoboxes are stacked up, the section [edit] links may get bunched up. See WP:BUNCH for a resolution.