Template:Sandre/doc
This is a documentation subpage for Template:Sandre. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
changeThis template creates a citation to the website of the Service d'administration nationale des données et référentiels sur l'eau (Sandre), which has data on French watercourses. It is widely used in pages on :fr:Wikipedia, and may be useful for translated pages. Parameters are therefore the same as on the French wiki
Syntax
change{{Sandre|id=...|name=...|source=...|access-date=...}} {{Sandre|id=...|texte=...}}
- id (required) : identifier of listing on the Sandre site. This identifier is composed of eight alphanumeric characters (letters, digits, and hyphens; more details on the composition of this identifier).
- example : if the URL is https://www.sandre.eaufrance.fr/geo/CoursEau_Carthage2017/K15-0300, the id is « K15-0300 ».
- name (optional) : name of the stream.
- source (optional) : If this parameter is specified and has the value non the text "sur le Sandre" not displayed.
- texte (optional) : Will display the link with the specified text and only the text.
- if this parameter is used, the parameters name and source are ignored.
- access-date or consulté le (optional) : allows addition of the date when the Sandre site was accessed.
- example : access-date=23 April 2012
Examples
change- With the named parameters:
Code | Result |
---|---|
{{Sandre|id=----0352}}
|
Sandre. "Fiche cours d'eau (----0352)". |
{{Sandre|id=----0352|name=canal d'Orléans}}
|
Sandre. "Fiche cours d'eau - canal d'Orléans (----0352)". |
{{Sandre|id=----0352|name=canal d'Orléans|source=non}}
|
"Fiche cours d'eau - canal d'Orléans (----0352)". |
{{Sandre|id=----0352|source=non}}
|
"Fiche cours d'eau (----0352)". |
{{Sandre|id=----0352|texte=Le canal d'Orléans}}
|
Sandre. "Le canal d'Orléans". |
- With some parameters omitted:
Code | Result |
---|---|
{{Sandre|----0352}}
|
Sandre. "Fiche cours d'eau (----0352)". |
{{Sandre|----0352|canal d'Orléans}}
|
Sandre. "Fiche cours d'eau - canal d'Orléans (----0352)". |
{{Sandre|----0352|canal d'Orléans|source=non}}
|
"Fiche cours d'eau - canal d'Orléans (----0352)". |
{{Sandre|----0352|source=non|access-date=6 May 2012}}
|
"Fiche cours d'eau (----0352)". Retrieved 6 May 2012. |
{{Sandre|----0352|texte=Le canal d'Orléans|access-date=6 May 2012}}
|
Sandre. "Le canal d'Orléans". Retrieved 6 May 2012. |
TemplateData
changeSee a monthly parameter usage report for Template:Sandre in articles based on its TemplateData.
TemplateData for Sandre
Citation template for the website of the Service d'administration nationale des données et référentiels sur l'eau (Sandre)
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | identifier of listing on the Sandre site (8 characters)
| Unknown | optional |
texte | texte | no description | Unknown | optional |
name | name 2 | name of the water course to be displayed | Unknown | optional |
nom | nom | no description | Unknown | optional |
source | source | no description | Unknown | optional |
access-date | access-date | no description | Unknown | optional |
consulté le | consulté le | no description | Unknown | optional |
consultée le | consultée le | no description | Unknown | optional |