Module:Outdent: Difference between revisions
Content deleted Content added
(From sandbox) use variable border color for better dark mode appearance |
m Localise imported template guidance and policy links; preserve index layout and licence information |
||
Line 27:
local top = '<span style="display:block;width:' .. width .. 'em;height:0.5em;' .. (width == 0 and '' or 'border-bottom:1px solid var(--border-color-base, #a2a9b1);') .. 'border-' .. ((width == 0 or reversed) and 'left' or 'right') ..':1px solid var(--border-color-base, #a2a9b1);"></span>' -- top half
local bottom = '<span style="display:block;width:' .. width .. 'em;height:0.5em;border-' .. (reversed and 'right' or 'left') .. ':1px solid var(--border-color-base, #a2a9b1);"></span>' -- bottom half
local note = args[2] and '<span>([[
return '<div class="outdent-template" style="position:relative;left:1px;">' .. top .. bottom .. note .. '</div>';
| |||