Template:Rcat

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

[‎[Category:木|Rcat]][‎[Category:Kangxi Chinese radicals| 木]]

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Rcat/doc.

Radical-depending categorizing:
Enables swift changes for file categorization, used for CJK character images, in special of the 214 traditional Kangxi radicals.
Similar to the templates for the Stroke Order Project images (ACClicense, SOlicense/ARlicense).
For more information see: Template talk:Radical0 and the category CJK-singles.

The template automatically sets the following categories: various, depending on parameters, always using the Unicode codepoint as a sortkey

Usage

{{Rcat |1= |2= |3= |4= |5= |u= }}

Template parameters

ParameterDescriptionDefaultStatus
1The character 0 (the template Radnum may be used)emptyrequired
2Radical number. This parameter passes a number <###> (one to three digits, with or without leading zero[es]) between 001 and 214 to the template. [‎[Category:Radical ###-0]‎] will be generated, for images belonging to the 214 traditional Kangxi radicals without additional strokes.
The special radical number "333" is used to specify a presently unknown radical number, for the the 540 Shuowen radicals categorization.
emptyrequired
3One of:
  • T” : it is a table cell for Unicode CJK radicals, and changes the behavior of parameter 4 (this is not a license for files).
  • Additional stroke count for a file description page. This optional parameter enables the use of the template for radicals as well as for non-radical character compositions.
emptyoptional
4If parameter 3 is “T (not a license for files), colorize the radical number in the table cell.

If parameter 3 is not “T, this optional field may be used to set a license in a file description page. The value may be:

  • (nothing) no action - explicitly licensed
  • a” : PD-ancient-script: SVG ancient script in the public domain
  • b” : CC-CY-SA-2.0 license
  • c” : CC-CY-SA-2.5 license
  • f” : GDFL license
  • g” : CC-CY-SA-3.0 license
  • i” : PD-ineligible license
  • o” : PD-old license
  • s” : PD-self license
  • u” : PD-Unicode license (ineligible) — good choice for characters. → Best will be to use instead the parameter u= (see below)
  • x” : PD-text license (ineligible)
  • Otherwise the file is categorized in the Rcat radicals tracking category (missing license).
emptyoptional
5Variant. This optional field may be used if the character has special attributes. The value may be either:
  • (nothing) no action
  • h” : it's from Commons Hanzi universalization project
  • i” : it's one of the ~48 ArlasIt Chinese radicals (png)
  • m” : it's from Category Cangjie input method (dif.)
  • u” : it's general Unicode
  • x” : it's one of the 214 Kangxi Chinese radicals (svg)
  • K” : it's one of the 214 Kangxi radicals in the dic… (svg)
  • R” : it's one of the 494 CJKV radicals (svg)
  • S” : it's one of the 540 Shuowen seal radicals (svg)
  • emptyoptional
    uhexadecimal Unicode codepoint, e.g. "u=56CD". The file is licensed by {{PD-Unicode}}, with the codepoint value displayed as e.g. "U+56CD", and categorized into PD Unicode displaying the characteremptyoptional

    Additional information

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

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

    Placement:

    The template is optimized for best appearance between "Information" and "License".

    Localization

    This template is not intended to be localized.

    Examples

    {{Rcat|木|075|0||x|u=6728}}
    

    generates (The built-in categorization esures the correct sort within the categories, depending on the characters Unicode code point):

    {{PD-Unicode|u=6728}}
    
    [[Category:木]]
    [[Category:Radical 075–0|木]]
    [[Category:Kangxi Chinese radicals|木]] 
    

    Expansions

    The template can also be used for characters not representing radicals.
    If the character category does not (yet) exist, an infobox-like link to sisterprojects will be generated.
    Instead of the categorization shown above, it will be [[Category:Radical ###]] and [[Category:CJK-singles]].