Template:Navcattab
Usage
{{Navcattab}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 ... n | unlimited number of items, specified by positional parameters 1, 2, ..., n | empty | optional | |
cat1 c1 | (leading part of the) category name should normally end with last character   | empty | optional | |
cat2 c2 | (trailing part of the) category name should normally start with first character   | empty | optional | |
span | switch whether a span tag should sourround an entry, or if | empty | optional | |
div | switch whether a div tag should be set in advance (for centering etc.) | empty | optional |
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 likepurple
, or a data item likeQ3257809
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= 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