Template:Simpleboxtop
| Toptext | |
|---|---|
| Image subtitle |
Infoboxes are really complicated. A much more simple one could be made using normal wikitext formatting. This template is a simple infobox.
| Parameter | Usage | Default value |
|---|---|---|
| title | The text on top of the infobox | Title |
| toptext | The text above the image | Toptext |
| image | The link to image used, below the toptext | AxeOrChainsaw.png |
| imgwidth | Width of the image in pixels | 140 |
| imgalign | Align of the image | center |
| subtitle | Image subtitle, appears below the image | Image subtitle |
| Other optional parameters | ||
| bgcolor | Background color of the infobox | #e6e6e6 |
| align | Alignment of the infobox | right |
| width | Width of the infobox, can be overwritten if the image is bigger than the specified width | 200px |
| padding | Space in the infobox | 4px |
| round | Border radius | 4px |
| infoboxcss | Additional css for the infobox | (None) |
Data cells[编辑源代码]
Data can be inserted into a simplebox using Template:Simpleboxdata. That template has these parameters:
| Parameter | Usage | Default value |
|---|---|---|
| label | Label of the data cell | Label |
| data | Text to the right of the label | Data |
| css | Additional css for the data cell | (None) |
Example usage[编辑源代码]
| Apple | |
|---|---|
| An alice apple | |
| Type of plant | Fruit |
| Popularity | Very popular |
| Edible | Yes |
{{Simpleboxtop
| title = Fruit
| toptext = Apple
| image = Alice_(apple).jpg
| subtitle = An alice apple
}}
{{Simpleboxdata|label=Type of plant|data=Fruit}}
{{Simpleboxdata|label=Popularity|data=Very popular}}
{{Simpleboxdata|label=Edible|data=Yes}}
|}
The |} at the end of each simplebox is required as simpleboxes are tables.