Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-12 16:48:08

gdtroiano
Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

gdt_wikipedia_link

A simple plugin that allows you to create a link to the enclosed string’s Wikipedia entry. Hope it helps somebody…

Ex. 1 <code>&lt;txp:gdt_wikipedia_link &gt;Thomas Jefferson&lt;/txp:gdt_wikipedia_link&gt;</code> <code>creates: &lt;a href=“http://en.wikipedia.org/wiki/Thomas_Jefferson”&gt;Thomas Jefferson&lt;/a&gt;</code>

Ex. 2 <code>&lt;txp:gdt_wikipedia_link lang=“de” class=“classname”&gt;Thomas Jefferson&lt;/txp:gdt_wikipedia_link&gt;</code>
<code>creates: &lt;a href=“http://de.wikipedia.org/wiki/Thomas_Jefferson” class=“classname”&gt;Thomas Jefferson&lt;/a&gt;</code>

Download

Offline

#2 2006-05-12 17:29:06

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: gdt_wikipedia_link

Didn’t test it, but i like this idea.

Is there a option to refere other wikis? textpattern.net for example?

Offline

#3 2006-05-12 19:59:41

gdtroiano
Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: gdt_wikipedia_link

Bastian wrote:

Is there a option to refere other wikis? textpattern.net for example?

Not at present. The url construction is different, so I would have do a little more to get that going. And maybe a section in the advanced preferences to keep the tag itself short.

Offline

Board footer

Powered by FluxBB