Jump to content

Template:Legifrance/CPEN/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]

{{Legifrance/CPEN|id|type}}

Parameters

[edit]

There are two positional parameters:

  • |1=, the id of the loi (L1), décret (D112-1), regulation (R112-2) and so on. Required.
    Should begin with L, D, or R followed by the numeric identifier, which may contain hyphens, e.g., D112-21-1.
  • |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]