Template:Legifrance/testcases
This is the template test cases page for the sandbox of Template:Legifrance. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
If this page has been recently modified, it may not reflect the most recent changes. Please purge this page to view the most recent changes. |
Basic tests
[edit]{{Legifrance|base=JORF |number=JUSX9800048L |text=Law 2000-516 of 15 June 2000}}
{{Legifrance}}
{{Legifrance|base=JORF |numéro=INPA2020854X |texte=Composition de l'assemblée, 4 August 2020}}
{{Legifrance}}
{{Legifrance|base=CPP |number=80-1}}
{{Legifrance}}
{{Legifrance|base=CP |number=111-2}}
{{Legifrance}}
{{Legifrance|base=CP |lang=fr |number=111-2}}
{{Legifrance}}
{{Legifrance|base=NCPC |number=32-1}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=420-2}}
{{Legifrance}}
{{Legifrance|base=CCOM |lang=fr |number=420-2}}
{{Legifrance}}
{{Legifrance|base=CGCT |number=2212-2}}
{{Legifrance}}
{{Legifrance|base=CGCT |lang=fr |number=2212-2}}
{{Legifrance}}
{{Legifrance|text=75 to 78 |url=https://www.legifrance.gouv.fr/codes/section_lc/LEGITEXT000006071154/LEGISCTA000006151877/#LEGISCTA000006151877}}
{{Legifrance}}
{{Legifrance|base=ARTI |number=000019241062 |text=Constitution article 49}}
{{Legifrance}}
{{Legifrance|base=ARTI |number=000019241062}}
{{Legifrance}}
Aliases
[edit]{{Legifrance|base=CPP |numéro=62-2 |texte=CPP Art. 62-2}}
{{Legifrance}}
{{Legifrance|base=CPP |number=62-2 |text=CPP Art. 62-2}}
{{Legifrance}}
Error cases
[edit]{{Legifrance|base=CPP |text=CPP Art. 62-2}}
{{Legifrance}}
Template:Legifrance: missing or invalid base value ('CPP'), or missing number
Template:Legifrance: missing or invalid base value ('CPP'), or missing number
{{Legifrance|base=CPP |number=62-2}}
{{Legifrance}}
{{Legifrance|base=TWEEDLEDUM |number=62-2 |text=CPP Art. 62-2}}
{{Legifrance}}
Template:Legifrance: missing or invalid base value ('TWEEDLEDUM'), or missing number
Template:Legifrance: missing or invalid base value ('TWEEDLEDUM'), or missing number
{{Legifrance|num=62-2 |text=CPP Art. 62-2}}
{{Legifrance}}
Template:Legifrance: missing or invalid base value (' '), or missing number
Template:Legifrance: missing or invalid base value (' '), or missing number
Main db codes (CCOM, etc.)
[edit]{{Legifrance|base=CCOM |number=L420-2}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=L120-12}}
{{Legifrance}}
{{Legifrance|base=CCOM |lang=fr |number=L120-12}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=L242-31}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=A444-105}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=D122-1}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=L122-1}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=R122-1}}
{{Legifrance}}
{{Legifrance|base=CCOM |number=R722-3}}
{{Legifrance}}
Journal Officiel (JORF) by NOR and by numeric ID
[edit]{{Legifrance|base=JORF |number=CSCL0508635S}}
{{Legifrance}}
{{Legifrance|base=JORF |number=JUSX9800048L}}
{{Legifrance}}
{{Legifrance|base=JORFID |number=000000476688}}
{{Legifrance}}
{{Legifrance|base=JORFID |number=000000671775}}
{{Legifrance}}
{{Legifrance|base=JORFID |number=000000705065}}
{{Legifrance}}
{{Legifrance|base=JORF |number=JUSX9800048L |text=Law 2000-516 of 15 June 2000 (presumption of innocence)}}
{{Legifrance}}
{{Legifrance|base=JORFID |number=000000671775 |text=Vichy consitutional law #2 of 11 July 1940}}
{{Legifrance}}
Extra db codes (generally post-2008)
[edit]{{Legifrance|base=CTRANSP |number=L1000-2}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=L1121-1}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=D1112-1}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=R1112-11}}
{{Legifrance}}
{{Legifrance|base=CPEN |number=L3}}
{{Legifrance}}
{{Legifrance|base=CPEN |number=L112-1}}
{{Legifrance}}
{{Legifrance|base=CPEN |lang=fr |number=L112-1}}
{{Legifrance}}
{{Legifrance|base=CPEN |number=D112-1}}
{{Legifrance}}
{{Legifrance|base=CPEN |number=R112-2}}
{{Legifrance}}
{{Legifrance|base=CPEN |number=D112-21-1}}
{{Legifrance}}
{{Legifrance|base=CPEN |lang=fr |number=D112-21-1}}
{{Legifrance}}
L prefix defaulting for certain base codes
[edit]Test adding 'L' prefix for certain codes for which articles always start with a letter, and never a numeric.
Article numbers often have a prefix letter, such as 'L' (for loi), 'D' (décret), 'R' (regulation), and sometimes 'A' (arrêt). For certain codes, such as the Civil Code, the Penal Code, or the Code of Criminal Procedure, there is no prefix, and the article number is strictly numeric. For those codes that use the L/D/R prefix such as the Labor code, the Education Code, and the Administrative Code, the most common of the three is 'L', and as a convenience to the template user, if they forget to include the prefix and pass a numeric argument to a code that requires it, the 'L' prefix is added. This is currently implemented for base codes CT (Code du travail), CPEN (Code pénitentiaire), and CTRANSP (Code des transports).
{{Legifrance|base=CTRANSP |number=L1000-2}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=1000-2}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=D1112-1}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=1112-1}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=R1112-11}}
{{Legifrance}}
{{Legifrance|base=CTRANSP |number=1112-11}}
{{Legifrance}}