Szablon:Unit area: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
m (1 wersja) |
|||
| Linia 1: | Linia 1: | ||
<includeonly>{{#switch: {{{1|}}} | <includeonly>{{#switch: {{{1|}}} | ||
| km | | km | ||
| − | | sqkm = {{formatnum: {{{2}}} }} [[ | + | | sqkm = {{formatnum: {{{2}}} }} [[Kilometr kwadratowy|km²]] ({{formatnum: {{#expr: {{{2}}}*100 round {{{3|0}}} }} }} [[Hektar|ha]]) |
| − | | sqkm0 = {{formatnum: {{{2}}} }} [[ | + | | sqkm0 = {{formatnum: {{{2}}} }} [[Kilometr kwadratowy|km²]] |
| − | | ha = {{formatnum: {{{2}}} }} [[ | + | | ha = {{formatnum: {{{2}}} }} [[Hektar|ha]] ({{formatnum: {{#expr: {{{2}}}/100 round {{{3|0}}} }} }} [[Kilometr kwadratowy|km²]]) |
| − | | ha0 = {{formatnum: {{{2}}} }} [[ | + | | ha0 = {{formatnum: {{{2}}} }} [[Hektar|ha]] |
| m | | m | ||
| − | | sqm = {{formatnum: {{{2}}} }} [[ | + | | sqm = {{formatnum: {{{2}}} }} [[Metr kwadratowy|m²]]}}</includeonly><noinclude> |
The template has 3 unnamed parameters: <code><nowiki>{{Unit area| unit| value| round}}</nowiki></code>. Their meaning is as follows: | The template has 3 unnamed parameters: <code><nowiki>{{Unit area| unit| value| round}}</nowiki></code>. Their meaning is as follows: | ||
# '''unit''' … obligatory, unit (<code>sqm/m, sqft/ft, ha, acre, sqkm/km, sqmi/mi</code>, slashes delimit alternatives) of the <code>value</code> aprameter, it will get displayed first | # '''unit''' … obligatory, unit (<code>sqm/m, sqft/ft, ha, acre, sqkm/km, sqmi/mi</code>, slashes delimit alternatives) of the <code>value</code> aprameter, it will get displayed first | ||
Aktualna wersja na dzień 15:39, 1 kwi 2021
The template has 3 unnamed parameters: {{Unit area| unit| value| round}}. Their meaning is as follows:
- unit … obligatory, unit (
sqm/m, sqft/ft, ha, acre, sqkm/km, sqmi/mi, slashes delimit alternatives) of thevalueaprameter, it will get displayed first - value … obligatory, numerical value
- round … mandatory, number of decimal digits (negative numbers can be used for rounded figures); if not specified 0 is assumed