Template:Navbox: Difference between revisions

From BoyWiki
No edit summary
Tag: Reverted
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| width="100%" class="nowraplinks {{#ifeq:{{lc:{{{subgroup|}}}}}|yes|navbox-subgroup|navbox {{#ifeq:{{{state|}}}|plain||mw-collapsible {{#if:{{{state|}}}|mw-{{{state}}}|mw-collapsed}}}}}}" cellspacing="0"<!--
<includeonly>{{#invoke:Navbox|navbox}}</includeonly><noinclude>
 
{{Documentation}}
--><!-- Table header; hidden for sub-groups -->
{{#ifeq:{{lc:{{{subgroup|}}}}}||! colspan="2" class="navbox-title" style="{{#if:{{{tstyle|}}}|{{{tstyle}}}|}}" {{!}} {{#if:{{{name|}}}|<div style="padding-right:{{#ifeq:{{{state|}}}|plain|6|0}}em">{{tnavbar-collapsible|{{{title}}}|{{{name}}}}}</div>|<div style="padding-left:{{#ifeq:{{{state|}}}|plain|0|6}}em">{{{title|}}}</div>}}}}<!--
 
--><!-- Row 1 -->
{{#if:{{{group1|}}}|{{!}}-
{{#if:{{{gtitle1|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle1}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style1|}}}|style="{{{style1}}}"}} {{!}}
{{{group1}}}<!--
 
--><!-- Row 2 -->
{{#if:{{{group2|}}}|{{!}}-
{{#if:{{{gtitle2|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle2}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style2|}}}|style="{{{style2}}}"}} {{!}}
{{{group2}}}<!--
 
--><!-- Row 3 -->
{{#if:{{{group3|}}}|{{!}}-
{{#if:{{{gtitle3|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle3}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style3|}}}|style="{{{style3}}}"}} {{!}}
{{{group3}}}<!--
 
--><!-- Row 4 -->
{{#if:{{{group4|}}}|{{!}}-
{{#if:{{{gtitle4|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle4}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style4|}}}|style="{{{style4}}}"}} {{!}}
{{{group4}}}<!--
 
--><!-- Row 5 -->
{{#if:{{{group5|}}}|{{!}}-
{{#if:{{{gtitle5|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle5}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style5|}}}|style="{{{style5}}}"}} {{!}}
{{{group5}}}<!--
 
--><!-- Row 6 -->
{{#if:{{{group6|}}}|{{!}}-
{{#if:{{{gtitle6|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle6}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style6|}}}|style="{{{style6}}}"}} {{!}}
{{{group6}}}<!--
 
--><!-- Row 7 -->
{{#if:{{{group7|}}}|{{!}}-
{{#if:{{{gtitle7|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle7}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style7|}}}|style="{{{style7}}}"}} {{!}}
{{{group7}}}<!--
 
--><!-- Row 8 -->
{{#if:{{{group8|}}}|{{!}}-
{{#if:{{{gtitle8|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle8}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style8|}}}|style="{{{style8}}}"}} {{!}}
{{{group8}}}<!--
 
--><!-- Row 9 -->
{{#if:{{{group9|}}}|{{!}}-
{{#if:{{{gtitle9|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle9}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style9|}}}|style="{{{style9}}}"}} {{!}}
{{{group9}}}<!--
 
--><!-- Row 10 -->
{{#if:{{{group10|}}}|{{!}}-
{{#if:{{{gtitle10|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle10}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style10|}}}|style="{{{style10}}}"}} {{!}}
{{{group10}}}<!--
 
--><!-- Row 11 -->
{{#if:{{{group11|}}}|{{!}}-
{{#if:{{{gtitle11|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle11}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style11|}}}|style="{{{style11}}}"}} {{!}}
{{{group11}}}<!--
 
--><!-- Row 12 -->
{{#if:{{{group12|}}}|{{!}}-
{{#if:{{{gtitle12|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle12}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style12|}}}|style="{{{style12}}}"}} {{!}}
{{{group12}}}<!--
 
--><!-- Row 13 -->
{{#if:{{{group13|}}}|{{!}}-
{{#if:{{{gtitle13|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle13}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style13|}}}|style="{{{style13}}}"}} {{!}}
{{{group13}}}<!--
 
--><!-- Row 14 -->
{{#if:{{{group14|}}}|{{!}}-
{{#if:{{{gtitle14|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle14}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style14|}}}|style="{{{style14}}}"}} {{!}}
{{{group14}}}<!--
 
--><!-- Row 15 -->
{{#if:{{{group15|}}}|{{!}}-
{{#if:{{{gtitle15|}}}|{{!}} width="15%" class="navbox-group" {{!}} '''{{{gtitle15}}}'''
{{!}}|{{!}} colspan="2"}} class="navbox-list" {{#if:{{{style15|}}}|style="{{{style15}}}"}} {{!}}
{{{group15}}}<!--
 
--><!-- End of table -->
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }}<!-- Number of Closed brackets = Number of rows = 15 -->
|}</includeonly><noinclude>{{navbox/doc}}[[Category:Meta Templates|Navbox]]</noinclude>
 
 
<noinclude>
{{documentation}}  
[[Category:Navbox templates]]
</noinclude>
</noinclude>

Latest revision as of 20:18, 24 February 2022


BoyWiki Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create a basic navbox.
Syntax
For more information see: https://en.wikipedia.org/wiki/Template:Navbox/doc

Parameter list

The navbox uses lowercase parameter names, as shown in the box (above). The required name and title will create a one-line box if other parameters are omitted.

Notice "group1" (etc.) is optional, as are sections named "above/below".

The basic and most common parameters are as follows (see below for the full list):

name – the name of the template.
title – text in the title bar, such as: [[Widget stuff]].
listclass – a CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.
state – controls when a navbox is expanded or collapsed.
titlestyle – a CSS style for the title-bar, such as: background: gray;
groupstyle – a CSS style for the group-cells, such as: background: #eee;
above – text to appear above the group/list section (could be a list of overall wikilinks).
image – an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as [[File:XX.jpg|80px|link=|alt=]].
imageleft – an optional left-side image (code the same as the "image" parameter).
groupn – the left-side text before list-n (if group-n omitted, list-n starts at left of box).
listn – text listing wikilinks using a wikilist format.
below – optional text to appear below the group/list section.
Sample output
{{Navbox
| name       = Navbox Test
| state  = uncollapsed
| title      = test
| above  = test
| abovestyle = background:#cedff2;
| listclass  = hlist
| titlestyle = {{{titlestyle|background:#cedff2;}}}
| groupstyle = line-height:1.2em;{{{groupstyle|background:#cedff2;}}}
| image = 
| group1     = test
| list1      =  
  '''{{bp}} test
 
| group2     = test
| list2style = line-height:1.2em;{{{list2style|background:#f5faff;}}}
| list2      =  
*test
*test
*test
*test
*test
*test
| group3     = test
| list3style = line-height:1.2em;
| list3      =  
*test
*test
*test
*test
*test
*test
 
<BR>
| belowstyle = background:#cedff2;
|below = test [[File:Bloge.png|30 px|link=Portal:Boylove News Channel]]
}}

Results in...



Visit Template:Navbox/doc to edit this template's description!
Done making changes?   Refresh   Also see:  Portal:Template index  and   Help:Templates