Difference between revisions of "Template:Function"

Jump to navigation Jump to search
431 bytes added ,  23:01, 29 July 2009
Beefed up the given example to make use of more optional parameters. The original example was confusing when compared to the sandbox example and didn't provide a full 'copy and paste'-able template.
imported>Qazaaq
(adding a syntax help link)
imported>Omzy
(Beefed up the given example to make use of more optional parameters. The original example was confusing when compared to the sandbox example and didn't provide a full 'copy and paste'-able template.)
Line 26: Line 26:


<pre>{{Function
<pre>{{Function
|name = Test
|name = Test
|origin = GECK1
|origin = GECK1
|alias = tst
|CSWikiPage = Test
|summary = Does stuff
|alias = tst
|arguments = {{FunctionArgument
|returnType = void
    |Name = Count
|referenceType = [Actor, Activator]
    |Type = int
|arguments =  
   }}{{FunctionArgument
   {{FunctionArgument
    |Name = Target
  |Name = Count
    |Type = ref
  |Type = int
    |Optional = y
  |Value = 1, 2, 3
   }}
   }}
  {{FunctionArgument
  |Name = Target
  |Type = ref
  |Optional = y
  }}
|summary = Used to test actor and activator references to assure that they are testable.
|example = Player.Test 3
ShackDoor.Test 1 Molerat01
}}</pre>
}}</pre>


Line 43: Line 51:


{{Function
{{Function
|name = Test
|name = Test
|origin = GECK1
|origin = GECK1
|alias = tst
|CSWikiPage = Test
|summary = Does stuff
|alias = tst
|returnType = void
|returnType = void
|arguments = {{FunctionArgument
|referenceType = [Actor, Activator]
    |Name = Count
|arguments =  
    |Type = int
  {{FunctionArgument
   }}{{FunctionArgument
  |Name = Count
    |Name = Target
  |Type = int
    |Type = ref
  |Value = 1, 2, 3
    |Optional = y
   }}
  {{FunctionArgument
  |Name = Target
  |Type = ref
  |Optional = y
   }}
   }}
|summary = Used to test actor and activator references to assure that they are testable.
|example = Player.Test 3
ShackDoor.Test 1 Molerat01
}}
}}


Anonymous user

Navigation menu