Version 2 (modified by anonymous, 11 years ago) (diff)


TracLinks in reStructuredText

This document is for testing the ..trac:: directive. The page is written like




This is a list of example uses of the trac directive, providing use of TracLinks in WikiRestructuredText.


trac role
Syntax is \`link\`\:trac: or :trac:\`link\`, and could be put anywhere in the text. 'link' has the same format as explain for the ``.. trac::`` directive below.

``In the middle of my text `WikiFormatting`:trac: see!!!!`` 
   In the middle of my text `WikiFormatting`:trac: see!!!!


``In the middle of my text :trac:`WikiFormatting` see!!!!`` 
   In the middle of my text :trac:`WikiFormatting` see!!!!

``.. trac:: WikiFormatting``
        .. trac:: WikiFormatting

``.. trac:: wiki:WikiFormatting``
       .. trac:: wiki:WikiFormatting

``.. trac:: wiki:WikiFormatting WikiFormatting``
        .. trac:: wiki:WikiFormatting WikiFormatting

``.. trac:: wiki:WikiFormatting LinkText``
        .. trac:: wiki:WikiFormatting LinkText


``.. trac:: #1``
        .. trac:: #1
``.. trac:: #1 ticket one``
        .. trac:: #1 ticket one
``.. trac:: ticket:1``
        .. trac:: ticket:1
``.. trac:: ticket:1 ticket one``
        .. trac:: ticket:1 ticket one


``.. trac:: {1}``
        .. trac:: {1}
``.. trac:: {1} report one``
        .. trac:: {1} report one
``.. trac:: report:1``
        .. trac:: report:1
``.. trac:: report:1 report one``
        .. trac:: report:1 report one


``.. trac:: [42]``
        .. trac:: [42]
``.. trac:: [42] changeset 42``
        .. trac:: [42] changeset 42
``.. trac:: changeset:42``
        .. trac:: changeset:42
``.. trac:: changeset:42 changeset 42``
        .. trac:: changeset:42 changeset 42
``.. trac:: foo``
        .. trac:: foo


``.. trac:: browser:/trunk/trac``
        .. trac:: browser:/trunk/trac

The leading ``/`` can be omitted...

``.. trac:: repos:trunk/trac trunk/trac``
        .. trac:: repos:trunk/trac trunk/trac
``.. trac:: source:trunk/trac Trac source code``
        .. trac:: source:trunk/trac Trac source code

``.. trac:: browser:trunk/README``
        .. trac:: browser:trunk/README
``.. trac:: repos:trunk/README trunk/README``
        .. trac:: repos:trunk/README trunk/README
``.. trac:: source:trunk/README README in trunk``
        .. trac:: source:trunk/README README in trunk

Note that if ``hoo`` is a file, the link targets its revision log. In order to see the file's content, you need to specify the revision explicitely, like here:

``.. trac:: browser:/trunk/README#latest latest of trunk/README``
        .. trac:: browser:/trunk/README#latest latest of trunk/README
``.. trac:: repos:trunk/README#42 trunk/README in rev 42``
        .. trac:: repos:trunk/README#42 trunk/README in rev 42

See also: WikiRestructuredTextLinks, TracLinks

See also: Bell biv devoe, Carnitine, Digestive, Florence, Hard, Joshua, Office supply, Pierre, Sears, Vigamox, Butt, Celexa, Challenger, Charlie, Lamotrigine, Logan, Monroe, Pasta, Rhinocort, Sweden, Tanner, Akg, Dell, Dls, Dream vision, Htc, Koss, Pfaff, Rainford, Shinco, Viewsonic, Vifa, Hydrops, Kangaroo, Kawasaki, Lymphatic, Mason, Mixed, Molluscum, Overgrowth, Phoenix, Shelby, Uriel, Boy, Brody, Bullet for my valentine, Cleocin, Dexedrine, Esophageal, Logic, Moon, Tazorac, Vitiligo, Vostok, Aden, Americium, Burning, Dalton, Enol, Kaplan, Merkle, Mya, Prometrium, Scopolamine, Spherocytosis, Aiwa, Akg, Bernina, Bose, Dyne, Msi, Stax, Wadia, Zetta, Aspergillosis, Dan, Flurazepam, Gabrielle, Loestrin, Lotrimin, Prion, Sclerosing, Sparse, Urea, Wilkie, Ariel, Asbestosis, Cetane, Father day gift, Givenchy, Liddle, Lopressor, Lotrimin, Mody, Schmitt, Tupperware, Cheetah, Giga, Koss, Luxman, Mustek, Nec, Necchi, Nrg, Spark, Viking, Binatone, Lightning audio, Olympus, Oregon scientific, Oris, Pioneer, Sony, Teac, Vestel, Viking, Vincent, Aiptek, Ariston, Candy, Challenger, Dialog, Direc, Etymotic, Genesis, Oris, Spl, Toyota.