Difference between revisions of "Template talk:FunctionArgument"

Jump to navigation Jump to search
1,446 bytes added ,  06:20, 16 January 2011
moving and answering questions
imported>Cipscis
imported>Qazaaq
(moving and answering questions)
 
Line 14: Line 14:


[[User:Hugepinball]] has brought up the idea of a "deprecated" flag for this template in order to convey this information, and I think it would be a good idea, but I'm not sure how it should be included in the template.  Does anyone have any preferences about this?<br />-- [[User:Cipscis|Cipscis]] 01:30, 4 March 2010 (UTC)
[[User:Hugepinball]] has brought up the idea of a "deprecated" flag for this template in order to convey this information, and I think it would be a good idea, but I'm not sure how it should be included in the template.  Does anyone have any preferences about this?<br />-- [[User:Cipscis|Cipscis]] 01:30, 4 March 2010 (UTC)
==Type==
In the function template, do you put "ref" under "Type" regardless of whether it's a Form/Base or an actual Reference?
<nowiki>|arguments =
  {{FunctionArgument
  |Name = ActorRefID
  |Type = ref
  }}
 
|arguments =
  {{FunctionArgument
  |Name = ActorFormID/ActorBaseID
  |Type = ref? form? base?
  }}</nowiki>
<br />--[[User:Ez0n3|Ez0n3]] 15:56, 14 January 2011 (UTC)
:If I remember it correctly it's the type of the variable you can store the argument in. Reference IDs, and Base IDs can both be stored in ref variables.
:[[User:Qazaaq|Qazaaq]] 11:20, 16 January 2011 (UTC)
==Optional arguments==
When a value is optional, and I put the "|Optional = y" param, there doesn't seem to be any indication other than viewing the source that it's optional. Some entries not using the function template have the word (optional) after a value. When I set it up to use the template, I have been doing:
<nowiki>|arguments =
  {{FunctionArgument
  |Name = Count
  |Type = int
  |Value = 1 (optional)
  }}</nowiki>
That doesn't seem right, is that, or is there, a "proper" way?
<br />--[[User:Ez0n3|Ez0n3]] 15:56, 14 January 2011 (UTC)
:All optional arguments are set in italics. Apparently this isn't as obvious as we thought it would be, as you didn't notice this. Any suggestions are welcome. Bold seems wrong, but maybe we could put optional arguments between < and >.
:--[[User:Qazaaq|Qazaaq]] 11:20, 16 January 2011 (UTC)
Anonymous user

Navigation menu