Template:Rolerecurrence

From OpenStreetMap Wiki
Jump to navigation Jump to search

{{Rolerecurrence}}: missing parameter 1=

[Edit] [Purge] Template-info.svg Template documentation

A template for relation member recurrence specification.

Usage

1=
The first unnamed parameter is the minimum members of a role that can be present; i.e., a non-negative integer.
2=
The second unnamed parameter, is the maximum members of a role that can be present; it can be a positive integer, -, or empty/undefined. - indicates that there is no maximum. If the parameter is empty or undefined, the maximum is take to be the same as the minimum.

Samples

{{Rolerecurrence|0}}  0
{{Rolerecurrence|0|1}} ? 0–1
{{Rolerecurrence|0|-}} ? 0+
{{Rolerecurrence|1}} ! 1
{{Rolerecurrence|1|-}} ! 1+
{{Rolerecurrence|1|2}} ! 1–2
{{Rolerecurrence|1|5}} ! 1–5
{{Rolerecurrence|2|5}} ! 2–5
{{Rolerecurrence|2|-}} ! 2+