• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Swiss populations date

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

This template displays the date for the population from Swiss population data.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Example
  • 4 See also

Usage

The template uses the following syntax

{{Swiss populations date|ISO code|SFOS number}}

Do not use this template with in the {{asof}} template, because it will cause {{asof}} to assign the article to the non-existent Category:Articles containing potentially dated statements from 31 December 2018 or what ever the current template date is. Instead, always use {{Swiss populations Y}} or {{Swiss populations YM}} with in the {{asof}} template.

Parameters

  • ISO code is the ISO code for Switzerland followed by a "-" and the ISO code for the Canton eg. CH-BE would be for any municipality in the Canton of Bern. For a list of the 26 cantons, see List of Swiss Cantons.
  • SFOS number is the Community Identification Number for each municipality. It is found in the individual municipality's infobox. ex. 0351 is the code for Bern. Larger political organizations also have a SFOS number, for example B0246 is the number for the Bern-Mittelland administrative district.

Example

{{Swiss populations date|CH-BE|0301}}

returns 31 December 2020

See also

  • Template:Swiss populations provides the actual population number
  • Template:Swiss populations ref provides the reference for the population
  • Template:Swiss populations YM returns only the year and month
  • Template:Swiss populations Y returns only the year
The above documentation is transcluded from Template:Swiss populations date/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.


Retrieved from "https://moasspedia.org/w/index.php?title=Template:Swiss_populations_date&oldid=32069"
Category:
  • Swiss populations data templates
Last edited on 23 February 2018, at 12:03

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 23 February 2018, at 12:03.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop