Help:Wiki University HTML--Infobox - Creating
- Nesting Lists
- Fonts - Changing
- Font Size
- Font Colors
- Font Bold-Italics
- Width and Height
- Tables - Borders
- Tables - Widths
- Tables - Captions
- Tables - Col Labels
- Tables - Cells
- Tables - Rows
- Tables - Placement
- Tables - Sorting
- Tables - Scrolling
- Tables - Col Only
- Tables - Col Spans
- Tables - Row Spans
- Infobox - Creating
- Infobox - Placing
- Infobox - If function
- Position - Relative
- Position - Absolute
What are infoboxes[edit | edit source]
Infoboxes are used to display brief information typically about organizations and/or administrative divisions like US counties, but in a table form. They allow quick reference to people and locations.
- We usually place them near the top of the page on the right side. Here is an example of one:
|Oregon County, Missouri|
Location in the state of Missouri, United States Genealogy
Location of Missouri in the U.S.
|Founded||February 14, 1845|
|Address||Oregon County Courthouse|
PO Box 324
Alton, MO 65606
Oregon County Website
Advantages of infoboxes[edit | edit source]
- What makes infoboxes useful is the ability to add or change information within them without having to edit the template itself.
- Templates can be changed on a particular page if you use the "subst:" procedure as taught in the lesson on Templates. However, infoboxes are coded so as to be edited only for the page they are on.
Let's create an infobox for an organization[edit | edit source]
|Hours Open:||hours open|
Here is the coding:
- NOTICE we used colspan in the first two rows.
- NOTICE we have centered the name "organization" and "image."
- NOTICE the float:right so the infobox will appear on the right side of the page.
- Nothing really unusual in the coding so far. However, now we are going to introduce a new concept called parameters.
Parameters[edit | edit source]
- Parameters are formed by three opening and closing curly brackets:
Infobox parameters[edit | edit source]
We will place three opening and closing curly brackets around the items in the location the names, addresses, etc. are to appear in our infobox. We will turn the name of the organization, president, address, etc. into parameters:
- NOTICE all you have to do to turn an item into a "parameter" is surround it with three curly brackets.
Now save the template and use the word "infobox" somewhere in the title like so:
That is all there is to creating an infobox. The next chapter will cover how to embed the infobox and where the parameters come into play.
Try these out[edit | edit source]