How to Create a Navbox: Difference between revisions

m
Line 11: Line 11:
*We will be creating a navbox as shown below. So let us create a navbox for a location:
*We will be creating a navbox as shown below. So let us create a navbox for a location:


*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.
*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>.
----
===Step Two - Create the template===
[[User:Ccsmith/sandbox/navbox|User:Ccsmith/sandbox/navbox]]
[[User:Ccsmith/sandbox/navbox|User:Ccsmith/sandbox/navbox]]
<table style="border:1px solid blue; width:100%">
<table style="border:1px solid blue; width:100%">
Line 41: Line 46:
</tr>
</tr>
</table>
</table>
*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.
*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>.
----






  {{Missouri|Missouri}}
  {{Missouri|Missouri}}
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits