Module:Outdent: Difference between revisions
create module |
fix link (interwiki link) |
||
| Line 27: | Line 27: | ||
local top = '<span style="display:block;width:' .. width .. 'em;height:0.5em;' .. (width == 0 and '' or 'border-bottom:1px solid #a2a9b1;') .. 'border-' .. ((width == 0 or reversed) and 'left' or 'right') ..':1px solid #a2a9b1;"></span>' -- top half | local top = '<span style="display:block;width:' .. width .. 'em;height:0.5em;' .. (width == 0 and '' or 'border-bottom:1px solid #a2a9b1;') .. 'border-' .. ((width == 0 or reversed) and 'left' or 'right') ..':1px solid #a2a9b1;"></span>' -- top half | ||
local bottom = '<span style="display:block;width:' .. width .. 'em;height:0.5em;border-' .. (reversed and 'right' or 'left') .. ':1px solid #a2a9b1;"></span>' -- bottom half | local bottom = '<span style="display:block;width:' .. width .. 'em;height:0.5em;border-' .. (reversed and 'right' or 'left') .. ':1px solid #a2a9b1;"></span>' -- bottom half | ||
local note = args[2] and '<span>([[Wikipedia:Indentation#Outdenting|outdent]]) </span>' or '' -- note | local note = args[2] and '<span>([[Wikipedia:Wikipedia:Indentation#Outdenting|outdent]]) </span>' or '' -- note | ||
return '<div class="outdent-template" style="position:relative;left:1px;">' .. top .. bottom .. note .. '</div>'; | return '<div class="outdent-template" style="position:relative;left:1px;">' .. top .. bottom .. note .. '</div>'; | ||