How to Create an Infobox: Difference between revisions

m
no edit summary
mNo edit summary
Line 212: Line 212:
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
*We will get the following:
*We will get the following:
{{Infobox sample
|organization=Genealogy Society
|image=[[File:France Lavender Field.jpg|150px]]
|president=John Smith
|address=1234 Hill St, Any City
|phone=360-555-1234
|hours open=Mon 1pm - 6pm
}}
*Notice that we use the usual coding for placing an image.  We have limited the image to 150px wide as the infobox is 200px wide.  If you did not limit the size of the image. the infobox would expand to the width of the image as it stands in the files.
*Notice that we use the usual coding for placing an image.  We have limited the image to 150px wide as the infobox is 200px wide.  If you did not limit the size of the image. the infobox would expand to the width of the image as it stands in the files.


Line 229: Line 221:
|president=John Smith
|president=John Smith
|address=1234 Hill St, Any City
|address=1234 Hill St, Any City
|phone=360-555-1234
|phone=
|hours open=Mon 1pm - 6pm
|hours open=Mon 1pm - 6pm
}}
}}