|
|
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 | | <table style="width:100%; border:1px solid blue; background-color:{{{navbox background color}}}; border-collaspe:separate; border-spacing:5px; "><br> |
| |name=
| | <tr><br> |
| <!----select colors for background of box, title, right and left columns------------> | | <td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles<br> |
| |navbox background color=#ffffff
| | </td><br> |
| |title background color=#fcca2a
| | </tr><br> |
| |left column background color=#fff75e
| | <tr><br> |
| |right column background color=#fffba4
| | {{#if:{{Ifempty|{{{group title1|}}}}}|<br> |
| | | <td style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}<br> |
| <!----Group titles can be Topics, Counties, Migration Routes, anything that is a list of items to be posted in the navbox---------------------->
| | </td><br> |
| <!----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----> | | {{#if:{{Ifempty|{{{group title1-item1|}}}}}|<br> |
| <!----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----> | | <td style="text-align:left; background-color:{{{right column background color}}}; "> |
| | | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</td><br> |
| |group title1= | | </tr><br> |
| |group title1-item1= | | </table> |
| |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: | | *Here is the coding in HTML and Wikitext for the above Navbox: |
|
| |
|