[manual] tag?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

[manual] tag?

Post by BlackBulletIV »

thelinx added a [ wiki ] tag a little while ago, which I've found to be really helpful. I was wondering whether we could have a [manual] (or something like that) tag which would link to the function specified in the Lua 5.1 manual. In case you haven't figured it out already, the format of the link is this:

Code: Select all

http://www.lua.org/manual/5.1/manual.html#pdf-<FUNCTION_NAME>
That is, unless you're linking to the C API, then it would be:

Code: Select all

http://www.lua.org/manual/5.1/manual.html#<FUNCTION_NAME>
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: [manual] tag?

Post by thelinx »

Added.

Code: Select all

[manual]print[/manual]
[manual=print]this function outputs text[/manual]
print
this function outputs text
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: [manual] tag?

Post by Taehl »

It's a good idea, especially for helping people who haven't used Lua before.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: [manual] tag?

Post by BlackBulletIV »

Thanks a lot thelinx!
Taehl wrote:It's a good idea, especially for helping people who haven't used Lua before.
It for this reason that I thought of it, constantly grabbing links from the manual can get tiring.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: [manual] tag?

Post by Lafolie »

Oooh wow that is useful.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: [manual] tag?

Post by BlackBulletIV »

And for everyone who doesn't know, you can use the wiki tag like this:

Code: Select all

[wiki]love.filesystem.read[/wiki]
[wiki]Game_Distribution[/wiki]
love.filesystem.read
Game_Distribution

The two of them together are a great pair.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: [manual] tag?

Post by Robin »

And: Game Distribution works too.

And you can do this shit as well.

Body:getX still doesn't work, though. :(
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: [manual] tag?

Post by BlackBulletIV »

Awesomeness! (apart from the Class:method thing though)
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: [manual] tag?

Post by thelinx »

Okay, I finally fixed that annoying colon thing. I knew the issue all along but I couldn't bother fixing it.
The problem is that phpBB's {INTTEXT} thing for BBCode matching doesn't match colons or parentheses. I ventured deep into the PHP source code (acp/includes/acp_bbcode.php) and added those into the INTTEXT match thing.

tl;dr you can now link to articles like (File):open
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: [manual] tag?

Post by Robin »

Hurray!

<3 thelinx
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests