Template:Sfn Legifrance/doc

May be used to create a short citation to a French law or legal text indexed in Légifrance. The generated short citation links to a full citation generated by template Cite Legifrance.

Usage
. ..

Parameters
Two parameters are required with each transclusion, but not always the same two. If params 1 and 2 are included, the others are optional. Alternatively, param text and param url may be used, in which case the first two are not needed. Basic parameter descriptions follow; param interactions are described in the Notes section.


 * 1 – a shortcut token, indicating which portion ('base') of the Legifrance database applies; e.g. for the penal code,  for the Journal officiel,  for the Civil Code, and so on. Required. See  for list of possible values, and  for a description of them.
 * 2 – article number in the given database; e.g,, . Normally paired with the 'base' token.
 * 3 – display text: visible text underlying the wikilink to the article at Légifrance. May be used with '1' and '2' as an override; or may be paired with url. Default: &lt;base> 'art.' &lt;number> (if they are both present). Alias: text.
 * url – optional url of the Légifrance article to display. Omit this param when using '1' (base) and '2' (number),  as the url value is calculated by the template as a function of base and number. However, if base and number are omitted,  url may be paired with '3' (text) to create a link to a Legifrance page. This is especially useful for grouping several related articles, or for particular sections of the Legifrance database (mostly recent) for which the 'base' + 'number' values fail to provide an accurate link..

Param notes
Typically, you should use a pair of params: either 1 (the 'base' token) and 2 (the 'number'), or text and url. Param 3 (alias of text) is a 'swing' parameter, because it may be combined either with 1 and 2 as an additional, optional parameter, or with url using its alias name text.

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

The following explains how to choose the value of 1 (the 'base' token).

Alternatives to this template
To create a short citation to a Legifrance law or legal text, the recommended way is by using this Sfn Legifrance template. An alternative "brute force" method (not recommended) that creates a short citation without using this template is described below.

This example generates two short citations, each linking the "Legifrance" label to a full citation in the References section, but with the specific named laws named in the loc parameter in unlinked plain text:

This can be improved by linking the named law as well, using Sfn Legifrance. The following method is equivalent to using Sfn Legifrance, and works by embedding the Legifrance template in the value of the loc param:



Note the use of the ref param in the cite web template whose harvid value matches param one of the sfn; this is required to establish linkage from the short footnote to the full citation, regardless whether legifrance is used or not. Establishing linkage using the ref param in the citation is a standard feature of short footnotes; see the description of handling the "no author name" case.

TemplateData
{	"params": { "1": {			"description": "base: Legislation Database name", "example": "JORF", "type": "string", "suggestedvalues": [ "JORF", "avant90", "CASS", "INCA", "JADE", "CONSTIT", "CACTSOCL", "CAVIAL", "CAVIAR", "CAVIAD", "CC", "CCOM", "CONSO", "CONSO(R)", "CONSO(D)", "CCONSTRL", "CCONSTRR", "CDEF", "CDEF(R)", "CEDU", "CEDU(R)", "CESEDA(L)", "CESEDA(R)", "CE", "CE(R)", "CELE", "CELE(R)", "CGCT", "CGCT(R)", "CGI", "CGPPP", "CJF(L)", "CJF(R)", "CJA", "CJA(R)", "CMONFIL", "CMONFIR", "COJ", "COJ(L)", "COJ(R)", "CPAT", "CP", "CP(R)", "CP1810", "CPOSTESL", "CPOSTESR", "NCPC", "CPC", "CPP", "CPP(R)", "CPP(D)", "CPP(A)", "CPROINTL", "CPROINTR", "CRO", "CROUTEL", "CRO(M)", "CROUTER", "CR", "CR(R)", "CSP", "CSP(L)", "CSP(R)", "CSP(NR)", "CSS(L)", "CSS(D)", "CSS(R)", "CSPORTPL", "CSPORTPR", "CSPORTPA", "CT(NL)", "CT", "CT(R)", "CT(D)", "URBA(L)", "URBA(R)", "CVOIRIEL", "CVOIRIER", "CGLIVP", "CGLIVPFM", "CGLIVPFA" ],			"label": "base", "required": true },		"2": {			"label" : "number", "description": "Article number in the given code base", "type": "string", "required": true, "example": "121-3" },		"3": {			"description": "Display text for the link to the article at Légifrance", "example": "Article 121-3 of the Penal code", "type": "string", "label": "display text", "suggested": false },		"url": { "description": "Override url to link the display text to the Légifrance article", "type": "string", "suggested": false }	} }