Example infobox
|
Example infobox with image
Would you like to illustrate your infobox? Here's one with an image and caption. ![]() Yum yum!
|
Often a Wikivoyage article will need to explain something about an attraction that doesn't quite fit into the usual one-paragraph-per-attraction format: typical examples include the history of a local attraction, a brief biography of a prominent local person, an overview of architectural history, and so on. For information like this, use an information box that will align itself to the right side of the page. They'll take up 50% of the page width and text should flow around them automatically.
Using infoboxes
[edit]Information boxes are created with the Infobox template. To use the template, just enter this:
{{infobox|title|content}}
Here title is the bolded headline and content is the actual content of the box. The content can include multiple paragraphs and any Wiki markup, just be sure to mark where it ends with }}. The template should be placed at the front of the article section, so the actual article content can flow around the box.
{{infobox
|title
|content
|image=your_image.jpg
|caption=image caption}}
To easily add an image, you can use the optional image=
and caption=
parameters.
{{infobox|title|content|align=}}
By default, infoboxes align right. To change the alignment, add one of the alignment values left|right|center
after the align=
parameter.
Hatnotes
See also: Template:See also The infobox template does not really support hatnote templates, but you can emulate hatnotes like this (add at the start of the content parameter):<p>{{in5}}''See also: [[article]]''</p>
|
How not to use infoboxes
[edit]Try not to go overboard with infoboxes: we are not trying to replace Wikipedia here. As always, the infobox should aim to educate travellers with what they need to know, which probably does not include the primary school grades of Person X or the name of the associate vice president of marketing for Festival Y.