Difference between revisions of "Template:Full-width to Half-width"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
#replace:{{#var:string}}|X|X}}}}{{#vardefine:string|{{ | #replace:{{#var:string}}|X|X}}}}{{#vardefine:string|{{ | ||
#replace:{{#var:string}}|Y|Y}}}}{{#vardefine:string|{{ | #replace:{{#var:string}}|Y|Y}}}}{{#vardefine:string|{{ | ||
#replace:{{#var:string}}|Z|Z}}}}{{#var:string}}</includeonly><noinclude> | #replace:{{#var:string}}|Z|Z}}}}{{#vardefine:string|{{#replace:{{#var:string}}|0|0}}}}{{ | ||
#vardefine:string|{{#replace:{{#var:string}}|1|1}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|2|2}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|3|3}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|4|4}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|5|5}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|6|6}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|7|7}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|8|8}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|9|9}}}}{{ | |||
#vardefine:string|{{#replace:{{#var:string}}|+|+}}}}{{#var:string}}</includeonly><noinclude> | |||
== Description == | == Description == | ||
Latest revision as of 18:40, 27 December 2018
Description
This templates converts full-width ASCII characters into normal ASCII characters. MediaWiki's switch statements considers Q != Q, while almost everything else in the browser does.
Usage
{{Full-width to Half-width |<string> }}
Examples
{{Full-width to Half-width|Q}}
Q Q