How to Create a Navbox: Difference between revisions

m
Line 26: Line 26:
====Here is the coding in HTML and Wikitext for the above Navbox:====
====Here is the coding in HTML and Wikitext for the above Navbox:====
*First step is to create the table:  
*First step is to create the table:  
<!-----first table illustrating the creation of the table----------------------->
<table style="border:1px solid black; width:100%; ">
<tr>
<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; ">
<font color="red"><nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br>
<nowiki>|}</nowiki></font color><br>
</td>
<td style="border:1px solid black; ">
<font color="red"><nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br><br>
<nowiki><table></nowiki></font color>
</td></tr></table>


<!----second table illustrating title lines------------------------------>
<!----first table illustrating creating table------------------------------>
<table style="border:1px solid black; width:100%; ">
<table style="border:1px solid black; width:100%; ">
<tr>
<tr>
Line 50: Line 35:
<tr>
<tr>
<td style="border:1px solid black; ">
<td style="border:1px solid black; ">
<nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br>
<font color="red"><nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki></font color><br><br>
<nowiki>{{!}}-</nowiki><br>
<nowiki>{{!}}-</nowiki><br>
<nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br>
<nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br>
Line 59: Line 44:
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; ">
<nowiki>{{!}} 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}}}{{·}}|}}|}}</nowiki><br><br>
{{#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}}}{{·}}|}}|}}</nowiki><br><br>
<nowiki>|}</nowiki><br>
<font color="red"><nowiki>|}</nowiki></font color><br>
</td>
</td>
<td style="border:1px solid black; ">
<td style="border:1px solid black; ">
<nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br>
<font color="red"><nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki></font color><br>
<nowiki><tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br>
<nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br>
Line 75: Line 60:
{{#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></nowiki><br>
{{#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></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></table></nowiki><br>
<font color="red"><nowiki></table></nowiki></font color><br>
</td></tr></table>
</td></tr></table>


Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits