Template:Legifrance/CPEN/doc

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

Parameters
There are two positional parameters:


 * 1, the id of the loi, décret , regulation 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, and nines for the context id (This will probably change going forward) :
 * ⇨ L3
 * ⇨ L3 (in context)
 * ⇨ L112-1 (in context)
 * ⇨ D112-1
 * ⇨ D112-1 (in context)
 * ⇨ R112-2
 * ⇨ D112-21-1