Difference between revisions of "Template:A"

From Feed The Beast Wiki
Jump to: navigation, search
m (Noticed someone's carelessness)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#switch:{{lc:{{#sub:{{{1}}}|0|1}}}}|<!--
 
{{#switch:{{lc:{{#sub:{{{1}}}|0|1}}}}|<!--
-->| a = an<!--
+
-->| a = an <!--
-->| e = an<!--
+
-->| e = an <!--
-->| i = an<!--
+
-->| i = an <!--
-->| o = an<!--
+
-->| o = an <!--
-->| y = an<!--
+
-->| u = an <!--
-->| #default = a<!--
+
-->| #default = a <!--
-->}}<noinclude>[[Category:Formatting templates]]</noinclude>
+
-->}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 20:22, 18 January 2015

a

Template-info.png Documentation

This templates display a or an depending on the input.

Parameters

1: Input used to determine whether to output a or an.

Examples

{{A|apple}} apple, {{A|banana}} banana

produces:
an apple, a banana

You can use parser functions to turn the first character to uppercase, for instructions on how to do that, see MW:Extention:StringFunctions.