Module:Slovak municipality/doc
| This is a documentation subpage for Module:Slovak municipality. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This is a documentation subpage for Module:Slovak municipality. It may contain usage information, categories and other content that is not part of the original module page. |
Usage
[edit]{{#invoke:Slovak municipality|function_name}}
About
[edit]Get statistic data about Slovak municipalities.
This template is a sibling of Template:Slovak municipality.
This template use the data from CC-BY database.
Original first author: Dušan Kreheľ.
Reference implementation is on hrwiki.
Parameters
[edit]First paramer
[edit]| Meaning | Parameter | Code | Code output |
|---|---|---|---|
| Population | p | {{#invoke:Slovak municipality|sk|p|SK0417524395}} | 2687 |
| Population (source URL) |
P | {{#invoke:Slovak municipality|sk|P|SK0417524395}}<br>{{#invoke:Slovak municipality|sk|P|SK}}<br>{{#invoke:Slovak municipality|sk|P|SK0106}} | https://datacube.statistics.sk/#!/view/en/vbd_dem/om7101rr/v_om7101rr_00_00_00_en https://datacube.statistics.sk/#!/view/en/vbd_dem/om7102rr/v_om7102rr_00_00_00_en https://datacube.statistics.sk/#!/view/en/vbd_dem/om7102rr/v_om7102rr_00_00_00_en |
| Population (ex. for table) |
p | {{#invoke:Slovak municipality|sk|o|SK0417524395}} | 2,687 |
| Population Id | r | {{#invoke:Slovak municipality|sk|r|SK0417524395}} | om7101rr |
| Area | a | {{#invoke:Slovak municipality|sk|a|SK0417524395}} | 11.24 |
| Area (source URL) |
A | {{#invoke:Slovak municipality|sk|A|SK0417524395}} | https://datacube.statistics.sk/#!/view/en/vbd_dem/om7014rr/v_om7014rr_00_00_00_en |
| Area Id | b | {{#invoke:Slovak municipality|sk|b|SK0417524395}} | om7014rr |
| Population density (as population/area) |
d | {{#invoke:Slovak municipality|sk|d}} | 239.03 |
| Data year | y | {{#invoke:Slovak municipality|sk|y}} | |
| Last acces | l | {{#invoke:Slovak municipality|sk|l}} | |
| Last update | u | {{#invoke:Slovak municipality|sk|u}} | |
| Is slovak municipality (none support %i) |
i | {{#invoke:Slovak municipality|sk|i|SK0417524395}} | 1 |
| Get NUTS/LAU code (none support %e) |
e |
You can used both the format string like printf() with parameters from table.
| Code: | {{#invoke:Slovak municipality|sk|%p (source: %P)|SK0417524395}} |
| Output: | 2687 (source: https://datacube.statistics.sk/#!/view/en/vbd_dem/om7101rr/v_om7101rr_00_00_00_en |
Second parameter
[edit]It is a STUN or LAU code for place sup-place (ex. SK0417524395). If none, then code is automatic based on the actual page.