Template:Cite Legifrance/doc

Generates a standard citation for Légifrance, the official website of the French government for the publication of laws and legislation; either with a link to a specific legal text, or just a full citation to the site, suitable for linkage from short citations. Automatically linked to by sfn Legifrance.

Usage
– a full citation in the References section, addressable by short citations (see Sfn Legifrance )

– a full, inline citation to a specific law

– a general, reusable, named ref inline, with rp to specify which law

Parameters
All parameters are optional. Recommendation: When used as an inline citation to link a particular law, use only base and number (and sometimes text and url as needed) and omit the rest. When used as a full citation to the Legifrance site in the Reference list of an article as a base for short citations to connect to, use no parameters.


 * base – a token indicating which part of the code, e.g. for the penal code,  for the Journal officiel,  for the Civil Code, and so on. Optional. See  for list of possible values.
 * number – article number in the given code base; e.g,, . Optional, but required if base is present.
 * text – display text underlying the wikilink to the article at Légifrance. Optional. If param base or number is absent, then this param is ignored. If both are present and text is omitted, then it defaults to the expanded value of 'base', plus the value of 'number'.
 * url – optional link to a particular Légifrance article. Normally this param should be omitted as the template calculates it based on 'base' and 'number'. If used, it should be only when both base and number are present, as the link url is calculated by the template as a function of base and number. However if required, the param may be used to override the default value, such as to create a link to a page grouping several related articles.

Remaining parameters wrap cite web parameters of the same name; see its doc page for details. These should normally be omitted:
 * author
 * date
 * title
 * trans-title
 * publisher
 * ref
 * at.

Param notes
The following explains how to choose the value of the number parameter:

The following explains how to choose the value of the base parameter:

Alternatives to this template
To create a full citation to a Legifrance article, the recommended way is to use this Cite Legifrance template. To create a full citation without using that template, you may do so by coding it yourself, and embedding the Legifrance template in the at param to create the external link to the specific penal code. Here's an example showing this as a full inline citation:



Note that in this inline citation example, the title will link to the home page of Légifrance, and the 'at' value will link directly to the law.

Examples
– an inline citation to a law

– full citation to Légifrance, suitable for inclusion in the "References" or "Works cited" section, where short footnote templates ( sfn Legifrance, sfn ) can link to it.