Difference between revisions of "Template:Article"

From Abulafia Random Generator Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#ifeq:{{lc:{{#sub:{{{1|}}}|0|2}}}}|un|
(The substring is {{lc:{{#sub:{{{1|}}}|0|1}}}})
 
{{#ifeq:{{lc:{{#sub:{{{1|}}}|0|2}}}}|un|
 
 
   a {{{1}}}|
 
   a {{{1}}}|
 
   {{#ifeq:{{lc:{{#sub:{{{1|}}}|0|1}}}}|a|
 
   {{#ifeq:{{lc:{{#sub:{{{1|}}}|0|1}}}}|a|
Line 20: Line 18:
 
   }}
 
   }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
This function adds {{Article|Indefinite Article}} to the beginning of the phrase sent to it.</noinclude>
+
This function adds {{Article|Indefinite Article}} to the beginning of the phrase sent to it.
 +
== Usage ==
 +
<tt><nowiki>{{Article|aardvark}}</nowiki></tt> in the text of an article yields "{{Article|aardvark}}" in the render of the page. You can use this template in the flow of a SGTable output (which is its most useful state, when you don't know what the text will be coming out of that generator), such as:
 +
 
 +
<sgdisplay iterations="10">I went out walking and ran across '''{{Article|[Animal.fantasyLandAnimal]}}'''.</sgdisplay></noinclude>

Revision as of 09:12, 26 August 2008

This function adds a Indefinite Article to the beginning of the phrase sent to it.

Usage

{{Article|aardvark}} in the text of an article yields "a aardvark" in the render of the page. You can use this template in the flow of a SGTable output (which is its most useful state, when you don't know what the text will be coming out of that generator), such as:

<sgdisplay iterations="10">I went out walking and ran across a [Animal.fantasyLandAnimal].</sgdisplay>