Template:Rcat

From OpenMedia
Jump to: navigation, search


[edit]

Documentation


Enables swift changings for file categorizings, used for CJK character images, in special of the 214 Traditional Radicals
  similar to the templates for Stroke Order Project images (ACClicense, SOlicense/ARlicense)
For more information see: Template talk:Radical0 and the category [[Category:CJK-singles]]

The template automatically sets the following categories: various, depending on parameters

Usage

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

Parameters

Parameter name Description Default value required or optional?

parameter #1 (1) The character empty required
parameter #2 (2) Radical 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 Radicals (without additional strokes). empty required
parameter #3 (3) Additional stroke count. This is an optional field for the additional stroke count. This parameter enables the use of the template for radicals as well as for non-radical character compositions. empty optional
parameter #4 (4) This optional field may be used to set a license for the file. The value may be:
  • (nothing) no action - explicitly licensed
  • a” :  PD-ancient-script: SVG ancient script in the public domain
  • b” :  cc-by-sa-2.0 license
  • c” :  cc-by-sa-2.5 license
  • f” :  GDFL license
  • g” :  cc-by-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)
  • T” :  (no license) it is a table element for [[Category:CJK-0]]
empty optional
parameter #5 (5) Variant. This optional field may be used if the character has special attributes. The value may be either:
  • (nothing) no action
  • h” :  it's Hanzi universalization [[Category:Hanzi-U]]
  • i” :  it's one of the ~48 [[Category:ArlasIt Chinese radicals]] (png)
  • m” :  it's from Category [[Category:Cangjie input method]] (dif.)
  • u” :  it's general Unicode
  • x” :  it's one of the 214 [[Category:Kangxi Chinese radicals]] (svg)
empty optional
u hexadecimal 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 [[Category:PD Unicode]] empty optional

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

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 value):

{{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 exist, an infobox-like link to sisterprojects will be generated.

Instead of the categorization shown above, it will be [[Category:Radical ###]] and [[Category:[[Category:CJK-singles]]]].