DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

codex:tpl_link

tpl_link

Builds a link, with the option to print it on the spot or return it as a string.

Usage

tpl_link($url, $name, $more = “”, $return = false)


Parameters

$url (STRING) The actual URL to link to.
Default: None

$name (STRING) Text to go inside the link.
Default: None

$more (STRING) Any additional attributes to include.
Default: “”

$return (BOOLEAN) Whether to return the link as a string (true) or print it out on the spot (false). Returning the link as a string is useful in plugin development, when you don't actually want to print out any content until all filters have been applied.
Default: false


Examples


Change Log


Source File


Resources


This page is incomplete, why not fill in a section?

codex/tpl_link.txt · Last modified: 2014-01-30 11:42 by Klap-in