แม่แบบ:Convert/testcases/sandbox
นี่คือหน้าชุดทดสอบแม่แบบของกระบะทรายของ แม่แบบ:Convert/testcases ล้างแคชหน้านี้เพื่อปรับปรุงตัวอย่าง หากแม่แบบซับซ้อนมีตัวอย่างจำนวนมาก อาจทำให้หน้าแสดงผลผิดพลาดได้เนื่องจากข้อจำกัดของมีเดียวิกิ โปรดดูคอมเมนต์ของ HTML ส่วน "NewPP limit report" คุณสามารถใช้ Special:ExpandTemplates ในการดูตรวจดูผลลัพธ์จากการใช้แม่แบบได้เช่นเดียวกัน คุณสามารถทดสอบดูว่าแม่แบบนี้แสดงผลแตกต่างกันในแต่ละสกินอย่างไรโดยเข้าลิงก์เหล่านี้: |
ถ้าทุกอย่างเรียบร้อย หน่วยที่แสดงผลควรเป็นภาษาไทย
- Live version tested: แม่แบบ:T links
- Sandbox version tested: แม่แบบ:T links
- Module tested in this sandbox: แม่แบบ:Lmd
- All /testcases/ pages
{cvt} testcases[แก้]
To compare: |abbr=
options in {{convert}} and {{cvt}}
- {convert/sandbox|10|km|mi}} → 10 กิโลเมตร (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=}} → 10 กิโลเมตร (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=in}} → 10 km (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=off}} → 10 กิโลเมตร (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=none}} → 10 กิโลเมตร (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=on}} → 10 km (6.2 mi)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=out}} → 10 กิโลเมตร (6.2 mi)
- {cvt/sandbox|...} → 10 km (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=values}} → 10 (6.2)
- {cvt/sandbox|...} → 10 (6.2)
- {convert/sandbox|10|km|mi|abbr=~}} → 10 กิโลเมตร [km] (6.2 ไมล์)
- {cvt/sandbox|...} → 10 km [km] (6.2 mi)
- {convert/sandbox|10|km|mi|abbr=foo}} → 10 กิโลเมตร (6.2 ไมล์)convert: bug
- {cvt/sandbox|...} → 10 km (6.2 mi)[convert: %s]%s
spell[แก้]
- {convert/sandbox|10|km|mi|spell=on}} → สิบ กิโลเมตร (หกจุดสอง ไมล์)
- {cvt/sandbox|...} → สิบ กิโลเมตร (หกจุดสอง ไมล์)
- {convert/sandbox|25e9|km|mi|spell=on}} → สองหมื่นห้าพันล้าน กิโลเมตร (1.6×1010 ไมล์)
- {cvt/sandbox|...} → สองหมื่นห้าพันล้าน กิโลเมตร (1.6×1010 ไมล์)
- {convert/sandbox|1.23441e5|km|mi|spell=on}} → หนึ่งแสนสองหมื่นสามพันสี่ร้อยสี่สิบเอ็ด กิโลเมตร (เจ็ดหมื่นหกพันเจ็ดร้อยสาม ไมล์)
- {cvt/sandbox|...} → หนึ่งแสนสองหมื่นสามพันสี่ร้อยสี่สิบเอ็ด กิโลเมตร (เจ็ดหมื่นหกพันเจ็ดร้อยสาม ไมล์)
- {convert/sandbox|1.000001e6|km|mi|spell=on}} → หนึ่งล้านเอ็ด กิโลเมตร (หกแสนสองหมื่นหนึ่งพันสามร้อยเจ็ดสิบสอง ไมล์)
- {cvt/sandbox|...} → หนึ่งล้านเอ็ด กิโลเมตร (หกแสนสองหมื่นหนึ่งพันสามร้อยเจ็ดสิบสอง ไมล์)
- {convert/sandbox|21e6|km|mi|spell=on}} → ยี่สิบเอ็ดล้าน กิโลเมตร (สิบสามล้าน ไมล์)
- {cvt/sandbox|...} → ยี่สิบเอ็ดล้าน กิโลเมตร (สิบสามล้าน ไมล์)
Sandbox testcases[แก้]
The following test the sandbox modules by comparing the output of {{convert/sandbox}} with fixed wikitext. The results should be examined when the sandbox modules are changed.
The sandbox testcases contain almost all the converts from the tests listed in other sections on this page, and extra tests.
Test | Result |
---|---|
sandbox1 | talk sandbox1 |
sandbox2 | talk sandbox2 |
sandbox3 | talk sandbox3 |
sandbox4 | talk sandbox4 |
Testcases by unit type[แก้]
The following compare the output of {{convert/old}} with that from {{convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.
Type |
---|
acceleration |
area, area2 |
density |
energy, energy2, energy3, energy4 |
energyperlength |
energypermass |
energypervolume |
exhaustemission |
flow |
force |
fuelconsumption |
gradient |
length, length2, length3 (hand) |
lineardensity |
mass |
mole |
per (cost/area/volume/mass) |
populationdensity |
power |
pressure |
radioactivity |
speed |
temperature |
temperature-change |
time |
torque |
volume, volume2, volume3, volume4, volume5 |
misc (these need sorting into better groupings) |
Other testcases[แก้]
The following compare the output of {{convert/old}} with that from {{convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.
Test topic |
---|
warnings |
numbers |
dualunit |
options, options2 |
tables |
spell |
range |
rounding |
sigfig |
parametercombinations1 - No disp param |
parametercombinations2 - disp=or |
parametercombinations3 - disp=x|BEGIN|END |
parametercombinations4 - disp=output only |
parametercombinations5 - disp=output number only |
parametercombinations6 - disp=flip |
parametercombinations7 - disp=unit |
parametercombinations8 - disp=br |
parametercombinations9 - disp=sqbr |
parametercombinations10 - disp=u2 |
extra |
prefixes (currently, SI only) |