Extension:Ids

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
Ids

Release status:Extension status beta

px
ImplementationTemplate:Extension#type Parser extension, Tag, Hook
DescriptionTemplate:Extension#description Build images of unencoded CJK ideographs from Unicode IDS.
Author(s)Template:Extension#username Shoichi Chou (shoichitalk)
MediaWikiTemplate:Extension#mediawiki 1.25+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download

Translate the Ids extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The ids extension renders individual Ideographic Description Sequences (IDS) into inline images for consumption. It helps with displaying unencoded CJKV characters found in ancient text.

For example, the IDS sequence <ids>⿺辶⿴宀⿱珤⿰隹⿰貝招</ids> renders into the image shown in the infobox. This tag transforms into an inline 1em × 1em image, with appropriate alt= attribute and margins.

This extension currently uses the temporary "idsgen" wmf toollab server for rendering.

Installation[edit]

  • Download and place the file(s) in a directory called Ids in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Ids' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

$wgIdsEndpoint is used to set the rendering server endpoint. Default is "https://tools.wmflabs.org/idsgen/".

$wgIdsEndpoint = "https://tools.wmflabs.org/idsgen/";

User rights[edit]

This extension does not provide any control for user rights; every user can add, use and render the tag.

See also[edit]