Template:TestNavbox: Difference between revisions

Template page
(Created page with "<includeonly><templatestyles src="TestNavbox/style.css"/> {| class="navbox border-blue-30" style="margin-top: {{{marginTop|0.8rem}}}; width: {{{width|auto}}}; border-width: {{{borderWidth|2px 1px 0 1px}}};" ! class="bg-grey-03" | {{{heading1}}} |- | {{{links1}}} |- {{#if:{{{heading2|}}}| ! class="bg-grey-03" {{!}} {{{heading2}}} {{!}}- {{!}} {{{links2}}} {{!}}- }} {{#if:{{{heading3|}}}| ! class="bg-grey-03" {{!}} {{{heading3}}} {{!}}- {{!}} {{{links3}}} {{!}}- }} {{#if:{...")
 
mNo edit summary
 
Line 1: Line 1:
<includeonly><templatestyles src="TestNavbox/style.css"/>
<includeonly><templatestyles src="TestNavbox/style.css"/>
{| class="navbox border-blue-30" style="margin-top: {{{marginTop|0.8rem}}}; width: {{{width|auto}}}; border-width: {{{borderWidth|2px 1px 0 1px}}};"
{| class="navbox border-blue-30" style="margin-top: {{{marginTop|0.8rem}}}; width: {{{width|auto}}}; border-width: {{{borderWidth|2px 1px 1px 1px}}};"
! class="bg-grey-03" | {{{heading1}}}
! class="bg-grey-03" | {{{heading1}}}
|-
|-

Latest revision as of 02:02, 24 January 2024

Shortcut template for making tables with Template:TestNavbox/style.css. Less flexible than just making the table yourself, but a bit cleaner.

Usage

{{TestNavbox|
|width=100%
|marginTop=0.8rem
|borderWidth=2px 1px 1px 1px
|heading1=Navbox heading
|links1={{Dotlist|
* [[Link 1.0]]
* [[Link 1.1]]}}
|heading2=Another heading
|links2=[[Link 2.0]], [[Link 2.1]]
|heading3=More headings
|links3=[[Link 3]]
|heading4=Last heading
|links4=[[Final link]]
}}

Example