Difference between revisions of "Template:Uncapitalize"

From Wikispooks
Jump to navigation Jump to search
(fix desc)
(Remove #:substring)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>[[category:String Templates‎]]'''This template uncapitalizes the first letter of its argument'''.<br/>
+
<noinclude>[[category:String manipulation templates‎]]'''This template uncapitalizes the first letter of its argument'''.<br/>
 
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.