سانچہ:خانہ معلومات شخصیت/وزن
![]() | This is for use in templates. For articles, please use {{Convert}}. |
لوا خطا ماڈیول:Lua_banner میں 113 سطر پر: attempt to index field 'edit' (a nil value)۔
This template is used to automatically add conversions of weight measurements displayed by Template:Infobox person and other infoboxes with a |weight=
parameter.
Usage
[ترمیم]{{Infobox
...
| label# = Weight
| data# = {{#if: {{{weight|}}} | {{خانہ معلومات شخصیت/وزن|{{{weight}}}}} }}
...
}}
Examples
[ترمیم]کلوگرامs:
|weight=1 kilogram
→ 1 کلوگرام (2 پونڈ)|weight=108 kg.
→ 108 کلوگرام (238 پونڈ).|weight=111kilograms
→ 111 کلوگرام (245 پونڈ)|weight=108 kgs.
→ 108 کلوگرام (238 پونڈ).
|weight=1 pound
→ 1 پونڈ (0 کلوگرام)|weight=200 lb.
→ 200 پونڈ (91 کلوگرام).|weight=245pounds
→ 245 پونڈ (111 کلوگرام)|weight=238 lbs.
→ 238 پونڈ (108 کلوگرام).
|weight=1 stone
→ 1 سنگ (14 پونڈ؛ 6 کلوگرام)|weight=10 st.
→ 10 سنگ (140 پونڈ؛ 64 کلوگرام).|weight=17stones
→ 17 سنگ (238 پونڈ؛ 108 کلوگرام)|weight=17 sts.
→ 17 سنگ (238 پونڈ؛ 108 کلوگرام).
|weight=17 stone, 7 pounds
→ 17 st, 7 lb|weight=17 st. 7 lb.
→ 17 st. 7 lb.|weight=17stones 1pound
→ 17 سنگ 1 پونڈ (108 کلوگرام)|weight=17 sts. 1 lbs.
→ 17 st. 1 lb.
Text and/or footnotes (references) after weight:
|weight=108 kgs (2012)
→ 108 کلوگرام (238 پونڈ) (2012)|weight=238 lbs<ref>citation goes here</ref>
→ 238 پونڈ (108 کلوگرام)[1]|weight=238 lbs (2012)<ref>{{cite news|title=title|work=work}}</ref>
→ 238 پونڈ (108 کلوگرام) (2012)[2]
- Example references
{{Convert}} templates, without and with wikilinked unit names:
|weight={{Convert|111|kg|lb stlb|abbr=off}}
→ 111 کلوگرام (245 پونڈ؛ 17 سنگ 7 پونڈ)|weight={{Convert|111|kg|lb stlb|abbr=off|lk=on}}
→ 111 کلوگرام (245 پونڈ؛ 17 سنگ 7 پونڈ)
خانہ معلومات شخصیت/وزن | |
---|---|
معلومات شخصیت | |
درستی - ترمیم ![]() |
{{خانہ معلومات شخصیت/sandbox}}
Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist
|weight={{Convert|245|lb|kg stlb|abbr=off}}
→ 245 پونڈ (111 کلوگرام؛ 17 سنگ 7 پونڈ)|weight={{Convert|245|lb|kg stlb|abbr=off|lk=on}}
→ 245 پونڈ (111 کلوگرام؛ 17 سنگ 7 پونڈ)
خانہ معلومات شخصیت/وزن | |
---|---|
معلومات شخصیت | |
درستی - ترمیم ![]() |
{{خانہ معلومات شخصیت/sandbox}}
Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist
Weight ranges with input containing en dash (–):
|weight=108–111 kg
→ 108–111 kg|weight=238–245 lb
→ 238–245 lb|weight=17–18 st
→ 17–18 st
Weight ranges with input containing hyphen (-); output is changed to en dash by {{Convert}}:
|weight=108-111 kg
→ 108–111 کلوگرام (238–245 پونڈ)|weight=238-245 lb
→ 238–245 پونڈ (108–111 کلوگرام)|weight=17-18 st
→ 17–18 سنگ (238–252 پونڈ؛ 108–114 کلوگرام)
If a template uses {{Infobox person/weight|{{{weight}}}|kg-stlb=yes}}
, then an article using that template with an input in کلوگرام will display two conversions: lb followed by حجر/lb (default is one conversion to lb):
|weight=100 kg
→ 100 کلوگرام (220 پونڈ)|weight=108–111 kg
→ 108–111 kg
If a template uses {{Infobox person/weight|{{{weight}}}|lb-stlb=yes}}
, then an article using that template with an input in lb will display two conversions: کلوگرام followed by حجر/lb (default is one conversion to kg):
|weight=200 lb
→ 200 پونڈ (91 کلوگرام)|weight=238-245 lb
→ 238–245 پونڈ (108–111 کلوگرام)
Exceptions
[ترمیم]Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):
|weight=108 kilograms (229 pounds)
→ 108 kg (229 lb)|weight=238 pounds (119 kilograms)
→ 238 lb (119 kg)|weight=17 stone (229 pounds; 119 kilograms)
→ 17 st (229 lb; 119 kg)
Does not replace numeric output of conversion templates such as {{convert}}, but does replace unit names with abbreviations (examples intentionally show different precision than usual):
|weight={{تحویل|108.1|kg|lb|1|abbr=off}}
→ 108.1 کلوگرام (238.3 پونڈ)- output of convert template: 108.1 کلوگرام (238.3 پونڈ)
|weight={{تحویل|238.2|lb|kg|2|abbr=off}}
→ 238.2 پونڈ (108.05 کلوگرام)- output of convert template: 238.2 پونڈ (108.05 کلوگرام)
|weight={{تحویل|17.3|st|1|abbr=off}}
→ 17.3 سنگ (242.2 پونڈ؛ 109.9 کلوگرام)- output of convert template: 17.3 سنگ (242.2 پونڈ؛ 109.9 کلوگرام)
Areas for improvement
[ترمیم]Conversion not displayed if unit name contains uppercase characters:
|weight=100 Kilograms
→ 100 Kilograms|weight=100 KG
→ 100 KG|weight=200 Pounds
→ 200 Pounds|weight=200 LB
→ 200 LB|weight=10 Stone
→ 10 Stone|weight=10 ST
→ 10 ST
اوپر دی گئی دستاویز صفحہ سانچہ:خانہ معلومات شخصیت/وزن/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |