Jump to content

How to Create an Infobox: Difference between revisions

m
Line 73: Line 73:
</tr>
</tr>
</table>
</table>
*Now pay close attention to the table tags.  You should notice that we have placed a one pixel border around the table and floated it to the right</nowiki></font color> in the table tag .  This coding tells the browser that the table or our infobox is to be placed on the right hand side of the article.
*Now pay close attention to the table tags.  You should notice that we have placed an one pixel border around the table and floated it to the right</nowiki></font color> in the table tag .   
*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> and we will cause it to be centered as well 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> and center the name of the organization as well as the image.
*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 at a glance.  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]]