Hi,
Maybe someone knows how to create links using template? I'm trying to make a template like this:
[{{{link}}} {{{title}}}]
So the external link and let user specify both link and title while using template. It may seem to be more diff than just pressing a button, but it may find a good use in some cases.
I thought about using absolute html extensions http://meta.wikimedia.org/wiki/User:Joncutrer/Extensions/absHTML and making template:
<abshtml><a href="{{{link}}}" target="_blank">{{{title}}}</a></abshtml>
This way it should be also possible to link to network drives. However it's not working. It makes a link to:
http://wiki/%7B%7B%7Blink%7D%7D%7D ;( or maybe there is other way to achieve such results?
thx in advance. Aretai
Hi Aretai,
Have a look at some of the predefined templates provided by mediawiki, referred to as variables.
http://meta.wikimedia.org/wiki/Help:Variable
Hope this helps.
Thanks & Regards, Mohit Gupta On Jan 26, 2007, at 6:51 AM, aretai aretai wrote:
Hi,
Maybe someone knows how to create links using template? I'm trying to make a template like this:
[{{{link}}} {{{title}}}]
So the external link and let user specify both link and title while using template. It may seem to be more diff than just pressing a button, but it may find a good use in some cases.
I thought about using absolute html extensions http://meta.wikimedia.org/wiki/User:Joncutrer/Extensions/absHTML and making template:
<abshtml><a href="{{{link}}}" target="_blank">{{{title}}}</a></ abshtml>
This way it should be also possible to link to network drives. However it's not working. It makes a link to:
http://wiki/%7B%7B%7Blink%7D%7D%7D ;( or maybe there is other way to achieve such results?
thx in advance. Aretai _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 27/01/07, Mohit Gupta mohitg@effigent.com wrote:
Have a look at some of the predefined templates provided by mediawiki, referred to as variables.
That is because they *are* variables, they *are not* templates. They do not record links in the template links tables and are not editable.
Rob Church
thx for help. I've just written my own extension and it's even easier to use it.
Regards, Aretai
On 1/27/07, Rob Church robchur@gmail.com wrote:
On 27/01/07, Mohit Gupta mohitg@effigent.com wrote:
Have a look at some of the predefined templates provided by mediawiki, referred to as variables.
That is because they *are* variables, they *are not* templates. They do not record links in the template links tables and are not editable.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org