Template:Navcattab

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Navcattab/doc.

Category:Main message boxesCategory:Lua-based iteration templatesGenerates 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.

Category:Templates not requiring internationalization

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

params1234
p1-P1p1
p1/p2p2P1p2
p1/ /p3-P1p3
p1/p2/p3p2P1p3


Exampleswith Navcatwith NavcattabNavcattab value
green//limeGreenGreen{{Navcattab|c2=&#32;letters|green//lime}}
blue/#36FBlue Name{{Navcattab|c2= letters|blue/#36F/<nowiki/> Name}}

Large list example

AmberApricotAzureBeigeBlackBlond hairBlueBordeauxBrownBurgundyCeladonChartreuseCoralCream
CrimsonCyanEcruGoldGoldenGreyGray
GreenIndigoIvoryKhakiLilacLimeMagentaMangoBordeauxMauveNavy blueOliveOrangePinkPurpleRedRoseSalmonSepiaTanTealTurquoiseVermilionVioletWhiteYellow

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

Category:Colorbox formatting templates#%20 Category:Table formatting templates#%20 Category:By color navigational templates#%20
Category:By color navigational templates Category:Colorbox formatting templates Category:Lua-based iteration templates Category:Main message boxes Category:Table formatting templates Category:Templates not requiring internationalization