Jump to content

Template:Legifrance/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Replacing the long #switch with transclusion of {{Legifrance/Path|{{{base|}}}}}; if this worked, then testcases now should be all green (no change). There is still the problem of the open bracket in the /Path subtemplate, and the close bracket here, which needs attention (also the error case in /Path).
Resync from template.
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{url|}}}
<includeonly><span class="legifrance" style="font-size:100%">{{#if:{{{base|url}}}|<!--
-->{{#if:{{{url|}}}
| {{#if: {{{text|{{{texte|}}}}}}
|[{{{url}}}<!--
| [{{{url|}}} {{{text|{{{texte|}}}}}}]
| {{#if: {{both | {{Legifrance/base-decode | {{{base|}}} }} | {{{number|{{{numéro|}}}}}} }}
--> {{#if:{{{texte|{{{text|}}}}}}|{{{texte|{{{text}}}}}}]|???] <span style="background-color:pink">[[:Template:Légifrance/doc|Légifrance]] : '''missing "text" param'''</span>[[Category:Pages with Légifrance template error]]}}|<!--
-->[https://www.legifrance.gouv.fr/{{Legifrance/Path|{{{base|}}}}}<!--
| [{{{url|}}} {{Legifrance/base-decode | {{{base|}}} | {{{lang|en}}} }}, {{{number|{{{numéro|}}}}}}]
| <span style="background-color:pink">'''[[:Template:Legifrance]]: param 'url' requires 'text', or valid 'base' and 'number&apos;'''</span>[[Category:Pages with Légifrance template error]]
-->{{#if:{{{number|{{{numéro|{{{num|}}}}}}}}}
}}
|{{{number|{{{numéro|{{{num}}}}}}}}} {{#if:{{{texte|{{{text|}}}}}}
}}
|{{{texte|{{{text}}}}}}]
| {{Legifrance/base|{{{base|}}}|{{{lang|en}}}}}, {{{number|{{{numéro|{{{num|number???}}}}}}}}} ]
| {{#if: {{both | {{Legifrance/base-decode | {{{base|<noinclude>CPP</noinclude>}}} }} | {{{number|{{{numéro|<noinclude>16-1</noinclude>}}}}}} }}
| [{{Legifrance/derive-url | {{{base|<noinclude>CPP</noinclude>}}} |{{{number|{{{numéro|<noinclude>16-1</noinclude>}}}}}}}} <!--(The space before this comment is required)
}}
-->{{#if: {{{text|{{{texte|}}}}}}
|??? ???] <span style="background-color:pink">[[:Template:Légifrance/doc|Légifrance]] : '''missing "number" param'''</span>[[Category:Pages with Légifrance template error]]
| {{{text|{{{texte|}}}}}}]
}}
| {{Legifrance/base-decode | {{{base|<noinclude>CPP</noinclude>}}} | {{{lang|en}}} }}, {{{number|{{{numéro|<noinclude>16-1</noinclude>}}}}}}]
}}|<span style="background-color:pink">[[:Template:Légifrance/doc|Légifrance]] : '''Incorrect template invocation'''</span>
}}
}}</span><!--
| <span style="background-color:pink">'''[[:Template:Legifrance]]: missing or invalid base value ('{{{base|&#32;}}}'), or missing number'''</span>[[Category:Pages with Légifrance template error]]
--></includeonly><noinclude>{{Documentation}}</noinclude>
}}
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 04:56, 25 February 2023

Criminal procedure code, 16-1