Difference between revisions of "Template talk:Function"

1,035 bytes added ,  19:22, 30 January 2009
imported>Haama
(→‎CategoryList: Clever is always good)
imported>SnakeChomp
Line 106: Line 106:
::I've removed the See Also from the template.
::I've removed the See Also from the template.
::--[[User:Qazaaq|Qazaaq]] 10:55, 16 January 2009 (UTC)
::--[[User:Qazaaq|Qazaaq]] 10:55, 16 January 2009 (UTC)
===Arguments===
I did some playing around today with a [[Template:FunctionArgument|Function Argument template]] to specify arguments instead of a bundle of template parameters and added an ''arguments'' parameter to the function template. It spits out its value verbatim, so you can use regular wiki syntax to markup function arguments if necessary. The main reason I experimented with this is that it is easier to maintain the sub template than it is to maintain the 40 arg0-arg9, optarg0-optarg9, arg0type-arg9type and optarg0type-optarg9type parameters. The other important thing about the function template is it will let you specify a set of valid values that you can pass to the argument, which is useful when function arguments take a specific set of values (as [[PipBoyRadio]] does, which also has a real world example of using the function argument template).
What do you folks think? I'm not married to the style I ended up with, but that's easy to tweak.
<br>--[[User:SnakeChomp|SnakeChomp]] 00:22, 31 January 2009 (UTC)
Anonymous user