Difference between revisions of "Template:AORAN"
Jump to navigation
Jump to search
(For tidier doctypes) |
(Fix for [[ ]] links) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>'''Either "A" or "An" depending upon the first character of the following word.''' | + | <noinclude>[[Category:String manipulation templates]]'''Either "A" or "An" depending upon the first character of the following word.'''<br/> |
''Usage:''<br/> | ''Usage:''<br/> | ||
<nowiki>{{AORAN|TEXT}}</nowiki> | <nowiki>{{AORAN|TEXT}}</nowiki> | ||
− | </noinclude><includeonly>{{#if:{{#pos:aeiouAEIOU|{{#sub:{{{1}}}| | + | <!-- 2015-11-02 |
+ | Adjusted from straightforward code to work on [[INTERNAL LINKS]]. | ||
+ | Does not yet support anchortext. i.e. No [[LINKS|LIKE THIS]]. | ||
+ | --></noinclude><includeonly>{{#if:{{#pos:[|{{#sub:{{{1}}}|0|1}}}} | {{#if:{{#pos:aeiouAEIOU|{{#sub:{{{1}}}|2|1}}}} | An | A }} | {{#if:{{#pos:aeiouAEIOU|{{#sub:{{{1}}}|0|1}}}} | An | A }} }}</includeonly> |
Latest revision as of 02:16, 2 November 2015
Either "A" or "An" depending upon the first character of the following word.
Usage:
{{AORAN|TEXT}}