„Modul:Pozíciós térkép” változatai közötti eltérés

[ellenőrzött változat][ellenőrzött változat]
Tartalom törölve Tartalom hozzáadva
aNincs szerkesztési összefoglaló
aNincs szerkesztési összefoglaló
223. sor:
elseif position == 'le' or position == 'lent' then position = 'bottom' end
local builder = mw.html.create('div')
:cssText('font-size:' .. label_size .. '%; line-height:110%; position:absolute' .. )
(position == 'right' and '' or '; min-width:' .. label_width .. 'em')
)
local distance = math.floor(marksize / 2 + 1.5)
local spanCss
if position == 'top' then -- specified top
builder:cssText('bottom:' .. distance .. 'px; left:' .. (-label_width / 2) .. 'em; text-align:center; min-width:' .. label_width .. 'em')
elseif position == 'bottom' then -- specified bottom
builder:cssText('top:' .. distance .. 'px; left:' .. (-label_width / 2) .. 'em; text-align:center; min-width:' .. label_width .. 'em')
elseif position == 'left' or (tonumber(x) > 70 and position ~= 'right') then -- specified left or autodetected to left
builder:cssText('top:-0.7em; right:' .. distance .. 'px; text-align:right; float:right; min-width:' .. label_width .. 'em')
spanCss = 'float:right'
else -- specified right or autodetected to right