Hi everyone,
Thank you for reading my post.
I am dealing with the following "infobox" (I am sorry, it is a French one, I hope you won't mind... :-( but I couldn't find an English equivalent...)
-------------------------------------------------------------------------- 1 {{Infobox Département de France 2 | département = Aude 3 | insee = [[11 (nombre)|11]] 4 | logo = [[Fichier:Logo 11 aude.jpg|100px]] 5 | région = [[Languedoc-Roussillon]] 6 | Préfecture = [[Carcassonne]] 7 | Sous-préfectures = [[Limoux]]<br />[[Narbonne]] 8 | population = {{frpopd|11}} 9 | DatePop = [[{{frpopdata}}]] 10 | sup = 6139 11 | arr = [[Arrondissements de l'Aude|3]] 12 | circonscription = [[Liste des circonscriptions législatives de l'Aude|3]] 13 | canton = [[Cantons de l'Aude|35]] 14 | intercommun = [[Intercommunalités de l'Aude|30]] 15 | comm = [[Communes de l'Aude|438]] 16 | président = [[Marcel Rainaud]] ([[Parti socialiste (France)|PS]]) 17 | préfet = [[Anne-Marie Charvet]] 18 | loc = [[Fichier:Aude departement locator map.svg|300px]] 19 }} --------------------------------------------------------------------------
Please, have a look at lines 8 and 9. Can you see those two things "{frpopd|11}" and "{{frpopdata}}"? I am wondering what these things are (templates?)? and where I can find some documentation about it? The visual results are respectively: - 56 hab./km² - 345 779 hab. (2007) if I am not mistaken... I am wondering where is the data stored and retrieved?
Thank you for your help. Best regards, -- Lmhelp
lmhelp2 wrote :
Hi everyone,
Hi
Please, have a look at lines 8 and 9. Can you see those two things "{frpopd|11}" and "{{frpopdata}}"? I am wondering what these things are (templates?)?
Yes, these are templates
and where I can find some documentation about it?
Usualy on their respective wiki pages :
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Frpopd http://fr.wikipedia.org/wiki/Mod%C3%A8le:Frpopdata
and for the Infobox (there the doc is more complete):
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Infobox_D%C3%A9partement_de_France
The visual results are respectively:
- 56 hab./km²
- 345 779 hab. (2007)
if I am not mistaken...
{{frpopd}} is equivalent to 345 779 (edit the template page to see in the source : "|11=345 779" ) and {{frpopdata}} is equal to 2007
as for the "56 hab./km² ", you can read on the template page "Infobox_Département_de_France":
"densité : La densité est calculée automatiquement à partir des paramètres « population » et « sup ». Ces derniers doivent être rempli sans comporter d'espace entre les chiffres, sans ajout de formatnum, il ne faut pas y mettre non plus de virgule mais un point (. ) lorsque cela est nécessaire."
Alexis
Hi Alexis,
Thank you for your explanations: they are very helpful :-) !
When I looked at the page "http://fr.wikipedia.org/wiki/Mod%C3%A8le:Frpopdata" I didn't understand what was this "2007". I hadn't made the correct connection with the date of the (last) population census... Now it is much clearer. It looks like: - {{frpopd|11}} is a kind of "switch case" and - {{frpopdata}} is a kind of constant...
Thanks again. -- Lmhelp
lmhelp2 wrote :
Hi Alexis,
Thank you for your explanations: they are very helpful :-) !
you're very welcome :-)
It looks like:
- {{frpopd|11}} is a kind of "switch case" and
- {{frpopdata}} is a kind of constant...
Exactly
Alexis
mediawiki-l@lists.wikimedia.org