« Module:Style infobox » : différence entre les versions

De Battlestar Wiki
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
local retval = {
local retval = {
main_box_raw_auto_width = 'border-spacing:2px;',
main_box_raw_auto_width = 'border-spacing:2px;',
header_raw = 'background-color: #471919; text-align: center; vertical-align: middle; font-size: 150%; line-height: 1.2em; color: #FFFFFF; font-family: Caprica; font-variant: small-caps;',
header_raw = 'height: 45px; background-color: #471919; text-align: center; vertical-align: middle; font-size: 150%; line-height: 1.2em; color: #FFFFFF; font-family: Caprica; font-variant: small-caps;',
sub_header_raw = 'background-color:#DCDCDC;text-align:center;vertical-align:middle;',
sub_header_raw = 'background-color:#DCDCDC;text-align:center;vertical-align:middle;',
header_color = 'background-color:#C3D6EF;',
header_color = 'background-color:#C3D6EF;',

Version du 5 décembre 2019 à 14:37

Documentation module[créer]
local retval = {
	main_box_raw_auto_width = 'border-spacing:2px;',
	header_raw = 'height: 45px; background-color: #471919; text-align: center; vertical-align: middle; font-size: 150%; line-height: 1.2em; color: #FFFFFF; font-family: Caprica; font-variant: small-caps;',
	sub_header_raw = 'background-color:#DCDCDC;text-align:center;vertical-align:middle;',
	header_color = 'background-color:#C3D6EF;',
	nav_box = 'margin:0;float:right;clear:right;width:25.5em;margin-bottom:0.5em;margin-left:1em;',
	nav_box_child = 'margin:0;float:right;clear:right;width:25em;margin-bottom:0.5em;',
	nav_box_wide =  '',
	nav_box_header = 'background-color:#C3D6EF;',
	nav_box_wide_header = 'background-color:#C3D6EF;',
	nav_box_label = 'background-color:#DCDCDC;',
	image_box_raw = 'text-align:center;border-bottom:1px solid #aaa;line-height:1.5em;',
	image_box_plain_raw = 'text-align:center;line-height:1.5em;',
	internal_border = '1px dotted #aaa;',
	section_border = '1px solid #aaa;'
}

retval.main_box_raw = 'width: 340px;' .. retval.main_box_raw_auto_width
retval.header_bar = 'style="' .. retval.header_raw .. '"'
retval.sub_header_bar = 'style="' .. retval.sub_header_raw .. '"'
retval.image_box = 'style="' .. retval.image_box_raw .. '"'
retval.image_box_plain = 'style="' .. retval.image_box_plain_raw .. '"'

return retval