Difference between revisions of "Template:A"

From Feed The Beast Wiki
Jump to: navigation, search
im>JinboBot
m (Bot: Template documentation project cleanup, removed: {{Project:Template_documentation_project/Status|codedone|Jinbobo}}, {{Project:Template_documentation_project/Status|docdone|Jinbobo}})
m (Noticed someone's carelessness)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude></noinclude>{{#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>{{Documentation}}</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.