Template:Sfn Legifrance/testcases
This is the template test cases page for the sandbox of Template:Sfn 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: |
Important note: if you're used to using the {{test case}} template, you know that when live and sandbox results differ, the bar goes yellow to flag the difference. That is not the case here. The reason is, that the template tests the rendered code, and the template under testing {{Sfn Legifrance}} generates references, and these are not rendered in situ, but only in the references section at the end, where the {{test case}} template doesn't see them, and cannot flag an error. The only thing rendered in situ and therefore discoverable by the testcase comparison, is the superscript number[3], but that's not where the real action is. So most errors will not be trapped by a change in bar color. Therefore, when evaluating pass/fail status of a test, you must follow the bracketed numerical citations to the references section, and compare the content of the live-generated and sandbox-generated footnotes, to see if they are identical. Bottom line: the bar color means nothing on this page for most tests.
Basic tests
[edit]{{Sfn Legifrance|JORF|INPA2020854X|Composition de l'assemblée ''Composition of the Assembly'', 4 August 2020}}
{{Sfn Legifrance}}
Assertion 1b.[2]
Assertion 1b.[2]
{{Sfn Legifrance|JORF|57-1426|Loi n° 57-1426 du 31 décembre 1957|url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 1d.[4]
Assertion 1d.[4]
{{Sfn Legifrance|CPP|123-456-7890|Loi n° 57-1426 du 31 décembre 1957 |url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 1e.[4]
Assertion 1e.[4]
{{Sfn Legifrance| | |Law #57-1426 of December 31, 1957|url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 1f.[5]
Assertion 1f.[5]
Param alias
[edit]{{Sfn Legifrance|JORF|57-1426|Loi n° 57-1426 du 31 décembre 1957|url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 2b.[4]
Assertion 2b.[4]
There is no Test 2c.
|
---|
Intentionally blank. |
{{Sfn Legifrance|text=Composition de l'assemblée ''Composition of the Assembly'', 4 August 2020}}
{{Sfn Legifrance}}
Assertion 2d.Sfn Legifrance: missing 'base' param
Assertion 2d.Sfn Legifrance: missing 'base' param
There is no Test 2e.
|
---|
Intentionally blank. |
{{Sfn Legifrance|text=Law #57-1426 of December 31, 1957 |url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 2f.[5]
Assertion 2f.[5]
{{Sfn Legifrance|text=Law #57-1426 of December 31, 1957}}
{{Sfn Legifrance}}
Assertion 2g.Sfn Legifrance: missing 'base' param
Assertion 2g.Sfn Legifrance: missing 'base' param
Error cases
[edit]{{Sfn Legifrance|TWEEDLEDUM|62-2|CPP Art. 62-2}}
{{Sfn Legifrance}}
Assertion 3b.[7]
Assertion 3b.[7]
{{Sfn Legifrance|BAD-BASE|123-456-7890|Loi n° 57-1426 du 31 décembre 1957|url=https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000692469}}
{{Sfn Legifrance}}
Assertion 3d.[4]
Assertion 3d.[4]
Base code expansion tests
[edit]Base code expansion with 'lang'
[edit]
References
[edit]Note: some tests above which are testing invalid param values should generate errors in the citations below.
- Works cited
This citation provides linkage from the citations generated by the templates --> République française; Secrétariat général du gouvernement (19 October 2022). "Légifrance Le service public de la diffusion du droit" [The public service for dissemination of the law]. Légifrance. Direction de l'information légale et administrative. ISSN 2270-8987. OCLC 867599055.
- Citations
- ^ a b c d Legifrance, CPP Art. 62-2.
- ^ a b Legifrance, Composition de l'assemblée Composition of the Assembly, 4 August 2020.
- ^ a b Legifrance, Criminal procedure code, 62-2.
- ^ a b c d e f g h Legifrance, Loi n° 57-1426 du 31 décembre 1957.
- ^ a b c d Legifrance, Law #57-1426 of December 31, 1957.
- ^ a b Legifrance, Art. 62-2 Criminal procedure code, CPP Art. 62-2.
- ^ a b Legifrance, Template:Legifrance: missing or invalid base value ('TWEEDLEDUM'), or missing number.
- ^ a b Legifrance, Template:Legifrance: missing or invalid base value ('62-2'), or missing number.
- ^ a b c d Legifrance, Criminal procedure code, 1.
- ^ a b c d Legifrance, Criminal procedure code, 20.
- ^ a b c d Legifrance, Commercial code, 420-2.
- ^ a b Legifrance, Official Journal of the French Republic, JUSX9800048L.
- ^ a b Legifrance, General code of Territorial Authorities, 2212-2.
- ^ a b Legifrance, Penal code, 111-2.
- ^ a b Legifrance, Penal code, 112-1.
- ^ a b Legifrance, Code de procédure pénale, 1.
- ^ a b Legifrance, Code de procédure pénale, 20.
- ^ a b Legifrance, Code de commerce, 420-2.
- ^ a b Legifrance, Journal officiel, JUSX9800048L.
- ^ a b Legifrance, Code général des collectivités territoriales, 2212-2.
- ^ a b Legifrance, Code pénal, 111-2.
- ^ a b Legifrance, Code pénal, 112-1.