Jump to content

Template:Legifrance/base-decode/doc

From Wikipedia, the free encyclopedia

Returns the fully expanded name for a Légifrance code base, in English or French, given the base code, such as 'Penal code' for 'CP'.

Usage

[edit]
  • {{Legifrance/base-decode|base}}
  • {{Legifrance/base-decode|base|fr}}
  • {{Legifrance/base-decode|base=base|lang=fr}}

Parameters

[edit]

There is one required parameter, and one optional parameter:

  • |1= a base code, as specified in the table at Legifrance databases and 'base' values. Examples: CP, CPP, CT, CGCT. Alias: |base=.
  • |2= language code e.g., en or fr. Default = en. Alias:|lang=.

Examples

[edit]

Database codes

[edit]

The following table shows the valid values of the |base= parameter. Passing an invalid value will return the empty string.

Other codes

[edit]

The following codes are not yet covered:

See also

[edit]