This page is semi-protected against editing.

Template:Number cat

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

categorization template for use with number categories

Usage

{{Number cat |n= |nq= |by= |by2= |ntxt= |image= }}

Template parameters

ParameterDescriptionDefaultStatus
n
1
NumberNumber in title of category. If a QID is given, it will override this parameter with the numeric value (P1181) statement or label of that Wikidata item.emptyoptional
nq
1
Number QIDWikidata QID of the number in the title of the category, always include the 'Q'emptyoptional
byMeta CriteriaPrimary sorting criteria, indicating this category as a meta/index categoryemptyoptional
by2Meta Criteria 2secondary sorting criteria, if applicableemptyoptional
ntxtNumber as textoptional override to declare how number is written as textemptyoptional
imageImageimage type to be used (“file” or “n”), or directly name of file to be displayed.fileoptional
diffuseatDiffuse atLimit from when the category is considered crowded (only files count)200optional
seriesprefixemptyoptional
seriesprefixnsemptyoptional
seriessuffixemptyoptional
seriessuffixnsemptyoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

categorization template for use with number categories

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Meta Criteriaby

Primary sorting criteria, indicating this category as a meta/index category

Stringoptional
Meta Criteria 2by2

secondary sorting criteria, if applicable

Stringoptional
Diffuse atdiffuseat

Limit from when the category is considered crowded (only files count)

Default
200
Numberoptional
Imageimage

image type to be used (“file” or “n”), or directly name of file to be displayed.

Default
file
Stringoptional
Numbern 1

Number in title of category. If a QID is given, it will override this parameter with the P1181 statement or label of that Wikidata item.

Numberoptional
Number QIDnq 1

Wikidata QID of the number in the title of the category, always include the 'Q'

Stringoptional
Number as textntxt

optional override to declare how number is written as text

Stringoptional
seriesprefix

Unknownoptional
seriesprefixns

Unknownoptional
seriessuffix

Unknownoptional
seriessuffixns

Unknownoptional

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: no user group specified

Placement: At the top of the page

Relies on: