Changes

Enable float
Line 63: Line 63:  
]],
 
]],
 
_image_template = "[[File:%s]]",
 
_image_template = "[[File:%s]]",
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 320px;"
+
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 320px; float: ${float};"
 
|-
 
|-
 
|colspan="6" style="position: relative; text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}"|<div style="position: absolute; right: 5px;">${edit_link}</div>
 
|colspan="6" style="position: relative; text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}"|<div style="position: absolute; right: 5px;">${edit_link}</div>
Line 435: Line 435:  
self._vars.table_class = collapsible and "mw-collapsible mw-collapsed" or ""
 
self._vars.table_class = collapsible and "mw-collapsible mw-collapsed" or ""
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
 +
self._vars.float = self._args.float or "none"
 
end
 
end
  
Anonymous user