trac.wiki.interwiki

class trac.wiki.interwiki.InterWikiMap

Bases: trac.core.Component

InterWiki map manager.

interwiki_map

Map from upper-cased namespaces to (namespace, prefix, title) values.

interwiki_section

Every option in the [interwiki] section defines one InterWiki prefix. The option name defines the prefix. The option value defines the URL, optionally followed by a description separated from the URL by whitespace. Parametric URLs are supported as well.

‘’‘Example:’‘’ {{{ [interwiki] MeatBall = http://www.usemod.com/cgi-bin/mb.pl? PEP = http://www.python.org/peps/pep-$1.html Python Enhancement Proposal $1 tsvn = tsvn: Interact with TortoiseSvn }}}

url(ns, target)

Return (url, title) for the given InterWiki ns.

Expand the colon-separated target arguments.