Difference between revisions of "Template:Infobox settlement/dunam"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:Infobox settlement/dunam": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirm...) |
imported>Jonesey95 (fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments) |
||
| Line 1: | Line 1: | ||
| − | <noinclude>This produces an area in dunams plus conversions, e.g. "</noinclude>{{formatnum:{{{dunv|20}}} {{{dunu|dunam}}}{{#ifeq:{{{dunv}}}|1||s}} ({{{metv|2}}} {{{metu|ha}}} or {{{impv|5}}} {{{impu|acre}}}{{#ifeq:{{{impv}}}|1||{{#ifeq:{{{impu|acre}}}|acre|s}}}}) | + | <noinclude>This produces an area in dunams plus conversions, e.g. "</noinclude>{{formatnum:{{replace|{{{dunv|20}}}|,|}}}} {{{dunu|dunam}}}{{#ifeq:{{{dunv}}}|1||s}} ({{formatnum:{{replace|{{{metv|2}}}|,|}}}} {{{metu|ha}}} or {{formatnum:{{replace|{{{impv|5}}}|,|}}}} {{{impu|acre}}}{{#ifeq:{{{impv}}}|1||{{#ifeq:{{{impu|acre}}}|acre|s}}}})<noinclude>". |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:25, 28 September 2020
This produces an area in dunams plus conversions, e.g. "20 dunams (2 ha or 5 acres)".
Usage
This is a subtemplate of {{Infobox settlement}}. It is not intended to be used directly.
It displays an area in dunams and its equivalent in both metric and imperial/US customary units.
It is called by {{Infobox settlement/areadisp}}, which handles the conversions and calls this template with values assigned to the following parameters:
{{{dunv}}}(required) — the dunam value{{{metv}}}(required) — the metric value{{{impv}}}(required) — the imperial/US value{{{dunu}}}(optional: defaults to "dunam" or "dunams") — the symbol/abbreviation of the dunam unit{{{metu}}}(optional: defaults to "ha") — the symbol/abbreviation of the metric unit{{{impu}}}(optional: defaults to "acre" or "acres") — the symbol/abbreviation of the imperial/US unit
See also
- Similar subtemplates of {{Infobox settlement}}
- {{Infobox settlement/dunam/mag}}
- {{Infobox settlement/metric}}
- {{Infobox settlement/metric/mag}}
- {{Infobox settlement/impus}}
- {{Infobox settlement/impus/mag}}
- Other subtemplates of {{Infobox settlement}}
- {{Infobox settlement/densdisp}}
- {{Infobox settlement/lengthdisp}}
- {{Infobox settlement/pref}}
- {{Infobox settlement/link}}
| The above documentation is transcluded from Template:Infobox settlement/dunam/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |