Jump to content

Template:Legifrance/CTRANSP/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]

{{Legifrance/CTRANSP|id|type}}

Parameters

[edit]

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 L, D, or R followed by the numeric identifier, which may contain hyphens, e.g., R1115-13-5.
  • |2=, optional type, which may be 'art' (for article) or 'sect' (for section). Default: 'art'. Returns a "section"-style url if |2=sect, providing the requested item in context; otherwise, a direct link to only the requested item.

Examples

[edit]

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.

See also

[edit]