Toggle menu
15
236
70
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Convert character width/data/doc: Difference between revisions

From Kenshi Wiki
Created page with "{{module rating|protected}} This module converts a limited set of characters between halfwidth and fullwidth forms. == Usage == ; From half-width to full-width {{#invoke:convert character width|full|''text to convert''}} ; From full-width to half-width {{#invoke:convert character width|half|''text to convert''}} == Examples == * <code><nowiki>{{#invoke:convert character width|full|some text 0123456789}}</nowiki></code> → {{#invoke:convert chara..."
 
No edit summary
Line 1: Line 1:
{{module rating|protected}}
{{doc sub}}


This module converts a limited set of characters between [[halfwidth and fullwidth forms]].
This module converts a limited set of characters between [[halfwidth and fullwidth forms]].
Line 23: Line 23:


The character data used by the module is located at [[Module:Convert character width/data]]. Fixes and updates to the data set are welcomed enthusiastically.
The character data used by the module is located at [[Module:Convert character width/data]]. Fixes and updates to the data set are welcomed enthusiastically.
<includeonly>
[[Category:Module data]]
</includeonly>
<noinclude>
[[Category:Module data documents]]
</noinclude>

Revision as of 03:23, 4 March 2025

This module converts a limited set of characters between halfwidth and fullwidth forms.

Usage

From half-width to full-width
{{#invoke:convert character width|full|text to convert}}
From full-width to half-width
{{#invoke:convert character width|half|text to convert}}

Examples

  • {{#invoke:convert character width|full|some text 0123456789}} → some text 0123456789
  • {{#invoke:convert character width|half|some text 0123456789}} → some text 0123456789

Support

Care should be taken when using this module with Hangul and katakana; as of September 2013 there is only limited support for katakana and no support for Hangul. Some of the more obscure punctuation characters are also not yet supported.

Data

The character data used by the module is located at Module:Convert character width/data. Fixes and updates to the data set are welcomed enthusiastically.