Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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><txp:gdt_wikipedia_link >Thomas Jefferson</txp:gdt_wikipedia_link></code> <code>creates: <a href=“http://en.wikipedia.org/wiki/Thomas_Jefferson”>Thomas Jefferson</a></code>
Ex. 2
<code><txp:gdt_wikipedia_link lang=“de” class=“classname”>Thomas Jefferson</txp:gdt_wikipedia_link></code>
<code>creates: <a href=“http://de.wikipedia.org/wiki/Thomas_Jefferson” class=“classname”>Thomas Jefferson</a></code>
Offline
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
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
Pages: 1