Jump to content

How to Create a Navbox: Difference between revisions

m
Line 59: Line 59:
<nowiki></table></nowiki><br>
<nowiki></table></nowiki><br>
</td></tr></table>
</td></tr></table>
 
====Meaning of each line of the code====
*Since navboxes usually extend from one side to the other, we have set the width for our navbox to 100%.   
*Since navboxes usually extend from one side to the other, we have set the width for our navbox to 100%.   
*We have installed a 1 pixel solid blue line around our navbox.
*"border-collaspe:separate; border-spacing:5px means we are placing a 5 pixel space between the boxes in the template.  See [https://familysearch.org/learn/wiki/en/HTML_and_Wikitext_-_Lesson_Three#Cell_separation|Collaspe Separation] for more details.
*The title of the navbox has to extend both columns of the navbox so that is coded with the colspan="2" code.
*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 navbox be sure include the word "navbox" 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 navbox be sure include the word "navbox" 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