How to Create an Infobox: Difference between revisions

m
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.
 
*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>.
----
*As it stands, the HTML coding is ok at this point, but the Wikitext has a problem.  Normally the Wikitext as is will work for any table, however, we are going to be installing <em>parameters</em> which require us to replace the |'s in the Wikitext with <font color="red"><nowiki>{{{!}}}</nowiki></font color>.  The reason is a bit beyond the scope of this article but if you are interested [[Template:!|click here]]
*As it stands, the HTML coding is ok at this point, but the Wikitext has a problem.  Normally the Wikitext as is will work for any table, however, we are going to be installing <em>parameters</em> which require us to replace the |'s in the Wikitext with <font color="red"><nowiki>{{{!}}}</nowiki></font color>.  The reason is a bit beyond the scope of this article but if you are interested [[Template:!|click here]]
<table style="border:1px solid blue; ">
<table style="border:1px solid blue; ">