Template:Infobox2
From Gephqua
This template is used for greatly simplifying the creation of infoboxes. The user may define background and border colors, some general values (such as creator, image, etc) and up to 10 field name/field value sets.
Contents |
[edit] Parameters
All parameters are optional, and the template could be called simply as {{infobox}}. However, in most (if not all) cases, the user will want to specify at least a few parameters.
- background
- The color of the background. Defaults to #f9f9f9 if omitted.
- border
- The color of the border. Defaults to #aaa if omitted.
- float
- How the infobox should float relative to the content. Values that can be used are left, right and none. Defaults to right if omitted.
- title
- The title of the infobox. Hidden if omitted.
- image
- An image which will be resized to be 200 pixels wide. Hidden if omitted.
- imagedesc
- A description of the image which will appear centered directly below it. Hidden if omitted (Also hidden if parameter image is omitted).
- ...
- Unnamed parameters will be added as fields. Each parameter couple will be treated as field name and field value. See example below for more detailed usage.
[edit] Example
This is an example of an infobox about Spore.
Note: The image filename below has {{!}}Spore
after it. {{!}}
translates into a pipe (|
), making the final image link into [[Image:Spore logo.jpg|Spore|200px]]
meaning the image will have a title (hover box) with the value "Spore".
[edit] Code
{{infobox | image = Spore logo.jpg{{!}}Spore | float = none | Developer | [http://www.maxis.com/ Maxis] | Publisher | [http://www.ea.com/ EA Games] | Designer | [[Will Wright]] | Release date | TBA 2007 | Genre | Simulation | Mode | [[Massively single-player]] | Rating | ESRB: Rating Pending | Platforms | Windows, PSP, DS, mobile phones, 360, Wii and PlayStation 3 confirmed. }}
[edit] Output
The Gephquanese Wiki |
---|
The Universe |
|
The World |
|
The Gephqua |
|