Wiki changes
Re: Wiki changes
I like the look to the "Available since LÖVE" box, pretty smooth. However, bunching up functions with multiple meanings for the parameter list is something you'll have to be very careful about. In the case of love.keyboard.isDown, there's only one meaning to the function, so it's probably okay to bunch it there (or list the other ways to use it as one section), but with other functions that can take a wide variety of parameter, please keep it separated out.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Wiki changes
And doing it sometimes this way and sometimes that way is awfully inconsistent, let's not do that.Inny wrote:In the case of love.keyboard.isDown, there's only one meaning to the function, so it's probably okay to bunch it there (or list the other ways to use it as one section), but with other functions that can take a wide variety of parameter, please keep it separated out.
Help us help you: attach a .love.
Re: Wiki changes
Right, right. Consistency is important. What I was saying is that the function( manditory [, optional] ) style isn't necessarily a problem, since it's how functions are listed in the Lua 5.1 manual.Robin wrote:And doing it sometimes this way and sometimes that way is awfully inconsistent, let's not do that.Inny wrote:In the case of love.keyboard.isDown, there's only one meaning to the function, so it's probably okay to bunch it there (or list the other ways to use it as one section), but with other functions that can take a wide variety of parameter, please keep it separated out.
For instance, table.sort (table [, comp]).
On the otherhand, what is this i don't even table.concat (table [, sep [, i [, j]]]).
Seeing as how the Wiki is our primary documentation for love's API, it's more important to get this right than pretty, so use the best judgment that money can buy.
Re: Wiki changes
Lol I see your point (took me a bit to figure it out) but this is it.Inny wrote:what is this i don't even table.concat (table [, sep [, i [, j]]]).
Downside is that it isn't very easy to code, normally Libraries/Frameworks/luathingys make you put all the arguments in between the start and the argument you want to put in.
Last edited by qaisjp on Wed Oct 24, 2012 7:19 pm, edited 1 time in total.
Lua is not an acronym.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Wiki changes
I don't think you do.qaisjp wrote:Lol I see your point
Help us help you: attach a .love.
Re: Wiki changes
Code: Select all
table.concat (table [, sep [, i [, j]]])
Re: Wiki changes
I think something like:
function( WIKI [, ignorance] )
function( WIKI [, ignorance] )
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests