Template:Population Dutch municipality by code using named parameters

Template documentation
  • "{{population Dutch municipality by code using named parameters|pp|193}}" gives " 118943 " [1]

This template gives a preprocessor node count of 445, only half the maximum of that of the very similar Template:Population Dutch municipality by code which uses switch.

A disadvantage is that no default is possible:

  • "{{population Dutch municipality by code using named parameters|pp|1934}}" gives " {{{1934}}} " [2]

However, using the wrapper Template:Ifbraces we can deal with that:

  • {{ifbraces|{{population Dutch municipality by code using named parameters|pp|193}}|data missing}} gives 118943
  • {{ifbraces|{{population Dutch municipality by code using named parameters|pp|1934}}|data missing}} gives data missing

or using Template:Get:

  • "{{get|population Dutch municipality by code using named parameters|193|data missing}}" gives "118943" [3]
  • "{{get|population Dutch municipality by code using named parameters|1934|data missing}}" gives "data missing" [4]
  • "{{get|population Dutch municipality by code using named parameters|193}}" gives "118943" [5]
  • "{{get|population Dutch municipality by code using named parameters|1934}}" gives "" [6]

{{population Dutch municipality by code using named parameters|show population Dutch municipalities}}

CBS-code population
1680 25593
738 12630
358 29182
1896 21921
642 44401
193 118943
[7]

gives preprocessor node count of 451 with 3 rows at the start and 3 at the end, hardly more than just 1 at the end.