Content deleted Content added
test zoom |
adjust to match new parameters |
||
(17 intermediate revisions by the same user not shown) | |||
Line 4:
-- Test dim
function p:test_dim()
self:
{'length_km=20|width_km=30','15km'},
{'length_mi=20|width_mi=30','24km'},
Line 13:
{'width_km=30','15km'},
{'width_mi=30','24km'},
{'area_km2=300','
{'area_mi2=200','
{'area_ha=30,000','
{'area_acre=75,000','
{'dim=50km','50km'},
{'scale=100000','
{'type=mountain','
{'type=
{'type=
{'type=mountain|length_km=20','10km'},
{'length_km=20|viewport_cm=25','8km'},
{'length_km=20|viewport_px=800','8km'},
{'area_ha=blerg',''},
{'',''}
})
self:preprocess_equals('{{#invoke:Infobox dim | dim }}','')▼
end
-- Test scale
function p:test_scale()
self:preprocess_equals_sandbox_many('{{#invoke:Infobox dim','scale', {
{'length_km=20|width_km=30','150000'},
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'dim=100','1600'},
{'
{'type=
{'type=city|population=100000','117907'},
{'type=mountain|length_km=20','100000'},
{'length_km=20|viewport_cm=25','80000'},
{'length_km=20|viewport_px=800','83333'},
{'area_ha=blerg',''},
{'',''}
})
▲ self:preprocess_equals('{{#invoke:Infobox dim | scale}}','')
end
-- Test zoom
function p:test_zoom()
{'length_km=20|width_km=30','9'},
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'
{'dim=100','17'},
{'
{'type=
{'type=mountain|
{'type=city|population=100000','10'},
{'type=mountain|length_km=20','10'},
{'length_km=20|viewport_cm=25','12'},
{'length_km=20|viewport_px=800','12'},
{'area_ha=blerg',''},
{'',''}
})
end
|