Template:Legifrance/derive-url
Appearance
https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CPENALLL.rcv&art=121-3
Generates the full url for Template:Legifrance based on the 'base' value. Some of these paths no longer work since the 2020 'modernization' of the Legifrance website.
Usage
[edit]{{Legifrance/derive-url|base|number}}
Notes:
- Passing an invalid
|base=
value returns the home page url: 'https://www.legifrance.gouv.fr'. An 'invalid' value means one that is not listed in the table of Légifrance databases. - The template cannot detect an invalid value of the
|number=
param. These values may change whenever new legislation is passed; an invalid number will generate an external link which, when clicked, will display an error page at the Légifrance website.
Parameters
[edit]There are two required positional parameter:
|1=
a base code, as specified in the table at Legifrance databases and 'base' values. Examples:CP
,CPP
,CT
,CGCT
.|2=
article number or id; e.g.,121-3
,L1142-7
,LO1114-1
,JUSX9800048L
.
Examples
[edit]- {{Legifrance/derive-url|CCOM}} → https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CCOMMERL.rcv&art=
- {{Legifrance/derive-url|CPP|16-1}} → https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CPROCPEL.rcv&art=16-1
- {{Legifrance/derive-url|CT|L1142-7}} → https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CTRAVAIL.rcv&art=L1142-7
- {{Legifrance/derive-url|CT|1142-7}} → https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CTRAVAIL.rcv&art=L1142-7
- {{Legifrance/derive-url|CGCT|LO1114-1}} → https://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CGCTERRL.rcv&art=LO1114-1
- {{Legifrance/derive-url|CPEN|L112-1}} → https://www.legifrance.gouv.fr//codes/article_lc/LEGIARTI000045480604
- {{Legifrance/derive-url|CTRANSP|D1112-1}} → https://www.legifrance.gouv.fr//codes/article_lc/LEGIARTI000031212993
- {{Legifrance/derive-url|JORF|JUSX9800048L}} → https://www.legifrance.gouv.fr/WAspad/UnTexteDeJorf?numjo=JUSX9800048L
- {{Legifrance/derive-url|JORF|CSCL0508635S}} → https://www.legifrance.gouv.fr/WAspad/UnTexteDeJorf?numjo=CSCL0508635S
- {{Legifrance/derive-url|JORFID|000000510149}} → https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000510149
- {{Legifrance/derive-url|XYZZY}} → https://www.legifrance.gouv.fr/
See also
[edit]{{Legifrance}}
{{Legifrance/base-decode}}
{{Legifrance/CT}}