Difference between revisions of "Template:A"

From Feed The Beast Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#switch:{{lc:{{#sub:{{{1}}}|0|1}}}}|<!--
+
<noinclude>{{Project:Template_documentation_project/Status|codedone|Jinbobo}}{{Project:Template_documentation_project/Status|doc|Jinbobo}}</noinclude>{{#switch:{{lc:{{#sub:{{{1}}}|0|1}}}}|<!--
-->| a = an<!--
+
-->| a = an <!--
-->| e = an<!--
+
-->| e = an <!--
-->| i = an<!--
+
-->| i = an <!--
-->| o = an<!--
+
-->| o = an <!--
-->| y = an<!--
+
-->| y = an <!--
-->| #default = a<!--
+
-->| #default = a <!--
-->}}<noinclude>[[Category:Metatemplates]]</noinclude>
+
-->}}<noinclude>{{Documentation}}</noinclude>

Revision as of 12:51, 24 May 2013

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.