Difference between revisions of "Template:Navbox"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix some presentation)
m (more titles)
Line 7: Line 7:
 
{{{title4|}}}{{{content4|}}}
 
{{{title4|}}}{{{content4|}}}
 
{{{title5|}}}{{{content5|}}}
 
{{{title5|}}}{{{content5|}}}
 +
    {{{title6|}}}{{{content6|}}}
 +
    {{{title7|}}}{{{content7|}}}
 +
    {{{title8|}}}{{{content8|}}}
 
|
 
|
 
{{{!}} {{#if:{{{sub|}}}||class{{=}}"mw-collapsible"}} style{{=}}"{{#if:{{{sub|}}}
 
{{{!}} {{#if:{{{sub|}}}||class{{=}}"mw-collapsible"}} style{{=}}"{{#if:{{{sub|}}}
Line 59: Line 62:
  
 
{{#if:{{{title5|}}}{{{content5|}}}
 
{{#if:{{{title5|}}}{{{content5|}}}
 +
|
 +
{{#if:{{{title5|}}}
 +
| ! style{{=}}"background-color: {{{color5|#EEE}}}; padding: 0.5em 1em" {{!}} {{{title5}}}
 +
{{!}} style{{=}}"padding: 0 0.5em" {{!}}
 +
{{{content5|}}}
 +
| {{!}} colspan{{=}}"2" style{{=}}"padding: 0.5em; text-align: center" {{!}} {{{content5|}}} }}
 +
{{!}}-
 +
}}
 +
 +
{{#if:{{{title6|}}}{{{content5|}}}
 +
|
 +
{{#if:{{{title5|}}}
 +
| ! style{{=}}"background-color: {{{color5|#EEE}}}; padding: 0.5em 1em" {{!}} {{{title5}}}
 +
{{!}} style{{=}}"padding: 0 0.5em" {{!}}
 +
{{{content5|}}}
 +
| {{!}} colspan{{=}}"2" style{{=}}"padding: 0.5em; text-align: center" {{!}} {{{content5|}}} }}
 +
{{!}}-
 +
}}
 +
 +
{{#if:{{{title7|}}}{{{content5|}}}
 +
|
 +
{{#if:{{{title5|}}}
 +
| ! style{{=}}"background-color: {{{color5|#EEE}}}; padding: 0.5em 1em" {{!}} {{{title5}}}
 +
{{!}} style{{=}}"padding: 0 0.5em" {{!}}
 +
{{{content5|}}}
 +
| {{!}} colspan{{=}}"2" style{{=}}"padding: 0.5em; text-align: center" {{!}} {{{content5|}}} }}
 +
{{!}}-
 +
}}
 +
 +
{{#if:{{{title8|}}}{{{content5|}}}
 
|
 
|
 
{{#if:{{{title5|}}}
 
{{#if:{{{title5|}}}

Revision as of 11:01, 28 December 2020

Usage

{{NavboxWiki|title|color|title#|color#|content#|sub}}

  • title: (Optional) navbox title
  • color: (Optional, default #)
  • title#: (Optional, default empty) # in range 1..5: row 1..5 title
  • color#: (Optional, default #DDDDDD) # in range 1..5: row 1..5 title colour
  • content#: (Optional, default empty) # in range 1..5: row 1..5 cell content
  • sub: (Optional, default empty) y defines if border and collapsible are shown
Examples
Code Result
{{NavboxWiki}} NavboxWiki
{{NavboxWiki|Hello there!}} NavboxWiki
{{NavboxWiki
	|title1= Title 1
	|content1= Hello, first content!
}}
NavboxWiki
{{NavboxWiki
	|title= title displays collapse option
	|title1= category
	|content1= content that is displayed here
}}
NavboxWiki
{{NavboxWiki
	|title= NAVBOX TITLE
	|color= #DAD
	|title1= Title 1
	|color1= #AAF
	|content1= Hello, first content!
	|content2= Wait… no title?
	|title3= hahaha
	|content3= Yep, no title.
}}
NavboxWiki
{{NavboxWiki
	|title= NAVBOX TITLE
	|color= #CDF
	|title1= Title 1
	|content1=
		{{NavboxWiki
			|sub= y
			|title1= title1
			|content1= content1
			|title2= title2
			|color2= #FAA
			|content2= content2
			|title3= title3
			|content3=
				{{NavboxWiki
					|sub= y
					|title1= wait…
					|content1= stop!
					|title2= enough!
					|content2= I said.
				}}
		}}
	}}
NavboxWiki