Difference between revisions of "Template:AORAN"

From Wikispooks
Jump to navigation Jump to search
(Fix)
(Fix for [[ ]] links)
 
(2 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.''' A sub-template of [[template:DocProv]]<br/>
+
<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}}}|0|1}}}} | An | A}}fix</includeonly>
+
<!-- 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}}