Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Ilmari Karonen
Platonides wrote: > You don't need to specify all parameters: > {{man|bash}} Open bash(1) > {{man|passwd|section=5}} Documentation about /etc/passwd > {{man|read|section=2|os=bsd}} Open the man page of the syscall read(2) > {{man|apt-get|section=2|os=debian|version=5}} Use the man page from Debian

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Dmitriy Sintsov
* Chad [Mon, 19 Apr 2010 13:10:46 +0200]: > There's no hook or other way to extend the current magic links. The only > way to add it would be by changing Parser::doMagicLinks(). > Perhaps something like this (an extension, core is unmodified): $wgParserConf['class'] = 'MyParser'; class MyParser

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Platonides
You don't need to specify all parameters: {{man|bash}} Open bash(1) {{man|passwd|section=5}} Documentation about /etc/passwd {{man|read|section=2|os=bsd}} Open the man page of the syscall read(2) {{man|apt-get|section=2|os=debian|version=5}} Use the man page from Debian 5 (I know, I know, technic

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Richard Hartmann
On Mon, Apr 19, 2010 at 12:13, masti wrote: > then create a template {{man|command}} for example Sounds like a good solution, to me. Though I would go for {{man|N|foo}} as some manpages exist in several namespaces. Though the next problem you will encounter is that not all manpages are the s

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Chad
On Mon, Apr 19, 2010 at 11:35 AM, Strainu wrote: > Hi, > > Is there a way to create a link to a unix command man page by writing > "man command" (like it happens with RFCs)? I searched for an extension > to do this, but I've been unlucky :) > There's no hook or other way to extend the current mag

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Tei
On 19 April 2010 12:13, masti wrote: > On 04/19/2010 11:52 AM, Strainu wrote: >> On Mon, Apr 19, 2010 at 12:46 PM, masti  wrote: >>> why not use http://linuxmanpages.com/ as external link? >> >> The site is unimportant, what is important is to have the link >> automatically created, hence shorteni

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread masti
On 04/19/2010 11:52 AM, Strainu wrote: > On Mon, Apr 19, 2010 at 12:46 PM, masti wrote: >> why not use http://linuxmanpages.com/ as external link? > > The site is unimportant, what is important is to have the link > automatically created, hence shortening the wikitext. then create a template {{ma

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Strainu
On Mon, Apr 19, 2010 at 12:46 PM, masti wrote: > why not use http://linuxmanpages.com/ as external link? The site is unimportant, what is important is to have the link automatically created, hence shortening the wikitext. On Mon, Apr 19, 2010 at 12:44 PM, Nikola Smolenski wrote: > This should b

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread masti
On 04/19/2010 11:35 AM, Strainu wrote: > Hi, > > Is there a way to create a link to a unix command man page by writing > "man command" (like it happens with RFCs)? I searched for an extension > to do this, but I've been unlucky :) > > If nothing has been implemented, do you think it would be a good

Re: [Wikitech-l] Automatic links to man pages

2010-04-19 Thread Nikola Smolenski
Strainu wrote: > Is there a way to create a link to a unix command man page by writing > "man command" (like it happens with RFCs)? I searched for an extension > to do this, but I've been unlucky :) > > If nothing has been implemented, do you think it would be a good idea > to have this in Wikiped

[Wikitech-l] Automatic links to man pages

2010-04-19 Thread Strainu
Hi, Is there a way to create a link to a unix command man page by writing "man command" (like it happens with RFCs)? I searched for an extension to do this, but I've been unlucky :) If nothing has been implemented, do you think it would be a good idea to have this in Wikipedia? I personally think