Difference between revisions of "Template:Navbox"

m
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|-
 
|-
 
| class="navbox-header" {{#if:{{{title1|}}}{{{title2|}}}{{{title3|}}}|colspan="10"|}} | {{{header}}}
 
| class="navbox-header" {{#if:{{{title1|}}}{{{title2|}}}{{{title3|}}}|colspan="10"|}} | {{{header}}}
|- <!-- Content without sub headings. -->
+
{{#if:{{{content|}}}|{{!}}- <!-- Content without sub headings. -->
| class="navbox-content" style="{{#if:{{{content|}}}| |display:none;}}" {{#if:{{{title1|}}}{{{title2|}}}{{{title3|}}}|colspan="10"| }} | {{{content}}}
+
{{!}} class="navbox-content" {{#if:{{{title1|}}}{{{title2|}}}{{{title3|}}}|colspan="10"| }} {{!}} {{{content}}}
 
{{#if:{{{image-right|}}}|
 
{{#if:{{{image-right|}}}|
{{!}} style="padding:0" {{!}}
+
{{!}} class="hide-on-mobile" style="padding:0" {{!}}
{{!}} style="padding:0" {{!}}
+
{{!}} class="hide-on-mobile"style="padding:0" {{!}}
{{!}} rowspan="10" style="width:200px; padding:0" {{!}} [[File:{{{image-right}}}|200px]]|}}
+
{{!}} class="hide-on-mobile" rowspan="0" style="padding:0" {{!}} [[File:{{{image-right}}}|x120px]]|}}|}}
 
|- <!-- Sub heading and content 1    -->
 
|- <!-- Sub heading and content 1    -->
 
| class="navbox-subheader" style="{{#if:{{{title1|}}}| |display:none;}}" | '''{{{title1}}}'''
 
| class="navbox-subheader" style="{{#if:{{{title1|}}}| |display:none;}}" | '''{{{title1}}}'''
 
| class="navbox-content" style="{{#if:{{{title1|}}}| |display:none;}}" | {{{content1}}}
 
| class="navbox-content" style="{{#if:{{{title1|}}}| |display:none;}}" | {{{content1}}}
 +
{{#if:{{{content|}}}||{{#if:{{{image-right|}}}|{{!}} rowspan="0" class="hide-on-moble" style="padding:0" {{!}} [[File:{{{image-right}}}|x120px]]|}}|}}
 
|- <!-- Sub heading and content 2    -->
 
|- <!-- Sub heading and content 2    -->
 
| class="navbox-subheader" style="{{#if:{{{title2|}}}| |display:none;}}" | '''{{{title2}}}'''
 
| class="navbox-subheader" style="{{#if:{{{title2|}}}| |display:none;}}" | '''{{{title2}}}'''

Revision as of 16:19, 26 March 2020

{{navbox
|header   = 
|content  = <!-- use if no subheader -->
|title1   = 
|content1 = 
|title2   = 
|content2 = 
|title3   = 
|content3 = 
}}

Currently, the navbox allows for eight subheadings and one content without subheading.