Navbox – Template
Jump to navigation
Jump to search
m (fixed documentation) |
Lou Montana (talk | contribs) m (Add css style usage) |
||
Line 11: | Line 11: | ||
{{{title8|}}}{{{content8|}}} | {{{title8|}}}{{{content8|}}} | ||
| | | | ||
{{{!}} | {{{!}} class{{=}}"navboxWiki{{#if:{{{sub|}}}||<nowiki/> mw-collapsible}}" | ||
{{#if:{{{sub|}}}|| | {{#if:{{{sub|}}}|| | ||
{{!}}- | {{!}}- | ||
! colspan{{=}}"2" {{!}} | ! colspan{{=}}"2" {{!}} {{{title|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 24: | Line 21: | ||
| | | | ||
{{#if:{{{title1|}}} | {{#if:{{{title1|}}} | ||
| ! | | ! {{{title1}}} | ||
{{!}} | |||
{{{content1|}}} | {{{content1|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content1|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 34: | Line 32: | ||
| | | | ||
{{#if:{{{title2|}}} | {{#if:{{{title2|}}} | ||
| ! | | ! {{{title2}}} | ||
{{!}} | |||
{{{content2|}}} | {{{content2|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content2|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 44: | Line 43: | ||
| | | | ||
{{#if:{{{title3|}}} | {{#if:{{{title3|}}} | ||
| ! | | ! {{{title3}}} | ||
{{!}} | |||
{{{content3|}}} | {{{content3|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content3|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 54: | Line 54: | ||
| | | | ||
{{#if:{{{title4|}}} | {{#if:{{{title4|}}} | ||
| ! | | ! {{{title4}}} | ||
{{!}} | |||
{{{content4|}}} | {{{content4|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content4|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 64: | Line 65: | ||
| | | | ||
{{#if:{{{title5|}}} | {{#if:{{{title5|}}} | ||
| ! | | ! {{{title5}}} | ||
{{!}} | |||
{{{content5|}}} | {{{content5|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content5|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 74: | Line 76: | ||
| | | | ||
{{#if:{{{title6|}}} | {{#if:{{{title6|}}} | ||
| ! | | ! {{{title6}}} | ||
{{!}} | |||
{{{content6|}}} | {{{content6|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content6|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 84: | Line 87: | ||
| | | | ||
{{#if:{{{title7|}}} | {{#if:{{{title7|}}} | ||
| ! | | ! {{{title7}}} | ||
{{!}} | |||
{{{content7|}}} | {{{content7|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content7|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 94: | Line 98: | ||
| | | | ||
{{#if:{{{title8|}}} | {{#if:{{{title8|}}} | ||
| ! | | ! {{{title8}}} | ||
{{!}} | |||
{{{content8|}}} | {{{content8|}}} | ||
| {{!}} colspan{{=}}"2 | | {{!}} colspan{{=}}"2" {{!}} {{{content8|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
}} | }} |
Revision as of 00:51, 4 January 2021
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
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 |