Page 1 of 2
[manual] tag?
Posted: Sat Apr 16, 2011 10:27 am
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>
Re: [manual] tag?
Posted: Sat Apr 16, 2011 10:41 am
by thelinx
Added.
Code: Select all
[manual]print[/manual]
[manual=print]this function outputs text[/manual]
print
this function outputs text
Re: [manual] tag?
Posted: Sat Apr 16, 2011 12:03 pm
by Taehl
It's a good idea, especially for helping people who haven't used Lua before.
Re: [manual] tag?
Posted: Sat Apr 16, 2011 7:41 pm
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.
Re: [manual] tag?
Posted: Sat Apr 16, 2011 8:00 pm
by Lafolie
Oooh wow that is useful.
Re: [manual] tag?
Posted: Sat Apr 16, 2011 8:05 pm
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.
Re: [manual] tag?
Posted: Sat Apr 16, 2011 11:21 pm
by Robin
And:
Game Distribution works too.
And you can do
this shit as well.
Body:getX still doesn't work, though.
Re: [manual] tag?
Posted: Sun Apr 17, 2011 12:27 am
by BlackBulletIV
Awesomeness! (apart from the Class:method thing though)
Re: [manual] tag?
Posted: Sun Apr 17, 2011 11:45 am
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
Re: [manual] tag?
Posted: Sun Apr 17, 2011 12:40 pm
by Robin
Hurray!
<3 thelinx