Difference between revisions of "Template:Uncapitalize"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "String Templates" to "String manipulation templates")
(Remove #:substring)
 
Line 2: Line 2:
 
For the reverse operation, see [[template:Capitalize]].<br/>
 
For the reverse operation, see [[template:Capitalize]].<br/>
 
Currently, only unaccented English characters (A-Z) are supported.<br/>
 
Currently, only unaccented English characters (A-Z) are supported.<br/>
</noinclude><includeonly>{{#switch: {{#substring:{{{1}}}|0|1}}
+
</noinclude><includeonly>{{#switch: {{#sub:{{{1}}}|0|1}}
 
  | A = a
 
  | A = a
 
  | B = b
 
  | B = b
Line 29: Line 29:
 
  | Y = y
 
  | Y = y
 
  | Z = z
 
  | Z = z
  | #default = {{#substring:{{{1}}}|0|1}}
+
  | #default = {{#sub:{{{1}}}|0|1}}
}}{{#substring:{{{1}}}|1|}}</includeonly>
+
}}{{#sub:{{{1}}}|1|}}</includeonly>

Latest revision as of 06:02, 6 July 2019

This template uncapitalizes the first letter of its argument.
For the reverse operation, see template:Capitalize.
Currently, only unaccented English characters (A-Z) are supported.