Navbox – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed content 6-8)
m (fixed documentation)
Line 109: Line 109:
* title: (Optional) navbox title
* title: (Optional) navbox title
* color: (Optional, default <tt>#</tt>)
* color: (Optional, default <tt>#</tt>)
* title'''#''': (Optional, default empty) # in range 1..5: row 1..5 title
* title'''#''': (Optional, default empty) # in range 1..8: row 1..8 title
* color'''#''': (Optional, default <tt>#DDDDDD</tt>) # in range 1..5: row 1..5 title colour
* color'''#''': (Optional, default <tt>#DDDDDD</tt>) # in range 1..8: row 1..8 title colour
* content'''#''': (Optional, default empty) # in range 1..5: row 1..5 cell content
* content'''#''': (Optional, default empty) # in range 1..8: row 1..8 cell content
* sub: (Optional, default empty) <tt>y</tt> defines if border and collapsible are shown
* sub: (Optional, default empty) <tt>y</tt> defines if border and collapsible are shown



Revision as of 10:16, 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..8: row 1..8 title
  • color#: (Optional, default #DDDDDD) # in range 1..8: row 1..8 title colour
  • content#: (Optional, default empty) # in range 1..8: row 1..8 cell content
  • sub: (Optional, default empty) y defines if border and collapsible are shown
Examples
Code Result
{{NavboxWiki}} Template:NavboxWiki
{{NavboxWiki|Hello there!}} Template:NavboxWiki
{{NavboxWiki
	|title1= Title 1
	|content1= Hello, first content!
}}
Template:NavboxWiki
{{NavboxWiki
	|title= title displays collapse option
	|title1= category
	|content1= content that is displayed here
}}
Template: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.
}}
Template: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.
				}}
		}}
	}}
Template:NavboxWiki