Difference between revisions of "Template:Navbox"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Undo revision 60163 by DoesItReallyMatter (talk))
(CSS is preferred over tables for web design. This looks similar)
Line 1: Line 1:
{| class="widebox center" style="background:#e0e8f8; font-size:90%; border-spacing:2px; padding:3px;"
+
<div class="widebox center" style="background:#e0e8f8; font-size:90%; border-spacing:2px; padding:3px;">
|'''{{{title}}}'''
+
<div>'''{{{title}}}'''</div>
|-
+
{{#if:{{{list1|}}}|<div style="text-align:center; margin-left:auto; margin-right:auto;">{{#if:{{{group1|}}}|'''{{{group1}}}:'''}} {{{list1}}}</div>}}<!--
{{#if:{{{list1|}}}<!--
+
-->{{#if:{{{list2|}}}|<div style="text-align:center; margin-left:auto; margin-right:auto;">{{#if:{{{group2|}}}|'''{{{group2}}}:'''}} {{{list2}}}</div>}}<!--
-->|<!--
+
-->{{#if:{{{list3|}}}|<div style="text-align:center; margin-left:auto; margin-right:auto;">{{#if:{{{group3|}}}|'''{{{group3}}}:'''}} {{{list3}}}</div>}}
-->{{!}} style="text-align:center; margin-left:auto; margin-right:auto;" {{!}} {{#if:{{{group1|}}}|'''{{{group1}}}:'''}} {{{list1}}}
+
<!--foobar-->
{{!}}- <!--
+
</div>
-->}}
 
{{#if:{{{list2|}}}<!--
 
-->|<!--
 
-->{{!}} style="text-align:center; margin-left:auto; margin-right:auto;" {{!}} {{#if:{{{group2|}}}|'''{{{group2}}}:'''}} {{{list2}}}
 
{{!}}- <!--
 
-->}}
 
{{#if:{{{list3|}}}<!--
 
-->|<!--
 
-->{{!}} style="text-align:center; margin-left:auto; margin-right:auto;" {{!}} {{#if:{{{group3|}}}|'''{{{group3}}}:'''}} {{{list3}}}
 
{{!}}- <!--
 
-->}}
 
| <!--foobar-->
 
|}
 
 
<noinclude>
 
<noinclude>
 
Navigational template for use in general
 
Navigational template for use in general

Revision as of 23:17, 23 March 2019

{{{title}}}

Navigational template for use in general

Format: title = title, groupX = heading of group X(optional), listX = list of links for group X