Navbox – Template
Lou Montana (talk | contribs) m (Lou Montana moved page Template:NavboxWiki to Template:Navbox without leaving a redirect: replacing void) |
Lou Montana (talk | contribs) m (Text replacement - "NavboxWiki" to "Navbox") |
||
| Line 111: | Line 111: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
{{<nowiki/> | {{<nowiki/>Navbox|'''''title'''''|'''''color'''''|'''''title''#'''|'''''color''#'''|'''''content''#'''|'''''sub'''''}} | ||
* title: (Optional) navbox title | * title: (Optional) navbox title | ||
* color: (Optional, default <tt>#</tt>) | * color: (Optional, default <tt>#</tt>) | ||
| Line 125: | Line 125: | ||
! style="min-width: 50%" | Result | ! style="min-width: 50%" | Result | ||
|- | |- | ||
| <nowiki>{{ | | <nowiki>{{Navbox}}</nowiki> | ||
| {{ | | {{Navbox}} | ||
|- | |- | ||
| <nowiki>{{ | | <nowiki>{{Navbox|Hello there!}}</nowiki> | ||
| {{ | | {{Navbox|Hello there!}} | ||
|- style="vertical-align: top" | |- style="vertical-align: top" | ||
| <pre>{{ | | <pre>{{Navbox | ||
|title1= Title 1 | |title1= Title 1 | ||
|content1= Hello, first content! | |content1= Hello, first content! | ||
}}</pre> | }}</pre> | ||
| {{ | | {{Navbox | ||
|title1= Title 1 | |title1= Title 1 | ||
|content1= Hello, first content! | |content1= Hello, first content! | ||
| Line 142: | Line 142: | ||
}} | }} | ||
|- style="vertical-align: top" | |- style="vertical-align: top" | ||
| <pre>{{ | | <pre>{{Navbox | ||
|title= title displays collapse option | |title= title displays collapse option | ||
|title1= category | |title1= category | ||
|content1= content that is displayed here | |content1= content that is displayed here | ||
}}</pre> | }}</pre> | ||
| {{ | | {{Navbox | ||
|title= title displays collapse option | |title= title displays collapse option | ||
|title1= category | |title1= category | ||
| Line 153: | Line 153: | ||
}} | }} | ||
|- style="vertical-align: top" | |- style="vertical-align: top" | ||
| <pre>{{ | | <pre>{{Navbox | ||
|title= NAVBOX TITLE | |title= NAVBOX TITLE | ||
|color= #DAD | |color= #DAD | ||
| Line 163: | Line 163: | ||
|content3= Yep, no title. | |content3= Yep, no title. | ||
}}</pre> | }}</pre> | ||
| {{ | | {{Navbox | ||
|title= NAVBOX TITLE | |title= NAVBOX TITLE | ||
|color= #DAD | |color= #DAD | ||
| Line 174: | Line 174: | ||
}} | }} | ||
|- style="vertical-align: top" | |- style="vertical-align: top" | ||
| <pre>{{ | | <pre>{{Navbox | ||
|title= NAVBOX TITLE | |title= NAVBOX TITLE | ||
|color= #CDF | |color= #CDF | ||
|title1= Title 1 | |title1= Title 1 | ||
|content1= | |content1= | ||
{{ | {{Navbox | ||
|sub= y | |sub= y | ||
|title1= title1 | |title1= title1 | ||
| Line 188: | Line 188: | ||
|title3= title3 | |title3= title3 | ||
|content3= | |content3= | ||
{{ | {{Navbox | ||
|sub= y | |sub= y | ||
|title1= wait… | |title1= wait… | ||
| Line 197: | Line 197: | ||
}} | }} | ||
}}</pre> | }}</pre> | ||
| {{ | | {{Navbox | ||
|title= NAVBOX TITLE | |title= NAVBOX TITLE | ||
|color= #CDF | |color= #CDF | ||
|title1= Title 1 | |title1= Title 1 | ||
|content1= | |content1= | ||
{{ | {{Navbox | ||
|sub= y | |sub= y | ||
|title1= title1 | |title1= title1 | ||
| Line 211: | Line 211: | ||
|title3= title3 | |title3= title3 | ||
|content3= | |content3= | ||
{{ | {{Navbox | ||
|sub= y | |sub= y | ||
|title1= wait… | |title1= wait… | ||
Revision as of 10:21, 8 February 2021
Usage
{{Navbox|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 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{Navbox}} |
-no navbox defined- | ||||||||||||||
| {{Navbox|Hello there!}} |
-no navbox defined- | ||||||||||||||
{{Navbox
|title1= Title 1
|content1= Hello, first content!
}}
|
| ||||||||||||||
{{Navbox
|title= title displays collapse option
|title1= category
|content1= content that is displayed here
}}
|
| ||||||||||||||
{{Navbox
|title= NAVBOX TITLE
|color= #DAD
|title1= Title 1
|color1= #AAF
|content1= Hello, first content!
|content2= Wait… no title?
|title3= hahaha
|content3= Yep, no title.
}}
|
| ||||||||||||||
{{Navbox
|title= NAVBOX TITLE
|color= #CDF
|title1= Title 1
|content1=
{{Navbox
|sub= y
|title1= title1
|content1= content1
|title2= title2
|color2= #FAA
|content2= content2
|title3= title3
|content3=
{{Navbox
|sub= y
|title1= wait…
|content1= stop!
|title2= enough!
|content2= I said.
}}
}}
}}
|
| ||||||||||||||