Jump to content

How to Create a Navbox: Difference between revisions

m
Line 32: Line 32:
<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>
<nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><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>
<nowiki>{{!}}-</nowiki><br>
<nowiki>{{!}}-</nowiki><br>
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br>
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br>
<nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}</nowiki><br><br>
<nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}}; "'''{{{group title1}}}'''|}}</nowiki><br><br>
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br>
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br>
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; ">
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; ">
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====
====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%.   
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits