Template:Categories/Navbox

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Purpose

For creating a category-based navbox to override the default navbox generated by Template:Categories.

Usage

SyntaxBoilerplate
{{Categories/Navbox|<navboxCategory>
|category1= 
|display1= 

|category2= 
|display2= 

|categoryN= 
|displayN= 
}}
Required ParametersAll Parameters
2345
{{Categories/Navbox|
|category1= 
|category2= 
}}
{{Categories/Navbox|
|category1= 
|category2= 
|category3= 
}}
{{Categories/Navbox|
|category1= 
|category2= 
|category3= 
|category4= 
}}
{{Categories/Navbox|
|category1= 
|category2= 
|category3= 
|category4= 
|category5= 
}}
2345
{{Categories/Navbox|

|category1= 
|display1= 

|category2= 
|display2= 
}}
{{Categories/Navbox|

|category1= 
|display1= 

|category2= 
|display2= 

|category3= 
|display3= 
}}
{{Categories/Navbox|

|category1= 
|display1= 

|category2= 
|display2= 

|category3= 
|display3= 

|category4= 
|display4= 
}}
{{Categories/Navbox|

|category1= 
|display1= 

|category2= 
|display2= 

|category3= 
|display3= 

|category4= 
|display4= 

|category5= 
|display5= 
}}
ParameterStatusDescription
1navboxCategoryrequiredThe name of the category that this navbox is for.
categoryNrequired

A category name, without the Category: prefix. The navbox group will contain all pages that are in both this category and the navbox category.

It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and any of the specified categories. The first category in the list is the default display name.

displayNoptionalA label for the navbox partition. Corresponds to the group parameter of Template:Navbox. Defaults to categoryN.
maxGroupSizeNoptionalSets the maxGroupSize parameter of Template:Navbox.

For creating a [[:Category:Category navbox templates|category-based navbox]] to override the default navbox generated by [[Template:Categories]].

Template parameters

ParameterDescriptionTypeStatus
navboxCategory1

The name of the category that this navbox is for.

Stringrequired
category1category1

<p>A category name, without the <code>Category:</code> prefix. The navbox group will contain all pages that are in both this category and the navbox category.</p><p>It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and ''any'' of the specified categories. The first category in the list is the default <code>display</code> name.</p>

Stringrequired
display1display1

A label for the navbox partition. Corresponds to the <code>group</code> parameter of [[Template:Navbox]]. Defaults to <code>categoryN</code>.

Stringoptional
maxGroupSize1maxGroupSize1

Sets the <code>maxGroupSize</code> parameter of [[Template:Navbox]].

Numberoptional
category2category2

<p>A category name, without the <code>Category:</code> prefix. The navbox group will contain all pages that are in both this category and the navbox category.</p><p>It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and ''any'' of the specified categories. The first category in the list is the default <code>display</code> name.</p>

Stringrequired
display2display2

A label for the navbox partition. Corresponds to the <code>group</code> parameter of [[Template:Navbox]]. Defaults to <code>categoryN</code>.

Stringoptional
maxGroupSize2maxGroupSize2

Sets the <code>maxGroupSize</code> parameter of [[Template:Navbox]].

Numberoptional
category3category3

<p>A category name, without the <code>Category:</code> prefix. The navbox group will contain all pages that are in both this category and the navbox category.</p><p>It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and ''any'' of the specified categories. The first category in the list is the default <code>display</code> name.</p>

Stringrequired
display3display3

A label for the navbox partition. Corresponds to the <code>group</code> parameter of [[Template:Navbox]]. Defaults to <code>categoryN</code>.

Stringoptional
maxGroupSize3maxGroupSize3

Sets the <code>maxGroupSize</code> parameter of [[Template:Navbox]].

Numberoptional
category4category4

<p>A category name, without the <code>Category:</code> prefix. The navbox group will contain all pages that are in both this category and the navbox category.</p><p>It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and ''any'' of the specified categories. The first category in the list is the default <code>display</code> name.</p>

Stringrequired
display4display4

A label for the navbox partition. Corresponds to the <code>group</code> parameter of [[Template:Navbox]]. Defaults to <code>categoryN</code>.

Stringoptional
maxGroupSize4maxGroupSize4

Sets the <code>maxGroupSize</code> parameter of [[Template:Navbox]].

Numberoptional
category5category5

<p>A category name, without the <code>Category:</code> prefix. The navbox group will contain all pages that are in both this category and the navbox category.</p><p>It is also possible to specify a comma-separated list of category names. In this case, the navbox group will contain all pages that are in the navbox category and ''any'' of the specified categories. The first category in the list is the default <code>display</code> name.</p>

Stringrequired
display5display5

A label for the navbox partition. Corresponds to the <code>group</code> parameter of [[Template:Navbox]]. Defaults to <code>categoryN</code>.

Stringoptional
maxGroupSize5maxGroupSize5

Sets the <code>maxGroupSize</code> parameter of [[Template:Navbox]].

Numberoptional

Examples

#InputOutputCategories added
1
{{Categories/Navbox|Insects

|category1= Bees

|category2= Butterflies

|category3= Dragonflies
}}
2
{{Categories/Navbox|Treasures

|category1= Items in Phantom Hourglass
|display1= {{PH|-}}

|category2= Items in Spirit Tracks
|display2= {{ST|-}}

|category3= Items in Skyward Sword
|display3= {{SS|-}}

|category4= Items in A Link Between Worlds
|display4= {{ALBW|-}}
}}
3
{{Categories/Navbox|Twilight Enemies

|category1= Enemies

|category2= Bosses, Sub-Bosses
}}
navboxCategory can refer to a category that doesn't exist yet, but the subgroup categories must exist.
4
{{Categories/Navbox|New Category

|category1= Not a Category

|category2= 
}}
Error: Category Not a Category does not exist
5
{{Categories/Navbox|Hylians

}}
Error: No navbox is shown for category Hylians as it has 500 entries, which exceeds the 99-page maximum
6
{{Categories/Navbox|

}}
Non-existent grouping categories are ignored.
7
{{Categories/Navbox|Medals

|category1= Items in Skyward Sword

|category2= Not a Category
}}
Error: Category Not a Category does not exist

Guidelines

Navboxes can be partitioned by subject type (e.g. Blins), by game (.e.g. Kakariko Village), or both (e.g. Fairies). When possible, these partitions should cover all category entries. Otherwise, a partition named Other is automatically appended for the remaining entries and the template is added to Category:Navboxes with other.

The above documentation is transcluded from Template:Categories/Navbox/Documentation. (edit | history)