Template:Legifrance/CTRANSP/doc

Generate the path portion of the Legifrance url after the domain, to an article or section in the transportation code.

Parameters
There are two positional parameters:


 * 1, the id of the loi (L1000-2), décret (D1112-1), regulation (R1112-11) and so on. Required.
 * Should begin with, , or followed by the numeric identifier, which may contain hyphens, e.g.,.
 * 2, optional type, which may be 'art' (for article) or 'sect' (for section). Default: 'art'. Returns a "section"-style url if sect, providing the requested item in context; otherwise, a direct link to only the requested item.

Examples
Examples below are enhanced by the addition of an external link at the end, created by prefixing the path generated by the template with the main Légifrance domain, and appending the section number as anchor (display text) for verifiability. If a number does not correspond to an article in the penitentiary code, then it returns zeroes for the article id (This will probably change going forward) :
 * ⇨ L1000-2
 * ⇨ L1000-2 (in context)
 * ⇨ L1121-1 (in context)
 * ⇨ D1112-1
 * ⇨ D1112-1 (in context)
 * ⇨ R1112-11