Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Navbox: Difference between revisions

Template page
Created page with "<includeonly><templatestyles src="Template:Navbox/styles.css" /> <table class="navbox {{{bodyclass|}}}" style="{{{basestyle|}}}"> {{#if: {{{title|}}}| <caption class="navbox-title"> {{{title}}} </caption> }} {{#if: {{{above|}}}| <tr> <td class="navbox-above" colspan="2"> {{{above}}} </td> </tr> }} {{#if: {{{group1|}}}| <tr> <th class="navbox-group" scope="row">{{{group1}}}</th> <td class="navbox-list">{{{list1}}}</td> </t..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Navbox/styles.css" />
<includeonly><templatestyles src="Template:Navbox/styles.css" />
<div class="navbox-container">
<table class="navbox {{{bodyclass|}}}" style="{{{basestyle|}}}">
<table class="navbox {{{bodyclass|}}}" style="{{{basestyle|}}}">
  {{#if: {{{title|}}}|
 
  <caption class="navbox-title">
{{#if: {{{title|}}}|
    {{{title}}}
<caption class="navbox-title">
{{{title}}}
   </caption>
   </caption>
  }}
}}


  {{#if: {{{above|}}}|
{{#if: {{{above|}}}|
   <tr>
   <tr>
     <td class="navbox-above" colspan="2">
     <td class="navbox-top" colspan="2">
       {{{above}}}
       {{{above}}}
     </td>
     </td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group1|}}}|
{{#if: {{{group1|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group1}}}</th>
     <th class="navbox-group" scope="row">{{{group1}}}</th>
     <td class="navbox-list">{{{list1}}}</td>
     <td class="navbox-list">{{{list1}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group2|}}}|
{{#if: {{{group2|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group2}}}</th>
     <th class="navbox-group" scope="row">{{{group2}}}</th>
     <td class="navbox-list">{{{list2}}}</td>
     <td class="navbox-list">{{{list2}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group3|}}}|
{{#if: {{{group3|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group3}}}</th>
     <th class="navbox-group" scope="row">{{{group3}}}</th>
     <td class="navbox-list">{{{list3}}}</td>
     <td class="navbox-list">{{{list3}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group4|}}}|
{{#if: {{{group4|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group4}}}</th>
     <th class="navbox-group" scope="row">{{{group4}}}</th>
     <td class="navbox-list">{{{list4}}}</td>
     <td class="navbox-list">{{{list4}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group5|}}}|
{{#if: {{{group5|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group5}}}</th>
     <th class="navbox-group" scope="row">{{{group5}}}</th>
     <td class="navbox-list">{{{list5}}}</td>
     <td class="navbox-list">{{{list5}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group6|}}}|
{{#if: {{{group6|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group6}}}</th>
     <th class="navbox-group" scope="row">{{{group6}}}</th>
     <td class="navbox-list">{{{list6}}}</td>
     <td class="navbox-list">{{{list6}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group7|}}}|
{{#if: {{{group7|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group7}}}</th>
     <th class="navbox-group" scope="row">{{{group7}}}</th>
     <td class="navbox-list">{{{list7}}}</td>
     <td class="navbox-list">{{{list7}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group8|}}}|
{{#if: {{{group8|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group8}}}</th>
     <th class="navbox-group" scope="row">{{{group8}}}</th>
     <td class="navbox-list">{{{list8}}}</td>
     <td class="navbox-list">{{{list8}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group9|}}}|
{{#if: {{{group9|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group9}}}</th>
     <th class="navbox-group" scope="row">{{{group9}}}</th>
     <td class="navbox-list">{{{list9}}}</td>
     <td class="navbox-list">{{{list9}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group10|}}}|
{{#if: {{{group10|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group10}}}</th>
     <th class="navbox-group" scope="row">{{{group10}}}</th>
     <td class="navbox-list">{{{list10}}}</td>
     <td class="navbox-list">{{{list10}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{group11|}}}|
{{#if: {{{group11|}}}|
   <tr>
   <tr>
     <th class="navbox-group" scope="row">{{{group11}}}</th>
     <th class="navbox-group" scope="row">{{{group11}}}</th>
     <td class="navbox-list">{{{list11}}}</td>
     <td class="navbox-list">{{{list11}}}</td>
   </tr>
   </tr>
  }}
}}


  {{#if: {{{below|}}}|
{{#if: {{{below|}}}|
   <tr>
   <tr>
     <td class="navbox-below" colspan="2">
     <td class="navbox-bottom" colspan="2">
       {{{below}}}
       {{{below}}}
     </td>
     </td>
   </tr>
   </tr>
  }}
}}
</table></includeonly><noinclude>
 
</table>
</div></includeonly><noinclude>
Basic navbox template for Landrace.Wiki.
Basic navbox template for Landrace.Wiki.


;Parameters (main ones)
Parameters:
* <code>|title=</code> – heading shown at the top.
* <code>|title=</code> – heading shown at the top.
* <code>|bodyclass=</code> – extra classes for the table (optional).
* <code>|bodyclass=</code> – extra classes for the table (optional).
Line 111: Line 115:
* <code>|below=</code> – optional row below all groups.
* <code>|below=</code> – optional row below all groups.


See [[Template:Basic information]] for an example of how to use it.
See [[Template:Basic information]] for an example.
</noinclude>
</noinclude>

Latest revision as of 12:24, 20 November 2025

Basic navbox template for Landrace.Wiki.

Parameters:

  • |title= – heading shown at the top.
  • |bodyclass= – extra classes for the table (optional).
  • |basestyle= – extra inline styles for the table (optional).
  • |above= – optional row above the groups.
  • |group1=|group11= – left column headers.
  • |list1=|list11= – right column lists.
  • |below= – optional row below all groups.

See Template:Basic information for an example.