How to Create a Navbox: Difference between revisions

m
mNo edit summary
Line 10: Line 10:
*It is recommended that you create infobox tables in HTML as there fewer problems as you will see.
*It is recommended that you create infobox tables in HTML as there fewer problems as you will see.
*We will be creating a navbox as shown below.  
*We will be creating a navbox as shown below.  
{{User:ccsmith/sandbox/navbox1
|name=
<!----select colors for background of box, title, right and left columns------------>
|navbox background color=#ffffff
|title background color=#fcca2a
|left column background color=#fff75e
|right column background color=#fffba4
<!----Group titles can be Topics, Counties, Migration Routes, anything that is a list of items to be posted in the navbox---------------------->
<!----if you need more items in a group, copy and paste a line and then put the correct sequential number after the word "item" for additional items added---->
<!----in addition you need to add more items you need to the navbox template to add more lines.  go to User:Ccsmith/sandbox/navbox1 for instructions---->
|group title1=
|group title1-item1=
|group title1-item2=
|group title1-item3=
|group title1-item5=
|group title1-item6=
|group title1-item7=
|group title1-item8=
|group title1-item9=
|group title1-item10=
|group title1-item11=
|group title1-item12=
|group title1-item13=
|group title1-item14=
|group title1-item15=
|group title1-item16=
|group title1-item17=
|group title1-item18=
|group title1-item19=
|group title1-item20=
<!----to add more title-items copy and past one of the group title-item lines and add the correct numbers---->
<!----second row with subject of line and links for the subject---------------------->
|group title2=
|group title2-item1=
|group title2-item2=
|group title2-item3=
|group title2-item4=
|group title2-item5=
|group title2-item6=
|group title2-item7=
|group title2-item8=
|group title2-item9=
|group title2-item10=
|group title2-item11=
|group title2-item12=
|group title2-item13=
|group title2-item14=
|group title2-item15=
|group title2-item16=
|group title2-item17=
|group title2-item18=
|group title2-item19=
|group title2-item20=
<!----to add more title-items copy and past one of the group title-item lines and add the correct numbers---->
<!----thrid row with subject of line and links for the subject---------------------->
|group title3=
|group title3-item1=
|group title3-item2=
|group title3-item3=
|group title3-item4=
|group title3-item5=
|group title3-item6=
|group title3-item7=
|group title3-item8=
|group title3-item9=
|group title3-item10=
|group title3-item11=
|group title3-item12=
|group title3-item13=
|group title3-item14=
|group title3-item15=
|group title3-item16=
|group title3-item17=
|group title3-item18=
|group title3-item19=
|group title3-item20=
<!----to add more title-items copy and past one of the group title-item lines and add the correct numbers---->
<!----fourth row with subject of line and links for the subject---------------------->
|group title4=
|group title4-item1=
|group title4-item2=
|group title4-item3=
|group title4-item4=
|group title4-item5=
|group title4-item6=
|group title4-item7=
|group title4-item8=
|group title4-item9=
|group title4-item10=
|group title4-item11=
|group title4-item12=
|group title4-item13=
|group title4-item14=
|group title4-item15=
|group title4-item16=
|group title4-item17=
|group title4-item18=
|group title4-item19=
|group title4-item20=
<!----to add more title-items copy and past one of the group title-item lines and add the correct numbers---->
<!----fifth row with subject of line and links for the subject---------------------->
|group title5=
|group title5-item1=
|group title5-item2=
|group title5-item3=
|group title5-item4=
|group title5-item5=
|group title5-item6=
|group title5-item7=
|group title5-item8=
|group title5-item9=
|group title5-item10=
|group title5-item11=
|group title5-item12=
|group title5-item13=
|group title5-item14=
|group title5-item15=
|group title5-item16=
|group title5-item17=
|group title5-item18=
|group title5-item19=
|group title5-item20=
<!----to add more title-items copy and past one of the group title-item lines and add the correct numbers---->
<!----If you need more group titles and items, just copy and paste another set of group title and group title-items----->
}}
*Here is the coding in HTML and Wikitext for the above Navbox:
<table style="border:1px solid black; width:100%; ">
<table style="border:1px solid black; width:100%; ">
<tr>
<tr>
<td style="width:50%; border:1px solid black; ">
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">Wikitext</td>
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td>
</tr>
<tr>
<td style="border:1px solid black; ">
<nowiki>{| style="width:100%; border:1px solid blue; background-color:{{{navbox background color}}}; border-collaspe:separate; border-spacing:5px; "></nowiki><br>
<nowiki>{| style="width:100%; border:1px solid blue; background-color:{{{navbox background color}}}; border-collaspe:separate; border-spacing:5px; "></nowiki><br>
<nowiki>{{!}}-</nowiki><br>
<nowiki>{{!}}-</nowiki><br>
Line 24: Line 160:
<nowiki>|}</nowiki><br>
<nowiki>|}</nowiki><br>
</td>
</td>
<td style="width:50%; border:1px solid black; ">
<td style="border:1px solid black; ">
<nowiki><table style="width:100%; border:1px solid blue; background-color:{{{navbox background color}}}; border-collaspe:separate; border-spacing:5px; "></nowiki><br>
<nowiki><table style="width:100%; border:1px solid blue; background-color:{{{navbox background color}}}; border-collaspe:separate; border-spacing:5px; "></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits