How to Create an Infobox: Difference between revisions

m
Line 28: Line 28:
<nowiki>|colspan="2"|image</nowiki><br><br>
<nowiki>|colspan="2"|image</nowiki><br><br>
<nowiki>|-</nowiki><br>
<nowiki>|-</nowiki><br>
<nowiki>|President:</nowiki><br>
<nowiki>|'''President''':</nowiki><br>
<nowiki>|president</nowiki><br><br>
<nowiki>|president</nowiki><br><br>
<nowiki>|-</nowiki><br>
<nowiki>|-</nowiki><br>
<nowiki>|Address:</nowiki><br>
<nowiki>|'''Address''':</nowiki><br>
<nowiki>|address</nowiki><br><br>
<nowiki>|address</nowiki><br><br>
<nowiki>|-</nowiki><br>
<nowiki>|-</nowiki><br>
<nowiki>|Phone:</nowiki><br>
<nowiki>|'''Phone''':</nowiki><br>
<nowiki>|phone</nowiki><br><br>
<nowiki>|phone</nowiki><br><br>
<nowiki>|-</nowiki><br>
<nowiki>|-</nowiki><br>
<nowiki>|Hours Open:</nowiki><br>
<nowiki>|'''Hours Open''':</nowiki><br>
<nowiki>|hours open</nowiki><br><br>
<nowiki>|hours open</nowiki><br><br>
<nowiki>|}</nowiki>
<nowiki>|}</nowiki>
Line 51: Line 51:
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td></nowiki>President:<nowiki></td></nowiki><br>
<nowiki><td>'''President''':</td></nowiki><br>
<nowiki><td></nowiki>president<nowiki></td></nowiki><br>
<nowiki><td></nowiki>president<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td></nowiki>Address:<nowiki></td></nowiki><br>
<nowiki><td>'''Address''':</td></nowiki><br>
<nowiki><td></nowiki>address<nowiki></td></nowiki><br>
<nowiki><td></nowiki>address<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td></nowiki>Phone:<nowiki></td></nowiki><br>
<nowiki><td>'''Phone''':</td></nowiki><br>
<nowiki><td></nowiki>phone Number<nowiki></td></nowiki><br>
<nowiki><td></nowiki>phone Number<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td></nowiki>Hours Open:<nowiki></td></nowiki><br>
<nowiki><td>'''Hours Open''':</td></nowiki><br>
<nowiki><td></nowiki>hours open<nowiki></td></nowiki><br>
<nowiki><td></nowiki>hours open<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
Line 72: Line 72:
*Now pay close attention to the table tags.  You should notice this coding: <font color="red"><nowiki>class="infobox"</nowiki></font color> in the table tag .  This code tells the browser that a infobox is being created and to place it on the right hand side of the article.
*Now pay close attention to the table tags.  You should notice this coding: <font color="red"><nowiki>class="infobox"</nowiki></font color> in the table tag .  This code tells the browser that a infobox is being created and to place it on the right hand side of the article.
*Since the name of the organization and the image will extend over the two columns which contain the information about the organization we will install <font color="red">colspan="2"</font color> in the organization and image coding.
*Since the name of the organization and the image will extend over the two columns which contain the information about the organization we will install <font color="red">colspan="2"</font color> in the organization and image coding.
*In addition, the titles have all been embolden.  <font color="red"><nowiki>'''</nowiki></font color> in wikitext and <font color="red"><nowiki><strong></strong></nowiki></font color> tags in HTML.
*When you save your infobox be sure include the word "infobox" in the title so people will know what kind of template it is for example: <font color="red"><nowiki>{{template:infobox sample}}</nowiki></font color>.
*When you save your infobox be sure include the word "infobox" in the title so people will know what kind of template it is for example: <font color="red"><nowiki>{{template:infobox sample}}</nowiki></font color>.
----
----
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits