Jump to content

Template:Legifrance/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Mathglot (talk | contribs) at 23:27, 26 January 2023 (Note on spelling: Clarify.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Use this template when you wish to create an external link to French legal text as provided by Légifrance, the official website of the French government for publication of legislation, regulations, and legal information.

Usage

{{Legifrance|base=database|number=article number|text=Display text for link}}

Note: parameter aliases are provided to make it possible to copy-paste directly from French Wikipedia, so the following is equivalent to the above:

{{Légifrance|base=database|numéro=article number|texte=Display text for link}}

Note on spelling

In French, the name of the website is Légifrance, including the accented "e" letter. To make it easier to use this template with English qwerty keyboards, and in conformity with the majority of English sources that refer to the website without the accented letter, the name of this template is Legifrance, without the accent. In order to facilitate ease of use by copy-pasting directly from sources on French Wikipedia, the acccented version is available as a redirect, and can be used as well.

Parameters

There are four named parameters, two required and two optional.

  • |base= – a token indicating which part of the code, e.g. CP for the penal code, JORF for the Journal officiel, CC for the Civil Code, and so on. Required. See the table below for list of possible values. (See :fr:Modèle:Légifrance § Codes juridiques for an explanation of these values (in French) ).
  • |number= – article number in the given code base; e.g, 1, 1137. Required. Aliases: 'numéro', 'num'.
  • |text= – display text; visible text underlying the wikilink to the article at Légifrance. Optional.Default: <base> 'art.' <number>. Alias: 'texte'.
  • |url= – optional url of the Légifrance article to display. Normally this param should be omitted, as the url value is calculated by the template as a function of base and number. However if required, |url= may be used to override the default value, such as to create a link to a page grouping several related articles; see Example 4 below.
Param notes
  • |base= – see the table in § Legifrance databases, and 'base' values.
  • |number= – adjustments for punctuation and embedded spaces: as a general rule, drop them:
    • for legislative acts beginning with L.  – drop the punctuation and embedded space: L. 1234L1234.
    • for regulatory acts beginning with R.  – drop the space and punct., i.e., R. 5678R5678
    • for embedded spaces prior to a suffix, url encode the space; e.g., 4 bis4%20bis
    • sometimes add a slash in the suffix, instead of url-encoded space, e.g., L. 80 AL80/A

In footnotes

Two templates are available for generating footnotes related to Légifrance:

To use this template in a footnote directly, without using either of the two templates above, you may embed template {{Legifrance}} in a full citation or a short citation that you write yourself:

Full citation

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

<ref name="CP 121-3">{{cite web |author=République française |date=19 October 2022 |title=Légifrance Le service public de la diffusion du droit |website=Légifrance |publisher=Secrétariat général du gouvernement |url=https://www.legifrance.gouv.fr |at={{legifrance|base=CP|number=121-3}} |access-date=27 December 2024}}

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

Short footnote

To create a short footnote to a Legifrance text, the recommended way is by using template {{Sfn Legifrance}}. The "brute force" method that avoids using that template follows.

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:

Mens rea{{sfn|Legifrance|loc=CP 121-3}} and police custody.{{sfn|Legifrance|loc=CPP 62-2}}

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:

Mens rea{{sfn|Legifrance|loc={{legifrance|base=CP|number=121-3}}} and police custody.{{sfn|Legifrance|loc={{legifrance|base=CPP|number=62-2}} }}
== Works cited ==
* {{cite web |author=République française |date=19 October 2022 |title=Légifrance Le service public de la diffusion du droit |publisher=Secrétariat général du gouvernement |url=https://www.legifrance.gouv.fr |ref={{harvid|Legifrance}} }}

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.

Examples

To cite article 62-2 of the CPP (French criminal procedure code) about garde à vue, you could code:

You can use the accented "é" version, and param aliases to generate the same link as above, using original French param names, if you've copy/pasted directly from an article on French Wikipedia to generate the same link:

Or, use with only two params, and allow the template to default the value of param |text=:

The following demonstrates the use of optional param |url= to supply a link to a group of related articles:

If the value of |base= is not valid, you get this:

Legifrance databases and 'base' values

This template creates a direct link to a legal text or law. There are numerous different portions of French legal code which can have long names, like the Code général des collectivités territoriales. To avoid having to have such a long name as a template parameter, this template uses a short token which is used for the 'base' parameter instead of the long name; this base token is shown in all caps in the table below. Choose one of these tokens as the value for parameter |base=. Note: these tokens apply only to portions of the Legifrance database that existed in 2008 or earlier.[a] As a result, the syntax described here cannot be used to create links to portions of the code created since 2008, such as the code de transport.

To create a link to a legal text or law which is part of one of the post-2008 codes, find the link to the law of interest at Légifrance, and use optional template parameter |url= to specify its value. (Or, just use the url directly, in template {{Cite Legifrance}} or {{Sfn Legifrance}}.)

Law database to search Detail 'base' value
Code de l'action sociale et des familles
   Social action and family code
Legislative part CACTSOCL
Code de l'aviation civile

   Civil aviation code

Legislative part CAVIAL
decrees by the Conseil d'État CAVIAR
Simple decrees part CAVIAD
Code civil     Civil code CC
Code de commerce     Commercial code CCOM
Code de la consommation

   Consumer code

Legislative part CONSO
decrees of the Conseil d'État CONSO(R)
Simple decrees part CONSO(D)
Code de la construction et de l'habitation

   Construction and housing code

Legislative part CCONSTRL
Regulatory part - décrets en Conseil d'État CCONSTRR
Code de la défense

   Defense code

Legislative part CDEF
Regulatory part CDEF(R)
Code de l'éducation

   Education code

Legislative part CEDU
Regulatory part CEDU(R)
Code de l'entrée et du séjour
des étrangers et du droit d'asile

   Entry, foreign residence, and right of asylum code

Legislative part CESEDA(L)
Regulatory part CESEDA(R)
Code de l'environnement

   Environment code

Legislative part CE
Regulatory part CE(R)
Code électoral

   Electoral code

Legislative part CELE
Regulatory part CELE(R)
Code général des collectivités territoriales

   General code of Territorial Authorities code

Legislative part CGCT
Regulatory part CGCT(R)
Code général des impôts    General tax code CGI
Code général de la propriété
des personnes publiques

   General code of public property

CGPPP
Code des juridictions financières

   Financial jurisdiction code

Legislative part CJF(L)
Regulatory part CJF(R)
Code de justice administrative

   Administrative justice code

Legislative part CJA
Regulatory part CJA(R)
Code monétaire et financier

   Monetary and financial code

Legislative part CMONFIL
Regulatory part CMONFIR
Code de l'organisation judiciaire

   Judicial Organization code

new Legislative part COJ
Legislative part COJ(L)
Regulatory part COJ(R)
Code du patrimoine    Heritage code CPAT
Code pénal    Penal code Legislative part CP
Regulatory part CP(R)
Code pénal (ancien)    Penal code of 1810 CP1810
Code des postes et des
communications électroniques

   Post and electronic communications code

Legislative part CPOSTESL
Regulatory part CPOSTESR
Code de procédure civile

   Civil procedure code

NCPC
Code de procédure civile (ancien)

   Civil procedure code (old)

CPC
Code de procédure pénale

   Criminal procedure code

Legislative part CPP
Regulatory part CPP(R)
Simple decrees part CPP(D)
partie arrêtés CPP(A)
Code de la propriété intellectuelle

   Intellectual property code

Legislative part CPROINTL
Regulatory part CPROINTR
Code de la route

   Highway code

new Legislative part CRO
Legislative part CROUTEL
new regulatory part CRO(M)
Regulatory part CROUTER
Code rural et de la pêche maritime

   Rural and maritime fisheries code

Legislative part CR
Regulatory part CR(R)
Code de la santé publique

   Public health code

new legislative part CSP
Legislative part CSP(L)
Regulatory part CSP(R)
nouvelle Regulatory part CSP(NR)
Code de la Sécurité sociale

   Social security code

Legislative part CSS(L)
Simple decrees part CSS(D)
Regulatory part CSS(R)
Code du sport

   Sports code

Legislative part CSPORTPL
Regulatory part CSPORTPR
partie arrêtés CSPORTPA
Code du travail

   Labor code

new legislative part from 1 May 2008 CT(NL)
Legislative part CT
Regulatory part CT(R)
Simple decrees part CT(D)
Code de l'urbanisme

   Urban planning code

Legislative part URBA(L)
Regulatory part URBA(R)
Code de la voirie routière

   Roads and highways code

Legislative part CVOIRIEL
Regulatory part CVOIRIER
Livre des procédures fiscales

   Tax procedure book

Legislative part CGLIVP
Regulatory part CGLIVPFM
partie arrêtés CGLIVPFA

See also

Notes

  1. ^ The rules regarding the permanence of pre-2008 urls were formerly indicated at the following address: Anciennes et nouvelles adresses ('Old and new addresses'; dead link). Currently, the page Etablir-un-lien ('Establish a link') indicates that the permanence of pre-2008 urls is guaranteed for two types of documents: texts published in the Journal officiel having a NOR number on the one hand, and codes or specific articles of codes existing in January 2008 on the other hand (which, apparently, does not include consolidated texts).

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Legifrance in articles based on its TemplateData.

TemplateData for Legifrance

No description.

Template parameters

ParameterDescriptionTypeStatus
basebase

Legislation Database name

Suggested values
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
Example
JORF
Stringsuggested
urlurl

Override url to use to link to the Légifrance article

Stringoptional
texttext texte

Display text for the link to the article at Légifrance

Example
Article 121-3 of the Penal code
Stringsuggested
numbernumber num numéro

Article number in the given code base

Example
121-3
Stringoptional