Difference between revisions of "Template:Full-width to Half-width"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Created page with "{{#vardefine:string| {{{1|}}} }}{{#vardefine:string|{{ #replace:{{#var:string}}|A|A}}}}{{#vardefine:string|{{ #replace:{{#var:string}}|B|B}}}}{{#vardefine:string|{{ #repla...")
 
Line 1: Line 1:
{{#vardefine:string| {{{1|}}} }}{{#vardefine:string|{{
<includeonly>{{#vardefine:string| {{{1|}}} }}{{#vardefine:string|{{
#replace:{{#var:string}}|A|A}}}}{{#vardefine:string|{{
#replace:{{#var:string}}|A|A}}}}{{#vardefine:string|{{
#replace:{{#var:string}}|B|B}}}}{{#vardefine:string|{{
#replace:{{#var:string}}|B|B}}}}{{#vardefine:string|{{
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}}
#replace:{{#var:string}}|Z|Z}}}}{{#var:string}}</includeonly><noinclude>
== 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 ==
<pre>{{Full-width to Half-width
|<string>
}}</pre>
 
 
== Examples ==
<pre>{{Full-width to Half-width|Q}}</pre>
{{Full-width to Half-width|Q}} Q
 
[[Category:Formatting templates]]
</noinclude>

Revision as of 16:47, 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