<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InterTrac</id>
	<title>InterTrac - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InterTrac"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InterTrac&amp;action=history"/>
	<updated>2026-06-06T12:23:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=InterTrac&amp;diff=154&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == InterTrac Links  ==  Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup, since version 0.10.  === Definitions ===  An ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InterTrac&amp;diff=154&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == InterTrac Links  ==  Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup, since version 0.10.  === Definitions ===  An ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== InterTrac Links  ==&lt;br /&gt;
&lt;br /&gt;
Trac supports a convenient way to refer to resources of other Trac servers, from within the Wiki markup, since version 0.10.&lt;br /&gt;
&lt;br /&gt;
=== Definitions ===&lt;br /&gt;
&lt;br /&gt;
An InterTrac link can be seen as a scoped TracLinks.&lt;br /&gt;
It is used for referring to a Trac resource &lt;br /&gt;
(Wiki page, changeset, ticket, ...) located in another&lt;br /&gt;
Trac environment.&lt;br /&gt;
&lt;br /&gt;
=== List of Active InterTrac Prefixes ===&lt;br /&gt;
&lt;br /&gt;
[[InterTrac]]&lt;br /&gt;
&lt;br /&gt;
=== Link Syntax ===&lt;br /&gt;
&lt;br /&gt;
Simply use the name of the other Trac environment as a prefix, &lt;br /&gt;
followed by a colon, ending with the resource located in the other environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target_environment&amp;gt;:&amp;lt;TracLinks&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The other resource is specified using a regular TracLinks, of any flavor.&lt;br /&gt;
&lt;br /&gt;
That target environment name is either the real name of the &lt;br /&gt;
environment, or an alias for it. &lt;br /&gt;
The aliases are defined in &amp;lt;tt&amp;gt;trac.ini&amp;lt;/tt&amp;gt; (see below).&lt;br /&gt;
The prefix is case insensitive.&lt;br /&gt;
&lt;br /&gt;
When a TracLink is enclosed in brackets, the alias is expanded.  That is, &amp;lt;tt&amp;gt;[th:ticket:1]&amp;lt;/tt&amp;gt; is displayed as &amp;lt;tt&amp;gt;trachacks:ticket:1&amp;lt;/tt&amp;gt;, since &amp;lt;tt&amp;gt;th&amp;lt;/tt&amp;gt; is an alias for &amp;lt;tt&amp;gt;trachacks&amp;lt;/tt&amp;gt;.  If the TracLink is not enclosed in brackets, then the alias is displayed as it is typed.&lt;br /&gt;
&lt;br /&gt;
For convenience, there&amp;#039;s also some alternative short-hand form, &lt;br /&gt;
where one can use an alias as an immediate prefix &lt;br /&gt;
for the identifier of a ticket, changeset or report:&lt;br /&gt;
(e.g. &amp;lt;tt&amp;gt;#T234&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[T1508]&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[trac 1508]&amp;lt;/tt&amp;gt;, ...)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
It is necessary to setup a configuration for the InterTrac facility.&lt;br /&gt;
This configuration has to be done in the TracIni file, &amp;lt;tt&amp;gt;[intertrac]&amp;lt;/tt&amp;gt; section.&lt;br /&gt;
&lt;br /&gt;
Example configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
[intertrac]&lt;br /&gt;
# -- Example of setting up an alias:&lt;br /&gt;
t = trac&lt;br /&gt;
&lt;br /&gt;
# -- Link to an external Trac:&lt;br /&gt;
trac.title = Edgewall&amp;#039;s Trac for Trac&lt;br /&gt;
trac.url = http://trac.edgewall.org&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;.url&amp;lt;/tt&amp;gt; is mandatory and is used for locating the other Trac.&lt;br /&gt;
This can be a relative URL in case that Trac environment is located &lt;br /&gt;
on the same server.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;.title&amp;lt;/tt&amp;gt; information will be used for providing an useful tooltip&lt;br /&gt;
when moving the cursor over an InterTrac links.&lt;br /&gt;
&lt;br /&gt;
Finally, the &amp;lt;tt&amp;gt;.compat&amp;lt;/tt&amp;gt; option can be used to activate or disable&lt;br /&gt;
a &amp;#039;&amp;#039;compatibility&amp;#039;&amp;#039; mode:&lt;br /&gt;
*If the targeted Trac is running a version below [trac:milestone:0.10 0.10] &lt;br /&gt;
   ([trac:r3526 r3526] to be precise), then it doesn&amp;#039;t know how to dispatch an InterTrac &lt;br /&gt;
   link, and it&amp;#039;s up to the local Trac to prepare the correct link. &lt;br /&gt;
   Not all links will work that way, but the most common do. &lt;br /&gt;
   This is called the compatibility mode, and is &amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt; by default. &lt;br /&gt;
*If you know that the remote Trac knows how to dispatch InterTrac links, &lt;br /&gt;
   you can explicitly disable this compatibility mode and then &amp;#039;&amp;#039;any&amp;#039;&amp;#039; &lt;br /&gt;
   TracLinks can become an InterTrac link.&lt;br /&gt;
&lt;br /&gt;
Now, given the above configuration, one could create the following links:&lt;br /&gt;
*to this InterTrac page:&lt;br /&gt;
**&amp;lt;tt&amp;gt;trac:wiki:InterTrac&amp;lt;/tt&amp;gt; trac:wiki:InterTrac&lt;br /&gt;
**&amp;lt;tt&amp;gt;t:wiki:InterTrac&amp;lt;/tt&amp;gt; t:wiki:InterTrac&lt;br /&gt;
**Keys are case insensitive: &amp;lt;tt&amp;gt;T:wiki:InterTrac&amp;lt;/tt&amp;gt; T:wiki:InterTrac&lt;br /&gt;
*to the ticket #234:&lt;br /&gt;
**&amp;lt;tt&amp;gt;trac:ticket:234&amp;lt;/tt&amp;gt; trac:ticket:234&lt;br /&gt;
**&amp;lt;tt&amp;gt;trac:#234&amp;lt;/tt&amp;gt; trac:#234 &lt;br /&gt;
**&amp;lt;tt&amp;gt;#T234&amp;lt;/tt&amp;gt; #T234&lt;br /&gt;
*to the changeset [1912]:&lt;br /&gt;
**&amp;lt;tt&amp;gt;trac:changeset:1912&amp;lt;/tt&amp;gt; trac:changeset:1912&lt;br /&gt;
**&amp;lt;tt&amp;gt;[T1912]&amp;lt;/tt&amp;gt; [T1912]&lt;br /&gt;
*to the log range [3300:3330]: &amp;#039;&amp;#039;&amp;#039;(Note: the following ones need &amp;lt;tt&amp;gt;trac.compat=false&amp;lt;/tt&amp;gt;)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**&amp;lt;tt&amp;gt;trac:log:@3300:3330&amp;lt;/tt&amp;gt; trac:log:@3300:3330  &lt;br /&gt;
**&amp;lt;tt&amp;gt;[trac 3300:3330]&amp;lt;/tt&amp;gt; [trac 3300:3330] &lt;br /&gt;
*finally, to link to the start page of a remote trac, simply use its prefix followed by &amp;#039;:&amp;#039;, inside an explicit link. Example: &amp;lt;tt&amp;gt;[th: Trac Hacks]&amp;lt;/tt&amp;gt; (&amp;#039;&amp;#039;since 0.11; note that the &amp;#039;&amp;#039;remote&amp;#039;&amp;#039; Trac has to run 0.11 for this to work&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
The generic form &amp;lt;tt&amp;gt;intertrac_prefix:module:id&amp;lt;/tt&amp;gt; is translated&lt;br /&gt;
to the corresponding URL &amp;lt;tt&amp;gt;&amp;lt;remote&amp;gt;/module/id&amp;lt;/tt&amp;gt;, shorthand links&lt;br /&gt;
are specific to some modules (e.g. !#T234 is processed by the&lt;br /&gt;
ticket module) and for the rest (&amp;lt;tt&amp;gt;intertrac_prefix:something&amp;lt;/tt&amp;gt;),&lt;br /&gt;
we rely on the TracSearch#quickjump facility of the remote Trac.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
See also: TracLinks, InterWiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>