Template:Navcattab

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Navcattab/doc.

Generates one or more lines with navigational color boxes, using Template:Navcat

Usage

{{Navcattab}}

Template parameters

ParameterDescriptionDefaultStatus
1 ... nunlimited number of items, specified by positional parameters 1, 2, ..., nemptyoptional
cat1
c1
(leading part of the) category name
should normally end with last character  
emptyoptional
cat2
c2
(trailing part of the) category name
should normally start with first character  
emptyoptional
spanswitch whether a span tag should sourround an entry, or ifemptyoptional
divswitch whether a div tag should be set in advance (for centering etc.)emptyoptional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

See also

Localization

This template is not intended to be localized.

Table item

An empty item (e.g. two pipe character with noting inbetween) causes a new line; otherwise
each item can consist of up to three parts, separated by slashes: p1/p2/p3; missing p3 gets value of p2, when also missing then of p1.

  • p1 (required) part of the category name, will normally be a color name
  • p2 (optional) value of a color code for the color box: CSS name or hexcode as #F0F
  • p3 (optional) value of a valid color specification for the box color, like #36F, or a name like purple, or a data item like Q3257809
    with <nowiki/> Xxxx the text Xxxx is used for the display name instead of p1

Passed to Template:Navcat as

params 1 2 3 4
p1 - P1 p1
p1/p2 p2 P1 p2
p1/ /p3 - P1 p3
p1/p2/p3 p2 P1 p3


Examples with Navcat with Navcattab Navcattab value
green//lime  Green  Green {{Navcattab|c2=&#32;letters|green//lime}}
blue/#36F  Blue   Name {{Navcattab|c2= letters|blue/#36F/<nowiki/> Name}}

Large list example

 Amber Apricot Azure Beige Black Blond hair Blue Bordeaux Brown Burgundy Celadon Chartreuse Coral Cream
 Crimson Cyan Ecru Gold Golden Grey Gray
 Green Indigo Ivory Khaki Lilac Lime Magenta Mango Bordeaux Mauve Navy blue Olive Orange Pink Purple Red Rose Salmon Sepia Tan Teal Turquoise Vermilion Violet White Yellow

Not only the blue category name, but also the color box is linking