Difference between revisions of "Template:AORAN2"

From Wikispooks
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<nowiki>{{AORAN|TEXT}}</nowiki>
 
<nowiki>{{AORAN|TEXT}}</nowiki>
 
<!-- Last modified:
 
<!-- Last modified:
2015-11-02
 
Adjusted from straightforward code to work on [[INTERNAL LINKS]].
 
 
2016-07-17
 
2016-07-17
Adjusted to support anchortext. i.e. [[anchor-texted links|LIKE THIS]].
+
Adjusted to support anchortext. i.e. [[anchor-texted links|LIKE THIS]].
--></noinclude><includeonly> NEW: {{#pos:k|{{{1}}}}}} OLD: {{#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>
+
This is a wrapper round two alternate calls to the older template, now moved to [[Template:AORAN/Naive]].
 +
--></noinclude><includeonly> {{#sub:{{{1|}}}|{{#expr: 1+0{{#rpos:{{{1|}}}|{{!}}}}}}|3}} - {{#if:{{#rpos:{{{1|}}}|{{!}}}}|{{AORAN/Naive|{{#sub:{{{1|}}}|{{#expr: 1+0{{#rpos:{{{1|}}}|{{!}}}}}}}}}}}</includeonly>

Latest revision as of 11:23, 16 June 2016

Either "A" or "An" depending upon the first character of the following word.
Usage:
{{AORAN|TEXT}}